Skip to content
Development
Skill

/investigation

Use when starting an investigation, analyzing existing code or infrastructure, or building findings before proposing changes

From plugin
gaia
443 skills9 agents12 hooks

Claude Code

$ npx -y skills add metraton/gaia --skill investigation --agent claude-code

SKILL.md

investigation.SKILL.md
name: investigation
description: Use when starting an investigation, analyzing existing code or infrastructure, or building findings before proposing changes

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` and its declared `workflow`, the `can_read` menu), `# Scope memory`, and `# Project context`: the dispatch project's `can_read` sections, whole when they fit, else one `gaia context get-contract` pointer per section, else a single count line. Do not re-derive facts it already supplies. This is the first move, before any live query: when the goal names a component the block does not carry whole (a cluster, a namespace, a service, another project), fetch its section with `gaia context get-contract --project <p> --section <s>` before investigating live. No block at all means the `project` in `# Your Contract` resolved to no project, the turn has no `can_read` section, none of them is stored, or the read failed; record that in `open_gaps` instead of working as if the context were empty. 2. Pull the rest of what the goal needs from the substrate on demand -- memory, briefs and other contracts are not 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. A fact a coordinate already holds is reused, cited in `key_outputs` by the handoff id it came from; measure again only what the coordinates leave uncovered, or a fact whose source changed after the commit or date it was measured at. A re-measured fact that disagrees with its coordinate is a finding for `open_gaps`, naming both. 3. Inspect the smallest relevant source files, tests, configuration, git diff, or runtime query. Prefer authoritative implementation over prose. Never search from the home directory (`~`) or from `/`: a search rooted there walks every workspace, cache and package store. Locate a binary or package with `gaia paths`, `which`, or its known path, and start a search at the smallest directory that can hold the answer. 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. What gets checkpointed is governed by value-at-risk, not a fixed list; the orchestrator reads your progress from the evidence lists you have written (`agent-protocol` principle 6), so there is no phase mark to set: 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; do not add ritual where nothing is at risk.

Forecast mutations after read-only work

Once the cause and desired outcome are known, enumerate the exact mutations the accepted plan predictably requires. Classify every command through `security-tiers` before execution. A command you hand the user to run is a mutation you authored and owes the same forecast -- whose object it acts on, what it does, its impact, how it is undone and checked; left unforecast, the user becomes an execution lane no gate reaches, and the irreversibility the forecast would have named reaches them unannounced.

Request every predictable T3 command before attempting it, the instant it is known, rather than waiting for the policy gate to block it. Only a command `security-tiers` classifies T3 belongs in a request: pushing a named feature branch, opening a PR and editing one without `--base` run free, so run them instead of requesting them. The forecast is what the request is built from -- what each command does, its impact, how it is undone and checked: `subagent-request-approval` says which phrases to write and how to group the commands into the fewest signatures, leaving for a later request anything whose exact form depends on a result not yet seen. Do not group speculative clean-up, alternatives, or unrelated repositories or services. A command already blocked is requested through the line its denial carries; never retrofit it into a different spelling. Consent grouping reduces repeated consent; it does not make execution atomic.

Evidence quality

A finding names the source and observation. A failed command records its exact text, exit status, stdout/stderr, and what remains unknown. An exit code alone does not establish desired state; verification must query or inspect the result. Keep assumptions visibly separate from confirmed facts.

Deeper, not bigger

Depth stays inside the goal: each move is a read, a check, or an offer.

  • Restate the acceptanc
Read more
@metraton
Ships withgaia

Generative AI Interface for Agents. Specialist agents for Claude Code and OpenCode, with a memory that outlives the session and a consent gate on everything that changes state.

443 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4
Star history of metraton/gaia on GitHub, a chart by star-history.com

Other skills on gaia.

agent-creation

agent-creation

Use when creating a new specialist agent for Gaia, or reviewing whether an existing agent follows the correct structure, tone,…

@metraton@metratonInstall Skill
agent-response

agent-response

Use when the orchestrator must read, reconcile, route, and present an agent_contract_handoff

@metraton@metratonInstall Skill
blog-writing

blog-writing

Use when writing, drafting, or publishing a blog article for metraton.github.io -- "escribe un post para el blog", "publica un…

@metraton@metratonInstall Skill
brief-spec

brief-spec

Use when the user wants to capture a feature as a brief or spec before planning it -- "arma un brief para esto", "necesito un…

@metraton@metratonInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about investigation.

Which coding agents can use investigation?
investigation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.