swift-core
БесплатноБез исполняемых скриптовНе проверенUse when implementing Swift 6 fundamentals — concurrency, architecture, testing, i18n, or performance — across any Apple platform.
от Fusengine★ 36 звёзд на GitHubОб этом скилле
References cover each area in depth: concurrency, architecture/DI, testing, i18n, and performance.
Best practices: prefer actors over classes with locks for shared state, @Observable over ObservableObject, structured concurrency over completion handlers, String Catalogs for all user-facing text, profiling in Release (-O) builds, and value types (structs) over classes where possible.
Swift Core
Swift 6 fundamentals shared across all Apple platforms.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing Swift patterns
- fuse-ai-pilot:research-expert - Verify latest Swift 6 docs via Context7/Exa
- mcp__apple-docs__search_apple_docs - Check Swift concurrency patterns
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
When to Use
- Implementing async/await, actors, Sendable
- Designing app architecture (MVVM, Clean Architecture)
- Writing tests with Swift Testing (XCTest only for legacy and UI tests on Xcode 27.2 and earlier)
- Localizing with String Catalogs
- Profiling with Instruments
Why Swift Core
| Feature | Benefit |
|---|---|
| Actors | Thread-safe shared state without locks |
| @Observable | Simple reactive state (replaces ObservableObject) |
| String Catalogs | Automatic localization with Xcode 15+ |
| Instruments | Built-in performance profiling |
Key Concepts
Concurrency (Swift 6)
Modern async/await with strict concurrency checking. Actors provide thread-safe state, Sendable marks safe types.
Architecture
MVVM with @Observable is the recommended pattern. Clean Architecture for complex apps with domain separation.
Testing
Swift Testing first: @Test, #expect / #require, exit tests (macOS only among Apple platforms), attachments, Issue.record(severity:), Test.cancel(). UI tests in Swift Testing arrive with Xcode 27.3 (beta); XCTest stays the legacy and UI-test path on 27.2. Details in testing.md.
Internationalization
String Catalogs are mandatory. All user-facing text must be localized.
Performance
Profile with Instruments. Use lazy loading, avoid heavy work in view body.
Reference Guide
| Need | Reference |
|---|---|
| Async/await, actors, Sendable | concurrency.md |
| MVVM, Clean Architecture, DI | architecture.md |
| Swift Testing, exit tests, attachments, XCTest legacy, UI tests | testing.md |
| String Catalogs, localization | i18n.md |
| Instruments, optimization | performance.md |
| Swift 6.4.x: Swift Build/SwiftPM, Subprocess 1.0, language additions | swift-6-4.md |
| Xcode/OS 27.0-27.2 (current) + 27.3 beta: breaking changes, deprecations, release notes | sdk-27-changes.md |
Best Practices
- Actors for shared state - Prefer actors over classes with locks
- @Observable over ObservableObject - Simpler, better performance
- Structured concurrency - async/await, no completion handlers
- String Catalogs - ALL user-facing text must be localized
- Profile in Release - Always profile with
-Ooptimization - Value types - Prefer structs over classes
- Swift Testing first - New tests use
@Test/#expect; XCTest only for legacy and, until Xcode 27.3 ships, UI tests - Swift 6.2 defaults - Decide default MainActor isolation and approachable concurrency per target (
SWIFT_DEFAULT_ACTOR_ISOLATION,SWIFT_APPROACHABLE_CONCURRENCY), see concurrency.md
Установить swift-core в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл swift-core?
Use when implementing Swift 6 fundamentals — concurrency, architecture, testing, i18n, or performance — across any Apple platform.
Как установить скилл swift-core?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл swift-core запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic