investigate

investigate is a skill for Claude Code, Codex from firatcand/forge. It costs 24 tokens per session (186 once invoked), scanned A, original, MIT.

An investigation procedure required before fixing a bug. It reproduces the problem, traces the data flow, tests possible causes, and documents the confirmed root cause.

In plain words
What is it for?
Use it to create a minimal reproduction, test hypotheses, identify affected code paths, and write the investigation report needed before a fix.
Why use it?
It helps ensure a fix addresses the actual cause rather than only hiding the visible symptom.

Skill for Claude CodeCodex

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

Good fit Use it to create a minimal reproduction, test hypotheses, identify affected code paths, and write the investigation report needed before a fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firatcand/forge/investigate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add firatcand/forge --skill investigate
Clone the repo
git clone --depth 1 https://github.com/firatcand/forge

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 investigate

README.md
[![agentmods](https://agentmods.dev/badge/skills/firatcand/forge/investigate.svg)](https://agentmods.dev/skills/firatcand/forge/investigate)
Your own site
<a href="https://agentmods.dev/skills/firatcand/forge/investigate"><img src="https://agentmods.dev/badge/skills/firatcand/forge/investigate.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 186 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.00024 $0.00186
Opus 5 $0.00012 $0.00093
Sonnet 5 $0.00005 $0.00037
Haiku 4.5 $0.00002 $0.00019

Measured 7d ago against content hash 837772ead0cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 7d ago.

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.

skills/investigate/SKILL.md · 27 lines

What it actually says

/investigate

Process

  1. Reproduce the bug — write the minimal repro steps
  2. Identify the data flow involved
  3. Form hypothesis: "I think the bug is caused by X because Y"
  4. Test the hypothesis — instrument code, check logs, run debugger
  5. Either confirm or rule out; if ruled out, form next hypothesis
  6. Document the root cause: "Root cause: X. Evidence: Y. Affected paths: Z"

Output

Write plans/tasks/{LINEAR-ID}.investigation.md with:

  • Repro steps
  • Hypotheses tested
  • Root cause identified
  • Proposed fix approach (high-level)

This file is required by /fix.

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. 7d ago First seen · 27 lines · 24 tokens per session scan A 837772ead0cb

Subscribe to this mod's changes

investigate is a skill published in the GitHub repository firatcand/forge (13 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 186 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

srgn-cli

Build safe, syntax-aware srgn CLI commands for source-code search and transformation. Use for srgn commands, scoped refactors (comments/docstrings/imports/functions), multi-file rewrites with --glob, tree-sitter queries, or CI checks with --fail-any/--fail-none.

OutlineDriven/odin-codex-plugin · 62 tokens

fix

Polymorphic iterative repair loop — accept a verifier failure, structured findings (review/resolve/triage-issue), or a bug description; modify→verify→keep on green, auto-revert on guard regression, until clean or iteration cap. Use when the user says "fix", "make it pass", or "apply the findings", or hands an artifact…

OutlineDriven/odin-codex-plugin · 108 tokens

qa

Conversational QA mode — user reports bugs in plain language, agent clarifies minimally, files GitHub issues that survive refactors. Trigger on "QA", "QA session", or ad-hoc bug reporting without a fixed deliverable shape. Distinct from branch-scoped and PR-scoped review.

OutlineDriven/odin-codex-plugin · 62 tokens

ast-grep

Code search, analysis, and refactoring using ast-grep (sg). Use for AST-based code modifications, structural search, and linting.

OutlineDriven/odin-codex-plugin · 33 tokens

debug

Hypothesis-driven defect isolation — stack-trace forensics, breakpoint strategy, state inspection, and root-cause confirmation via minimal repro. Use when a defect surfaces (test failure, crash, exception, wrong output, intermittent flake) and the cause is not immediately obvious from the change set.

OutlineDriven/odin-codex-plugin · 61 tokens

perf-profile

Hotspot detection and performance root-cause analysis: flamegraph interpretation, allocation tracking, latency profiling, regression measurement. Use when a workload misses its latency, throughput, or memory budget; when a benchmark regresses; or before optimizing any hot path (no optimization without a profile).

OutlineDriven/odin-codex-plugin · 0 tokens