codewithbehnam/cc-docs/tdd
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Test-driven development cycle. Writes a failing test for a feature, implements the minimum code to make it pass, then refactors. Use when the user says "use TDD", "write the test first", "TDD this feature", or "red-green-refactor".
Install
npx vskill@latest install codewithbehnam/cc-docs/tddSKILL.md
Apply test-driven development for: $ARGUMENTS
Phase 1: Red - Write a Failing Test
- Understand the feature:
- If $ARGUMENTS is provided, use it as the feature description
- Explore related existing code and tests to understand conventions
- Identify the right test file location and naming conventions
- Write the test:
- Create a test that describes the desired behavior from the outside
- Use the project's existing test framework (Jest, pytest, Go test, RSpec, etc.)
- The test must be specific, readable, and test one behavior at a time
- Do NOT write the implementation yet
- Run the test to confirm it fails:
- The failure should be a meaningful assertion failure, not a syntax error
- If the test passes without implementation, the test is wrong - revise it
Phase 2: Green - Implement the Minimum
- Write the minimum code to make the test pass:
- Implement only what the test requires
- Do not add features not yet tested
- Ugly code is acceptable here - we refactor next
- Run the full test suite:
- The new test must pass
- No previously passing tests may break
Phase 3: Refactor - Clean Up
- Improve the implementation:
- Remove duplication
- Improve naming
- Extract helper functions if they clarify intent
- Keep the same external behavior
- Run tests again to confirm refactoring did not break anything
- Report the completed cycle:
- Show the test added and where it lives
- Show the implementation changes
- Summarize what behavior is now covered
Requirements
- A working test runner must be available in the project
- The feature must be describable in terms of inputs and expected outputs
Error Handling
- If the project has no test framework: suggest adding one and list options for the detected language
- If the test cannot be made to fail: explain why and discuss with the user
- If making the test pass requires large refactors: flag this and get user approval before proceeding
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tdd/SKILL.md
Popularity
- Repository stars
- 2
- Repository forks
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/codewithbehnam/cc-docs/tdd)