
Tdd Workflow
A pure London School TDD implementation that enforces mock-first, outside-in development with clear workflow hooks. You write the failing test with mocked dependencies, run it, implement just enough to pass, then refactor. It includes pre and post task hooks for tracking TDD cycles, which is useful if you're trying to maintain discipline around the red-green-refactor loop. The constraint to npm/npx tools means this is JavaScript/TypeScript focused. If you actually practice London School rather than the classical Detroit style, this codifies that approach. The one-assertion-per-test principle and descriptive naming format are opinionated but reasonable guardrails.
- skills.sh installs
- 743
- GitHub stars
- 81.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add ruvnet/ruflo --skill tdd-workflow --agent claude-codeInstalls into .claude/skills of the current project.
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.
Sponsors
Details
- Repository
- github.com/ruvnet/ruflo
- Categories
- Testing & QA, Automation & Workflows
- First seen
- Jun 3, 2026
More from ruvnet/ruflo
All 236- Adr Create742
- Trader Portfolio742
- Validate Plugin742
- Wasm Gallery742
- Llm Config741
- Rvf Manage741
- Wasm Agent740
- Workflow Create740
- Ddd Context739
- Trader Train738
- Adr Index737
- Ddd Validate737
- Iot Register737
- Market Pattern737
- Sparc Implement735
- Observe Metrics734
- Observe Trace733
- Sparc Spec733
- Trader Regime733
- Trader Risk732
- Vector Embed732
- Federation Status731
- Iot Anomalies731
- Kg Extract731