lackeyjb/claude-conductor/tdd-workflow

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Test-Driven Development guidance. Use when writing code, implementing features, or fixing bugs in projects that follow TDD methodology. Provides the Red-Green-Refactor cycle structure.

Install

npx vskill@latest install lackeyjb/claude-conductor/tdd-workflow

SKILL.md

TDD Workflow Skill

Guidance for Test-Driven Development methodology.

The Core Cycle

RED → GREEN → REFACTOR (repeat)

PhasePurposeActionsVerify
REDDefine expected behaviorWrite test for ONE behavior, run testTest FAILS
GREENMake it workWrite MINIMUM code to passTest PASSES
REFACTORMake it cleanImprove ONE thing at a time, run tests after each changeTests stay GREEN

Phase 1: RED - Write Failing Test

Purpose: Define behavior before implementation.

Actions:

  1. Create/open test file
  2. Write test for ONE behavior
  3. Run test
  4. Verify FAILURE (if it passes, test is wrong)

Common mistakes: Tests pass immediately, testing implementation not behavior, writing too many tests at once

Phase 2: GREEN - Make It Pass

Purpose: Write MINIMUM code to pass test.

Actions:

  1. Implement just enough to pass
  2. No extra features, no optimization
  3. Run tests, verify PASS

Common mistakes: Over-engineering, adding untested features, "while I'm here" additions

Phase 3: REFACTOR - Improve Quality

Purpose: Clean up while keeping tests green.

Actions:

  1. Identify improvements: duplication, naming, complex logic, long functions
  2. Make ONE change
  3. Run tests
  4. If green, continue. If red, undo.

Checklist: Extract methods, rename variables, remove duplication (DRY), simplify conditionals, add type safety

Test Patterns

Arrange-Act-Assert (AAA):

  1. Arrange: Set up test data
  2. Act: Execute the behavior
  3. Assert: Verify result

Given-When-Then (BDD): Structure nested describes for readability

Coverage Commands

LanguageCommand
JS/TS (Jest)npx jest --coverage
JS/TS (Vitest)npx vitest run --coverage
Pythonpytest --cov=src --cov-report=html
Gogo test -cover ./...

Anti-Patterns to Avoid

  1. Test After: Writing code first defeats TDD purpose
  2. Testing Implementation: Test WHAT it does, not HOW (test behavior, not internal calls)
  3. Brittle Tests: Use resilient assertions (e.g., toContainEqual not array index checks)
  4. No Refactoring: Skipping refactor creates technical debt

Quick Reference

  • RED: "What should it do?" → Write failing test
  • GREEN: "Does it work?" → Write minimal code
  • REFACTOR: "Is it clean?" → Improve structure

For detailed code examples, see examples.md in this skill directory.

Integration

Works with:

  • context-awareness: Project-specific coverage targets
  • code-styleguides: Language-specific test patterns

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lackeyjb/claude-conductor/tdd-workflow/badge)](https://verified-skill.com/skills/lackeyjb/claude-conductor/tdd-workflow)

Something wrong with this skill or its page? Tell us.