开发与测试
x-diagnose
Disciplined bug/performance diagnosis loop for a single session. Use when debugging hard failures, regressions, or unexplained behavior.
Fromlan · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add Fromlan/X-agent --skill x-diagnose技能说明
name: x-diagnose description: Disciplined bug/performance diagnosis loop for a single session. Use when debugging hard failures, regressions, or unexplained behavior.
Diagnose
Stay in one session. Do not spawn background agents.
Loop
- Reproduce — Steps, expected vs actual, environment (cwd, OS, relevant tools).
- Minimise — Smallest path that still fails (file, scene, input).
- Hypothesise — 1–3 ranked causes; pick the cheapest to falsify first.
- Instrument — Add temporary logs/asserts or read existing signals; remove noise after.
- Fix — Smallest change that addresses the confirmed cause.
- Regression — Re-run the reproduce path; add or adjust a test if the project has a test harness.
Anti-patterns
- Shotgun edits across unrelated files before a confirmed cause.
- Claiming “fixed” without re-running the failing path.