Rig Investigate

Rig Investigate is a skill for Claude Code, Codex from Borda/AI-Rig. It costs 20 tokens per session (420 once invoked), scanned A, original, Apache-2.0.

An investigation workflow for reproducing a failure, reducing it to a small failing case, testing possible causes, and recording an evidence-backed root cause.

In plain words
What is it for?
Use it with a symptom, failing command, stack trace, or unexpected behavior when you need to reproduce the problem and confirm its cause before fixing it.
Why use it?
It replaces guesswork with experiments that show which cause explains the failure and which explanations do not.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Read [Evidence rules](../../references/evidence.md). A plausible explanation is not a root cause..

Good fit Use it with a symptom, failing command, stack trace, or unexpected behavior when you need to reproduce the problem and confirm its cause before fixing it.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Borda/AI-Rig
agentmods
npx agentmods add skills/borda/ai-rig/rig-investigate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Rig Investigate

README.md
[![agentmods](https://agentmods.dev/badge/skills/borda/ai-rig/rig-investigate/github.svg)](https://agentmods.dev/skills/borda/ai-rig/rig-investigate)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/rig-investigate"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/rig-investigate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Rig Investigate

Your own site · 80×15
<a href="https://agentmods.dev/skills/borda/ai-rig/rig-investigate"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/rig-investigate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00420
Opus 5.5 $0.00008 $0.00168
Sonnet 5.5 $0.00004 $0.00084
Haiku 4.5 $0.00002 $0.00042

Measured today against content hash 8128accfa4e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Rig Investigate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/opencode-rig/src/resources/skills/rig-investigate/SKILL.md · 36 lines

What it actually says

Rig Investigate

Read Evidence rules. 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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 36 lines · 20 tokens per session scan A 8128accfa4e8

Subscribe to this mod's changes

Rig Investigate is a skill published in the GitHub repository Borda/AI-Rig (29 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 420 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.

Related

Other skills, from other repositories

anomaly-alert

Identify anomalous sessions using Agent Monitor data — cost outliers from the pricing engine, token anomalies (cache miss spikes, compaction baseline surges), unusual event type ratios (PreToolUse/PostToolUse gaps, APIError clusters), behavioral deviations from workflow intelligence (complexity score outliers, error…

hoangsonww/Claude-Code-Agent-Monitor · 86 tokens

transcript-grep

Search a Claude Code session transcript for a string or regex pattern and show every matching message with surrounding context. Reads /api/sessions/:id/transcript and resolves sessions via /api/sessions?limit= from the Agent Monitor dashboard. Use when hunting for a specific message, prompt, tool call, or error inside…

hoangsonww/Claude-Code-Agent-Monitor · 73 tokens

hook-inventory

Inventory hooks across the user, project, and project-local settings plus the /.claude/hooks scripts directory — read through the Agent Monitor Config Explorer API — and flag hooks that POST to the network or run arbitrary commands. Reads /api/cc-config/hooks and /api/cc-config/hook-scripts. Use when auditing hook…

hoangsonww/Claude-Code-Agent-Monitor · 71 tokens

regression-watch

Detect quality and efficiency regressions over time using Agent Monitor data — rising error rate (APIError events), falling cache hit rate, growing compaction frequency, and climbing cost-per-session. Splits history into an earlier baseline window and a recent window and reports which metrics are getting worse, by how…

hoangsonww/Claude-Code-Agent-Monitor · 82 tokens

hook-failure-audit

Audit hook delivery health from Agent Monitor data — balance PreToolUse vs PostToolUse (a gap means tools that started but never reported back), detect missing Stop/SubagentStop terminators (sessions/subagents that never closed), and check for stale ingestion (no recent events). Use when hooks look unreliable or…

hoangsonww/Claude-Code-Agent-Monitor · 73 tokens

event-trace

Trace the full event chain for one Claude Code session into an ordered timeline of every event type with toolname and summary, highlighting gaps, out-of-order events, and failures. Reads /api/events?sessionid= and /api/sessions/:id from the Agent Monitor dashboard. Use when debugging what a session actually did, step…

hoangsonww/Claude-Code-Agent-Monitor · 73 tokens