proof-repair
Skill11 starsChanged 6 months agoMITView on GitHub
Generate self-consistent repair plans for mathematical proof issues found by /proofcheck, with literature-backed support. For each problematic assumption, model, proposition, or theorem, proposes fixes that preserve the full dependency chain and searches arXiv, Semantic Scholar, and Google Scholar for new references to support repairs. Use when user says "repair proofs", "fix proof issues", "修复证明", "proof repair", "修正计划", "fix theorem", "repair assumptions", or wants to go from proof audit to actionable repair plan with literature support.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- erik-kroon/skillstheir own version, first seen Apr 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- erik-kroon/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 repository6 other files it gives its agents.
- proof-checkerSkill
- proofcheckSkill
- proof-writerSkill
- theory-designSkill
- theory-sharpenSkill
- theory-simulationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run on Claude Opus (/model opus).
- Very specific: line 35
No LaTeX patch before the reference mode (A or B) is recorded.
- Distinctive: line 40
No Lean or other formalization (project decision: mechanisms only).
- Very specific: line 57
Write the master proposal REPAIR_PROPOSAL_<date>.md (headed NON-AUTHORITATIVE PROPOSAL) with BibTeX proposals and patch summary.
- Very specific: line 79
No finalized audit: hand back to /proofcheck (or a lightweight inline check labeled unaudited that cannot feed --post-repair).
- Very specific: line 81
No automatic looping of --from-reaudit.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Proof-Repair — Literature-Backed Repair Plans for Mathematical Proofs
Run on Claude Opus (/model opus). Takes a finished /proofcheck audit (final report plus an
audit-baseline snapshot ID) and produces per-issue repair proposals with vetted literature support.
Pipeline: /proofcheck -> (explicit user request) -> this skill -> /proof-writer (inside Run order step 8 (legacy section 5B) only) -> /proofcheck --post-repair.
This release only proposes: patches are never applied by this skill. Output is a legacy, non-authoritative
proposal headed NON-AUTHORITATIVE PROPOSAL.
proofaudit <sub> = uv run python "C:\Users\yguo12\.claude\skills\stat-shared-references\scripts\proofaudit_cli.py" <sub>; absolute --workspace, never bare python.
Hard rules (never skip)
- Cooperative, honest-executor audit (traces
SELF_ATTESTED_TRACE_BOUND): nothing here is tamper-resistant; never state or imply PASS,AUDIT_PASS, CONVERGED or submission assurance. - Input is only the frozen
audit-baselinesnapshot; original issues, axes and S-levels are immutable: never re-grade severity; P0-P2 is a scheduling label only; never editaudit/01-06. - Repair is append-only: records live under
audit/07_repairs/(CLI-written oncerepair-recordexists; the Markdown files are generated views); the paper source is never changed. - MVP (this release) is proposal-only: write only
REPAIR_PROPOSAL_<date>.mdoraudit/inbox/repair-proposals/(viacapture); never call/proof-writerintoaudit/07_repairs, and stop at the first step that would needrepair-recordor an authority proof package. - The CLI is the agreed single entry point (not OS-enforced); write only legacy proposal files via
captureorREPAIR_PROPOSAL_<date>.md. repair-record,patch-check,patch-apply,snapshot-restoreandquote-recordare not implemented: any step needing one stops with "needs<command>, which is not yet implemented in the CLI"; never emulate by hand, never fabricate a CLI receipt.--applyand--auto-repairfail fast on entry;--engineis not implemented, do not pass or mention it.- A
PAPER_CITATIONinput staysLOCAL_EXCERPT_ONLYorNOT_CHECKEDuntilquote-recordexists; a repair depending on it is conditional. - No LaTeX patch before the reference mode (A or B) is recorded; a post-patch
cross_file_ref_leakis a patch defect. - Repair Priority Ladder is a hard gate: Phase A (L1-L3) exhausted before L4/L5; L4/L5 changes need an Assumption-Extension / Weaken-Claim Change Log, else demoted to L6; level is checked against the CLI statement diff.
- Stress tests and reviews are path-only, fresh-thread,
gpt-5.6-solxhigh, maxMAX_REVIEW_ROUNDS = 3; TIMEOUT/ERROR is never a pass and never triggers another model or effort. - Proof content is drafted by
/proof-writeronly at Run order step 8 (legacy section 5B), into the proposal path, markedVerification: Not checkeduntil a Codex pass accepts it;assumptions.lock.mdchanges only via the L4 registry step. - Theory layer: a proposal names the pattern/hypothesis/stage obligation it repairs, redoes downstream stages per the stage DAG, and treats an unmet hypothesis as a use-step repair, not a false theorem. must-read: references\theory-logic.md BEFORE step 3.
- No Lean or other formalization (project decision: mechanisms only).
- Closing a repaired S0/S1 issue uses
diff-record --from SNAP-ID(the last source-sensitive step) andissue-close --issue-id I --review-call RV --diff-id D-NNNN, never a hand-made diff.
Run order
Each step: read the named reference BEFORE executing it (must-read:).
- Locate inputs (finalized audit and baseline snapshot ID):
uv run python "C:\Users\yguo12\.claude\skills\stat-shared-references\scripts\proofaudit_cli.py" status --workspace "C:\abs\paper-root" --json; no finalized audit: tell the user to run/proofcheckfirst. must-read: references\pipeline-and-authority.md BEFORE this step (locating inputs, modes). - Reference mode (HARD GATE):
proofaudit index --workspace ABSagain if the source changed since freeze; recordreference_mode. must-read: references\pipeline-and-authority.md BEFORE this step. - Triage each issue and pick one repair class; SKETCH-ONLY/PARTIAL-SKETCH units get the expand-sketch treatment. must-read: references\triage-and-classes.md BEFORE this step.
- Dependency impact analysis per issue. must-read: references\impact-analysis.md BEFORE this step.
- Ladder gate and 1-3 candidates per issue (feasibility triage, strategy selection). must-read: references\triage-and-classes.md BEFORE this step (ladder and candidates parts).
- Literature search and quality gate for repair support. must-read: references\literature.md BEFORE this step.
- Assemble the selected repair per issue as a proposal section. must-read: references\repair-plan-template.md BEFORE this step.
- MVP branch (proposal-only): optional draft of the repaired proof via
/proof-writerwithPACKAGE_PATHunderaudit\inbox\repair-proposals\(non-authoritative,Verification: Not checked), then lint it withproof_gap_scan.py --proofon that path. If the repair needsrepair-recordor an authority proof package, stop and report "needsrepair-record, which is not yet implemented". Never write the writer output into the repair-record directory. must-read: references\writer-handoff.md BEFORE this step. - Codex stress test of every P0/P1 proposal that has a complete proof (fresh thread, paths only). must-read: references\writer-handoff.md BEFORE this step (stress-test part).
- Cross-repair consistency (assumption matrix, rate/constant propagation, new reference compatibility). must-read: references\impact-analysis.md BEFORE this step (consistency part).
- Write the master proposal
REPAIR_PROPOSAL_<date>.md(headedNON-AUTHORITATIVE PROPOSAL) with BibTeX proposals and patch summary;--applyis unavailable. must-read: references\repair-plan-template.md BEFORE this step. - Report with the Output Summary and tell the user the post-repair steps (manual apply,
freeze --new-revision,diff,invalidate,/proofcheck --post-repair). must-read: references\repair-plan-template.md BEFORE this step (output-summary part) and references\post-repair.md.
Read on demand
| Situation | Reference |
Authority, write boundary, implementation status, register; reading the audit; reference mode; quick mode, --from-review | references\pipeline-and-authority.md |
| Issue from a theory-pattern stage; naming obligations, downstream stages | references\theory-logic.md |
| Choosing a repair class, priority rules; sketch-only units; ladder, candidates, strategy | references\triage-and-classes.md |
| Downstream effects of a repair; cross-repair consistency | references\impact-analysis.md |
| Literature for a repair | references\literature.md |
Per-issue repair file, plan structure, closure matrix, BibTeX, patch summary, --apply, final summary | references\repair-plan-template.md |
/proof-writer handoff, quality gate, Codex stress test | references\writer-handoff.md |
--from-reaudit, cycle limits | references\post-repair.md |
| Where did an old section go | references\MOVED.md |
Stop conditions / hand-offs
- A step needs an unimplemented command (
repair-record,patch-check,patch-apply,snapshot-restore,quote-record): stop with the fail-fast message. --apply/--auto-repair: stop on entry; the author applies proposed blocks manually.- Resume:
proofaudit resumereads only the audit results, there is no repair state machine yet; re-enter by re-reading the proposal file and re-running the steps above. - No finalized audit: hand back to
/proofcheck(or a lightweight inline check labeledunauditedthat cannot feed--post-repair). - Any S0/S1 issue or non-empty semantic diff: convergence is required via
/proofcheck --post-repair; this skill never declares it. - No automatic looping of
--from-reaudit; after 2 cycles downgrade the theorem to NOT CURRENTLY JUSTIFIED and ask the user. - New proof text:
/proof-writer(step 8 only); statement or rate redesign:/theory-designor/theory-sharpen. - Context for this run: $ARGUMENTS
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.

