ios-tdd/SKILL.md
iOS Test-Driven Development standards. Enforces Red-Green-Refactor cycle, test pyramid (70/20/10), layer-specific testing strategies with XCTest and Swift Testing, and CI integration. Use when building or reviewing iOS apps with TDD methodology.
npx skillsauth add peterbamuhigire/skills-web-dev ios-tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ios-tdd or would be better handled by a more specific companion skill.references only as needed.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.references/ directory for deep detail after reading the core workflow below.TDD is a development process where you write tests before feature code, following the Red-Green-Refactor cycle. Every feature starts with a failing test, gets minimal implementation, then is refined.
Core Principle: No production code without a failing test first.
Preferred Framework: Swift Testing (@Test macro) for all new unit and integration tests. Use XCTest only for UI tests (XCUITest) and legacy test suites.
Dependency Injection: Protocol-based injection — no DI framework required. Define protocols for all external dependencies, inject via initialiser parameters.
| Topic | Section | Covers | | ----------------------- | ---------------------------------------- | ------------------------------------------------- | | TDD Workflow | Red-Green-Refactor | Step-by-step cycle with Swift examples | | Test Pyramid | Test Pyramid | Unit, integration, UI split | | Swift Testing | Swift Testing | @Test macro, #expect, async testing | | Mocking | Protocol Mocking | Protocol-based mocks, no library needed | | Network Mocking | URLProtocol Mock | URLProtocol subclass for API tests | | UI Tests | XCUITest | End-to-end UI testing | | CI Setup | CI Pipeline | Xcode Cloud, GitHub Actions |
Extended guidance for ios-tdd was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
The Red-Green-Refactor CycleTest Pyramid (70/20/10)TDD Workflow for iOS FeaturesSwift Testing FrameworkProtocol-Based MockingTesting @Observable ViewModelsURLProtocol for Network MockingSwiftData / Core Data TestingXCUITest for Critical FlowsTest Naming ConventionPatterns and Anti-PatternsIntegration with Other Skillsdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...