Investigation-first debugging — gather evidence, form confirmed root-cause hypothesis, hand off to fix mode with diagnosis file. TRIGGER when: user reports a symptom or failing test with Python traceback, or asks to investigate a runtime/CI failure with reproducible evidence; phrases: \"debug this failure\", \"why is X broken\", \"find the root cause of <error>\", \"investigate this CI failure\". SKIP when: pure config quality issues (use /foundry:audit); broad system-wide diagnosis without traceback (use /foundry:investigate); user already knows the fix (use /develop:fix); non-Python project.
$npx -y skills add borda/ai-rig --skill debugInstalls into the current project.
Run `npx skills use "https://github.com/borda/ai-rig" --skill "borda/ai-rig/debug"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/borda/ai-rig" that are relevant to the current task. Run `npx skills add "https://github.com/borda/ai-rig"` and select the relevant skills, then follow their instructions.