/senior-review:investigation-methodfrom senior-review
Investigates errors, bugs, or strange behaviors to find root cause without fixing. Collects facts, maps perimeter, forms isolated hypotheses, and delegates verification to specialized auditors.
Ships in senior-review. 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.
Trace an observed defect to its causal code/change; never edit product code.
Use the host run-record mechanism for operation investigate when available,
writing only inside the run and the reproduction test; if absent, declare the
missing run record and keep the same write confinement.
From the failing environment (run's environment), collect exact message,
stack trace, logs/durations, triggering input/steps and last known good
commit/release/date. Read available logs first; otherwise a local rerun counts
only with the same symptom. Repeated round durations (30.0x s) suggest a
configured timeout; record its location. Ask for missing facts one question at
a time, or record them with work-record's ask and close the turn. Mark facts
observed (user, log, run) or derived.
From the stack and the named symbols, load codebase-map:map, locate
the symbols through its references/locate.md (codebase_map_search or
snapshot.py search with the names in the report and the traceback frames;
exact symbol and traceback matches rank first), then take snapshot.py edit-impact for each. The suspects are the commits that touched
the perimeter after the last known good
(git log --format='%h %an %ad %s' GOOD..HEAD -- PATHS), or its last twenty
without one. Without a map, a recorded gap, the perimeter comes from the stack
and a search.
At most three, each with its mechanism (how this code produces the observed fact), trigger, refuting counterevidence, suspect commit and evidence class. Each goes to one isolated verifier, blind to the others, with only the facts, the perimeter and its own hypothesis:
| Mechanism | Verifier |
|---|---|
| Timers, retries, scheduling, clocks | senior-review:temporal-resilience-auditor |
| Persistence, transactions, caches | senior-review:data-integrity-auditor |
| Statement cost, data volume, timeouts | senior-review:sql-efficiency-auditor |
| Initialization order, startup | senior-review:chicken-egg-detector |
| UI timing, layout, focus, scroll | senior-review:ui-race-auditor |
| Handles, connections, locks, threads | senior-review:resource-lifecycle-auditor |
| Calls and messages across services | senior-review:distributed-flow-auditor |
| State, ordering, invariants | senior-review:logic-integrity-auditor |
| Anything else | senior-review:code-auditor |
A verifier is a role of the Daodan application, not a registered agent: dispatch
senior-review:isolated-worker with a brief that gives its role file to read
first, <root>/roles/<name>.md (daodan composition catalog --out CATALOG.json
writes root and, for a composition, its members).
The verifier's mandate is the hypothesis, not a hunt: CONFIRMED with the
file:line chain from trigger to symptom, REFUTED with the contradicting
file:line, or UNCERTAIN with what would settle it. A sharper hypothesis it
proposes gets one more round, two at most.
For the strongest surviving hypothesis, use the host's test-writing capability when available; otherwise declare the reproduction test unavailable and leave the hypothesis open. Require one minimal test that fails on the current code for the reason the hypothesis states, with the observed symptom (message, exception, timeout bound) at the data volume that decides it. A different failure on smaller or cached data is a second defect, not the reproduction. It sits where the fix will keep it, uncommitted and recorded in the run. With a suspect commit, it must pass on its parent, checked in a disposable worktree under the run. Run the test only in Daodan's container, never on the host: without a container the reproduction is a gap with its cause. Without a reproduction the cause stays a hypothesis.
With a last known good and no confirmed suspect, run git bisect run with
the reproduction test in a disposable worktree under the run, never in the
user's checkout. Execute only there, in Daodan's container, never on the host,
the project's own runner included: most verbose logging, temporary tracing, a
test repeated a hundred times for a suspected race. Without a container the
bisection is a gap with its cause. No interactive debugger. Record every command
with its output.
Write investigation.md in the run: facts, perimeter, each hypothesis with
its verdict and evidence, the reproduction test with its failing output, the
first bad commit, and one conclusion. demonstrated: confirmed and
reproduced. probable: confirmed, not reproduced. open: the surviving
hypotheses and what would decide each. Never a fix: a correction goes through
the task cycle, with the reproduction test as its oracle.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub acaprino/daodan --plugin senior-review7 skills in this plugin
/application-cleanup-methodApply accepted application-subtraction findings with isolated phases and snapshot-bound build/test gates. Load from the host cleanup entry point, code-review Step 7c or lifecycle cleanup.
/defect-taxonomy16 macro-categories and 140+ subcategories of source-code failure modes, with CWE and OWASP mappings, fix patterns, and review frameworks. TRIGGER WHEN: an audit needs structured defect classification, a detection strategy, or severity calibration; loaded by code-auditor, security-auditor, and ui-race-auditor.
/review-consolidationConsolidate native review findings with evidence provenance, delivery accounting and adversarial verification. Load when consolidating code-review, team-review or pr-review results.
Other plugins' skills for the same job