scientific-debugging

scientific-debugging is a skill for Claude Code, Codex from Arlenjim/claude-code-for-non-coders. It costs 42 tokens per session (1,390 once invoked), scanned A, original, MIT.

A method for finding software bugs by stating the expected and observed behavior, reproducing the problem, narrowing its cause, and proving the diagnosis before fixing it.

In plain words
What is it for?
Use it to investigate unexpected behavior in any programming language or project. It helps create minimal reproductions, isolate likely causes, and verify fixes.
Why use it?
It prevents guesses and temporary fixes that hide the real problem. It gives you evidence for why a change actually resolves the bug.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate unexpected behavior in any programming language or project. It helps create minimal reproductions, isolate likely causes, and verify fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arlenjim/claude-code-for-non-coders/scientific-debugging
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 Arlenjim/claude-code-for-non-coders --skill scientific-debugging
Clone the repo
git clone --depth 1 https://github.com/Arlenjim/claude-code-for-non-coders

Made for: Claude Code, Codex.

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 scientific-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/arlenjim/claude-code-for-non-coders/scientific-debugging/github.svg)](https://agentmods.dev/skills/arlenjim/claude-code-for-non-coders/scientific-debugging)
Your own site
<a href="https://agentmods.dev/skills/arlenjim/claude-code-for-non-coders/scientific-debugging"><img src="https://agentmods.dev/badge/skills/arlenjim/claude-code-for-non-coders/scientific-debugging/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 scientific-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/arlenjim/claude-code-for-non-coders/scientific-debugging"><img src="https://agentmods.dev/badge/skills/arlenjim/claude-code-for-non-coders/scientific-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,390 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.00042 $0.01390
Opus 5.5 $0.00017 $0.00556
Sonnet 5.5 $0.00008 $0.00278
Haiku 4.5 $0.00004 $0.00139

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

Security

Grade A, and why

scientific-debugging 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.

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/scientific-debugging/SKILL.md · 63 lines

How it starts

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

Scientific debugging

A bug is a gap between what you observe and what you expected. Debugging it means explaining that gap with a proven cause — not making it disappear. A symptom that vanishes without explanation is not a fixed bug, it's a hidden bug.

1. Before searching: pin down the facts

Write the gap in one factual sentence. "When I do X, I observe Y; I expected Z." If you can't fill in all three slots, you don't have a bug yet — you have an impression. Go get the three first.

Reproduce before explaining. Until you have triggered the bug yourself, you're working on a story, not a fact. A bug you can't reproduce can't be fixed — it gets trapped (logs, instrumentation) until it becomes reproducible.

Shrink the reproduction to the minimum. Remove everything that can be removed while the bug persists: data, steps, options, dependencies. Every element removed without making the bug disappear is exonerated; every element whose removal makes the bug disappear is a suspect. The minimal reproduction IS already half the diagnosis.

Read the error message literally. Word for word, including the file name, the line number, the error code, and the first error in the stack — not the last one, which is often just a consequence. The classic trap: reading what you expect the error to say instead of what it says. If a term in the message is unknown to you, look it up before forming any hypothesis.

Establish "since when". Did it ever work? If so, what changed between when it worked and now — code, dependency, environment, data, configuration? A regression is searched for in the delta, not in the whole system.

2. Searching: hypotheses and bisection

Form hypotheses BEFORE touching the code. Two or three plausible causes, each written with its testable prediction: "if it's A, then by doing T I should observe O". A hypothesis without a prediction is not a hypothesis, it's an intuition — unusable.

Test the cheapest hypothesis first, not the most seductive one. A hypothesis eliminated in 30 seconds beats a brilliant hypothesis that needs an hour of setup.

Read the full file on GitHub · 63 lines

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 · 63 lines · 42 tokens per session scan A d811caf39495

Subscribe to this mod's changes

scientific-debugging is a skill published in the GitHub repository Arlenjim/claude-code-for-non-coders (10 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 1,390 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

pdd-bug

PDD bug workflow. Use when fixing PDD bugs, errors or wrong results. Reproduce, fix prompt and tests (PR 1), then code (PR 2) if asked.

promptdriven/pdd · 44 tokens

cdd-report

Analyzes the current CDD session for bugs and enhancement opportunities and files a single aggregate GitHub issue against Oscaner/skills via gh CLI. Open dedup matches become links in the issue body (never comments); closed matches are flagged as regression follow-ups, never reopened. Findings never auto-include…

Oscaner/skills · 95 tokens

diagnose-skill-run

Diagnose a failed or suspicious Runx skill execution from receipts and harness evidence, then propose the smallest bounded improvement without replaying the failed operation.

runxhq/runx · 35 tokens

codigo-automacao

Skills para desenvolvimento de software, debug, APIs, automações no-code e uso avançado de ferramentas de IA para desenvolvimento. Use quando precisar de diagnóstico de bugs, construção de APIs, containerização, testes automatizados, integrações ou engenharia de prompts.

ricneves-ai/flowgrammers-skills · 56 tokens

postmortem-draft

Turn resolved-incident fragments into a traceable postmortem that separates fragment-cited facts from hypotheses, blocks publication while unknowns remain, and keeps the comms send behind a human gate.

runxhq/runx · 45 tokens

superpowers-zh

Use when constraining AI coding with Chinese TDD methodology, systematic debugging, code review, and verification workflows. Superpowers-zh: Chinese adaptation of the Superpowers AI-assisted programming skills and methodologies.

znlgis/opengis-skills · 45 tokens