tdd-workflows-tdd-green
Skill1 starsChanged 10 months agoMITView on GitHub
Implement the minimal code needed to make failing tests pass in the TDD green phase.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ai4brands-design/claude-skillsword for word, first seen Mar 22, 2026
- xfstudio/skillsword for word, first seen Jan 22, 2026
Other versions2 projects use a version of this.
Word for word · 2
- xfstudio/skills★ 9100% same
- ai4brands-design/claude-skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- api-design-principlesSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-patternsSkill
- architectureSkill
- c4-architectureSkill
- c4-codeSkill
- c4-componentSkill
- c4-containerSkill
- c4-contextSkill
- clean-codeSkill
- mermaid-diagramsSkill
- mermaid-expertSkill
- tdd-orchestratorSkill
- tdd-workflowSkill
- tdd-workflows-tdd-cycleSkill
- tdd-workflows-tdd-greenSkill
- tdd-workflows-tdd-redSkill
- tdd-workflows-tdd-refactorSkill
- test-driven-developmentSkill
- api-design-principlesSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-patternsSkill
- architectureSkill
- auth-securitySkill
- billing-saasSkill
- c4-architectureSkill
- c4-codeSkill
- c4-componentSkill
- c4-containerSkill
- c4-contextSkill
- clean-codeSkill
- design-consistencySkill
- disciplined-devSkill
- gurusup-workflowSkill
- hardening-interviewerSkill
- linkedin-contentSkill
- mermaid-diagramsSkill
- mermaid-expertSkill
- mobile-first-ui-librarySkill
- mvp-automationSkill
- mvp-generatorSkill
- observabilitySkill
- parallel-integrationSkill
- prd-workflowSkill
- production-readinessSkill
- shape-upSkill
- spec-interviewerSkill
- tdd-orchestratorSkill
- tdd-workflowSkill
- tdd-workflows-tdd-cycleSkill
- tdd-workflows-tdd-redSkill
- tdd-workflows-tdd-refactorSkill
- tech-advisorSkill
- test-driven-developmentSkill
The file
Files
Green Phase: Simple function
def product_list(request): products = Product.objects.all() return JsonResponse({'products': list(products.values())})
Refactor: Class-based view
class ProductListView(View): def get(self, request): products = Product.objects.all() return JsonResponse({'products': list(products.values())})
Refactor: Generic view
class ProductListView(ListView): model = Product context_object_name = 'products'
### Express Patterns
**Inline → Middleware → Service Layer:**
```javascript
// Green Phase: Inline logic
app.post('/api/users', (req, res) => {
const user = { id: Date.now(), ...req.body };
users.push(user);
res.json(user);
});
// Refactor: Extract middleware
app.post('/api/users', validateUser, (req, res) => {
const user = userService.create(req.body);
res.json(user);
});
// Refactor: Full layering
app.post('/api/users',
validateUser,
asyncHandler(userController.create)
);Use this skill when
- Moving from red to green in a TDD cycle
- Implementing minimal behavior to satisfy tests
- You want to keep implementation intentionally simple
Do not use this skill when
- You are refactoring for design or performance
- Tests are already passing and you need new requirements
- You need a full architectural redesign
Instructions
- Review failing tests and identify the smallest fix.
- Implement the minimal change to pass the next test.
- Run tests after each change to confirm progress.
- Record shortcuts or debt for the refactor phase.
Safety
- Avoid bypassing tests to make them pass.
- Keep changes scoped to the failing behavior only.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

