hunt

hunt is a skill for Claude Code from 7xmohamed/Kata. It costs 30 tokens per session (1,892 once invoked), scanned A, original, MIT.

A debugging workflow that requires finding and stating the specific root cause of an error, crash, unexpected result, or failing test before changing code.

In plain words
What is it for?
Investigating failures, tracing execution paths, checking environment differences, and deciding when there is enough evidence to apply a fix.
Why use it?
It reduces trial-and-error fixes that hide the real problem or create new bugs. Each proposed cause must be tied to evidence from a file, function, line, or condition.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

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.

agentmods
npx agentmods add skills/7xmohamed/kata/hunt
Any agent
npx skills add 7xmohamed/Kata --skill hunt
Clone the repo
git clone --depth 1 https://github.com/7xmohamed/Kata

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin hunt/plugin install hunt after adding the marketplace above.

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 hunt

README.md
[![agentmods](https://agentmods.dev/badge/skills/7xmohamed/kata/hunt.svg)](https://agentmods.dev/skills/7xmohamed/kata/hunt)
Your own site
<a href="https://agentmods.dev/skills/7xmohamed/kata/hunt"><img src="https://agentmods.dev/badge/skills/7xmohamed/kata/hunt.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00030 $0.01892
Opus 5 $0.00015 $0.00946
Sonnet 5 $0.00006 $0.00378
Haiku 4.5 $0.00003 $0.00189

Measured 6d ago against content hash 1b3ccc33c806, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

hunt 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 6d 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/hunt/SKILL.md · 145 lines

How it starts

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

Hunt: Diagnose Before You Fix

Prefix your first line with ⚔️ inline, not as its own paragraph.

A patch applied to a symptom creates a new bug somewhere else.

Do not touch code until you can state the root cause in one sentence:

"I believe the root cause is [X] because [evidence]."

Name a specific file, function, line, or condition. "A state management issue" is not testable. "Stale cache in useUser at src/hooks/user.ts:42 because the dependency array is missing userId" is testable. If you cannot be that specific, you do not have a hypothesis yet.

Rationalization Watch

When these surface, stop and re-examine:

What you're thinking What it actually means Rule
"I'll just try this one thing" No hypothesis, random-walking Stop. Write the hypothesis first.
"I'm confident it's X" Confidence is not evidence Run an instrument that proves it.
"Probably the same issue as before" Treating a new symptom as a known pattern Re-read the execution path from scratch.
"It works on my machine" Environment difference IS the bug Enumerate every env difference before dismissing.
"One more restart should fix it" Avoiding the error message Read the last error verbatim. Never restart more than twice without new evidence.

Progress Signals

When these appear, the diagnosis is moving in the right direction:

What you're thinking What it means Next step
"This log line matches the hypothesis" Positive evidence found Find one more independent piece of evidence to cross-validate
"I can predict what the next error will be" Mental model is forming Run the prediction; if it matches, the model is correct
"Root cause is in A but symptoms appear in B" Propagation path understood Trace the call chain from A to B and confirm each link
"I can write a test that would fail on the old code" Hypothesis is specific and testable Write the test before applying the fix

Do not claim progress without observable evidence matching at least one of these signals.

Read the full file on GitHub · 145 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. 6d ago First seen · 145 lines · 30 tokens per session scan A 1b3ccc33c806

Subscribe to this mod's changes

hunt is a skill published in the GitHub repository 7xmohamed/Kata (2 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 1,892 once invoked, about $0.0002 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

troubleshooting-investigator

Structured troubleshooting and bug investigation workflow for something failing NOW. Use when debugging failing tests, production issues, regressions, flaky behavior, errors, logs, broken builds, performance problems, or unclear symptoms. For tracing why a past failure really happened use root-cause; for understanding…

CassioRoos/godfly-skills · 77 tokens

adversarial-reviewer

Adversarial code review that assumes bugs exist and hunts for them. Use when asked to review code, find bugs, audit for correctness, stress-test a PR, or when someone says "tear this apart" or "what's wrong with this". Give no benefit of the doubt — every line is guilty until proven innocent.

emdash-cms/emdash · 71 tokens

check

Reviews code diffs, PRs, issue queues, release readiness, commits, pushes, publishing, and project audits. Use when users ask in any language for code review, issue or PR triage, release gates, publishing follow-through, or project audits. Not for debugging root causes or prose review.

tw93/Waza · 63 tokens

health

Runs a budget-aware agent-assisted engineering health audit for instruction/config drift, hooks/MCP, verifier surfaces, and AI maintainability. Use when users ask in any language to audit Claude, Codex, Pi, agent instructions, MCP or hooks, verifier coverage, or AI-maintainability drift. Not for debugging application…

tw93/Waza · 71 tokens

hunt

Finds root cause before applying fixes for errors, crashes, regressions, failing tests, broken behavior, and screenshot-reported defects. Use when users report in any language errors, crashes, broken behavior, regressions, failing tests, screenshot evidence, or something that used to work and now fails. Not for code…

tw93/Waza · 70 tokens

cli-command

Design, implement, or review Composio CLI commands under ts/packages/cli using Effect, @effect/cli, services, output conventions, configuration and environment variables, and local vendor references. Use for CLI command UX, command wiring, service changes, or CLI source edits. Do not use for CLI E2E-only work; use…

ComposioHQ/composio · 77 tokens