rea-analysis-optimization
MOmorluto/rea486k近 7 天新增 8,943 个 star
Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source. Reproduce the symptom, test hypotheses, identify the supported root cause, and hand off a repair. Use for /debug, root-cause investigation, or questions about why something is broken.
Context reuse: Reuse any required file already loaded in project instructions or the current session. Read it again only if absent, changed, or exact current bytes or line references are needed.
First action: Before project inspection, preflight, or any other tool call,
publish running to blueprint/.state/run.json when blueprint/.state/
exists. From the project root, run the first helper that exists,
node .agents/skills/blueprint-doctor/scripts/run-state.mjs or
node .claude/skills/blueprint-doctor/scripts/run-state.mjs, with start --command <skill> --summary "<truthful summary>" --boundary <read-only|reviewed|local-only>. Use update at milestones, with --status blocked --resume <command> for a blocker, and finish --status ready|completed
at the end; --help lists every option and blueprint/workflow.md has the full
activity contract. A missing or failing helper is a warning, not a blocker.
Where this sits in the workflow:
reported failure -> [debug] -> /fix or /implement
(test, build, (reproduce, (spec a new fix, or
crash, behavior) isolate, repair active work)
explain)
/debug separates diagnosis from repair. It gathers evidence, narrows the
failure to a specific cause when possible, and stops with a useful handoff. It
does not make the code "temporarily work" while investigating.
Accept a symptom, failing command, error message, or unexpected behavior. Examples:
/debug npm test fails in cart-total.test.js
/debug the upload route returns 500 for PNG files
/debug why does the production build fail?
With no useful symptom, ask for the expected behavior, actual behavior, and smallest known reproduction. Do not guess which problem the user means.
Read the project instructions and the context relevant to the failure:
AGENTS.md and its real commandsblueprint/context/project-overview.mdblueprint/context/coding-standards.mdblueprint/context/current-feature.mdState the symptom and what would count as reproducing it. Note whether the failure belongs to an active feature or is an unplanned bug.
Do not treat a dirty working tree as permission to discard or rewrite anything. Use the diff as evidence and preserve it.
Run the smallest existing command or interaction that can reproduce the symptom.
If the symptom cannot be reproduced, say what was attempted and what evidence is missing. Continue with static investigation only when it can produce a clearly labeled hypothesis, not a claimed root cause.
Trace from the observed failure toward the smallest responsible area.
Use the evidence that fits the project:
git diff, git log, and git blame for a suspected regressionSeparate facts from hypotheses. Test the cheapest safe competing explanations first. Do not stop at the first plausible line, blame a dependency without evidence, or confuse the place an error surfaced with the place it originated.
A root cause is confirmed only when the evidence connects all three:
When safe and read-only, vary one input or run a smaller focused command to confirm the connection. Do not change implementation or tests to prove the fix.
Use one of these verdicts:
Give a concise debug report:
Choose the next action without writing files:
/implement./fix "<concise bug and confirmed cause>"./feature./audit owns recorded code-quality
findings; /debug reports one investigated failure in chat.Format the output to match the project's conventions in
blueprint/context/ai-interaction.md: concise, scannable markdown with a short
evidence list and a clear next action.
MOmorluto/rea486k近 7 天新增 8,943 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star