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.
curl -O https://raw.githubusercontent.com/DGouron/review-flow/master/.claude/skills/tdd/SKILL.mdgit clone --depth 1 https://github.com/DGouron/review-flowWrote 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.
[](https://agentmods.dev/skills/dgouron/review-flow/tdd)<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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
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.
- 8d ago First seen · 350 lines · 52 tokens per session scan A 7c9f95899bb3
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.
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…
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"…
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…
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.
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.
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.