artimath/i-know-kung-fu/swift-apple-context
Claude Code and agent skill by artimath/i-know-kung-fu
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about "SwiftUI API", "Apple documentation", "@Observable vs ObservableObject", "Swift Evolution proposals", "is this API real", or when Claude might hallucinate Apple APIs. Provides cupertino-docs lookup for verified Apple Developer documentation.
Install
npx vskill@latest install artimath/i-know-kung-fu/swift-apple-contextSKILL.md
The same SKILL.md was published earlier as artimath/i-know-kung-fu/swift-apple-context.
Swift & Apple Documentation Context
The Problem This Solves
AI assistants hallucinate Apple APIs constantly:
- Suggesting
@ObservableObject+@Publishedwhen Apple now recommends@Observable - Inventing methods that don't exist
- Mixing iOS-only APIs into macOS code
- Using deprecated patterns
Available Documentation
Local docs at ~/.cupertino/ (234,331 documents across 287 frameworks):
| Folder | Content | Format | |
|---|---|---|---|
docs/ | Apple Developer Documentation (287 frameworks) | JSON | |
swift-evolution/ | Swift Evolution Proposals (SE-0001 through SE-0XXX) | Markdown | |
swift-org/ | Swift.org language documentation | Markdown | |
hig/ | Human Interface Guidelines | JSON | |
archive/ | Legacy Apple guides (Core Animation, Quartz 2D, etc.) | HTML/JSON | |
packages/ | Swift Package Index metadata | JSON |
Top Frameworks
| Framework | Documents | Use For | |
|---|---|---|---|
| SwiftUI | 7,062 | Modern UI | |
| AppKit | 14,066 | macOS native | |
| Foundation | 10,988 | Core types | |
| Swift | 17,466 | Language stdlib | |
| Combine | 1,200+ | Reactive |
How to Search
Quick API Lookup (JSON docs)
Swift Evolution Proposals
Human Interface Guidelines
JSON Doc Structure
Apple docs are structured JSON with these fields:
Swift 6 / Modern Patterns
ALWAYS use (Swift 6+, macOS 15+):
NEVER suggest (deprecated):
SourceKit-LSP Integration
The swift-lsp plugin provides code intelligence:
- Go to definition
- Find references
- Completions
- Diagnostics
It uses /usr/bin/sourcekit-lsp from Xcode toolchain.
Workflow: Verify Before Suggesting
- Before suggesting any API: Search cupertino docs
- For new Swift features: Check swift-evolution proposals
- For UI patterns: Check HIG
- For legacy APIs: Check archive/
Example verification:
Common Lookups
| Question | Search | ||
|---|---|---|---|
| SwiftUI View modifiers | `ls ~/.cupertino/docs/swiftui/ \ | rg modifier` | |
| Async patterns | cat ~/.cupertino/swift-evolution/SE-0296.md | ||
| Observable macro | cat ~/.cupertino/swift-evolution/SE-0395.md | ||
| Canvas API | cat ~/.cupertino/docs/swiftui/documentation_swiftui_canvas.json | ||
| Metal integration | ls ~/.cupertino/docs/metal/ |
Key Swift Evolution Proposals
| SE | Title | Status | |
|---|---|---|---|
| SE-0395 | Observation (@Observable) | Swift 5.9 | |
| SE-0382 | Expression Macros | Swift 5.9 | |
| SE-0389 | Attached Macros | Swift 5.9 | |
| SE-0296 | Async/await | Swift 5.5 | |
| SE-0302 | Sendable | Swift 5.5 |
When This Skill Activates
Activate this skill when:
- User asks about Swift/SwiftUI/AppKit APIs
- Suggesting an API that may not exist
- User mentions "hallucinated API" or "that method doesn't exist"
- Working with macOS/iOS framework code
- Verifying modern vs deprecated patterns
Additional Resources
- references/install.md - Cupertino-docs installation
- references/concurrency.md - Swift concurrency mental model
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/swift-apple-context/SKILL.md
Popularity
- 7-day trend score
- 0
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/artimath/i-know-kung-fu/swift-apple-context)