review-flow: Skill for Claude Code

.claude/skills/tdd/SKILL.md

tdd is a skill for Claude Code from DGouron/review-flow. It costs 52 tokens per session (2,417 once invoked), scanned A, original, MIT.

An interactive guide to Detroit School test-driven development, or TDD: writing a failing test, making it pass, then improving the code. It focuses on checking observable results rather than internal calls between objects.

In plain words
What is it for?
Use it when adding features, fixing bugs, debugging, refactoring, or modifying code while developing state-based tests step by step.
Why use it?
It gives code changes a repeatable testing workflow and produces tests that are less tied to implementation details. It recommends mocks mainly for external systems such as databases, APIs, and file systems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is DGouron/review-flow's own configuration. It tells Claude Code how to work on review-flow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything review-flow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DGouron/review-flow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DGouron/review-flow/master/.claude/skills/tdd/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/DGouron/review-flow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/dgouron/review-flow/tdd.svg)](https://agentmods.dev/skills/dgouron/review-flow/tdd)
Your own site
<a href="https://agentmods.dev/skills/dgouron/review-flow/tdd"><img src="https://agentmods.dev/badge/skills/dgouron/review-flow/tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02417
Opus 5 $0.00026 $0.01208
Sonnet 5 $0.00010 $0.00483
Haiku 4.5 $0.00005 $0.00242

Measured 8d ago against content hash 7c9f95899bb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tdd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/tdd/SKILL.md · 350 lines

How it starts

The opening of the file, as written. The whole thing — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TDD Interactive Guide - Detroit School

Persona

Read .claude/roles/senior-dev.md — adopt this profile and follow all its rules.

Detroit School Philosophy

State-based testing: We test the observable result, not the internal interactions.

Principle Explanation
Test state Verify the final result, not how we got there
Inside-Out Start from the domain, work outward
Minimal mocks Only for external I/O (gateways, API, DB)
Robust tests Resistant to internal refactoring

When to mock:

  • Gateways (API, database, file system)
  • External services (email, notifications)
  • Internal business logic
  • Collaborations between domain objects
// Detroit: we test the final STATE of the result
it("should enqueue a review job", () => {
  const queue = new ReviewQueue();
  queue.enqueue({ mrId: "mr-42", platform: "gitlab" });

  expect(queue.pending).toHaveLength(1);
  expect(queue.peek()?.mrId).toBe("mr-42");
});

// London: we test interactions (avoid this in this project)
it("should call dispatcher.notify", () => {
  const dispatcher = mock<JobDispatcher>();
  queue.enqueue({ mrId: "mr-42", platform: "gitlab" });
  expect(dispatcher.notify).toHaveBeenCalled();
});

ReviewFlow example (project-relevant test):

// src/tests/units/entities/reviewScore.test.ts
describe("ReviewScore", () => {
  // Detroit: we test the STATE of the result
  it("should create a valid review score", () => {
    const score = createReviewScore(8);

    expect(score.value).toBe(8);
    expect(score.label).toBe("good");
  });

  // Validation before use
  it("should reject a score below 0", () => {
    const result = createReviewScore(-1);

    expect(result).toBeNull(); // Final state
  });

  // Boundary validation
  it("should reject a score above 10", () => {
    const result = createReviewScore(11);

    expect(result).toBeNull(); // Final state
  });
});

TDD Manifesto

Read the full file on GitHub · 350 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 350 lines · 52 tokens per session scan A 7c9f95899bb3

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository DGouron/review-flow (42 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 2,417 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

trace

Use when encountering bugs, test failures, runtime errors, broken builds, or "this doesn't work" reports. Systematic root-cause analysis before any patch — never blind-patches symptoms. Standalone, ends with a final-integration review of the fix. Trigger with /hyperflow:trace, "debug this", "find the root cause", "why…

jeremylongshore/tons-of-skills-marketplace · 84 tokens

superpowers

Runs 14 numbered engineering protocols in one pack — brainstorm, spec, plan, scaffold, TDD red-green-refactor, systematic debugging, refactoring, code review, performance, security, docs, git hygiene, release checklist, postmortem. Use when the user says "build this feature properly", "debug this systematically"…

alebgl77/claude-inc · 102 tokens

leader-triage-investigate-resolve

Orchestrate the full lifecycle of delegated problem resolution: triage severity and blast radius, drive hypothesis-based investigation through team members, then coordinate the fix with regression testing and verification. This pipeline composes leaf skills (triage-methodology, scientific-debugging) into a leader…

Vrooli/Vrooli · 0 tokens

scientific-debugging

Apply the scientific method to debugging: generate falsifiable hypotheses, design experiments (tests) to validate them, and systematically narrow down to the root cause. This methodology produces regression tests and documented findings that prevent recurrence.

Vrooli/Vrooli · 0 tokens

fix-bug

Fix a bug in this repository the safe way — reproduce first, failing regression test, root cause via the maps, surgical fix, review, ledger entry. Use whenever the user reports broken, wrong, or crashing behavior.

kunalsuri/ai-fication-kit · 48 tokens

utils-unification

Prioritize extracting, standardizing, and consolidating utilities so shared logic is consistent, discoverable, and testable. The goal is to prevent duplication and drift while keeping utilities sharply scoped and aligned to screaming architecture.

Vrooli/Vrooli · 0 tokens