Agent skill
aoa-tdd-slice
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/aoa-tdd-slice
SKILL.md
aoa-tdd-slice
Intent
Use test-first discipline to implement a small feature slice with a clear behavioral target and explicit verification.
Trigger boundary
Use this skill when:
- a behavior change can be expressed as tests before implementation
- the task fits a bounded slice rather than a broad rewrite
- confidence and regression resistance matter
Do not use this skill when:
- the task is purely exploratory and behavior is still undefined
- the task is mostly one-off glue with no reusable logic
- the main problem is a stable interface or boundary contract rather than a feature slice; use
aoa-contract-test - the main problem is invariant coverage rather than slice implementation; use
aoa-property-invariants - broader architectural restructuring is the real need
Inputs
- desired behavior
- target module or slice
- constraints and non-goals
- available test surface
Outputs
- new or updated tests
- minimal implementation
- small refactor if needed
- verification summary
Procedure
- define the desired behavior in a bounded way
- add or update tests before implementation
- make the smallest change that satisfies the tests
- refactor only inside the declared slice
- run the tests and record the result
- report what behavior is now specified and what remains out of scope
Contracts
- behavior should be made explicit before implementation when reasonably possible
- the implementation should stay bounded to the slice
- unrelated refactors should be avoided
- tests should express behavior, not incidental implementation detail
Risks and anti-patterns
- writing tests that merely mirror the implementation
- turning a small slice into a hidden architectural rewrite
- using TDD ritualistically where the problem is not well-shaped yet
- overfitting tests to brittle internal details
Verification
- confirm tests were added or updated first when the task was suitable for TDD
- confirm the implementation stayed bounded
- confirm the relevant test suite passed
- confirm the report names the covered behavior and the untouched behavior
Technique traceability
Manifest-backed techniques:
- AOA-T-0014 from
8Dionysus/aoa-techniquesatfe7df9aba3937435b431489ed0f9c5d52690a37cusing pathtechniques/agent-workflows/tdd-slice/TECHNIQUE.mdand sections: Intent, When to use, Inputs, Outputs, Core procedure, Contracts, Risks, Validation - AOA-T-0001 from
8Dionysus/aoa-techniquesatfe7df9aba3937435b431489ed0f9c5d52690a37cusing pathtechniques/agent-workflows/plan-diff-apply-verify-report/TECHNIQUE.mdand sections: Contracts, Validation
Adaptation points
Project overlays should add:
- local test commands
- local module boundaries
- guidance for when TDD is mandatory versus optional
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?