scientific-debugging

scientific-debugging is a skill for Claude Code, Codex from VidyFoo/antigravity-skill-engine. It costs 36 tokens per session (615 once invoked), scanned A, original, MIT.

A method for debugging software by observing the problem, forming possible explanations, running small experiments, and then fixing and checking the result.

In plain words
What is it for?
Use it for unresponsive interfaces, state mismatches, styling problems, and network errors. It covers reproduction, hypothesis testing, minimal fixes, and regression checks.
Why use it?
It reduces guesswork when diagnosing bugs. Reproducing the issue and gathering visual or log evidence helps identify the underlying cause before changing code.

Skill for Claude CodeCodex

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

Good fit Use it for unresponsive interfaces, state mismatches, styling problems, and network errors. It covers reproduction, hypothesis testing, minimal fixes, and regression checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vidyfoo/antigravity-skill-engine/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 VidyFoo/antigravity-skill-engine --skill scientific-debugging
Clone the repo
git clone --depth 1 https://github.com/VidyFoo/antigravity-skill-engine

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/vidyfoo/antigravity-skill-engine/scientific-debugging/github.svg)](https://agentmods.dev/skills/vidyfoo/antigravity-skill-engine/scientific-debugging)
Your own site
<a href="https://agentmods.dev/skills/vidyfoo/antigravity-skill-engine/scientific-debugging"><img src="https://agentmods.dev/badge/skills/vidyfoo/antigravity-skill-engine/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/vidyfoo/antigravity-skill-engine/scientific-debugging"><img src="https://agentmods.dev/badge/skills/vidyfoo/antigravity-skill-engine/scientific-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 615 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.00036 $0.00615
Opus 5.5 $0.00014 $0.00246
Sonnet 5.5 $0.00007 $0.00123
Haiku 4.5 $0.00004 $0.00061

Measured 1mo ago against content hash 7b8d9c336754, 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 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.

.agent/skills/2-audit/scientific-debugging/SKILL.md · 62 lines

What it actually says

Scientific Debugger Skill (v2.0)

Role: 拒绝"猜测驱动开发"。像科学家一样思考,用实验数据定位根因。


核心协议 (The Protocol)

1. 观察 (Observe)

  • 收集现场: 用户报告了什么?错误堆栈是什么?
  • 环境确认: 本地服务器是否运行?
  • 现象复现: 必须 使用 browser_subagent 复现问题 (Visual Proof)。

2. 假设 (Hypothesize)

基于观察,提出 1-3 个可能的根因假设:

  • H1: DOM 事件未冒泡 (Event)
  • H2: 状态更新被闭包捕获 (State)
  • H3: 样式层叠导致的遮挡 (CSS)

3. 实验 (Experiment)

设计最小化实验验证假设:

  • Console Log: 在关键路径打点。
  • Browser Interaction: 模拟用户行为序列。
  • Code Inspection: 检查 view_code_item.

4. 修复与验证 (Fix & Verify)

  • 最小化修复: 只改根因,不附带重构。
  • 回归测试: 再次运行 browser_subagent 确认修复且无副作用。

调试策略库

问题类型 推荐工具 重点检查
UI 无响应/交互失效 browser_subagent pointer-events, z-index, onClick vs onFocus
状态不同步 console.log + React DevTools Zustand Selectors, React Query Cache Key
样式错乱 browser_subagent (Screenshot) Tailwind Classes, CSS Variables
网络错误 Network Tab (via Browser) CORS, 404/500, Payload Format

资源索引

资源文件 用途
browser-test-guide.md 浏览器测试通过指南
root-cause-patterns.md 常见根因模式库

强制要求

  1. No Blind Fixes: 禁止在未复现问题前修改代码。
  2. Visual Evidence: 对于 UI Bug,必须看截图证明。
  3. Logs are Cheap: 大胆加日志,但修好后记得删。
Files

What ships with it

2 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. 1mo ago First seen · 62 lines · 36 tokens per session scan A 7b8d9c336754

Subscribe to this mod's changes

scientific-debugging is a skill published in the GitHub repository VidyFoo/antigravity-skill-engine (12 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 615 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-30.

Related

Other skills, from other repositories

investigating-builds

Use when the user is working with an existing Buildkite CI run and wants to understand, diagnose, or act on it. Strong signals: a buildkite.com URL, the word "buildkite", the bk CLI, the bktide tool, or a reference to a specific pipeline, build, or job. Covers intents like: "why did this build fail", "what's flaking"…

technicalpickles/pickled-claude-plugins · 0 tokens

mm-doctor

A diagnostic workflow for checking the health of the mm system, including its configuration, project links, note vault, passports, session archive, and planning consistency.

mworldorg/markdown-memory · 126 tokens

absolute-deflake

Flaky test fixes: detect nondeterministic tests empirically (repeat/shuffle/parallel runs), diagnose the root cause, fix it — never retry/skip/sleep — and verify across many randomized runs. Triggers on "absolute deflake", "fix flaky tests", "CI is flaky", "this test fails randomly/intermittently".

maddhruv/absolute · 73 tokens

absolute-debt

Lint and typecheck debt paydown: clear pre-existing repo-wide lint/type violations and suppressions (@ts-ignore, # type: ignore) one rule per wave, fixing causes not symptoms. Runs on green main. For diff-scoped quality use absolute-simplify. Triggers on "absolute debt", "fix our lint warnings", "clear the type…

maddhruv/absolute · 89 tokens

absolute-prune

Dead code and dependency cleanup, repo-wide: unused deps, unreferenced exports, unreachable code, orphaned files — removed only with tool evidence, in reversible waves. Runs on green main. For diff-scoped cleanup use absolute-simplify. Triggers on "absolute prune", "remove dead code", "find unused deps/exports", "what…

maddhruv/absolute · 86 tokens

gurobi-advanced-features

When the user wants to use Gurobi beyond plain model building — callbacks for lazy constraints, user cuts, heuristic solution injection, and early termination; IIS computation for diagnosing an infeasible model; the solution pool; the multi-objective API; the matrix API (addMVar/addMConstr); MIP starts; and parameter…

hajibabaie/combinatorial-optimization-skills · 154 tokens