investigate

investigate is a skill for Claude Code from testdouble/han. It costs 170 tokens per session (2,614 once invoked), scanned A, original, MIT.

An evidence-based software investigation workflow for finding the cause of a problem. It traces symptoms through code, data, and recent changes instead of relying on guesses.

In plain words
What is it for?
Use it to debug failures, follow an error path, examine data flow, or investigate changes that may have introduced a problem.
Why use it?
It helps explain why a bug, failed API call, broken integration, or other software issue occurs. The focus is diagnosis and solutions, not general code-quality review.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the han-coding plugin — 11 skills shipped together

Good fit Use it to debug failures, follow an error path, examine data flow, or investigate changes that may have introduced a problem.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add testdouble/han
Claude Code
/plugin install han-coding

Made for: Claude Code.

Or install han-coding, the plugin that ships this one along with the rest of its 11 skills.

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/testdouble/han/investigate/github.svg)](https://agentmods.dev/skills/testdouble/han/investigate)
Your own site
<a href="https://agentmods.dev/skills/testdouble/han/investigate"><img src="https://agentmods.dev/badge/skills/testdouble/han/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 investigate

Your own site · 80×15
<a href="https://agentmods.dev/skills/testdouble/han/investigate"><img src="https://agentmods.dev/badge/skills/testdouble/han/investigate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 170 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,614 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.00170 $0.02614
Opus 5.5 $0.00068 $0.01046
Sonnet 5.5 $0.00034 $0.00523
Haiku 4.5 $0.00017 $0.00261

Measured 2mo ago against content hash 76009c47a541, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 2mo 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.

han-coding/skills/investigate/SKILL.md · 165 lines

How it starts

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

Project Context

  • CLAUDE.md: !find . -maxdepth 1 -name "CLAUDE.md" -type f
  • project-discovery.md: !find . -maxdepth 3 -name "project-discovery.md" -type f
  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !cat .han/config.md 2>/dev/null || echo ""

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.md, which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

Investigation Approach

  • Trace backward from symptoms — don't guess, follow the code.
  • Launch parallel han-core:evidence-based-investigator agents for different angles simultaneously — one for the error path, one for the data flow, one for recent changes.
  • Add one or more specialist analysts in parallel with the investigators when the bug type calls for it (concurrency, data flow across boundaries, database or query behavior). Specialist analysts find root causes generalists miss.
  • The han-core:adversarial-validator agent handles all three validation strategies (challenge evidence, challenge fix, challenge assumptions) internally.
  • Apply the evidence rule from ../../references/evidence-rule.md to every finding. Codebase findings (file path, line number, log line, test output) carry the trust-class label "codebase" and stand on their citation. Web-source context (RFCs, vendor docs, Stack Overflow, blog posts) carries the trust-class label "web" and is subject to the corroboration gate when it drives the proposed fix. When the investigation hits a point where no evidence at any tier resolves a question, label the no-evidence state rather than guessing.
  • Lazy-create the output sections. Include a section in the plan file only when the investigation produced meaningful content for it; omit any section that would be empty, and keep the sections that remain in the template's order. Never emit a heading with placeholder or "N/A" content.
  • Invoke han-communication:readability-guidance to source the shared readability standard into your context, then apply it as you write the findings, holding the named audience: the engineer who will implement the fix and may be paged on the bug. Scope that frame per section so the technical specifics the engineer needs (function names, exact failing conditions, file:line citations) are preserved, never simplified away.

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +1 lines · +31 tokens per session 76009c47a541
  2. 3mo ago First seen · 164 lines · 139 tokens per session scan A 0404147851f8

Subscribe to this mod's changes

investigate is a skill published in the GitHub repository testdouble/han (362 stars, last pushed 18d ago), licensed MIT. It adds 170 tokens to every session and 2,614 once invoked, about $0.0007 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-08-30.

Related

investigate compared with skills from other repositories

investigate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
investigatetestdouble/hanSkill36218d agoMITA170Claude Code
auditoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA35Claude Code
deadeye-sweepdeepaksinghcs14/deadeye-ccSkill61mo agoMITA71Claude Code
loud-errorsmikestangdevs/craft-skillsSkill420d agoMITA76Claude Code
delete-thismikestangdevs/craft-skillsSkill420d agoMITA68Claude Code
fix-it-nowmikestangdevs/craft-skillsSkill420d agoMITA76Claude Code
lsp-investigatekarellen/karellen-lsp-mcpSkill31mo agoApache-2.0A45Claude Code