agent-launcher-orchest…
Use when a user wants to build, launch, grade, or schedule a Claude Managed Agent (CMA) in their own Anthropic account — "build…
Turns a suspected bug into a proven one. Verify the cause against reality before claiming it, write a test that FAILS on the current code, apply the fix, watch it pass — then revert the fix and confirm the test goes red again, because a test that passes both ways proves nothing.
$ npx -y skills add alirezarezvani/claude-skills --skill red-green-proof --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/red-green-proofContext preview
The summary Claude sees to decide when to auto-load this skill.
Turns a suspected bug into a proven one. Verify the cause against reality before claiming it, write a test that FAILS on the current code, apply the fix, watch it pass — then revert the fix and confirm the test goes red again, because a test that passes both ways proves nothing.
name: red-green-proof description: Turns a suspected bug into a proven one. Verify the cause against reality before claiming it, write a test that FAILS on the current code, apply the fix, watch it pass — then revert the fix and confirm the test goes red again, because a test that passes both ways proves nothing. Invoked bare after a debugging conversation, it takes the target from context rather than asking. Use when fixing a bug, investigating an incident, hardening a flaky area, or when asked to "add tests that reveal the bug". Triggers on "/red-green-proof", "prove the bug", "red-green", "make the test fail first", "is that test load-bearing", "reveal the bug with a test".
A bug is not fixed because the tests pass. A bug is fixed when a test **fails without your fix and passes with it**, and you have watched it do both.
Use this skill when a bug, incident, flaky test, or unproven regression test is under investigation. It applies a strict red-green-red loop: establish the cause, observe a focused test fail, make the smallest fix, then remove the fix and observe the test fail again. The final revert is the proof that the test is actually coupled to the defect.
Keep evidence for each phase separate. A test command that exits zero is not evidence that it exercised the defect; record the assertion and the observed failure or success. Do not proceed when the current phase is unobserved.
Before changing code, identify the exact test command and expected red signal. After the fix, run that same command without changing its assertions. During the revert, use the same command again and preserve the failure output. Restore the fix before running the broader suite.
ask for the red run before calling it coverage.
fails against the parent revision or label the evidence as missing.
user-facing consequence.
interleaving before attempting a stabilization fix.
Report each investigation with: (1) target and cause, labeled `Proven`, `Inferred`, or `Unknown`; (2) the red command and actual failure before the fix; (3) green and revert-red results with actual output; and (4) final suite status and remaining uncertainty.
Most "regression tests" written after a fix never had the chance to fail. They are decoration. This skill is the discipline that separates a real test from a decorative one.
**With an argument**, that is the target: `/red-green-proof the status endpoint reports finished runs as running`.
**With no argument, take the target from the conversation.** The usual case is that you have just spent a long stretch investigating something — the bug is already on screen. Do not ask what to work on. Scan back through the session and pick, in this order:
1. A defect just identified but not yet fixed. 2. A fix applied without a failing test to back it — the most valuable target, because the test still has to be proven load-bearing. 3. A test written but never verified red. 4. Something described as "still open", "not fixed yet", or "characterization only".
State your pick in one line and start:
> Target: the buffer discards events when the flush write fails (`checkpointBuffer.ts:271`). Verifying before writing the test.
Only ask the user if two or more candidates are genuinely equal in priority — then list them as a short numbered choice and stop. If several *related* defects came up, handle them one at a time through the full loop rather than batching; each needs its own red.
If nothing in the conversation qualifies, say so and ask for a target rather than inventing one.
Run these in order. Do not skip 1, and never skip 4.
Before you write a line of test code, establish what actually happened using evidence you can point at: the real record from the database or API, the real log line, the actual source of the function you are blaming.
Say which of these you have:
State the label out loud. If the honest answer is Unknown, say so and name the one artifact that would settle it. A confident wrong cause costs more than an admitted gap, because it sends the fix to the wrong place.
Two traps worth naming:
The test must fail **against the code as it is right now**, before any fix exists.
Name it after the defect, not the function: `reveals bug: stale status shadows a terminal event`, not `test inferStatus`.
Assert the observable consequence a user or caller would see — the wrong status, the lost record, the 500 — not an internal call count. Call counts pass for the wrong reasons.
If it does not fail, you have not reproduced the bug. Go back to step 1.
Smallest change that makes the failing test pass. If the fix needs to be large, the test was probably too broad — narrow it and split.
Put the buggy code back, run the test, and **watch it fail**. Then restore the fix.
cp path/to/fixed.ts /tmp/fix.bak # revert the fix (edit, patch, or git stash
398 production-ready Claude Code skills, plugins, and agent skills for 13 AI coding tools. The most comprehensive open-source library of Claude Code skills and agent plugins — also works with OpenAI Codex, Gemini CLI, Cursor, and 9 more coding agents.
Use when a user wants to build, launch, grade, or schedule a Claude Managed Agent (CMA) in their own Anthropic account — "build…
Phase 3 of building a Claude Managed Agent — the bounded grade→iterate loop. Define a CMA outcome (a required markdown rubric…
Phase 1 of building a Claude Managed Agent — interview the founder about the one job the agent should do, then produce a build…
Phase 4 of building a Claude Managed Agent — make it run without you. Turn a graded agent into a recurring scheduled deployment…
Phase 2 of building a Claude Managed Agent — turn a validated build sheet into exact API payloads and a resumable BYOK curl…
Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page,…