bug-hunting

bug-hunting is a skill for Claude Code from rfxlamia/pocketto. It costs 46 tokens per session (1,848 once invoked), scanned A, original, MIT.

A debugging and code-review skill that requires evidence and a confirmed underlying cause before suggesting a fix. Debugging means finding why software behaves incorrectly.

In plain words
What is it for?
It is for fixing known bugs, investigating failed tests or production errors, and proactively checking code for hidden problems.
Why use it?
It reduces symptom-only patches that may hide the real problem or create new failures.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the pocketto plugin — 16 skills shipped together

Good fit It is for fixing known bugs, investigating failed tests or production errors, and proactively checking code for hidden problems.

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

Made for: Claude Code.

Or install pocketto, the plugin that ships this one along with the rest of its 16 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 bug-hunting

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rfxlamia/pocketto/bug-hunting"><img src="https://agentmods.dev/badge/skills/rfxlamia/pocketto/bug-hunting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,848 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.00046 $0.01848
Opus 5.5 $0.00018 $0.00739
Sonnet 5.5 $0.00009 $0.00370
Haiku 4.5 $0.00005 $0.00185

Measured 19d ago against content hash 85c76ca43e81, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bug-hunting 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 19d 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/bug-hunting/SKILL.md · 166 lines

How it starts

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

Bug Hunting

Overview

Bugs have root causes. Symptoms have patches. Patches create future bugs.

Core principle: A claim is not evidence. Evidence is not root cause. Root cause is not a fix.

Violating the letter of this process is violating the spirit of bug hunting.

Two Modes

Mode Trigger First Question
Reactive "Fix this bug", "test failing", "production error" What is the confirmed root cause?
Proactive "Review this code", "find bugs in...", "audit this" What could go wrong? Where are the weakest points?

Both modes follow the same 5 phases. Entry point differs; discipline does not.

Pocket Education guard (reactive mode). If the memory file in your context (CLAUDE.md / AGENTS.md) has no ## Pocket Education heading, ignore this paragraph. If it has one, confirm with npx -y pocketto-pi edu --json --contract 3; when data.education is true (or the command errors), ask before Phase 0: "Pocket Education is on here. Do you want to hunt this bug yourself with guidance (→ pocket-education), or should I fix it?" Make no fix until the user explicitly chooses. An explicit handover already given in pocket-education for this task counts as the answer. Proactive audits that change no code are unaffected.

The Three Iron Laws

LAW 1: NO FIX WITHOUT CONFIRMED ROOT CAUSE
LAW 2: NO CLAIM WITHOUT EVIDENCE
LAW 3: FIX THE SOURCE, NOT THE SYMPTOM

The Laws are non-negotiable. All three must hold for every bug.

If you haven't confirmed root cause → you cannot propose a fix. If you have evidence → state it explicitly. Never say "probably" or "almost certainly." If the fix is at the crash site → trace back further. The source is upstream.

The Five Phases

Complete each phase before proceeding. No skipping.

Phase 0: Reconnaissance

BEFORE touching any code or error message:

  1. What is the expected behavior? (What should it do, not what it does?)
  2. What type of bug is this?
    • Logic error, race condition, data corruption, integration failure, performance, security
  3. What components are involved?
  4. What are common bugs in this domain/language/framework?

Read the full file on GitHub · 166 lines

Files

What ships with it

5 files 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. 19d ago Changed · +2 lines 85c76ca43e81
  2. 1mo ago First seen · 164 lines · 46 tokens per session scan A 0fa9cf39bcea

Subscribe to this mod's changes

bug-hunting is a skill published in the GitHub repository rfxlamia/pocketto (6 stars, last pushed 9d ago), licensed MIT. It adds 46 tokens to every session and 1,848 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

skeptical-triage

Reusable 3-round self-challenge + arbiter pattern for filtering false positives from findings/verdicts. Use when the cost of a false-positive gate block exceeds the cost of 4 extra LLM turns.

avelikiy/great_cto · 49 tokens

anti-patterns

Catalogue of known SDLC anti-patterns that greatcto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident).

avelikiy/great_cto · 59 tokens

observability-baseline

Scaffold-time observability so a shipped product is not blind in prod from day one — error capture (Sentry), request-id structured logging, and /healthz + /readyz endpoints. stack-baseline pins Sentry but nothing wires it; this is the wiring. Loaded by app-scaffolder (bake into the scaffold), infra-provisioner (prod…

avelikiy/great_cto · 100 tokens

rubber-ducky

Use when you've planned a non-trivial change and are about to implement it, finished a complex or multi-file piece of work, just wrote tests, or are stuck on repeated failures or unexpected results — and any time the user says "rubber duck this", "rubber ducky", "get a second opinion", "sanity-check my plan", "poke…

harnessprotocol/harness-kit · 189 tokens

x-bug2rag

A knowledge-capture tool that turns reusable bug explanations into a local RAG collection, meaning a searchable store of text that an agent can retrieve later. It records the trigger, incorrect implementation, correct implementation, and observable difference.

KtKID/x-dev-pipeline · 255 tokens