agentleFS
ngxcccngxccc/engineered-skills/skills/tdd/SKILL.md

tdd

Skill0 starsChanged 58 days agoMITView on GitHub

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use capture-learning-tools, design-frontend-dev and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • The-Vibe-CompanySkill

    capture-learning-tools

    Turn technical conversations, bugs, CI failures, review comments,

    Also in 5 projects that use this

  • The-Vibe-CompanySkill

    design-frontend-dev

    Clean Impeccable frontend design skill. Use when the user wants to

    Also in 5 projects that use this

  • jaydubya818Skill

    figure-it-out

    Use when novel or multi-phase work needs an auditable workflow and no narrower playbook fits.

    Also in 66 projects that use this

  • shiwenbin1617Skill

    ketchup-video

    Catch the user up like /ketchup, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video.

    Also in 24 projects that use this

  • simo97Skill

    request-refactor-plan

    Use this skill when user wants to create a refactor plan.

    Also in 47 projects that use this

  • jaydubya818Skill

    principle-minimize-reader-load

    Apply when layers, wrappers, or hidden state make simple behavior hard to follow.

    Also in 57 projects that use this

  • +3 more from The-Vibe-Company
  • +2 more from jaydubya818

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 189 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Red first: write one failing behavior test at the confirmed seam.

    line 23
  2. Distinctive:

    Minimal green: write only the code needed to pass that test.

    line 24
  3. Very specific:

    One vertical slice at a time: test -> minimal implementation -> next slice.

    line 26
  4. Very specific:

    Do not force a unit test when it requires brittle internal mocks, heavy E2E infrastructure, or production-only state.

    line 30
  5. Distinctive:

    Every acceptance criterion or bug reproduction has a seam-level test that failed before the change and passes after.

    line 34

“Common” is measured: kept by at least 6 in 10 of the 189 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test-Driven Development

Red-green loop at public seams. Consult docs/standards/testing-and-fixtures.md, GLOSSARY.md, and affected ADRs before starting.

See tests.md for examples and mocking.md for mocking guidelines.

1. Agree on seams

  1. Identify the public interface (see /architect for seam/depth vocabulary).
  2. List proposed seams with a one-line note on what each catches and misses.
  3. Confirm the seams with the user before writing any test.

2. Run the vertical loop

  1. Red first: write one failing behavior test at the confirmed seam; run it to prove it fails without the fix.
  2. Minimal green: write only the code needed to pass that test.
  3. Independent expected values: derive assertions from specs or known-good literals, never by recomputing the implementation logic.
  4. One vertical slice at a time: test -> minimal implementation -> next slice. Defer refactoring to /code-review.

When to skip

  • Do not force a unit test when it requires brittle internal mocks, heavy E2E infrastructure, or production-only state; use the closest real verification (verify-<app>, integration test, or reproduction script) instead.

Done when

  • Every acceptance criterion or bug reproduction has a seam-level test that failed before the change and passes after.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.