Agent skill
tdd
Use when the user wants test-driven development, asks to write tests first, or requests red-green-refactor discipline for a feature or bugfix.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tdd-cmtkdot-arc
SKILL.md
TDD — Test-Driven Development
Run a structured TDD workflow using the persona-tdd-orchestrator agent.
Step 1: Clarify Test Strategy
Use AskUserQuestion to gather context before starting:
questions: [
{
question: "What's your test coverage goal?",
header: "Coverage",
multiSelect: false,
options: [
{label: "Critical paths only", description: "Focus on business-critical flows"},
{label: "Standard ~80%", description: "Industry-standard coverage target"},
{label: "Comprehensive >90%", description: "High coverage for safety-critical code"},
{label: "Full mutation testing", description: "Maximum rigor with mutation tests"}
]
},
{
question: "What test style fits this feature?",
header: "Test Style",
multiSelect: false,
options: [
{label: "Unit tests focus", description: "Isolated component testing"},
{label: "Integration tests", description: "Module interaction testing"},
{label: "E2E tests", description: "Full user flow testing"},
{label: "Mix of all", description: "Test pyramid approach"}
]
},
{
question: "What's the complexity level?",
header: "Complexity",
multiSelect: false,
options: [
{label: "Simple CRUD", description: "Basic create/read/update/delete"},
{label: "Moderate logic", description: "Conditional logic and validation"},
{label: "Complex algorithms", description: "Significant computation"},
{label: "Distributed systems", description: "Multiple services, async, eventual consistency"}
]
}
]
Step 2: Execute TDD Cycle
After receiving answers, run the red-green-refactor cycle:
- Red: Write a failing test for the next requirement
- Green: Write minimal code to make the test pass
- Refactor: Improve code quality while keeping tests green
- Repeat: Continue until all requirements are covered
Use the persona-tdd-orchestrator agent perspective for discipline enforcement.
Step 3: Report
## TDD Complete
**Feature**: <description>
**Coverage Goal**: <selected>
**Test Style**: <selected>
**Tests Written**: <count>
**All Passing**: Yes/No
Next Steps:
- `/arc:core:verify --post` to run full verification
- `/arc:core:execute` if part of a larger plan
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?