agentleFS
HumanDealerHumanDealer/vibeproof/skills/tdd/SKILL.md

tdd

Skill2 starsChanged 6 months agoMITView on GitHub

Write failing tests BEFORE implementation, from the test list in docs/PLAN.md. Use when starting to build a step. The test is the contract — "tests pass" only means something when the test exercises the change. Closes the "0 tests passes trivially" loophole.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use make-bot-ui, Poteto Mode 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.
  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 8 projects that use this

  • jtarorehSkill

    Poteto Mode

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    Also in 5 projects that use this

  • risadamsSkill

    which-skill

    Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.

    Also in 7 projects that use this

  • TheOnlyFusionCubeSkill

    principle-attack-the-premise

    Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.

    Also in 11 projects that use this

  • TheOnlyFusionCubeSkill

    principle-test-behavior-not-implementation

    Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.

    Also in 11 projects that use this

  • shreyT19Skill

    principle-laziness-protocol

    Apply when refactoring, evaluating diff size, or tempted to add abstractions, layers, or signal threading. Bias toward deletion and the smallest change that solves the problem.

    Also in 22 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check the box in PLAN.md. Next step.

    line 21
  2. Very specific:

    After GREEN, run vibeproof check.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 177 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

tdd — test first, then code

The difference between looking senior (running tests) and being senior: the test is written first and defines what correct means. A non-coder can't read the implementation — but they can read "given a logged-out user, the page redirects to login" and confirm that's what they wanted.

The loop (per build step in PLAN.md)

  1. RED — write the test from the PLAN test list. Run it. Watch it FAIL. A test that passes before you write code tests nothing. Confirm it fails for the right reason.
  2. GREEN — write the minimum code to make it pass. Run it. Watch it PASS.
  3. REFACTOR — clean the code (names, duplication, clarity) with the test still green. This is where "clean code a Meta senior would write" happens.
  4. Check the box in PLAN.md. Next step.

Rules

  • One behavior per test. Name it so a non-coder understands: test_logged_out_user_redirects_to_login.
  • Never delete a failing test to make the bar green. Fix the code or the spec.
  • No skip/xfail without a comment + reason. A skipped test is a lie about coverage.
  • New or changed behavior → a test exercises it. If vibeproof check later shows tests passing but you wrote no test, you skipped the contract.

Verify

After GREEN, run vibeproof check. The verdict line must show tests passing with a real count (e.g. tests ok: 14 passed), not 0 passed or skipped.

Next: build the remaining steps, then /ship.

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.