/kairos:tddfrom kairos
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green", or wants integration tests.
Ships in kairos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
TDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every section applies on every cycle — consult them before and during the loop, not after.
Before the first cycle, pull the active Kairos task (get_item — short code from session context, or my_boards to find it) so test names and interface vocabulary match the domain language on the item, and respect ADR documents linked in the area you're touching.
Code index first. Find code with the tools of the kairos-code MCP server before you read a file. code_search finds what the code does; symbol finds one name. callers and references find its uses; path finds how one symbol reaches another. Then read only the files that they name. grep is for literal text only: a log line, a config key, an error message. After you change code, run kairos index update.
Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists — and survives refactors because it doesn't care about internal structure.
See tests.md for examples and mocking.md for mocking guidelines.
A seam is the public boundary you test at: the interface where you observe behavior without reaching inside. Tests live at seams, never against internals.
Test only at agreed seams. Use a seam that the task names, or a seam that the user confirms. You cannot test everything. Agreed seams put the tests on the critical paths and the complex logic, not on each edge case.
Read the seams from the task:
get_item. Read its acceptance criteria, its content and its notes.append_note. For each seam, give the criterion or the note that names it.If the task names no seam, or you need a seam that the task does not name, ask the user. Ask: "What is the public interface, and which seams do we test?"
In a Ralph loop or a dispatch run, no user can answer. Then do not guess a seam:
append_note.<promise>NEED INPUT</promise>. A Ralph loop then stops.expect(add(a, b)).toBe(a + b), a snapshot derived by hand the same way, a constant asserted equal to itself), so it passes by construction and can never disagree with the code. Expected values must come from an independent source of truth — a known-good literal, a worked example, the spec.kairos:code-review skill), not the red → green implementation cycle.append_note — the seam, the test, what the cycle proved. The task is the persistent memory; the conversation is not.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub colliery-io/kairos --plugin kairos28 skills in this plugin
/architecture-reviewReview the codebase's architecture — scan, classify by altitude, present deepening candidates as an HTML report, then grill through the one you pick./bootstrapWire this repo and engineer to a Kairos deployment — MCP endpoint config, auth check, repository detection from the git remote, board discovery, and the wiring (a project entry in ~/.config/kairos/config.toml)./cancel-ralphStop the Ralph loop of this session, or of this folder after /clear. Then the Stop hook lets the session stop.