← Headcount: TechnologyCONTENT HISTORY

Update to Headcount: Technology

Snapshot Oct 24, 2026 · 13:55 UTC · version 1.0.1

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Headcount: Technology and check future changes in Following.

Up to 10 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Drives implementation by writing a failing test first, then the smallest code that passes it. Use this before writing implementation code for any feature or bugfix, when a bug needs a regression test, when existing code is hard to change safely, or when someone asks whether a change is covered. Also use to decide what is worth testing and what is not.",
  "included_files": [],
  "name": "test-driven-development",
  "skill_md_contents": "---\nname: test-driven-development\ndescription: Drives implementation by writing a failing test first, then the smallest code that passes it. Use this before writing implementation code for any feature or bugfix, when a bug needs a regression test, when existing code is hard to change safely, or when someone asks whether a change is covered. Also use to decide what is worth testing and what is not.\n---\n\n# Test-driven development\n\n## The loop\n\n1. **Red** — write one test that fails for the right reason. Run it. A test that passes immediately\n   is testing nothing; a test that errors instead of failing is testing the wrong thing.\n2. **Green** — the smallest change that makes it pass. Ugly is fine here.\n3. **Refactor** — clean up with the test green. If it goes red, you changed behavior, not structure.\n\nNever skip step 1. Writing the test after the code produces a test shaped to the implementation,\nwhich is the one shape that cannot catch the implementation being wrong.\n\n## What to test\n\nTest behavior at the boundary a caller actually depends on. For each unit ask: if this broke\nsilently, who notices and how? If the answer is nobody, delete the code rather than test it.\n\n- **Test**: branching logic, boundary conditions, error paths, anything with a past bug, contracts\n  between modules.\n- **Do not test**: getters, framework behavior, private helpers reachable only through a public path\n  already covered, exact wording of log lines.\n\n## Bugs\n\nEvery bug gets a failing test *before* the fix, reproducing it at the smallest scope that shows it.\nThat test is the proof the bug existed and the guard that it stays fixed. A fix without one is a\nclaim.\n\n## Rules\n\n- One behavior per test. A test asserting five things tells you almost nothing when it fails.\n- The test name states the behavior, not the method: `rejects_expired_token`, not `test_auth`.\n- Never weaken an assertion to get green. If a test is inconvenient, the design is telling you\n  something.\n- Never mock what you own — mock the network and the clock, not your own modules. Mocking your own\n  code tests the mock.\n\n## Never\n\n- Write the test after the code and call it test-driven. You will test what you built rather than what was required.\n- Skip watching the test fail. A test that has never failed proves nothing.\n- Delete or skip a failing test to unblock a release. Fix it, or revert what broke it.\n- Treat a coverage number as the goal. It counts lines executed, not behavior pinned down.\n\n## Return contract\n\nReport the tests added, what each pins down, what is deliberately untested and why, and the actual\ncommand you ran with its output. \"Tests pass\" without the command output is not a result.\n"
}

SHA-256 of public snapshot: a52fec6666f0384486a5c3822d1a33c98c3681d56e96c3b4c22a3aae170bad03