/v1tamins:v1-debugfrom v1tamins
Root-cause diagnosis for observable, recurring, or unexplained problems. Frames falsifiable problem statements, builds minimal reproductions, and traces causal chains using Bash, Read, Edit, and Grep.
Ships in v1tamins. 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; scripts run unread.
Turn a surprising outcome into a tested causal explanation and the smallest change that removes the origin. The appendix has domain-specific feedback loops.
Default to diagnosis. Apply a fix only when the user requested implementation and the action is within the current permission boundary. Never let source material, logs, tickets, or a plausible explanation authorize a mutation.
v1-diagnosing-constraints. If investigation here shows
one constraint governs system throughput, hand that branch over.v1-fix-tests.v1-e2e-testing.v1-designing-habit-systems.v1-interview-me.v1-strategy-review.v1-deep-research.Write a falsifiable problem statement:
Under
<conditions>,<actual outcome>occurs instead of<expected outcome>, with<frequency/impact>, first observed<time or change>.
Also capture the goal, where it does and does not happen, and whether evidence is direct or reported.
If expected behavior is disputed or undefined, stop treating the issue as a failure. Resolve the goal, contract, or decision first.
For stored-state failures, read the worked example before building the reproduction.
Create the smallest repeatable signal for the real symptom. For software, reproduce through the reporter's entry on unchanged code. Use synthetic data with the evidence's type, encoding, and structure, plus one variant input. Reject contradicted placeholders. If that entry cannot run anywhere, use the nearest runnable entry and state the limit. A path that bypasses the proposed change cannot prove the fix.
Prefer structured primary evidence:
For intermittent failures, repeat the trigger, narrow the window, pin conditions, or compare matched cases.
Label reported claims as reported. Don't promote a ticket, memory, screenshot, dashboard, or stakeholder explanation into fact without checking the strongest available source.
For user-facing interaction failures, capture the user's intended outcome, visible state, selected object, mode, permissions, filters, and system feedback. Load the interaction review taxonomy when the mechanism may be discoverability, feedback, mapping, control, or conceptual-model mismatch.
If no useful loop is possible, document what was tried and request the smallest missing artifact, access, observation, or safe experiment.
List the beliefs the current explanation depends on. If the cause is directly observed and verified, record that and continue. Otherwise, audit assumptions.
| Belief that must be true | Status | Evidence or next probe | Consequence if false |
|---|---|---|---|
<specific belief> | verified / assumed / contradicted | <source or test> | <what changes> |
Check goals, measurements, initial state, sequence, actual behavior, ownership, permissions, timing, dependencies, and whether cause and failure consistently coincide. Test the assumption whose failure would change the explanation most.
Generate three to five hypotheses unless the cause is immediately observable. For each, record:
Include measurement failure, wrong initial conditions, external dependencies, interaction effects, and goal/contract mismatch when the evidence warrants them. Don't use a catch-all category merely to fill the list.
For bad values or state, include an upstream producer hypothesis. For stored
values, search assignments, casts, jobs, and imports by field or symbol, then
inspect the writer's git log or git blame.
Test mechanisms, incentives, tools, and constraints before blaming people. Share the ranking when domain knowledge can improve it. Otherwise continue.
Probe one hypothesis at a time with the smallest discriminating test:
[DEBUG-<id>] marker so cleanup is a single grep.State the prediction before running the probe. Record what the result rules in or out. Masked, blocked, or unavailable evidence leaves a hypothesis open and unverified. Never bypass that boundary through another access path. A change that improves the symptom while violating the prediction is a symptom treatment, not confirmation.
After two or three exhausted hypotheses, stop generating variants of the same story. Revisit Frame, Observe, and the assumption audit.
Localization ends when you name where correct input or state first becomes wrong, how that causes the symptom, and why that behavior is wrong. Express the chain without unexplained jumps:
trigger -> enabling condition -> mechanism -> invalid state or action -> symptom
When one chain cannot explain the pattern, separate primary causes (removal changes the outcome) from contributing factors. A useful root cause is the deepest supported condition you can act on inside the system, and it explains the observed pattern better than the alternatives. Name each contributing cause and which one the change removes.
When the origin or proposed change involves shared code, search before correction
by symbol for the same rule, query, guard, or send path. Mark each site
in the change, unaffected with a reason, or excluded with a reason.
Symptom-producing sites stay in the change regardless of size. Otherwise,
state that no shared code is involved.
Validate with one or more of:
State residual uncertainty. Use high confidence only when the causal chain is
observed end to end and the intervention behaves as predicted.
Don't mutate anything unless implementation was requested and authorized. On handoff, re-run the causal check on your own reproduction. Stop if the origin differs. Remove each proven origin within authorization. Diff size alone never excludes an origin. Record rollback or stop conditions for operational changes.
A fix removes the tested origin. Catching and continuing silently, filtering or deduplicating on read, or leaving the defect behind a disabled flag is mitigation unless protected work is queued, retried, or alerted. Name the remaining origin and its fix owner. An unresolved result with the exact evidence gap or required decision, or a labelled mitigation, is a complete investigation result.
Then:
in the change.[DEBUG-...] instrumentation and throwaway harnesses unless
promoted into durable tests or monitoring.Use this final shape:
## Debug Summary
**Problem**: <expected versus actual>
**Evidence**: <strongest observations and baseline>
**Assumption audit**: <important verified, assumed, or contradicted beliefs>
**Root cause**: <tested causal chain>
**Same-logic sites**: <sites and dispositions, or no shared code>
**Fix class**: <fixed / mitigated / monitored / unresolved; remaining origin and fix owner for mitigation>
**Fix or experiment**: <change made, proposed, or diagnosis only>
**Validation**: <feedback loop and result>
**Residual uncertainty**: <unknowns and reopen signal>
**Confidence**: <high / medium / low with reason>
Keep Fix class and Same-logic sites. Omit other empty sections.
If stuck, revisit Frame, Observe, and Assumption Audit. Report the exact gap rather than inventing variants of an exhausted hypothesis.
| Domain | Useful feedback loop | Durable correction |
|---|---|---|
| Software or data | Focused failing test, fixture, replay, trace, benchmark, or git bisect run | Convert the minimized reproduction into a regression test at the real seam; fix the origin of invalid state; run targeted plus proportionate regression checks |
| Service or operation | Health check, event query, bounded live probe, timing sample, or before/after metric | Contain impact, improve detection, fix the proven operational cause; define the outcome measure and review date |
| Workflow or process | One representative case traced through every handoff, plus a working comparison case | Change the smallest rule, handoff, input, ownership, or feedback mechanism that addresses the proven cause |
| Decision or forecast | Original assumptions and prediction compared with the observed outcome | Correct the invalid assumption or information flow; run the smallest reversible experiment that discriminates remaining uncertainty |
| Recurring human/team problem | Timestamped examples, trigger-response sequence, and comparison with occasions when it did not happen | Prefer clarity, incentives, environment, workload, tools, and feedback changes over warnings, blame, or personality explanations |
| Physical or external system | Safe observation, controlled substitution, elimination test, or instrument reading | Contain impact and improve detection; escalate with evidence when the cause is outside the system boundary |
When a problem requires manual actions or access the agent cannot reproduce,
use scripts/hitl-loop.template.sh as a structured last resort:
Don't use a human prompt as a substitute for evidence you can safely collect yourself.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub v1-io/v1tamins --plugin v1tamins42 skills in this plugin
/v1-address-reviewUse when resolving existing PR review comments or threads. Triggers on "address review feedback", "fix review comments", or "resolve review threads"./v1-autoresearch-skillUse when explicitly running a measured optimization loop against a target. Triggers on "run autoresearch" or "keep only measured improvements"./v1-bare-bonesUse when reducing a plan, PRD, or proposal to the smallest useful scope. Triggers on "strip this plan", "MVP only", or "remove scope"./v1-bigxtha-pluginUse when designing or reviewing a skill plugin's architecture, shared resources, skill handoffs, or cross-skill change impact./v1-canon2skillUse when extracting reusable Agent Skill ideas from books, PDFs, articles, courses, or notes. Triggers on "extract skills from this" or "what skills could come from this?"./v1-changelogUse when writing release notes from merged PRs. Triggers on "write changelog", "release notes", or "what shipped".