sickn33/agentic-awesome-skills/swift
Claude Code and agent skill by sickn33/agentic-awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Language-specific super-code guidelines for swift.
Install
npx vskill@latest install sickn33/agentic-awesome-skills/swiftSKILL.md
Swift: Idiomatic Efficiency Reference
Apply only within the requested scope and current project conventions. Preserve behavior, ownership, error handling, accessibility and security; examples are independent fragments, not equivalent rewrites in every context. Verify language/library versions and run relevant checks. Required tests and user-facing progress/results take precedence over brevity rules. Do not install dependencies or delete files merely to follow these examples.
When to Use
- Use this skill when the task matches this description: Language-specific super-code guidelines for swift.
Table of Contents
- Optionals
- Collections & Functional Transforms
- Value vs Reference Types
- Error Handling
- Concurrency
- Protocol-Oriented Design
- Anti-patterns specific to Swift
1. Optionals {#optionals}
2. Collections & Functional Transforms {#collections}
Use key paths (`\.isActive`) as closure shorthand where supported.
3. Value vs Reference Types {#value-types}
Default to `struct`. Use `class` when you need identity, inheritance, or reference semantics.
4. Error Handling {#errors}
5. Concurrency {#concurrency}
Use `actor` for mutable shared state instead of manual locks/queues.
6. Protocol-Oriented Design {#protocols}
7. Anti-patterns specific to Swift {#antipatterns}
| Anti-pattern | Preferred | |
|---|---|---|
Force unwrap ! in production code | guard let / if let / ?? | |
try! outside tests | do/catch | |
class for plain data | struct | |
| Deep inheritance hierarchies | protocol composition | |
@objc when pure Swift works | native Swift types | |
NSArray / NSDictionary | Array / Dictionary | |
DispatchQueue in async/await code | actor / MainActor | |
| Implicitly unwrapped optionals as fields | regular optionals or non-optional with init | |
Any / AnyObject everywhere | generics with protocol constraints | |
Massive switch over string values | enum with raw values | |
| Singleton pattern (global mutable state) | dependency injection |
Limitations
- These are language-specific guidelines and do not cover overall architectural decisions.
- Over-compression might reduce readability; apply judgement.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/super-code/swift/SKILL.md
Popularity
- Repository stars
- 47,054
- Repository forks
- 6,853
- 7-day trend score
- 54
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/agentic-awesome-skills/swift)