bip-ms-math
Revise the mathematics of a TeX manuscript as a series of small, separately checkable commits — proofs in proof blocks, duplicate proofs cut, long paragraphs…
от matsen★ 35 звёзд на GitHub
Установить bip-ms-math в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/bip-ms-math
Agent-drafted mathematics has a recognizable residue: claims that need proofs sit inside prose, proofs say "routine" or "by the same induction", paragraphs run to fifteen sentences, definitions carry generality nothing uses, and one letter does two jobs. A professional mathematician cleaning up such a paper does a small number of things, repeatedly. This skill does them in a fixed order, one commit per kind of change, so a reviewer can skim the mechanical commits and spend attention on the mathematical ones.
Usage
/bip-ms-math main.tex "Appendix" # one section, by heading
/bip-ms-math main.tex # whole manuscript, only when asked for
Target one section unless the user asks for the whole paper: every commit gets its own checking agent, so a whole-manuscript run is expensive.
Two kinds of source
- Agent-drafted (the author is the user and an agent): no markers, no Slack note.
- Human-written (a collaborator wrote or rewrote the formal text, for example an appendix): every edit a collaborator should check gets a marker (below), and Step 4 produces a Slack note.
Ask which one it is if the git history does not say.
Step 0: Orient
Read the target whole with Read, not grep.
Read the repo's AGENTS.md or CLAUDE.md for house style (for a Matsen-group paper: one sentence per line, \Cref for references).
Run the build first so later warnings are attributable to your edits.
List the \newtheorem environments and the preamble macros.
Inventory every formal claim: where it is stated, where it is proved, and which hypotheses the proof uses.
Step 1: Propose the commit list, then wait
Propose the commits below that apply, in this order, and do nothing until the user agrees. Earlier commits may set up things a later commit has to fix (a theorem labeled before its statement is corrected); that is fine, and the Slack note says so.
- One English variety. Mechanical.
Skip
%PROVand comment lines that quote source. - Typos, markup slips,
\Cref, labels and titles on theorems. Mechanical. No statement changes. - Mathematical corrections. Marked. Inequality directions, definitions used more strongly than stated, a hypothesis an induction needs but the statement omits, unjustified existence steps (well-foundedness), a lemma proved for two sets but applied to a family, base cases that do not match the statement, displays that assert an identity with no proof.
- Cut proofs that an appendix now proves. Marked. Replace the prose proof with a pointer; keep examples and intuition. Check that the cited result covers the body's generality, and flag any gap.
- Formalize prose-only claims. Marked. Each "routine", "by the same induction", or "by stages" becomes a proposition or lemma with a proof block and a label, and the body points to it. Facts used by several proofs become lemmas stated first.
- Break long paragraphs. One idea per paragraph. Move remarks (alternative readings, degenerate cases, implementation caveats) out of definitions into short paragraphs after them. Keep the definition complete without them.
- Notation: one symbol, one role. Marked. A symbol serving two roles is renamed; each index letter gets one role paper-wide. Count occurrences first and choose the letter that changes the fewest lines, even when it is a third letter rather than a swap.
- Generality trim. Ask first. State the special form the results use and move the general form to a remark. This changes the paper's framing, so it needs the author's decision.
Spot clefts and inert main clauses in the text you add ("it is X that", "the claim to prove is", "holds because"); @scientific-tex-editor on only the new text catches them.
Do not run it on the whole paper.
Step 2: Do each commit, with an independent check
For each commit, in order:
- Make the change, rebuild, and confirm no new undefined references, duplicate labels or warnings.
- Spawn an independent
general-purposeagent to check it before you commit. Give it thegit diffcommand, the files toReadin full, and what to verify; forbid edits. Brief a mathematical commit as a line-by-line proof check: wrong directions, definitions stronger than stated, finite versus infinite unions, empty and infinite cases, small examples (including the paper's own), and whether each cited result proves what the pointer claims. Brief a pure restructuring as a content-preservation check: every deleted sentence reappears, referents still resolve, no forward references. Brief a rename as a role check: every changed line replaced the right index, none was missed, and no letter has two roles. Ask for a verdict per item with line numbers and fixes, under 500 words. - Read the report yourself, fix every gap, and re-check anything the agent called wrong.
- For a rename, also confirm mechanically that each changed line differs from th
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Agent - 02
Bash - 03
Read - 04
Edit - 05
Write
FAQ
Что делает скилл bip-ms-math?
Revise the mathematics of a TeX manuscript as a series of small, separately checkable commits — proofs in proof blocks, duplicate proofs cut, long paragraphs split, notation and hypotheses repaired, spelling and typos fixed. Works on agent-drafted formal text or on a collaborator's appendix; for a collaborator's text it also leaves review markers and drafts the Slack note.
Как установить скилл bip-ms-math?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bip-ms-math запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…