canon-tdd

Implement test-driven development cycles for SwiftUI applications using Swift Testing.

1|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/adamayoung/popcorn --skill canon-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canon-tdd
Source: https://github.com/adamayoung/popcorn/tree/main/.claude/skills/canon-tdd
Command: npx skills add https://github.com/adamayoung/popcorn --skill canon-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the ambiguity of feature implementation by enforcing a disciplined, test-first workflow that ensures every line of code is verified against a clear, predefined set of requirements.

Core Features & Use Cases

  • Test List Management: Provides a structured framework for tracking behavioral variants and edge cases before writing production code.
  • Red-Green-Refactor Enforcement: Ensures high code quality by mandating failing tests, minimal implementation, and deliberate refactoring cycles.
  • Use Case: When building a new feature-flagged view model, use this skill to define the happy path and error states in a test list, then implement the logic one test at a time to ensure full coverage and clean architecture.

Quick Start

Initiate the canon-tdd workflow by creating a test list for the new feature and confirming it with the agent before writing any production code.

Frequently Asked Questions about canon-tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use test-driven development for SwiftUI applications?

Test-driven development for SwiftUI involves creating a test list for behavioral variants, then executing red-green-refactor cycles to validate domain models, use cases, and view models against Swift Testing conventions.

What is the red-green-refactor cycle in Swift Testing?

The red-green-refactor cycle mandates writing a failing test, implementing minimal code to pass it, and then deliberately refactoring. This disciplined workflow ensures every line of Swift code is verified against predefined requirements.

How do I manage test lists for edge cases before writing production code?

You manage test lists by using a structured framework to track behavioral variants and edge cases, confirming the list before implementation. This eliminates ambiguity by ensuring logic is verified one test at a time.

Does this test-driven development workflow support snapshot testing suites?

Yes, the test-driven development workflow integrates with project-specific test plans and snapshot testing suites to validate SwiftUI views, ensuring comprehensive coverage and clean architecture for feature-flagged view models.

Can I use TDD methodology for validating domain models and use cases in Swift?

Yes, the TDD methodology rigorously validates domain models and use cases in Swift. It enforces a test-first workflow that defines happy paths and error states in a test list before any production code is written.