safe-debug
作者: lllllllama
針對深度學習研究工作的嚴謹除錯/嚴謹審查技能。當使用者貼出追蹤回溯、終端錯誤、CUDA記憶體不足、檢查點載入失敗、形狀不匹配、NaN損失症狀或訓練失敗,並希望在進行任何修補前獲得保守診斷,且除錯修復與研究貢獻明確區分時使用。請勿用於大規模重構、推測性改編、自動探索性修補或一般性倉庫熟悉。
npx skills add https://github.com/lllllllama/rigorpilot-skills --skill safe-debugsafe-debug
Use this as the Rigor Debug / Rigor Audit skill. The installed slug remains
safe-debug for compatibility.
Use the shared operating principles in
../../references/agent-operating-principles.md; this skill should guide
conservative diagnosis without blocking the model from finding the local root
cause.
When to apply
- The user provides a traceback, terminal error, or concrete training or inference failure symptom.
- The user wants diagnosis, root-cause narrowing, and minimal patch suggestions before code is changed.
- The user wants a safe debug flow with explicit human approval before mutation.
When not to apply
- When the user wants a broad repository walkthrough without an active failure.
- When the task is speculative experimentation or code adaptation.
- When the user is asking for a large refactor or readability rewrite.
Clear boundaries
- Diagnose first.
- Do not modify repository code by default.
- If a patch is needed, propose the smallest fix and require explicit approval first.
- Escalate savepoint or branch creation before medium-risk or high-risk changes.
- A debug fix is not automatically a research contribution; if it changes experiment meaning or comparability, say so explicitly.
Output expectations
debug_outputs/DIAGNOSIS.mddebug_outputs/PATCH_PLAN.mddebug_outputs/status.json
Notes
Use references/debug-policy.md, ../../references/research-rigor-principles.md, and the shared ../../references/research-pitfall-checklist.md.