Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses wrong or failing empirical results in R, Stata, and Python research code via a reproduce-minimise-hypothesise-instrument-fix loop.
48% 48%0 ptsof test cases passed
Passed 11 of 23 test cases with the skill, and 11 of 23 without it.
This test ran on v2. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Find why an analysis errors, returns the wrong number, or won't reconcile — with a structured debugging loop rather than scattershot edits. Adapted from the diagnose pattern in mattpocock/skills, reshaped for empirical research code where the bug is usually a silent wrong number, not a crash.
The discipline: never edit before you can reproduce, and never fix before you can explain. A guessed fix that makes the symptom disappear without a named root cause is how a wrong number gets laundered into a published table.
/audit-reproducibility and you need to localize which step drifted.Diagnose is symptom-driven and single-target: ONE wrong number / ONE failing run. Use a sibling instead when the job is different:
/audit-reproducibility — verify all numeric claims in a manuscript against current code (claim-driven, whole-paper). If you have one FAILing claim and want to localize which pipeline step produced it, /audit-reproducibility hands off to /diagnose; if you want to re-check every table number, start there./review-r — code-quality review with no specific symptom./capture-environment — snapshot the environment when version/seed drift is the suspect.State the bug as a falsifiable gap before touching anything:
replication-protocol.md.)If expected/actual can't be stated, the task is understanding, not diagnosis — stop and clarify first.
A bug you can't reproduce on demand can't be fixed, only hidden.
sessionInfo() / pip freeze / Stata version (lean on /capture-environment).Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.