agentleFS
zhaoxinghua09-cellzhaoxinghua09-cell/debug-pro/SKILL.md

debug-pro

Skill0 starsChanged 13 days agoMITView on GitHub

Language-agnostic 7-step debugging protocol (reproduce -> locate the layer -> minimize -> hypothesize -> verify -> fix -> regress) with a zero-dependency offline toolchain that turns 'I reproduced it' into checkable evidence: triage extracts exception type, last stack frame, exit code, HTTP status and timestamps from raw logs; envsnap builds a paste-ready environment block with every KEY / TOKEN / SECRET / PASS / CRED / AUTH / COOKIE value redacted; reprocheck grades the five minimum elements of a reproduction report and names the missing ones. · Ships a 10-case golden set with a re-executable runner, a layered symptom lookup, a 5-item pre-delivery self-check and degradation rules. · Faithful by design: no unobserved cause is invented, any claim lacking reproducible evidence is marked unconfirmed.

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. GPTtang/skill-atlas★ 4same name
    2. xiejunrico-dev/openclaw-top100-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Iron law: no cause without reproducible evidence.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

debug-pro

Iron law: no cause without reproducible evidence. Any verdict that cannot be found verbatim in the log is reported as unconfirmed, never asserted.

Use when: stack trace, exit code, HTTP status, flaky test, cannot-reproduce, environment mismatch, dependency conflict, regression hunt.

Slim body by design. Reproduction proof: python demo/prove_evidence.py (exit code 0 = pass). Full procedures live in references/details.md.

1 用法:只决定一件事——故障在哪一层

先分层再假设:输入 → 环境 → 依赖 → 逻辑。层没定位,不许给修复方案。


python tools/debughunt.py triage --file 故障日志.txt --out ./out --json

python tools/debughunt.py envsnap --out ./out --json

python tools/debughunt.py reprocheck --file 复现步骤.md --json

python tests/run_golden.py

2 纪律:不可妥协(逐条满足,缺一即返工)

  • MUST 每条结论附证据:日志行号、报错原文或命令输出,无证据不下结论。
  • MUST 先给最小可复现步骤,再给猜测;顺序不许颠倒。
  • MUST 环境快照外发前先脱敏(密钥、内网地址、用户名)。
  • MUST 不确定处写「待验证」,并写清需要哪个动作来验证。
  • MUST 交付时给出「用户可自查的一条命令」,让结论可被独立复核。
  • NEVER 没看到日志/报错就给根因。
  • NEVER 建议直接在生产环境试错;先影子环境或只读复现。
  • NEVER 把「重启试试」「升级试试」当成修复方案交付。
  • NEVER 在输出里保留凭据、token、内网 IP。

示例(输入残片 → 输出,层级与证据都要落地):


输入:ImportError: cannot import name 'x' from 'y'(第 12 行)

输出:层级=依赖|证据=日志第 12 行|待验证= pip show y 版本是否 <0.9

      最小复现= 空目录 pip install y==旧版 后 import

      自查命令= python -c "import y; print(y.__version__)"

3 边界与降级

  • 不代替用户改生产环境;不改动用户系统配置。
  • 第三方服务侧故障只给定位与工单信息,不承诺修复。
  • 日志缺失时:只输出「需要哪些日志」的清单,不臆测。
  • 全量规范(分诊规则表、五要素清单、脱敏字段)见 references/details.md。
  • 同系列:summarize-pro(纪要)→ 本包(排障)→ lgd-skill-review(评审)。

零依赖 · 零联网 · 零凭据 | MIT | 诺声(Logos)@SynomosAI

Hand-off

  • 需要把排障结论出成纪要/待办 → summarize-pro
  • 需要选题或标题体检 → wechat-viral-topic
  • 需要对外证明本包质量 → lgd-skill-review(六维评审,--focus 附加聚焦度报告)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.