Swift
Idiomatic modern Swift — value semantics, optionals, protocols and generics, error handling, async/await, actors and Sendable, memory management with ARC, and Swift 6 concurrency pitfalls.
What it does
Idiomatic modern Swift — value semantics, optionals, protocols and generics, error handling, async/await, actors and Sendable, memory management with ARC, and Swift 6 concurrency pitfalls.
- Category
- languagemobileios
- Platforms
- iosmacos
- Frameworks and tools
- swiftswift-concurrencyfoundation
- Capabilities
- code-generationreviewrefactoring
Example tasks
- “Convert completion-handler networking code to async/await with proper cancellation.”
- “Fix retain cycles and data-race warnings in a view model using actors and Sendable.”
- “Model app errors and results with typed enums and exhaustive handling.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (59 lines in total).
- 01Swift
- 021. Types and value semantics
- 032. Optionals and errors
- 043. Protocols and generics
- 054. Concurrency (async/await, actors)
- 065. Memory (ARC)
- 076. Style and tooling
- 08Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Swift
1.0.0
- Initial release.