investigating-bugs

investigating-bugs is a skill for Claude Code from slowdini/slow-powers. It costs 22 tokens per session (1,140 once invoked), scanned A, original, MIT.

A skill for investigating bugs, failed tests, build errors, and unexpected behavior.

In plain words
What is it for?
Reading error details, reproducing failures, investigating flaky tests, and capturing bugs with a failing test before fixing them.
Why use it?
It requires finding and reproducing the root cause before code is changed, instead of guessing at fixes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the slow-powers plugin — 9 skills, 2 hooks shipped together

Good fit Reading error details, reproducing failures, investigating flaky tests, and capturing bugs with a failing test before fixing them.

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

Made for: Claude Code.

Or install slow-powers, the plugin that ships this one along with the rest of its 9 skills, 2 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 investigating-bugs

README.md
[![agentmods](https://agentmods.dev/badge/skills/slowdini/slow-powers/investigating-bugs.svg)](https://agentmods.dev/skills/slowdini/slow-powers/investigating-bugs)
Your own site
<a href="https://agentmods.dev/skills/slowdini/slow-powers/investigating-bugs"><img src="https://agentmods.dev/badge/skills/slowdini/slow-powers/investigating-bugs.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 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.00022 $0.01140
Opus 5 $0.00011 $0.00570
Sonnet 5 $0.00004 $0.00228
Haiku 4.5 $0.00002 $0.00114

Measured 8d ago against content hash 12f4854830ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

investigating-bugs 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 8d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (evals/fixtures/chunk-pagination/chunk.ts, evals/fixtures/chunk-pagination/formatBytes.fixture.ts, evals/fixtures/chunk-pagination/formatBytes.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/investigating-bugs/SKILL.md · 88 lines

How it starts

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

Investigating bugs

Avoid "guess-and-check" coding. Always identify the root cause before making changes.

THE IRON LAW: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

Violating the letter of the rules is violating the spirit of the rules.

REQUIRED PREREQUISITE: You must have already completed slow-powers:working-in-isolation — debug from an isolated workspace.

REQUIRED BACKGROUND: You must understand slow-powers:working-with-tdd — Phase 4 captures the bug with a failing test before fixing it.


Phase 1: root cause investigation

Complete these steps before changing any code:

  1. Read error messages and stack traces: Read every line of the error. Note the exact file, line number, and error codes.
  2. Reproduce consistently: Identify the exact steps, inputs, or environment needed to trigger the bug. If it cannot be reproduced, gather more logs instead of guessing.
    • For flaky tests (pass sometimes, fail under load or only in CI), find the non-determinism before changing anything — don't rerun until it goes green. Arbitrary sleep/timeout delays are one common cause (wait on the actual condition, not a guessed duration — see condition-based waiting); a dependency called a non-deterministic number of times or in a non-deterministic order is another. Read diagnosing flaky tests for the general diagnostic method and cause catalog.
  3. Check recent changes: Run git diff. Analyze recent commits, dependency additions, or configuration changes.
  4. Gather evidence in multi-component systems:
    • Log inputs and outputs at every component boundary.
    • Instrument the layers step by step (for example, workflow → build script → runtime → database) to pinpoint exactly where the state breaks.
  5. Trace data flow: Trace variables backward from the failure point to their source. Fix the bug at the source, not the symptom.
    • When manual tracing dead-ends, instrument the suspect operation: log the key inputs, relevant environment, and a captured stack trace (new Error().stack) just before it runs. In tests, write to stderr — a logger may be suppressed. Read the captured stack to find the original caller, then remove the instrumentation.

Read the full file on GitHub · 88 lines

Files

What ships with it

60 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. 8d ago First seen · 88 lines · 22 tokens per session scan A 12f4854830ce

Subscribe to this mod's changes

investigating-bugs is a skill published in the GitHub repository slowdini/slow-powers (2 stars, last pushed 24d ago), licensed MIT. It adds 22 tokens to every session and 1,140 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

oracle-debug

Disciplined debugging methodology. Triggers on bug reports, test failures, "debug this", "diagnose this", unexpected behavior, build failures, integration issues, or performance regressions. Find root cause before a permanent corrective fix; contain urgent harm safely first.

martinffx/atelier · 56 tokens

swc-plugin-compatibility

Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Vite, Rspack, or other SWC runtimes. Use when seeing errors like "failed to invoke plugin", "failed to run Wasm plugin transform", "out of bounds memory access", or "LayoutError" during builds with @lingui/swc-plugin — or when macros are silently…

lingui/skills · 97 tokens

fix

Fix issues end-to-end across data pipelines (Airflow/dbt), app stack (backend/frontend), and infra (CI/CD, Terraform, K8s). Scout → diagnose → apply at root cause → verify with fresh evidence → add regression guard. Use for failing DAGs, dbt test failures, 5xx, UI regressions, GH Actions failures, terraform drift…

vanducng/skills · 97 tokens

debug

Debug systematically across software, data pipelines, infrastructure, and analytics. Find root cause and produce verified evidence - for bugs, test failures, CI/CD breakage, K8s/Cloud incidents, dbt/Airflow pipeline failures, schema drift, freshness violations, dashboard wrong-numbers, and performance issues.…

vanducng/skills · 89 tokens

scenario

Generate comprehensive edge cases and test scenarios by decomposing a feature or file across 12 risk dimensions, or blast-radius review a change with --diff: what breaks beyond the diff, proven by running real code. Use for pre-implementation risk discovery, QA planning, regression design, exhaustive edge-case…

vanducng/skills · 114 tokens

triage-issue

Invoked helper skill for deep bug diagnosis, usually delegated from /qa when a reported issue needs root-cause analysis and a TDD fix plan before implementation. Use when the cause is unclear, the bug is a regression, or the user explicitly wants diagnosis. Not for lightweight QA intake (use /qa) or already-clear…

chrislacey89/skills · 77 tokens