用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SocketDev/action --skill diagnosing-bugs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Propagate a wheelhouse template change across fleet repos: worktrees, push/PR fallback, cleanup.
Run this repo's GitHub Actions locally with Agent-CI before pushing CI-sensitive changes.
Audit package exports for dead, internal-only, or weakly-consumed subpaths before pruning.
基于 SOC 职业分类
正在显示 SKILL.md
| name | diagnosing-bugs |
| description | Run the diagnosis loop for hard bugs, failing behavior, regressions, thrown errors, or slow paths. |
| metadata | {"internal":true} |
A discipline for hard bugs. Build a tight loop that goes red on this
bug FIRST; everything after is mechanical. Doctrine + the fleet adaptations:
diagnosing-bugs.md. Skip a
phase only with an explicit reason.
Construct one named, agent-runnable command that drives the bug code path and
asserts the user's exact symptom — a failing pnpm test <file>, a CLI+snapshot
diff, an httpJson script, a trace replay, a bisection/differential loop. Never a
throwaway harness you delete after.
Make it tight: fast (seconds), deterministic (pin time, seed RNG, freeze the
network with nock), sharp (asserts the symptom, not "didn't crash"). For a flaky
bug, raise the reproduction rate until it's debuggable.
Completion criterion: you can paste one command you have already run and its output, and it is red-capable, deterministic, fast, and agent-runnable. If you catch yourself reading code to build a theory before this command exists — stop. No red-capable command, no Phase 3.
If you genuinely cannot build a loop, say so explicitly, list what you tried, and ask for environment access / a captured artifact. Do not proceed to hypothesise.
Run the loop; watch it go red on the user's symptom (not a nearby one). Then shrink the repro: cut inputs, callers, config one at a time, re-running after each, until every remaining element is load-bearing. Don't proceed until reproduced AND minimised.
Generate 3–5 ranked falsifiable hypotheses before testing any — each states a prediction ("if X is the cause, changing Y makes it disappear"). No prediction = a vibe; sharpen or discard. Show the ranked list to the user before testing (cheap checkpoint; they may re-rank instantly) — but proceed on your ranking if they're AFK.
One variable per probe, mapped to a specific Phase-3 prediction. Prefer a
debugger/REPL over logs. Tag every debug log [DEBUG-<hex>] so cleanup is one
grep — never "log everything and grep". Perf bugs: measure a baseline first
(performance.now(), profiler, query plan), then bisect.
Write the test before the fix, but only at a correct seam — one that
exercises the real bug pattern at the call site. Fleet seam doctrine: public
interface, highest available seam, vitest in test/ (members co-locate; wheelhouse
hook/lint-rule tests in test/repo/), never node:test, never source-text
assertions. Turn the minimised repro into a failing test, watch it fail, apply the
fix, watch it pass. If no correct seam exists, that is the finding — flag it.
grep out the [DEBUG- tags, run pnpm run check + pnpm test, commit with the
root cause named in the message (fix(<scope>): <root cause>). If this is the
second occurrence of the same shape, search the repo for siblings before closing
(variant analysis).