Agent skill
shared-tdd
TDD policy — red-green-refactor workflow and evidence requirements for all platforms.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/shared-tdd
SKILL.md
Purpose
Mandate test-driven development across all platforms. Platform coding standards reference this for the TDD workflow, then add platform-specific test tooling and conventions.
TDD workflow (mandatory)
For any new behavior or bug fix:
-
Red — Write failing test(s) first
- Derive test cases from acceptance criteria
- Run tests to confirm failure
- Do NOT write implementation code yet
-
Green — Write minimum code to pass
- No feature creep beyond test requirements
- Run tests after each change
-
Refactor — Clean up while tests stay green
- Improve code quality without changing behavior
Bug fixes
Bug fixes require a failing test that reproduces the issue before the fix is written.
Completion gate
Stories cannot be marked complete without test files. Test files must exist before marking a story done.
TDD evidence
When implementing features, document in commit or PR:
- Which tests were written first
- Confirmation that tests failed before implementation
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?