/continuous-improvement:tdd-workflowfrom continuous-improvement
Guides a test-first workflow: one failing test, minimal passing code, full suite per cycle. Use when adding/changing observable behavior or fixing bugs with a reproducing test.
Ships in continuous-improvement. 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.
One behavior at a time: a failing test, the smallest code that passes it, the full suite, then the next behavior. This skill is text you read. No hook in this plugin checks that a test came first, so the only proof is the command output you quote in your report.
Use it when a change adds or alters behavior a caller can observe: a new feature, a new rule on an existing one, a bug fix.
Do not use it for documentation, configuration values, generated files, formatting, renames with no behavior change, or a spike the user has said will be thrown away. If the user says "no tests for this", do the work without this skill and say in the report that no test covers it.
Do this before writing anything. Read the build manifest, the README or contributing guide, the CI workflow, and two or three test files next to the code you will change. Write down four facts:
Never assume a command. npm test, pytest, cargo test, go test ./... and ./gradlew test are examples of what you might find, not defaults to try.
Then run the full suite once, before any edit, and keep the result. If tests already fail, tell the user which ones before you start, and leave them alone unless asked.
No tests or no runner in this repository: stop and ask. Adding a test framework is a new dependency and the user's call. Offer two options: add the smallest runner the stack already provides, or do the change without this skill and describe the manual check you ran.
Done when you can state the focused and full-suite commands and you hold the baseline result.
Write the behaviors the request asks for as plain sentences, each one observable through the public interface: the function, endpoint, command or screen that existing callers already use. For a discount code field that might be: a valid code lowers the total, an unknown code is rejected with a message, an expired code is rejected, an empty field leaves the total unchanged.
This list is a plan. Do not write tests for all of it now. Tests written in a batch describe a guessed design, and the code is then written to satisfy the guess.
Test at the level the neighboring tests use. Do not add a new kind of test (a browser end-to-end test, for example) unless the repository already has that kind for this area or the user asks for it. If two layers could plausibly own the behavior and the request does not say which, ask before the first test.
Done when the list exists and you have named the first behavior and the interface you will test it through.
If the full suite takes minutes, run the focused test plus the tests for the surrounding module in each cycle, and the full suite at least once after your last edit. Say in the report that you did this.
One example, in pseudocode, to show the second point:
# Passes by construction: the expectation repeats the code's own formula
expect(total(cart, "SAVE10")).toEqual(cart.subtotal * (1 - rateFor("SAVE10")))
# Worth keeping: the spec says SAVE10 takes 10% off, and 10% off 200.00 is 180.00
expect(total(cartOf(200.00), "SAVE10")).toEqual(180.00)
Write a test that reproduces the bug before touching the fix. It fails on the current code, showing the reported symptom. If it passes, you have not reproduced the bug: get the exact input and conditions, or tell the user what you tried. Do not fix by guess. Then make the smallest fix, run the focused test, run the full suite, and keep the test.
A bug that shows on only some runs needs more: one failing run is not a reproduction and one passing run is not a fix. Run the test 20 times and record how often it fails, find the cause (order, shared state, timing, a random seed), and write a test that fails every time before you fix it. The ship skill, step 3, has the full method. Do not make it pass with a retry, a sleep or a longer timeout.
Refactor only when the suite is green, and do not modify tests during it. Run the full suite before and after. If no test covers the code you are about to restructure, first write tests that pass on the current code and prove each can fail by breaking the code briefly. This is the one case where a new test is expected to pass on its first run.
| What you will tell yourself | Answer |
|---|---|
| "This is too small to need a test first." | Then the cycle is short. A small validation rule still has an empty input and a boundary to get wrong. |
| "I'll write all the tests first, then the code." | That is the batch this skill exists to avoid. One test, one piece of code, then the next. |
| "I'll write the code now and add tests after." | A test added after passes on its first run, so nobody has seen it catch anything. |
| "The new test passed first time, so it works." | A pass before the code exists means the test is not testing the new behavior. Take the "it passes" branch of step 2. |
| "It failed, so that's red." | Read the message. An import error is not the failure you need. |
| "The focused test passes, the full suite can wait." | The full suite is how you learn you broke something else. Run it now. |
| "That failing test is unrelated, I'll skip it." | Compare with the baseline run from Step 0. If it passed there, your change broke it, so fix the code. If it failed there, you have already reported it. |
"I can't find the test command, I'll try npm test." | Go back to Step 0. If the repository does not say, ask. |
| "I'll add end-to-end tests and a coverage threshold to be thorough." | Nobody asked. Match the kinds of test the repository already has. |
| "I ran it by hand and it works." | A manual check is gone after this session. The test stays. |
The work is done when your report holds this evidence, not when a percentage is reached:
Coverage is a number to look at, never a gate this skill sets. If the project already measures coverage, run its command and report the figure for the files you touched. If the project's CI has its own threshold, that is the project's rule and you meet it. Do not add a coverage tool or a threshold yourself.
For build, type and lint checks before you report, use the verification-loop skill. If it is not installed, run the commands the repository's CI runs for those checks and quote their output.
Eval, 2026-12-01: no difference on the primary, where 24 of 24 replies passed without this skill and 23 of 24 with it (a test command that works in the repository, every test run after the last change and a test for every requested case, or a plain edit on a documentation fix and a rename), measured on the opening plan, not on the work (method, every reply and the limits).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub naimkatiman/continuous-improvement --plugin continuous-improvement22 skills in this plugin
/auditReview a code change and report only bugs proven against the code: pin the diff, read every changed file and log it in a coverage ledger, run one find pass per defect class, then confirm each finding at the cited lines. Use when asked to review a branch or pull request (PR) for broken code before it merges, or to audit commits that already merged. Reports only, unless the user asks for fixes. Not for checking your own work in progress, style or design feedback, or debugging a known failure. Guidance for Law 4 (Verify Before Reporting)./be-ambitiousTakes one task and works it at three kinds of ambition (Altitude, the goal behind the task; Depth, the way a top expert in the field would do it; Range, other fields doing their real work), fixes a numeric target and an outside judge before the work starts, then does the work. Use when the user says go big or a plan looks timid. It still has the agent deliver the literal ask and wait for a yes on anything hard to reverse. Method from Felix Rieseberg's "How to be more ambitious", restated. Guidance for Law 2 (Plan Is Sacred)./continuous-improvementThe drive pillar, beside the be-ambitious skill (ambition). Tells the agent to work a task in seven steps: research, plan, implement, review, contemplate, relearn and learn, iterate. Use when a task changes code (fix, refactor) or runs commands. Also use for a first recommendation or when someone asks which available skill fits their task. Before the final report, if the user corrected you, an approach was dropped or a check failed twice, or when the user asks to reflect: read the session log, write the reflection and save its rule as a project instinct the next session can load. Other simple questions can be answered directly./deploy-receiptHas the agent prove a merge reached production: read the deployed commit SHA from the provider CLI, the GitHub Deployments API or a version endpoint, compare it with the merge SHA, check that a healthcheck returns 200, and print a COMPLETE or INCOMPLETE receipt. Use when a merge has just landed on a branch that deploys automatically (Railway, Cloudflare Workers, Vercel, Netlify, Fly.io). Not for libraries published as packages, manual deploys or branches that do not deploy. It never deploys, merges or rolls back. Guidance for Law 4 (Verify Before Reporting)./gateguardDescribes hooks/gateguard.mjs, the hook that refuses destructive shell commands and blind edits (an edit of an existing file the session has not read), and tells the agent to stop, show the user the command and wait after a refusal. Use when about to run a command that deletes or overwrites data (rm -rf, git reset --hard, git clean, a force push, DROP TABLE, Remove-Item -Recurse), when a call comes back refused, or before editing a file not yet read. Not for getting a refused command to run (only the user can) and not a sandbox. Guidance for Law 1 (Research Before Executing)./goal-monitorScores recent tool activity against the Goal section of task_plan.md and reports ON GOAL, DRIFT or NO DATA, so the agent steers back or updates the goal on purpose. Use when a long stretch of work or edits may have strayed from the plan, and before a checkpoint or handoff. Not for a session with no written goal. Run it with the ci_goal_check tool or /goal-check. A hook, hooks/goal-drift-stop.mjs, runs the same check when a turn ends: it warns by default and re-prompts the agent only when CLAUDE_GOAL_DRIFT_GATE=block. Guidance for Law 2 (Plan Is Sacred).Other plugins' skills for the same job