Build features, fix bugs, and refactor code with test-driven development.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "tdd-workflow" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/tdd-workflow/SKILL.md 2. Save it as ~/.claude/skills/tdd-workflow/SKILL.md 3. Reload skills and tell me it's ready
Use a TDD workflow to implement a 'filter tasks by tag' feature. Start with acceptance criteria, then write unit, integration, and E2E tests, and finally provide the minimal implementation. Target at least 80% test coverage.
Provides requirement breakdown, test cases first, then minimal passing code and coverage guidance.
I have a bug: the cart still shows a total price when quantity is 0. Handle it with TDD: first write a failing test that reproduces the issue, then provide the fix, add regression tests, and explain how to verify coverage above 80%.
Includes a reproducing test, the fix, regression tests, and coverage verification steps.
Help me refactor this legacy code using strict TDD. First identify current behavior and add characterization tests, then propose refactoring steps and improve the structure incrementally while preserving unit, integration, and end-to-end test coverage.
Outputs characterization tests, a step-by-step refactoring plan, improved code, and test completeness notes.
This skill ensures all code development follows TDD principles with comprehensive test coverage.
ALWAYS write tests first, then implement code to make tests pass.
HEAD on the active branch and belongs to the current task sequenceAs a [role], I want to [action], so that [benefit]
Example:
As a user, I want to search for markets semantically,
so that I can find relevant markets even without exact keywords.
For each user journey, create comprehensive test cases:
describe('Semantic Search', () => {
it('returns relevant markets for query', async () => {
// Test implementation
})
it('handles empty query gracefully', async () => {
// Test edge case
})
it('falls back to substring search when Redis unavailable', async () => {
// Test fallback behavior
})
it('sorts results by similarity score', async () => {
// Test sorting logic
})
})
npm test
# Tests should fail - we haven't implemented yet
This step is mandatory and is the RED gate for all production changes.
Before modifying business logic or other production code, you must verify a valid RED state via one of these paths:
A test that was only written but not compiled and executed does not count as RED.
Do not edit production code until this RED state is confirmed.
If the repository is under Git, create a checkpoint commit immediately after this stage is validated. Recommended commit message format:
test: add reproducer for <feature or bug>…
Plan demand forecasts, safety stock, and replenishment for multi-location retail inventory.
Automatically format, lint, and fix code issues on every edit.
Apply NestJS architecture patterns to build maintainable production-ready TypeScript backends.
Learn robust error-handling patterns across TypeScript, Python, and Go applications.
Audit Claude skills and commands with quick scans or full stocktakes.
Create iOS liquid glass interfaces with dynamic visuals and interactive morphing.
Implement features and fixes by writing tests before production code.
Write failing tests first to implement features and bug fixes reliably.
Create process documentation with test-driven validation before finalizing the draft.
Use test-first development to improve code quality and maintainability.
Practice test-driven development for Spring Boot features, fixes, and refactoring.
Write behavior-focused, refactor-resistant tests that verify intent and regressions.