swift-coding
Ensures Swift code quality and safety by enforcing best practices for error handling, concurrency, and memory management.
Install
mkdir -p .claude/skills/swift-coding && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18678" && unzip -o skill.zip -d .claude/skills/swift-coding && rm skill.zipInstalls to .claude/skills/swift-coding
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Apply when writing or editing Swift (.swift) files. Behavioral corrections for error handling, concurrency, memory management, type safety, protocol-oriented design, security defaults, and common antipatterns. Project conventions always override these defaults.Key capabilities
- →Correct error handling in Swift files
- →Improve concurrency patterns
- →Manage memory with weak/unowned references
- →Ensure type safety with generics and protocols
- →Apply protocol-oriented design principles
- →Prevent common Swift antipatterns
How it works
The skill applies behavioral corrections based on Swift best practices and 'never' rules, prioritizing project conventions.
Inputs & outputs
When to use swift-coding
- →Optimizing concurrency in Swift apps
- →Refactoring legacy Swift code for safety
- →Fixing memory management issues with self capture
- →Implementing robust error handling patterns
About swift-coding
Provides behavioral corrections for Swift files, focusing on concurrency, type safety, and memory management. It applies project conventions as the primary source of truth while enforcing strict 'never' rules to prevent common runtime crashes and vulnerabilities.
Apply when writing or editing Swift (.swift) files. Behavioral corrections for error handling, concurrency, memory management, type safety, protocol-oriented design, security defaults, and common antipatterns. Project conventions always override these defaults.
When not to use it
- →When editing files other than Swift (.swift) files
- →When project conventions explicitly override these defaults
- →When the goal is to introduce known antipatterns
Limitations
- →Focuses on behavioral corrections for specific Swift language features
- →Does not infer project-specific requirements beyond explicit conventions
How it compares
This skill provides specific, actionable corrections for common Swift issues, unlike general coding advice.
Compared to similar skills
swift-coding side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| swift-coding (this skill) | 0 | 3mo | Review | Intermediate |
| feature-toggle-developer | 1 | 9mo | Review | Intermediate |
| swiftui-view-refactor | 0 | 9mo | No flags | Intermediate |
| swiftdata-pro | 0 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Dynokostya
View all by Dynokostya →You might also like
feature-toggle-developer
anyproto
Guides systematic removal of feature toggles from the codebase with automated cleanup detection. Use when removing feature flags, enabling toggles permanently, or cleaning up unused code after toggle removal.
swiftui-view-refactor
hot666666
Refactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage. Use when asked to clean up a SwiftUI view’s layout/ordering, handle view models safely (non-optional when possible), or standardize how dependencies and @Observable state are initialized and
swiftdata-pro
sobchak-security
Writes, reviews, and improves SwiftData code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use SwiftData.
skill-code-review
nicanac
Perform thorough, constructive code reviews focusing on correctness, security, maintainability, and best practices
swift-concurrency
AvdLee
Expert guidance on Swift Concurrency best practices, patterns, and implementation. Use when developers mention: (1) Swift Concurrency, async/await, actors, or tasks, (2) "use Swift Concurrency" or "modern concurrency patterns", (3) migrating to Swift 6, (4) data races or thread safety issues, (5) refactoring closures to async/await, (6) @MainActor, Sendable, or actor isolation, (7) concurrent code architecture or performance optimization, (8) concurrency-related linter warnings (SwiftLint or similar; e.g. async_without_await, Sendable/actor isolation/MainActor lint).
swift-concurrency-expert
Dimillian
Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file.