debug-sop

debug-sop is a skill for Claude Code from whenpoem/aiscientist. It costs 68 tokens per session (946 once invoked), scanned A, original, MIT.

A structured method for investigating software failures such as errors, failed tests, crashes, hangs, regressions, or unexpected results. It records the symptom, reproduction steps, evidence, likely cause, and verification details.

In plain words
What is it for?
Use it to reproduce and diagnose bugs, compare possible causes, inspect relevant changes and logs, and produce a compact incident report.
Why use it?
It helps separate what went wrong from guesses about why, reducing the risk of applying an untested fix. It also preserves useful history so earlier solutions can be checked against the current problem.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to reproduce and diagnose bugs, compare possible causes, inspect relevant changes and logs, and produce a compact incident report.

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

Made for: Claude Code.

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 debug-sop

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/whenpoem/aiscientist/debug-sop"><img src="https://agentmods.dev/badge/skills/whenpoem/aiscientist/debug-sop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 946 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.00068 $0.00946
Opus 5.5 $0.00027 $0.00378
Sonnet 5.5 $0.00014 $0.00189
Haiku 4.5 $0.00007 $0.00095

Measured 1mo ago against content hash 31945a1727cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-sop 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 1mo 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.

.claude/skills/debug-sop/SKILL.md · 108 lines

How it starts

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

Debug SOP

Inputs and output

Capture the exact symptom, expected behavior, reproduction command, relevant inputs, environment, first known bad state, and whether fixing is authorized. Return a compact incident report with reproduction, root cause or surviving hypotheses, evidence, changed files if any, verification commands, and the failure-ledger id.

1. Recover history before guessing

  1. Call mcp__memory__match_signatures with the exact error plus the operation that triggered it. Read matching resolutions, but verify they still apply.
  2. Inspect recent relevant changes, logs, configuration, and run manifests.
  3. Distinguish the visible symptom from a proposed cause. Do not edit merely because a familiar exception suggests an easy fix.

2. Reproduce and bound the failure

  1. Run the smallest safe command that should reproduce the symptom.
  2. Record whether it is deterministic, intermittent, machine-specific, data-specific, or dependent on ordering/timing.
  3. If reproduction would be destructive, costly, or use reserved data, stop and request the needed authority or choose a non-mutating probe.
  4. If the failure cannot be reproduced, compare environment, command, inputs, Git state, and dependency locks before declaring it gone.

3. Build and eliminate hypotheses

List plausible causes and, for each, the cheapest observation that would distinguish it. Prefer direct evidence in this order:

  1. exact traceback, exit code, or incorrect output;
  2. minimal reproduction;
  3. focused logging or state inspection;
  4. controlled input/config variation;
  5. history or non-destructive bisection.

Change one explanatory variable at a time. Do not use destructive Git reset or discard unrelated user work during bisection.

4. Isolate the root cause

Reduce the case until removing one condition removes the failure. For data or statistical failures, also check leakage, seed sensitivity, stale code/config, and baseline-budget mismatch. For integration failures, verify each boundary separately: executable discovery, configuration loading, process startup, protocol exchange, shared workspace/state path, then UI behavior.

Read the full file on GitHub · 108 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. 1mo ago First seen · 108 lines · 68 tokens per session scan A 31945a1727cd

Subscribe to this mod's changes

debug-sop is a skill published in the GitHub repository whenpoem/aiscientist (10 stars, last pushed 15d ago), licensed MIT. It adds 68 tokens to every session and 946 once invoked, about $0.0003 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.