/ezpowers:diagnosefrom EZPowers
Drives bug diagnosis from an exact-red reproduction through root cause to verified fix. Handles failing tests, builds, integration failures, flaky behavior, and performance regressions.
Ships in EZPowers. 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.
Drive a reported defect from an observed exact-red signal to a verified source-cause fix. The reproduction gate is the skill; hypotheses only consume evidence produced after that gate. Root cause is a milestone, not completion.
Read .ezpowers/contracts/engineering-practices-contract.md when installed, or
the same contract under the EZPowers plugin's docs/reference/ directory.
Read repository instructions, current Git state, relevant project
documentation, CONTEXT.md when present, applicable ADRs, and the code and
tests on the failing path.
Before the reproduction gate, inspect implementation only as needed to locate or construct the feedback loop. If code reading starts producing a theory before an exact-red command exists, stop and return to building the loop.
Choose one mode once:
For a bare symptom report matched implicitly, begin read-only investigation. Ask once before the first edit only when intent remains genuinely ambiguous. After FIX-COMPLETE begins, intermediate findings are progress updates, not a reason to hand the task back.
Do not state or rank hypotheses, claim a root cause, propose a fix, or change product behavior until both checkpoints are complete:
An adjacent failing test, nearby exception, suspicious code, static type warning, or command that merely exits nonzero does not open the gate. The signal must drive the real defect path and distinguish the reported broken behavior from the fixed behavior.
Before EXACT-RED, edits are limited to reproduction artifacts: tests, fixtures, captured replays, throwaway harnesses, and explicitly approved temporary instrumentation that does not change product behavior. Preserve user changes. Do not make a speculative product patch and then try to prove it afterwards.
For flaky defects, EXACT-RED is a recorded high-enough repeated failure rate. For performance, it is a comparable measured baseline and threshold that the reported regression crosses.
If the gate cannot be opened after safe in-scope attempts, stop. List the commands and methods tried plus their real results, then request the exact environment access, captured artifact, or instrumentation permission needed. Do not continue to hypotheses or a product edit, even in FIX-COMPLETE.
Spend disproportionate effort on one fast, deterministic, agent-runnable command that drives the real defect path and asserts the user's exact symptom. Prefer, in order: an existing or new test at the real seam; HTTP/CLI script; headless UI assertion; captured trace replay; throwaway harness; repeated property/stress loop; automated bisection; or differential old/new execution.
Run the command and retain its invocation, exit result, and exact red signal. Tighten it until unrelated setup is removed and the signal can distinguish the broken behavior from the fixed behavior. For flaky defects, raise and record a repeatable failure rate. For performance, record a comparable baseline and threshold before changing code.
The phase is incomplete until the command has actually produced the qualifying red result. A proposed command or a command believed capable of failing is not evidence.
Run the loop enough times to confirm it catches the reported defect rather than a nearby failure. Wrong bug means wrong fix. Remove inputs, callers, configuration, data, and steps one at a time, rerunning after every cut. Keep only elements whose removal makes the loop green. Preserve the original, unminimised scenario and its exact command for final proof.
Do not proceed to hypotheses until both EXACT-RED and MINIMISED-RED are backed by output from commands already run.
Only now, state 3-5 ranked, falsifiable hypotheses and the observation that
separates each one. Hypotheses are probes against the reproduced evidence, not
a substitute for it. Share the ranking as a non-blocking checkpoint and
continue unless the user pauses the work. Test one prediction at a time.
Prefer debugger or REPL inspection, then narrowly placed logs tagged with one
unique [DEBUG-<token>] prefix. Never log everything and grep.
Trace bad values and control flow backwards from the symptom to the earliest point where actual state diverges from expected state. A nearby exception or failing assertion is not the root cause without that trace.
In FIX-COMPLETE mode, turn the minimised reproduction into a regression test at the real call-site seam before changing product behavior. Record the red regression signal and confirm that it fails for the intended reason.
If no honest automated test seam exists, do not add a shallow test. Keep the red command or harness as the executable regression signal, continue the authorized fix, and report the missing seam as an architectural follow-up after the defect is fixed. Lack of a good seam does not cancel FIX-COMPLETE.
Apply the smallest change that corrects the first divergence rather than masking its downstream symptom. Then run, in order:
If any signal remains red, treat the output as new evidence. Re-rank the hypotheses, change one variable, and continue. Do not end the task after a failed patch or a plausible explanation. After three failed patch experiments, make no fourth edit: rerun and, if needed, rebuild the exact-red loop before revising the hypothesis set. Continue only from a new falsifiable prediction grounded in the current red output.
FIX-COMPLETE finishes only when all applicable checks are true:
[DEBUG-<token>] instrumentation and throwaway artifacts are removed;During an active EZPowers execution, run fresh all-scope verification and certification; targeted green results are not completion evidence.
Do not stop FIX-COMPLETE at reproduction, hypotheses, root cause, a red regression test, or the first green targeted test. End only with the verified fix above or a concrete external blocker after safe in-scope alternatives are exhausted. Name the exact missing access or state change when blocked.
Report only sections earned by commands actually run. Never fill a missing reproduction with a theory:
When blocked before EXACT-RED, report the mode, attempted loops and results, the unproven symptom, and the specific missing access, artifact, or permission. Do not include hypotheses, root cause, or fix sections.
Do not automatically invoke another workflow, create a canonical document, or change harness-chain limits, receipts, or completion state.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
debugging, bug-fixing, root-cause-analysis, reproduction, verification
npx claudepluginhub dlwlgus9125/ezpowers --plugin ezpowers15 skills in this plugin
/codebase-designDesign or improve a module interface, choose a seam, reduce shallow abstractions, and make product code more testable and AI-navigable using deep-module vocabulary. Use for focused module or refactor design, interface alternatives, dependency placement, and test-surface decisions; not for a whole-codebase scan or durable project architecture documentation./deep-interviewUse when a user's request is vague, underspecified, solution-shaped, or explicitly asks for deep-interview, requirement clarification, "grill me", or "그릴미". Resolve stated ambiguity and consequential blind spots into a confirmed, decision-ready request, then offer to proceed, correct, or finish with the summary. Proceed resumes host work in ordinary mode or planning in active Plan Mode. Not for reviewing artifacts or small concrete edits whose scope and success are already settled./design-architectureUse when a project needs durable architecture, boundary, data-flow, deployment, or verification-design decisions before a feature spec is written. Not for implementing code or for general request clarification./executeUse when a validated EZPowers plan should be implemented with host-native editing and orchestration, then verified and certified by the project-local runtime./explain-with-evidenceStructure user-facing explanations and work-result reports in the user's active conversational language, grounded in observed evidence and honest limits. Use when explaining completed work, technical decisions, knowledge, concepts, numbers, or rationale beyond a one-line confirmation or status update; not to rewrite fixed-schema artifacts or machine-readable output./frontend-designUse when frontend, UI, UX, design system, screen structure, component taxonomy, design tokens, responsive behavior, accessibility, or visual QA decisions must be settled before implementation. Not for directly coding UI.Other plugins' skills for the same job