Skip to content
Development
Skill

/rig-investigate

Reproduce a failure and narrow it to an evidence-backed root cause before fixing.

BOOST
From plugin
ai-rig
2948 skills16 agents2 MCP
Install
$ npx -y skills add Borda/AI-Rig --skill rig-investigate --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/rig-investigate

Context preview

The summary Claude sees to decide when to auto-load this skill.

Reproduce a failure and narrow it to an evidence-backed root cause before fixing.

SKILL.md

rig-investigate.SKILL.md
name: Rig Investigate
description: Reproduce a failure and narrow it to an evidence-backed root cause before fixing.

Rig Investigate

> Read [Evidence rules](../../references/evidence.md). A plausible explanation is not a root cause.

Input

  • Symptom, failing command, stack trace, or behavior.
  • Known environment and versions.
  • Paths or subsystem hints.

Workflow

1. **Start the run.** `rig_evidence` with `action: "start"`, `skill: "rig-investigate"`, and candidate paths. 2. **Reproduce with real inputs.** Run the failing command. If it does not reproduce, record the exact difference and stop rather than guessing. 3. **Shrink the case.** Remove unrelated configuration and files until the smallest failing case remains. Record each removal. 4. **List hypotheses.** Write at least two plausible causes. For each, name the observation that would disprove it. 5. **Test one at a time.** Change one variable per run. Record the command, output digest, and conclusion. Optional: dispatch read-only `rig-investigator` children for independent hypotheses; they share the tree, so they must not edit files. 6. **Confirm the cause.** Show the failing behavior disappearing when the cause is removed, or explain why that experiment is unavailable. 7. **Record the diagnosis** with reproduction command, root cause, evidence, eliminated hypotheses, confidence, and the smallest next change.

Rules

  • Correlation is not causation; if the evidence only supports a correlation, say so.
  • Do not weaken a test to make it pass, and do not change production code before the cause is confirmed.
  • Missing environment or credentials are an explicit limit, not a reason to simulate a pass.
  • Python scopes may probe codemap when available (one probe); absence is recorded, not fatal.

Output

Report reproduction status, root cause, evidence references, confidence, limits, and the recommended next action. Do not present the fix as already verified.

Read more
Ships withai-rig

Practical agent workflows for Python, ML, and open-source maintenance. AI-Rig turns recurring work—scoping a change, reproducing a bug, reviewing a pull request, running an experiment, or checking release readiness—into explicit workflows with specialist

Get the whole plugin

Other skills on ai-rig.

debug
Skill

debug

Investigation-first debugging — gather evidence, form confirmed root-cause hypothesis, hand off to fix mode with diagnosis file.…

@borda@bordaInstall Skill
feature
Skill

feature

TDD-first feature development — crystallise API as a demo test, drive implementation to pass it, run quality stack and…

@borda@bordaInstall Skill
fix
Skill

fix

Reproduce-first bug resolution — capture bug in failing regression test, apply minimal fix, run quality stack and review loop.…

@borda@bordaInstall Skill
plan
Skill

plan

Analysis-only planning — classify and scope a task without writing code; outputs a structured plan to .plans/active/. TRIGGER…

@borda@bordaInstall Skill
refactor
Skill

refactor

Test-first refactoring — audit coverage, add characterization tests, apply changes with safety net, run quality stack and review…

@borda@bordaInstall Skill
review
Skill

review

Multi-agent code review of local Python files, directories, or the current git diff covering architecture, tests, performance,…

@borda@bordaInstall Skill