ios-xcode
33
总安装量
7
周安装量
#11238
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill ios-xcode
Agent 安装分布
claude-code
7
opencode
6
gemini-cli
6
codex
6
github-copilot
4
Skill 文档
iOS Xcode & Tooling Best Practices
Comprehensive guide for Xcode project configuration, SwiftData persistence, testing, debugging, profiling, and app distribution. Contains 19 rules across 6 categories.
When to Apply
Reference these guidelines when:
- Setting up Xcode projects with AppStorage, ScenePhase, or widgets
- Implementing SwiftData models, queries, and CRUD operations
- Writing tests with Swift Testing framework
- Debugging with breakpoints and console output
- Profiling performance with Instruments
- Distributing apps via TestFlight
- Building for visionOS or integrating ML features
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | SwiftData & Persistence | CRITICAL | data- |
| 2 | Project & Platform | HIGH | platform- |
| 3 | Testing | HIGH | test- |
| 4 | Debugging & Profiling | MEDIUM-HIGH | debug-, perf- |
| 5 | Distribution | MEDIUM | dist- |
| 6 | Specialty Platforms | MEDIUM | ml-, spatial- |
Quick Reference
1. Project & Platform (HIGH)
platform-app-storage– Use AppStorage for user preferencesplatform-scene-phase– Respond to app lifecycle with ScenePhaseplatform-widget-integration– Design for widget and Live Activity integrationplatform-system-features– Integrate system features natively
2. SwiftData & Persistence (CRITICAL)
data-model-macro– Define models with @Model macrodata-query-for-fetching– Use @Query for fetching datadata-model-container– Configure model containersdata-relationships– Define model relationshipsdata-crud-operations– Implement CRUD operations
3. Testing (HIGH)
test-swift-testing– Use Swift Testing frameworktest-preview-sample-data– Create preview sample datatest-preview-macro– Use #Preview macro for rapid iteration
4. Debugging & Profiling (MEDIUM-HIGH)
debug-breakpoints– Use breakpoints for debuggingdebug-console-output– Use console output for debuggingperf-instruments-profiling– Profile SwiftUI with Instruments
5. Distribution (MEDIUM)
dist-testflight– Distribute via TestFlightdist-app-icons– Design app icons for distribution
6. Specialty Platforms (MEDIUM)
ml-natural-language– Integrate Natural Language MLspatial-visionos-windows– Build for visionOS spatial computing
How to Use
Read individual reference files for detailed explanations and code examples:
- Section definitions – Category structure and impact levels
- Rule template – Template for adding new rules
Reference Files
| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |