tdd-workflow
SolidTest-driven development enforcement with RED-GREEN-IMPROVE cycle
AI & Automation 20 stars
4 forks Updated 5 days ago MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# TDD Workflow
Detailed test-driven development procedure with framework-specific commands.
**Relationship to tdd-guide agent**: The `/tdd` command dispatches the `tdd-guide` agent, which enforces the loop. This skill provides the detailed procedure and framework-specific commands that the agent references.
## When to Use
- Referenced by tdd-guide agent during enforcement
- Directly when user needs framework-specific test commands
- Any new feature, bug fix, or refactoring that needs test coverage
## Procedure
### Phase 1: RED (Write Failing Test)
1. Identify the behavior to implement
2. Write the test that describes expected behavior
3. Run the test: it MUST fail
4. If it passes, the test is wrong or the feature already exists
```bash
# Framework detection
jest --testPathPattern={test_file} 2>/dev/null || \
pytest {test_file} 2>/dev/null || \
go test -run {test_name} ./... 2>/dev/null || \
mvn test -Dtest={test_class} 2>/dev/null
```
### Phase 2: GREEN (Minimal Implementation)
1. Write the minimum code to make the test pass
2. No extra features, no premature optimization
3. Run the test: it MUST pass
4. If it fails, fix the implementation (not the test)
### Phase 3: IMPROVE (Refactor)
1. Clean up implementation while keeping tests green
2. Extract functions, rename variables, remove duplication
3. Run full test suite after each change
4. Verify no regressions
### Phase 4: COVERAGE
1. Check coverage meets 80% minimum:...
Details
- Author
- mshadmanrahman
- Repository
- mshadmanrahman/pm-pilot
- Created
- 6 months ago
- Last Updated
- 5 days ago
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
tdd-workflow
Test-Driven Development workflow with RED-GREEN-REFACTOR cycle and git checkpoints
39 Updated 2 weeks ago
talayash Testing & QA Solid
tdd
Use when writing production code that needs tests -- new features, bug fixes, refactoring. Enforces RED-GREEN-REFACTOR before implementation.
25 Updated 6 days ago
fusengine