跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

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

  1. Reproduce — Steps, expected vs actual, environment (cwd, OS, relevant tools).
  2. Minimise — Smallest path that still fails (file, scene, input).
  3. Hypothesise — 1–3 ranked causes; pick the cheapest to falsify first.
  4. Instrument — Add temporary logs/asserts or read existing signals; remove noise after.
  5. Fix — Smallest change that addresses the confirmed cause.
  6. 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.