Systematic diagnosis for unknown failures — local environment, tool setup, CI vs local divergence, hook misbehavior, and runtime anomalies. Gathers signals broadly, ranks hypotheses, uses adversarial review (Codex or foundry:challenger) for ambiguous cases, probes each, and reports root cause with a recommended next action. NOT for known code bugs (/develop:debug (requires develop plugin)) or config quality (/foundry:audit). TRIGGER when: unknown failure with no Python traceback — hook not firing, CI passes locally but fails remotely, background agent stalled, behavior inconsistent with config; phrases: "not working but config looks right", "hook not triggering", "why isn''t X running". SKIP: Python traceback present (use develop:debug (requires develop plugin)); known code bug with repro (use develop:fix (requires develop plugin)); pure config quality check (use foundry:audit).
$npx -y skills add borda/ai-rig --skill investigateInstalls into the current project.
Run `npx skills use "https://github.com/borda/ai-rig" --skill "borda/ai-rig/investigate"` 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.