investigation

investigation is a skill for Claude Code from metraton/gaia. It costs 21 tokens per session (1,153 once invoked), scanned A, original, MIT.

A procedure for investigating existing code, infrastructure, or system behavior before proposing changes.

In plain words
What is it for?
Use it to inspect relevant files, tests, configuration, runtime results, and project records while building documented findings.
Why use it?
It reduces guesswork by starting with the cheapest authoritative evidence and recording what was checked. This makes the diagnosis and likely impact of a change easier to review.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Part of the gaia plugin — 38 skills, 9 agents, 11 hooks shipped together

Good fit Use it to inspect relevant files, tests, configuration, runtime results, and project records while building documented findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metraton/gaia/investigation
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 metraton/gaia --skill investigation
Clone the repo
git clone --depth 1 https://github.com/metraton/gaia

Made for: Claude Code.

Or install gaia, the plugin that ships this one along with the rest of its 38 skills, 9 agents, 11 hooks.

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 investigation

README.md
[![agentmods](https://agentmods.dev/badge/skills/metraton/gaia/investigation/github.svg)](https://agentmods.dev/skills/metraton/gaia/investigation)
Your own site
<a href="https://agentmods.dev/skills/metraton/gaia/investigation"><img src="https://agentmods.dev/badge/skills/metraton/gaia/investigation/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 investigation

Your own site · 80×15
<a href="https://agentmods.dev/skills/metraton/gaia/investigation"><img src="https://agentmods.dev/badge/skills/metraton/gaia/investigation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 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.00021 $0.01153
Opus 5 $0.00010 $0.00576
Sonnet 5 $0.00004 $0.00231
Haiku 4.5 $0.00002 $0.00115

Measured 10d ago against content hash 98c617e7dbd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

investigation 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 10d 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/investigation/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Investigation

Investigate from cheapest authoritative context toward narrowly scoped live evidence. The purpose is both diagnosis and a reliable mutation forecast.

Evidence ladder

  1. Read the injected dispatch kernel -- # Your Contract (goal, role, project, the can_read menu) and # What I know about you. Do not re-derive facts it already supplies.
  2. Pull what the goal needs from the substrate on demand -- none of it is preloaded, and a coordinate in the goal (a contract id, a memory slug, a brief) is an instruction to go read it. The verbs, their addressing, and the workspace rule that decides whether they resolve are in agent-protocol/read-map.md. Do not read Gaia's database directly.
  3. Inspect the smallest relevant source files, tests, configuration, git diff, or runtime query. Prefer authoritative implementation over prose.
  4. Record each material source immediately in the contract: files_checked, patterns_checked, commands_run, key_outputs, exact excerpts in verbatim_outputs, whatever your change reaches outside the file you were sent to in cross_layer_impacts, and uncertainty in open_gaps. When the finding needs a supporting file too large for verbatim_outputs (a full command dump, a rendered report), stage it under the canonical Gaia scratch directory (~/.gaia/scratch, never the workspace/client repo), named after the current turn's contract_id (<agent_id>.<token>, bare or with one trailing extension) so Gaia's own retention rule can attribute and reclaim it once the contract closes, then deposit it as evidence through the contract's evidence clause -- see agent-contract-handoff -- rather than leaving it as a loose file.
  5. Two rules apply here, at two different levels, and they do not compete. Entering this phase at all is agent-protocol's phase-transition floor: the instant work becomes investigation, write work_phase=investigating once (or fold it into the first evidence write) -- that mark is not optional when this phase genuinely runs. WITHIN the phase, what else gets checkpointed is governed by value-at-risk, not a fixed list: write a finding the instant re-deriving it would cost more than recording it. A long synthesis that runs with no tool calls in between is the costliest case: checkpoint the gathered evidence and hypotheses before you start it (you cannot predict where it lands), then fill the conclusion the instant you reach it -- before composing the report that states it, not after. A one-file read that never reaches a costly-to-redo finding earns zero mid-turn checkpoints beyond the one phase mark; do not add ritual where nothing is at risk.

Read the full file on GitHub · 92 lines

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. 10d ago First seen · 92 lines · 21 tokens per session scan A 98c617e7dbd0

Subscribe to this mod's changes

investigation is a skill published in the GitHub repository metraton/gaia (3 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 1,153 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-31.

Related

Other skills, from other repositories