/tdd
Start a TDD (Test-Driven Development) cycle for the requested feature or function.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/tdd
Context preview
What this command does when you run it.
Start a TDD (Test-Driven Development) cycle for the requested feature or function.
Command definition
tdd.mdStart a TDD (Test-Driven Development) cycle for the requested feature or function.
Process
1. Red Phase - Write a Failing Test
- Ask what behavior to implement if not specified.
- Identify the test framework in use (Jest, Vitest, pytest, Go testing).
- Write a single focused test that describes the desired behavior.
- Run the test to confirm it fails for the right reason.
- The test should fail because the feature does not exist yet, not because of a syntax error.
2. Green Phase - Make It Pass
- Write the minimum code necessary to make the test pass.
- Do not optimize or generalize yet. Just make it work.
- Run the test to confirm it passes.
- If it fails, fix the implementation, not the test.
3. Refactor Phase - Clean Up
- Look for duplication, unclear naming, or unnecessary complexity.
- Extract helper functions if logic is repeated.
- Improve variable and function names for clarity.
- Run the full test suite to verify nothing broke.
4. Repeat
- Ask what the next behavior to implement is.
- Start another Red-Green-Refactor cycle.
Rules
- Each cycle targets exactly one behavior. Do not batch multiple behaviors.
- Tests must be independent and not depend on execution order.
- Use descriptive test names: `should <expected behavior> when <condition>`.
- Mock external dependencies (HTTP, database, filesystem) at boundaries.
- Keep each cycle under 5 minutes of implementation time.
- If a cycle takes longer, the scope is too large. Break it down.
Read more
Start a TDD (Test-Driven Development) cycle for the requested feature or function.
Process
1. Red Phase - Write a Failing Test
- Ask what behavior to implement if not specified.
- Identify the test framework in use (Jest, Vitest, pytest, Go testing).
- Write a single focused test that describes the desired behavior.
- Run the test to confirm it fails for the right reason.
- The test should fail because the feature does not exist yet, not because of a syntax error.
2. Green Phase - Make It Pass
- Write the minimum code necessary to make the test pass.
- Do not optimize or generalize yet. Just make it work.
- Run the test to confirm it passes.
- If it fails, fix the implementation, not the test.
3. Refactor Phase - Clean Up
- Look for duplication, unclear naming, or unnecessary complexity.
- Extract helper functions if logic is repeated.
- Improve variable and function names for clarity.
- Run the full test suite to verify nothing broke.
4. Repeat
- Ask what the next behavior to implement is.
- Start another Red-Green-Refactor cycle.
Rules
- Each cycle targets exactly one behavior. Do not batch multiple behaviors.
- Tests must be independent and not depend on execution order.
- Use descriptive test names: `should <expected behavior> when <condition>`.
- Mock external dependencies (HTTP, database, filesystem) at boundaries.
- Keep each cycle under 5 minutes of implementation time.
- If a cycle takes longer, the scope is too large. Break it down.
The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

