swift-tdd
Installation
SKILL.md
Overview
The fundamental approach is: Write the test first. Watch it fail. Write minimal code to pass.
Core principle: "If you didn't watch the test fail, you don't know if it tests the right thing."
This skill combines Test-Driven Development discipline with Swift Testing, SwiftUI, and Swift Concurrency best practices.
When to Use
Apply TDD consistently for:
- New features (SwiftUI views, view models, services)
- Bug fixes
- Refactoring
- Behavior changes
- Async/concurrent logic
Exceptions require explicit human approval and typically only apply to throwaway prototypes, generated code, asset catalogs, or configuration plists.