formula-environment-and-readability

formula-environment-and-readability is a skill for Claude Code, Codex from VeryMath/AI4Math-Writing. It costs 41 tokens per session (319 once invoked), scanned A, original, MIT.

A review guide for making mathematical formulas and their surrounding explanations easier to read in research papers.

In plain words
What is it for?
Use it to identify unclear displays, improve equation formatting and prose, and flag notation or correctness issues that need checking.
Why use it?
It helps choose suitable layouts for long equations, proofs, derivations, and piecewise definitions while preserving their meaning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to identify unclear displays, improve equation formatting and prose, and flag notation or correctness issues that need checking.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/verymath/ai4math-writing/formula-environment-and-readability
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add VeryMath/AI4Math-Writing --skill formula-environment-and-readability
Clone the repo
git clone --depth 1 https://github.com/VeryMath/AI4Math-Writing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for formula-environment-and-readability

README.md
[![agentmods](https://agentmods.dev/badge/skills/verymath/ai4math-writing/formula-environment-and-readability/github.svg)](https://agentmods.dev/skills/verymath/ai4math-writing/formula-environment-and-readability)
Your own site
<a href="https://agentmods.dev/skills/verymath/ai4math-writing/formula-environment-and-readability"><img src="https://agentmods.dev/badge/skills/verymath/ai4math-writing/formula-environment-and-readability/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for formula-environment-and-readability

Your own site · 80×15
<a href="https://agentmods.dev/skills/verymath/ai4math-writing/formula-environment-and-readability"><img src="https://agentmods.dev/badge/skills/verymath/ai4math-writing/formula-environment-and-readability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00319
Opus 5 $0.00020 $0.00160
Sonnet 5 $0.00008 $0.00064
Haiku 4.5 $0.00004 $0.00032

Measured 9d ago against content hash a72ce0f3e185, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

formula-environment-and-readability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/paper-writing/skills/formula-environment-and-readability/SKILL.md · 42 lines

What it actually says

Formula Environment And Readability

Improve displayed mathematics so formulas communicate the argument. Environment choice is part of exposition: it should reveal structure without changing meaning.

Inputs

  • TeX or draft text containing formulas, theorem statements, proofs, algorithms, or derivations.
  • Optional venue class constraints and style preferences.

Output Contract

Return:

  • Formula findings: location, issue, proposed environment or rewrite, and meaning-risk level.
  • Revised snippets for high-value displays.
  • Notes where a formula requires a correctness or notation audit before rewrite.

Workflow

  1. Identify long, dense, or ambiguous displayed formulas.
  2. Check whether the surrounding prose states what the formula does.
  3. Choose environments by role: equation for a single object, align for aligned derivations, split for one numbered multi-line equation, multline for long expressions, and cases for piecewise definitions.
  4. Remove brittle manual spacing and avoid eqnarray and raw $$.
  5. Preserve labels, numbering intent, punctuation, and mathematical meaning.

Review Rules

  • Do not make formulas shorter by deleting assumptions, quantifiers, or terms.
  • Flag a displayed formula when the prose and formula disagree.
  • Prefer readability over clever compression in proof-critical derivations.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 42 lines · 41 tokens per session scan A a72ce0f3e185

Subscribe to this mod's changes

formula-environment-and-readability is a skill published in the GitHub repository VeryMath/AI4Math-Writing (6 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 319 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

or-solver

Unified solver detection, installation, selection, and license configuration for OR optimization skills (LP, MIP, SOCP). One-stop solver management: detect installed packages, install missing solvers with proper priority, select the best available solver by problem type, and troubleshoot common errors. Covers 20…

VeryMath/AI4Math-Optimization · 145 tokens

cdopt-optimization

Use when Codex needs to solve, reproduce, test, compare, generate examples for, or diagnose CDOpt manifold optimization workflows, including CDOpt package smoke tests, official problem description cards, Stiefel dictionary learning, SciPy wrappers, PyTorch/JAX/NumPy CDOpt examples, dependency checks, tiny CPU…

VeryMath/AI4Math-Optimization · 80 tokens

linear-programming

Models and solves linear programs (LP) with multiple solvers (COPT, Gurobi, MOSEK, CPLEX, HiGHS (scipy/highspy), CLARABEL, PuLP/CBC, CVXOPT, OR-Tools/GLOP, GLPK, SoPlex, lpsolve, ECOS). Restates natural-language word problems into LP before building and solving. When no local solver is available, searches GitHub for…

VeryMath/AI4Math-Optimization · 149 tokens

copt-linear-program

A tool for turning linear programming problems into mathematical models and solving them with Cardinal Optimizer, a software package for optimization. It can start from a word problem or from supplied matrices and JSON data.

VeryMath/AI4Math-Optimization · 90 tokens

osqp-solver

Model, solve, update, reproduce, and diagnose continuous convex quadratic programs with the OSQP Python interface, including canonical-form conversion, sparse CSC data, solver-status gates, residual checks, infeasibility certificates, warm starts, repeated parametric QPs, and academic citation. Use when a task names…

VeryMath/AI4Math-Optimization · 131 tokens

second-order-cone-programming

Models and solves second-order cone programs and problems convertible to SOCP form using cvxpy with multiple solver backends (COPT, Gurobi, MOSEK, CPLEX, CLARABEL, ECOS, SCS, CVXOPT, COSMO, OSQP). Handles linear objectives with second-order cone constraints, as well as problems reducible to SOCP such as portfolio…

VeryMath/AI4Math-Optimization · 114 tokens