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/github.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/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 investigating-bugs

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00009 $0.00456
Sonnet 5.5 $0.00004 $0.00228
Haiku 4.5 $0.00002 $0.00114

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

The scan reads SKILL.md. This mod also ships 1 executable file (references/condition-based-waiting-example.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

3 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. 2mo 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 1mo ago), licensed MIT. It adds 22 tokens to every session and 1,140 once invoked, about $0.0001 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

investigating-bugs compared with skills from other repositories

investigating-bugs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
investigating-bugsslowdini/slow-powersSkill21mo agoMITA22Claude Code
swc-plugin-compatibilitylingui/skillsSkill102d agoMITA114Claude Code
fixvanducng/skillsSkill8yesterdayMITA97Claude Code
debugvanducng/skillsSkill8yesterdayMITA89Claude Code
scenariovanducng/skillsSkill8yesterdayMITA114Claude Code
triage-issuechrislacey89/skillsSkill4todayMITA77Claude Code, Codex
qachrislacey89/skillsSkill4todayMITA70Claude Code, Codex