autoresearch:debug

autoresearch:debug is a skill for Claude Code from wjgoarxiv/autoresearch-skill. It costs 143 tokens per session (1,815 once invoked), scanned A, original, MIT.

A structured method for investigating software bugs by forming testable explanations and trying to disprove them. It records hypotheses, ruled-out causes, and confirmed findings in a debug folder.

In plain words
What is it for?
Use it for systematic root-cause analysis, reproduction tests, and investigations where several possible causes must be eliminated.
Why use it?
It replaces guesswork with a documented process for narrowing down the actual cause of a bug. This preserves the evidence and reasoning behind the fix.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the autoresearch plugin — 13 skills shipped together

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/wjgoarxiv/autoresearch-skill/debug
Any agent
npx skills add wjgoarxiv/autoresearch-skill --skill debug
Clone the repo
git clone --depth 1 https://github.com/wjgoarxiv/autoresearch-skill

Made for: Claude Code.

Or install autoresearch, the plugin that ships this one along with the rest of its 13 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 autoresearch:debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/wjgoarxiv/autoresearch-skill/debug.svg)](https://agentmods.dev/skills/wjgoarxiv/autoresearch-skill/debug)
Your own site
<a href="https://agentmods.dev/skills/wjgoarxiv/autoresearch-skill/debug"><img src="https://agentmods.dev/badge/skills/wjgoarxiv/autoresearch-skill/debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,815 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.00143 $0.01815
Opus 5 $0.00072 $0.00907
Sonnet 5 $0.00029 $0.00363
Haiku 4.5 $0.00014 $0.00181

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

Security

Grade A, and why

autoresearch:debug 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/debug/SKILL.md · 229 lines

How it starts

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

autoresearch:debug — Scientific Bug Investigation

Root-cause analysis using the scientific method: form falsifiable hypotheses, design tests that could disprove them, eliminate candidates, and converge on confirmed root causes. Every step is logged — nothing is assumed, nothing is skipped.

Core Principle

A hypothesis is only useful if it can be falsified. "Something is wrong" is not a hypothesis. "The cache is returning stale data because the TTL is not being reset on write" is a hypothesis — it can be tested and disproved.

Output Structure

Create debug/ in the working directory (or alongside the failing artifact):

File Purpose
debug/hypotheses.md Active candidates under investigation
debug/eliminated.md Ruled-out hypotheses with proof of elimination
debug/findings.md Confirmed root causes with reproduction case

Initialize all three files before the first iteration.


Investigation Loop

Repeat until stop condition:

[Observe] --> [Hypothesize] --> [Design Test] --> [Run Test] --> [Update] --> [Log]
     ^                                                                          |
     |__________________________________________________________________________|

Stage 1 — Observe

Collect all available evidence before forming any hypothesis:

  • Read error messages, stack traces, logs — verbatim, not paraphrased
  • Identify: What is the symptom? When does it appear? When does it NOT appear?
  • Identify: What changed recently? (git log, config changes, dependency updates)
  • Identify: Is the bug deterministic or intermittent?

Write a symptom summary at the top of debug/findings.md:

## Symptom
[Exact error message or behavior]

## Observed conditions
- Occurs: [when/where]
- Does NOT occur: [contrasting case if known]
- First observed: [commit/date/event]

Stage 2 — Hypothesize

Form at least 2 candidate hypotheses before testing any of them. More candidates = less confirmation bias.

Read the full file on GitHub · 229 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. 6d ago First seen · 229 lines · 143 tokens per session scan A 278b70a37810

Subscribe to this mod's changes

autoresearch:debug is a skill published in the GitHub repository wjgoarxiv/autoresearch-skill (32 stars, last pushed 2mo ago), licensed MIT. It adds 143 tokens to every session and 1,815 once invoked, about $0.0007 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-30.