How this skill is triggered — by the user, by Claude, or both
Slash command
/xxthunder-dev-skills:tdd-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
Step-by-step test-driven development workflow following Red-Green-Refactor principles.
Write the test (RED phase)
Run tests - confirm failure using the project's test execution skill (unit tests)
Implement minimal code (GREEN phase)
Run tests - confirm pass using the project's test execution skill (unit tests)
Refactor if needed (REFACTOR phase)
Commit test + implementation together
git add src/module.ext test/module.test.ext
git commit -m "feat: add new-feature function"
CRITICAL: Never modify implementation without updating tests!
Read existing tests
Update tests for new behavior (RED phase)
Run tests - confirm failure using the project's test execution skill (unit tests)
Update implementation (GREEN phase)
Run tests - confirm all pass using the project's test execution skill (unit tests)
Commit test + implementation together
git add src/module.ext test/module.test.ext
git commit -m "feat: add new-parameter to existing-function"
Write test that reproduces the bug (RED phase)
Run test - confirm it fails
Fix the bug (GREEN phase)
Run all tests using the project's test execution skill (unit tests)
Commit test + fix together
git add src/module.ext test/module.test.ext
git commit -m "fix: handle edge case in function-with-bug"
Use the project's test execution skill for all test execution — unit tests, integration tests, coverage, and specific test files. The test execution skill knows the project-specific commands and options.
For detailed testing execution guidance, use the project's test execution skill:
npx claudepluginhub xxthunder/xxthunder-agentic-skills --plugin xxthunder-dev-skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.