$npx -y skills add lllllllama/RigorPilot-Skills --skill safe-debugRigor Debug / Rigor Audit skill for deep learning research work. Use when the user pastes a traceback, terminal error, CUDA OOM, checkpoint load failure, shape mismatch, NaN loss symptom, or training failure and wants conservative diagnosis before any patching, with debug fixes c
| 1 | # safe-debug |
| 2 | |
| 3 | Use this as the Rigor Debug / Rigor Audit skill. The installed slug remains |
| 4 | `safe-debug` for compatibility. |
| 5 | |
| 6 | Use the shared operating principles in |
| 7 | `../../references/agent-operating-principles.md`; this skill should guide |
| 8 | conservative diagnosis without blocking the model from finding the local root |
| 9 | cause. |
| 10 | |
| 11 | ## When to apply |
| 12 | |
| 13 | - The user provides a traceback, terminal error, or concrete training or inference failure symptom. |
| 14 | - The user wants diagnosis, root-cause narrowing, and minimal patch suggestions before code is changed. |
| 15 | - The user wants a safe debug flow with explicit human approval before mutation. |
| 16 | |
| 17 | ## When not to apply |
| 18 | |
| 19 | - When the user wants a broad repository walkthrough without an active failure. |
| 20 | - When the task is speculative experimentation or code adaptation. |
| 21 | - When the user is asking for a large refactor or readability rewrite. |
| 22 | |
| 23 | ## Clear boundaries |
| 24 | |
| 25 | - Diagnose first. |
| 26 | - Do not modify repository code by default. |
| 27 | - If a patch is needed, propose the smallest fix and require explicit approval first. |
| 28 | - Escalate savepoint or branch creation before medium-risk or high-risk changes. |
| 29 | - A debug fix is not automatically a research contribution; if it changes |
| 30 | experiment meaning or comparability, say so explicitly. |
| 31 | |
| 32 | ## Output expectations |
| 33 | |
| 34 | - `debug_outputs/DIAGNOSIS.md` |
| 35 | - `debug_outputs/PATCH_PLAN.md` |
| 36 | - `debug_outputs/status.json` |
| 37 | |
| 38 | ## Notes |
| 39 | |
| 40 | Use `references/debug-policy.md`, `../../references/research-rigor-principles.md`, and the shared `references/research-pitfall-checklist.md`. |