Not loaded · from dev
Guides test-driven development with a red-green loop: one failing test, minimum code to pass, repeat. Enforces testing through public interfaces only, with per-cycle checklists.
Claude Code won't load this skill
It ships in dev at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Loop rule: red before green, one slice at a time, tests only at pre-agreed seams. One failing test, the minimum code to pass it, nothing more; repeat until every listed behaviour is covered.
The loop has no prescribed steps — pick the next uncovered behaviour, write one failing test, write the minimum code to pass it, check the cycle checklist, move on.
A seam is the public boundary you test at. Agree on seams before writing the first test — no test at an unconfirmed seam. Each seam carries one behaviour per cycle.
<supporting-info> for why.expect(add(a, b)).toBe(a + b) always passes and can never catch a bug.Before declaring a cycle done, confirm every box:
[ ] A reader can tell what the system does from this test alone — not how it does it
[ ] The test reaches the system only through its public interface
[ ] This test would still pass if the internal implementation were replaced entirely
[ ] No code was added beyond what this test required
[ ] No features were anticipated beyond the current test
[ ] Expected values come from a literal, worked example, or spec — not recomputed the way the code computes them
If any box is unchecked, the cycle isn't done — fix it before moving on.
Once all tests are GREEN, refactoring is a separate concern — run /code-review on the branch to clean up.
Core principle: Tests verify behaviour through public interfaces, not implementation details. Code can change entirely; tests shouldn't.
Good tests are integration-style: they exercise real code paths through public APIs. They describe what the system does, not how. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.
Implementation-coupled tests are the first bad-test pattern: they mock internal collaborators, test private methods, or verify through external means (like querying a database directly instead of using the interface). The warning sign: your test breaks when you refactor, but behaviour hasn't changed.
Tautological tests are the second bad-test pattern: a test whose assertion is recomputed the way the code computes it passes by construction and proves nothing. expect(add(a, b)).toBe(a + b) will always pass regardless of what add does — the assertion restates the implementation instead of verifying it against an independent expected value. Expected values must come from a literal, a worked example, or the spec.
See tests.md for examples of both anti-patterns, mocking.md for mocking guidelines, interface-design.md for designing for testability.
A seam is the public boundary you test at: the interface where you observe behaviour without reaching inside the implementation. Tests live at seams, never against internals.
Confirming seams before the first test is how testing effort lands on critical paths and complex logic — not on every edge case. One seam, one test, one implementation per cycle.
Treating RED as "write all tests" and GREEN as "write all code" produces crap tests:
WRONG (horizontal):
RED: test1, test2, test3, test4, test5
GREEN: impl1, impl2, impl3, impl4, impl5
RIGHT (vertical):
RED→GREEN: test1→impl1
RED→GREEN: test2→impl2
RED→GREEN: test3→impl3
…
Each test responds to what you learned from the previous cycle. Because you just wrote the code, you know exactly what behaviour matters and how to verify it.
When listing behaviours, also identify opportunities for deep modules (small interface, deep implementation) and design interfaces for testability. These choices are easier to make before any code exists.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reddb-io/red-skills --plugin dev59 skills in this plugin
/adr-editorProposal-driven reverse grill for the active `.red/adr/` collection. Ranks active ADR clusters, recommends where to start, confronts one cluster with current implementation evidence, and applies maintainer-approved dispositions through the full ADR verb set. Use to review, curate, reorganise, fix, or extend ADRs and to pay down accumulated decision debt./afkAutonomous loop that drains the `ready-for-agent` queue on the issue tracker. Registers the project with the `redskilled` daemon at a runner and a target width, arms the drain, and observes; the daemon admits each Worker, which claims an issue, works it in its own workspace, validates, lands, and closes. Use when the user wants to run AFK execution, drain a Spec, hammer specific issues, or otherwise let agents grind through the backlog./Other plugins' skills for the same job