Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nagisanzeninv0.1.0MITIn 2 marketplaces
Design discipline for coding agents: name the mathematical object before writing code, make the math the spec, borrow models from the sciences, measure where you are and the null, build the smallest thing that meets the bound, and prove it holds. Includes a stdlib-only exact-statistics CLI.
Claude loads one when your task matches it, or you run it by name.
2 marketplaces, most starred first
math, statistics, algorithms, verification, design, agent-skills, skills
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Name the math. Then write the code.
A skill for math-first development: it makes your coding agent find the mathematical object a problem really is before it writes code, then make the math the spec: named assumptions, a known bound, a measured baseline and null case, the smallest build that meets the bound, and tests that prove it holds.
One skill, native installs on Claude Code, OpenAI Codex, Antigravity, Pi, Hermes, ZCode, OpenClaw, and anything else
that reads the Agent Skills SKILL.md standard. Built on the
omniplugin pattern: one portable core, thin per-platform glue.
Agents write code fast and argue about it in sentences. A sentence cannot be tested. "Retries make it more reliable", "the cache should help", "the alert is not too noisy", "the new version is faster": each hides a quantity, a model, a bound and a null case that nobody wrote down. So the agent tunes a constant by feel, ships a threshold whose false alarm rate is a guess, or optimizes a step that was never the bottleneck.
Most of these problems were solved long ago, often in another field. Caching is online paging, with a proven competitive ratio. A rate limiter is an arrival curve. A flaky-test budget is a binomial bound. A canary is a sequential test. An autoscaler is a feedback loop with delay. Math First makes the agent name that object first. The known result then comes with the name, and so do the tests that check it.
Six questions, in order, written down:
Every claim gets one of four statuses: proved, measured, assumed or not claimed. The agent picks a rigor rung from stakes × irreversibility, from R0 (a napkin) to R3 (a formal proof of the core), and says which one it used.
| Piece | What it does |
|---|---|
SKILL.md | the one line, four layers, six questions, ten principles, the rigor ladder, six lenses, a router by task type, the output contract |
references/lenses.md | physics, chemistry, biology, economics, information theory, control: the question each asks, known results, a worked example each, a transplant checklist |
references/structures.md | 18 common engineering problems mapped to their math object, known result, citation and code check (matching, caching, queues, hashing, ranking, quorums, lattices, estimation, sequential tests, scale laws, retries, clocks) |
references/statistics.md | traps and tools: exact tests at small n, peeking and group-sequential designs, recycling α on discrete looks, multiple comparisons, e-values and confidence sequences, power, null simulation, clustering, tails, proper scores, a pre-registration card |
references/verification.md | property, differential, metamorphic and mutation tests; calibrating a model against the system; dominance by enumeration; null simulations through the real code; R3 tools; receipts |
references/rigor-ladder.md | R0–R3: how to choose the rung, what each one produces, what each one can claim |
references/anti-patterns.md | 19 ways math-shaped work goes wrong while looking rigorous, and review smells |
references/templates/ | math-brief.md (the R1+ deliverable), foundations.md (a project's mathematical spec), receipt.json (what a measured claim records) |
scripts/mf.py | stdlib-only calculator, exact rational arithmetic where it can be: binom, needed, samplesize, multi, cs-bernoulli, spend, seq-binary. Every answer prints its assumptions and its source |
scripts/selftest.py | known values, exact coverage, brute-force differential checks and a null simulation; no network |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nagisanzenin/math-first --plugin math-firstPlugins from other owners that cover similar ground