Audit a repository, write the findings to a durable work queue, then fix them one test-first item at a time in a way that survives context resets and handoffs between sessions or agents. Use when asked to "audit and fix", clean up a codebase over many sessions, work through a backlog of bugs or debt, or resume a relay already started (a RELAY.md exists in the repo root).
Ships in context-relay-tdd. 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.
None: SKILL.md is the whole skill.
Long cleanup jobs outlive any single context window. This skill keeps all state in files in the repo, so any session can stop at any point and the next one (you after a reset, another agent, or a human) picks up exactly where it left off. Each fix is driven by a failing test first.
All state lives in RELAY.md at the repo root. Nothing important stays only in your context.
# Relay
Goal: <one line from the user>
Test command: <exact command that runs the suite>
Baseline: <pass/fail counts on first run, date>
## Queue
- [ ] R1 <short title> — <file:line> — <why it's wrong> — <how a test shows it>
- [ ] R2 ...
## In progress
R3 — step: red | green | refactor — notes: <what you just did, what's next>
## Done
- [x] R0 <title> — test: <test name> — commit: <sha>
## Skipped
- R4 — <reason: needs product decision / can't reproduce / out of scope>
RELAY.md exists, read it first and resume from In progress, or take the next
Queue item. Do not re-audit.Find real defects and risks, not style nits. Look for:
For each finding, write one queue line with a location, why it's wrong, and how a test would show it. Order the queue by user impact, then by how cheap it is to fix. If a finding can't be shown by a test, it goes in Skipped with the reason, not in the queue.
Show the user the queue before fixing anything if they're present; otherwise proceed.
Do one item end to end before starting another.
step: red and save the file.R3: reject empty ids).Update RELAY.md at every step change, before doing the step's work. If the context resets
mid-step, the notes must be enough to continue without guessing.
RELAY.md: items done, skipped and why, final test counts.When stopping for any reason, make sure RELAY.md is saved, then tell the user in two lines:
what got done this session, and what the next item is.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/context-relay-tdd:context-relay-tddfrom context-relay-tdd
npx claudepluginhub adityaarakeri/astack --plugin context-relay-tdd