Skip to content
ruvnet avatar

Tdd Workflow

Mock-first, outside-in test workflow that drives each feature through red, green, and refactor steps.

CCM score
59 of 100
skills.sh installs
743
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the red-green-refactor loop: write a failing test, confirm it fails, implement minimally, refactor, then repeat
  • Mocks external dependencies at boundaries and tests behavior rather than implementation details
  • Requires running final target and regression tests, recording exit codes, and reporting failing test names on failure
  • Designed for feature work that reports outcomes through the Ruflo pre-task and post-task hooks

Install

$ npx -y skills add ruvnet/ruflo --skill tdd-workflow -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Follow the TDD London School (mock-first) approach:

  1. Write the failing test first -- define expected behavior with mocked dependencies
  2. Run the test -- confirm it fails for the right reason
  3. Implement minimal code -- make the test pass with the simplest solution
  4. Refactor -- clean up while keeping tests green
  5. Repeat -- add the next behavior

Before starting: mcp__plugin_ruflo-core_ruflo__hooks_pre-task({ description: "TDD: FEATURE_NAME" }) Before reporting the outcome, run the final target tests and the regression suite after the last edit. Record the actual commands, exit codes, whether tests ran, and failing test names. The initial red test is expected during TDD; only the final validation determines success.

Call mcp__plugin_ruflo-core_ruflo__hooks_post-task with the observed result, including when the task is abandoned or validation is interrupted. Set completed, targetTestsRan, and regressionTestsRan to true only when observed; use null for missing exit codes. Skipped or unrun validation is not success. Never substitute an expected result for an observed one.

Details

Repository
github.com/ruvnet/ruflo
Categories
Testing & QA, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the tdd-workflow skill do?

The tdd-workflow skill follows the TDD London School approach, which is mock-first and outside-in test development. It guides the agent to write a failing test with mocked dependencies, run it, implement minimal code, refactor, and repeat for each behavior.

Which skills lead the Testing & QA category, and where does tdd-workflow stand?

tdd-workflow is listed in the Testing & QA category on Claude Marketplaces, alongside tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. It is distinct from these by its London School, mock-first workflow that also records observed test results through ruflo hooks.

How do I install the tdd-workflow skill?

Run npx -y skills add ruvnet/ruflo --skill tdd-workflow -y in your project. Once installed, the agent can write failing tests first, implement code to pass them, and report the observed commands and exit codes.

What tools does the tdd-workflow skill need?

The skill's allowed tools include Bash for npx and npm commands, the ruflo hooks_pre-task and hooks_post-task MCP tools, and Read, Write and Edit for files. It needs the ruflo MCP server available to record task results.

More from ruvnet/ruflo

All 236

Similar to Tdd Workflow

More Testing & QA