All Skills
Automation & WorkflowClaude Plugins (Official)

math proof — Agent Skill

by anthropics · Updated

Two skills for hard mathematics problems, each ending in a self-contained proof.md: /math-proof:solo has the session work the problem itself in stages with a notes file; /math-proof:siege works on it for hours in rounds of judge and worker sub-agents and says plainly what is and is not proved.

At a glance

math-proof is an Agent Skill by anthropics in the Automation & Workflow category. In Claude Code it installs with `/plugin install math-proof@claude-plugins-official` after adding the anthropics/claude-plugins-official marketplace; other assistants use its SKILL.md instructions as rules. Its source repository has 45,210 GitHub stars (as of Oct 28, 2026).

Source 45kGitHub stars

How to install math proof in your AI client

Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.

How to install math proof in Claude CodeAnthropic's agentic CLI

  1. Add the marketplace

    claude
    /plugin marketplace add anthropics/claude-plugins-official
  2. Install the skill

    claude
    /plugin install math-proof@claude-plugins-official
  3. Use it

    These are slash commands for a Claude Code session, not your shell. Claude auto-invokes the skill when your request matches its description — or type its slash command if it exposes one.

Documentation

Full README

math-proof

Two Claude Code skills for hard, research-level mathematics problems. Each takes one problem stated in full, keeps everything it writes in a run folder, switches Claude Code's web tools off for its run, and ends with a self-contained proof.md.

`/math-proof:solo`: Claude works the problem itself, in your session, as one long turn. It is instructed to write its plan and each intermediate result to a notes file before reasoning further, so that a response cut off at the output limit loses nothing already written. The lighter of the two; try it first.

`/math-proof:siege` (multi-agent): your session does no mathematics itself; for hours it runs rounds of sub-agents, each starting fresh. Each round a judge writes a few self-contained questions, independent workers answer them in parallel, and the judge keeps a ledger of what is proved, refuted and open. When a worker's answer contains a complete proof (or disproof) of the goal the judge set, two more workers check that exact text line by line before the judge concludes; if the opening rounds do not get there, later rounds send more workers per round, most of them at the one step the proof still lacks. proof.md has a Status section saying plainly what is and is not proved. Expect dozens of sub-agent runs, and well over a hundred if all fourteen rounds run: check /usage before you start on a subscription, or cap the spend with --max-budget-usd in the unattended form below on an API key.

Either way proof.md is the model's own account, and any result it cites from the literature is quoted from memory: read it critically. Full instructions: skills/solo/SKILL.md and skills/siege/SKILL.md; the sub-agents are defined in agents/.

Install

text
/plugin install math-proof@claude-plugins-official

Needs Claude Code 2.1.280 or later and, for siege, Python 3.7 or later on your PATH as python3 or python (no extra packages). Then add this "env" block once to ~/.claude/settings.json (or to .claude/settings.json in the directory you run from, to limit it to that directory). The three lines allow long responses, keep sub-agents in the foreground by turning background tasks off, and give a silent worker four hours before it is cut off; they affect every session that reads the file, so remove them when you stop using the plugin.

json
{
  "env": {
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "128000",
    "CLAUDE_CODE_DISABLE_BACKGROUND_TASKS": "1",
    "CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS": "14400000"
  }
}

Use

In an empty working directory, one per problem and one run at a time:

text
claude --model claude-opus-5-5 --effort high
> /math-proof:solo <the complete problem statement, or the path of a file holding it>

or /math-proof:siege <…> likewise. solo writes under ./math-proof-solo/, siege under ./math-proof-run/; the session says where proof.md is when it finishes. In the default permission mode Claude Code asks you to approve file writes and the siege judge's shell commands (short Python checks and file copies), so stay within reach or use the unattended form below; other than that, type nothing while it runs. While siege runs, state.md in the run folder shows the current round, and if the judge proves its goal and goes after a stronger one, the result already proved is copied to result-so-far.md.

If a run stops (an error, a closed terminal, a usage limit, Ctrl-C), give the same /math-proof:… line again in the same directory, not a free-form message: that reloads the skill's instructions and permissions, and the run continues from its folder with the settings it started with.

More Automation & Workflow skills

Catalog data refreshed . Something wrong? Report it.