audit-analysis
Skill523 starsChanged 3 months agoMITView on GitHub
Adversarially audit changed analysis code against a base ref, hunting for correctness errors in sample construction, merges, variable construction, silent failures, and clustering or fixed effects. Runs in an isolated subagent. Use before circulating results or submitting. This is not a reproducibility or paper-to-code review — use review-paper-code for that.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- gojiplus/skillstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- gojiplus/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- explain-diffSkill
- explorable-beamerSkill
- explorable-deckSkill
- explorable-pptxSkill
- paper-versionSkill
- pdf-to-markdownSkill
- review-grantSkill
- review-paper-checksSkill
- review-paper-codeSkill
- review-paper-lightSkill
- review-paperSkill
- review-papSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Run, and stop with a short explanation if any of the first three fail:
- Distinctive: line 57
If the diff exceeds roughly 1,500 changed lines, run two auditors in parallel instead — one taking claims, sample, and merges, the other …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Audit Analysis Code
Find errors in changed empirical code before a referee does.
The audit runs in a subagent with a clean context. That isolation is the point: whoever wrote the code — including this session, if it helped — must not be able to steer the findings. Do not read the changed files yourself before launching, do not form a view, and do not answer the auditor's questions mid-run.
Phase 1: Establish scope
Set BASE from $ARGUMENTS if given, otherwise main.
Run, and stop with a short explanation if any of the first three fail:
git rev-parse --git-dir— must be a repositorygit rev-parse --verify BASE— the base ref must existgit diff --stat BASE— if empty, there is nothing to auditgit log BASE..HEAD --oneline— may legitimately be empty when the work is uncommitted, or when HEAD is BASE and only the working tree has changed. Note it and drop the commit-message check from the audit.
Report to the user in two or three lines: base ref, number of changed files, number of changed lines, and whether commit messages are available. Then launch immediately.
Phase 2: Launch the auditor
One Agent call, subagent_type: "general-purpose". Substitute BASE and pass this verbatim:
Review empirical research code adversarially. The author wants it broken now rather than by a referee. Read
git log BASE..HEADandgit diff BASE, then the changed files in full. Follow variables built outside the diff.Check, and report on each of:
- Claims vs. code: do comments and commit messages match what runs? Quote both sides of any disagreement.
- Sample: N before and after every filter, merge, and collapse. Take N from logs; write "N unverified" where there is no log. Flag undocumented drops.
- Merges: key, uniqueness on the side that needs it, fate of unmatched observations, whether
_mergeis inspected, duplicate id-period pairs after.- Variables: trace every regressor and outcome. Units, logs vs. levels, deflation, lag alignment. Does construction match the name?
- Silent failures: missings coerced to zero,
if x > 0true on missing,destring ... force,replacethat changes nothing, loops that skip. In Python,fillna(0), silent dtype coercion, chained assignment.- Estimation: clustering level and cluster count, what the fixed effects absorb, weights, whether estimation N matches the sample traced above.
Each finding: file, line, quoted excerpt, what is wrong, consequence for the results. Tag CONFIRMED (visible in the code) or SUSPECTED (needs the data). Style and naming are not findings. Order by consequence, worst first, ten max. Then one line per category: what you found, or that you found nothing. Close with the one thing you could not check without the data. Change nothing.
If the diff exceeds roughly 1,500 changed lines, run two auditors in parallel instead — one taking claims, sample, and merges, the other taking variables, silent failures, and estimation — and concatenate their findings. Do not split a smaller diff; the categories inform each other.
Phase 3: Relay without softening
Pass the findings through in the order returned, worst first. Do not reclassify a SUSPECTED finding as fine, do not add reassurance, and do not open with what the code gets right. The user asked for errors.
Drop any finding that lacks a file, a line, and a quoted excerpt, and tell the user how many you dropped. Unanchored findings are the failure mode this design exists to catch — an auditor told to find errors will manufacture them if nothing forces it to point at code.
Reproduce the per-category coverage lines verbatim, including the categories that came back clean, and the closing line about what could not be checked without the data. A clean category is a claim the auditor is on the record for.
Fix nothing. If the user wants repairs, that is a separate request.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

