ios-dev
iOS and Swift development expert covering Swift best practices, SwiftUI patterns, Human Interface Guidelines compliance, accessibility audits, navigation patterns, and app architecture. Use when building iOS apps, reviewing Swift code, or planning app architecture.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 12
- Forks
- 0
01 前言 Front Matter
- name
- ios-dev
- metadata
- { "author": "rshankras" }
- description
- iOS and Swift development expert covering Swift best practices, SwiftUI patterns, Human Interface Guidelines compliance, accessibility audits, navigation patterns, and app architecture. Use when building iOS apps, reviewing Swift code, or planning app architecture.
03 SKILL.md 正文
iOS Development Expert
Comprehensive guidance for iOS app development across multiple specialized areas.
When This Skill Activates
Use this skill when the user needs help with:
- Swift code quality and modern idioms
- SwiftUI component patterns
- Apple HIG compliance checks
- Accessibility assessment (VoiceOver, color contrast, Dynamic Type)
- Navigation architecture (NavigationStack, NavigationSplitView, TabView)
- App planning and architecture decisions
Available Modules
Coding Best Practices
Modern Swift patterns, architectural approaches, and code quality standards:
- Architecture: MVVM, Clean Architecture, The Composable Architecture (TCA)
- Swift idioms: value types, protocol-oriented programming, async/await, actors
- Performance: lazy loading, background processing, memory management
- Testing: XCTest, snapshot testing, UI testing
UI Review
Evaluate designs for HIG compliance:
- Typography: Dynamic Type support, custom fonts with scaling
- Accessibility: VoiceOver labels, color contrast (4.5:1 minimum), touch targets (44×44pt)
- Layout: Safe area handling, adaptivity across device sizes
- Components: Use of native controls vs. custom implementations
Navigation Patterns
NavigationStack (iOS 16+):
NavigationStack {
ContentView()
.navigationDestination(for: Item.self) { item in
DetailView(item: item)
}
}
NavigationSplitView (iPad/macOS):
NavigationSplitView {
Sidebar()
} detail: {
DetailView()
}
Programmatic navigation with NavigationPath:
@State private var path = NavigationPath()
NavigationStack(path: $path) {
ContentView()
.navigationDestination(for: Route.self) { route in
// ...
}
}
App Planner
Concept-to-architecture development:
- Define core use cases (3–5 maximum for MVP)
- Choose data persistence strategy (SwiftData, Core Data, CloudKit, UserDefaults)
- Select networking approach (URLSession, async/await)
- Plan state management (ObservableObject, @Observable, TCA)
- Define navigation structure (tab-based, navigation stack, split view)
Reference Points
Always reference Apple's official documentation:
Usage Approach
- Identify the user's specific need (code review, architecture planning, HIG compliance, etc.)
- Apply the relevant module's guidance
- Reference official Apple documentation for precise API details
- Check iOS version requirements for APIs used
04 同仓库更多 Skills
plan-eng-review
Eng manager-mode plan review. (gstack)
youtube
Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.
write-plan
Use when you have a spec or requirements for a multi-step task, before touching code. Produces an engineering plan complete with TDD tasks, DRY/SOLID/YAGNI principles, a required Test Plan & Verification section, and a coverage target — then auto-runs /plan-eng-review as an independent double-check before execution.
worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
web-perf
Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (LCP, INP, CLS) and supplementary metrics (FCP, TBT, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.
verify
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always