ruvnet avatar

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-code

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/ruvnet/ruflo
Categories
Testing & QA, Automation & Workflows
First seen
Jun 3, 2026

More from ruvnet/ruflo

All 236
1mindrally avatarcypressmindrally/skillsCypress end-to-end testing best practices for web applications, covering test structure, commands, and reliability patterns.739skills.sh installs
2spatie avatarpest-testingspatie/freek.devTests applications using the Pest 4 PHP framework. Activates when writing tests, creating unit or feature tests, adding assertions, testing Livewire components,729skills.sh installs
3alirezarezvani avatarplaywright-proalirezarezvani/claude-skillsProduction-grade Playwright testing toolkit. Use when the user mentions Playwright tests, end-to-end testing, browser automation, fixing flaky tests, test migra687skills.sh installs
4aj-geddes avatarunit-testing-frameworkaj-geddes/useful-ai-promptsWrite comprehensive unit tests with high coverage using testing frameworks like Jest, pytest, JUnit, or RSpec. Use when writing tests for functions, classes, co622skills.sh installs
5wshaddix avatardotnet-testing-strategywshaddix/dotnet-skillsDeciding how to test .NET code. Unit vs integration vs E2E decision tree, test doubles.619skills.sh installs
6lambdatest avatarplaywright-skilllambdatest/agent-skillsGenerates production-grade Playwright automation scripts and E2E tests in TypeScript, JavaScript, Python, Java, or C#. Supports local execution and TestMu AI cl554skills.sh installs