What it is
The math-olympiad skill (version 0.1.0) is a structured workflow for solving and verifying competition mathematics. It activates on requests like 'solve this IMO problem', 'prove this olympiad inequality', 'verify this competition proof', 'find a counterexample' or 'is this proof correct'. It also activates for any problem that mentions 'IMO', 'Putnam', 'USAMO', 'olympiad' or 'competition math'. Solvers and verifiers in the standard tight-budget workflow use thinking only, with no tools. If LaTeX is available, the skill produces a clean PDF once verification passes. The approach depends on the problem type. For AIME numeric answers, the skill runs Best-of-N solvers and takes a majority vote. Olympiad proofs go through the full workflow with 5-pass adversarial verification. For 'Is this proof correct?', the skill skips straight to verification. A full problem set gets one workflow per problem, and the results are compiled into a single PDF. The full workflow has these stages: - Interpretation check. The skill lists 2-3 readings of the problem and picks the non-trivial one. - Parallel candidate generation. 8-12 solver agents each run an internal solve, self-improve, self-verify and correct loop using a verbatim prompt that forbids computation. - Cleaning. All thinking content and false starts are stripped, leaving only the Method, Proof and Answer. - Adversarial verification. Fresh-context verifiers apply named patterns, for example #4 'does this prove something open about ζ?', #18 tautology detection, #40 one-line-lemma counterexamples, #5 hypothesis re-checks and #6 regularized-sum divergence. - Ranked voting. Asymmetric thresholds apply: 4 HOLDS confirm a proof and 2 HOLE FOUND refute it, with pigeonhole early exit. - Revision. Up to 3 revise cycles are allowed, with inline [GAP: ...] markers. - Calibrated abstention. - Presentation pass. The verified proof is rewritten more cleanly in LaTeX. When the tight-budget workflow abstains, a mandatory 'deep mode' step (6d) launches one focused agent with no time limit. This agent may use bounded local computation such as mod 2^k arithmetic, small cases up to n≤10, and symbolic identity checks. Web access and looking up solutions are strictly forbidden. Defaults also scale by model tier: - Haiku: 8 solvers, 3 verify passes, no presentation. - Sonnet: 4 solvers, 5 verify passes. - Opus: 3 solvers, 5 verify passes plus a full pattern sweep, and 2 presentation drafts. The skill's stated differentiators are: - Dual context isolation: verifiers are blind to both the solver's thinking and other verifiers' verdicts. - Pattern-specific attacks instead of generic checking. - Asymmetric voting with early exit. - A specification-gaming check before solving. - Calibrated abstention that optimizes conditional accuracy. - A separate presentation pass.
Who it's for
- People solving olympiad-level proof problems (IMO, Putnam, USAMO)
- Anyone answering AIME-style numeric-answer problems
- Users who want an existing competition proof checked for correctness
- Users processing a full competition problem set into a single compiled PDF
- Anyone who prefers an honest 'no confident solution' over a confident wrong answer
Requirements
Requirements
- Claude Code with the ability to launch subagents (agent() calls / Agent tool) for parallel solvers and verifiers
- Optional: pdflatex, for PDF output (detected via scripts/check_latex.sh, compiled via scripts/compile_pdf.sh)
- Bash/Python, used only in deep mode for bounded local computation
سكيل لـClaude Code بيحل مسائل رياضيات المسابقات متل IMO وPutnam وUSAMO وAIME، وبيفحص البرهان بمدقّقين بسياق نضيف بيهاجموه بأنماط أخطاء محددة. وإذا ما كان متأكد، بيقلك بصراحة "no confident solution" بدل ما يخمّن.
Examples
Trigger phrase
Promptsolve this IMO problemExpected output: One of the phrases listed in the skill description that activates the skill.
Verbatim solver prompt (no computation)
CodeNO COMPUTATION. Do not use Bash, Python, WebSearch, Read, Write, or any tool that runs code or fetches data. Numerical verification is not a proof step. "I computed n=1..10 and the pattern holds" is not a proof.
(If your agent harness requires a StructuredOutput or similar return-mechanism tool call, that is NOT a computation tool — call it to return your answer. The restriction is on tools that DO work, not tools that REPORT work.)
Your internal process (iterate until done):
- Solve: Complete rigorous solution.
- Self-improve: Reread. Fix gaps before a grader sees it.
- Self-verify: Strict grader mode. Every step justified?
- Correct: Fix and re-verify. Up to 5 rounds.
- Stop: Self-verify passes twice clean, OR 5 rounds, OR approach fundamentally wrong.
A correct answer from flawed reasoning is a failure. If incomplete, say so honestly. Never hide gaps.
PROBLEM: <insert the problem statement here>
ANGLE: <insert one starting angle here>What it does: The prompt given to each of the 8-12 parallel solver agents. It must be used verbatim, because subagents get the full tool set and the prompt is the only way to restrict them. Vary the ANGLE across agents (small cases, invariants, extremal case, induction, and so on).
Reviser prompt after a verifier finds a hole
CodeA verifier found this issue in the proof:
[hole report]
Fix the proof. If the hole is fundamental (the approach doesn't work), say so and return **Verdict: no confident solution** with what partial progress remains.
For any step you cannot fully close, mark it inline: [GAP: specific description of what remains]. Gaps in the proof text, not in a separate list — they're greppable and the next reviser knows exactly where to look.What it does: Given to a reviser agent along with the cleaned solution, never the original thinking. Up to 3 revise cycles are allowed, after which the vote is re-run.
Deep-mode header (no web access)
CodeNO WEB ACCESS. Do not use WebFetch, WebSearch, or any tool that touches the internet. Do not look up this problem, its solution, or related problems. You are solving this yourself — the only allowed computation is local (Bash/Python for mod-k arithmetic, small-case enumeration n≤10, symbolic identity checks). If you invoke a web tool, the proof is void.What it does: Placed at the top of the deep-mode prompt. Deep mode is launched automatically after any abstention at the verify stage.