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
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 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Follow the TDD London School (mock-first) approach:
- Write the failing test first -- define expected behavior with mocked dependencies
- Run the test -- confirm it fails for the right reason
- Implement minimal code -- make the test pass with the simplest solution
- Refactor -- clean up while keeping tests green
- 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- Trader Portfolio742
- Validate Plugin742
- Wasm Gallery742
- Llm Config741
- Rvf Manage741
- Wasm Agent741
- Workflow Create740
- Ddd Context739
- Market Pattern739
- Adr Index738
- Trader Train738
- Ddd Validate737
- Iot Register737
- Sparc Implement735
- Observe Metrics734
- Observe Trace733
- Sparc Spec733
- Trader Regime733
- Trader Risk732
- Vector Embed732
- Federation Status731
- Iot Anomalies731
- Kg Extract731
- Browser Login730
Similar to Tdd Workflow
More Testing & QAtest-driven-developmentSkillsickn33/agentic-awesome-skills1.5K installsTest-first workflow that guides feature and bug-fix work through failing tests, minimal code, and refactoring.
tddSkillmattpocock/skills1.3M installsTest-first development loop with rules for seams, test quality, and vertical slicing.
tdd-guideSkillalirezarezvani/claude-skills1.1K installsTest-first development skill that generates tests, mocks, and coverage analysis across Jest, Pytest, JUnit, Vitest, and Mocha.
dev-practicesPluginspences10/claude-code-toolkit37 starsDevelopment practices: TDD workflow with red-green-refactor
agent-tdd-london-swarmSkillruvnet/ruflo1.1K installsMock-driven TDD guidance for agent swarms that verifies object collaborations and defines contracts through mock expectations.