notation-and-variable-consistency

A consistency review method for the symbols used in mathematical writing. A symbol ledger records where each symbol is defined, what it means, its type or dimensions, and where it is reused.

In plain words
What is it for?
Checking TeX, Markdown, or plain-text drafts; reporting notation drift; and suggesting limited renames or clarifications without changing mathematical meaning.
Why use it?
It helps catch undefined symbols, reused variables, changing index rules, and confusion between scalars, vectors, and matrices. These inconsistencies can hide mathematical errors or make a proof difficult to follow.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/verymath/ai4math-writing/notation-and-variable-consistency
Any agent
npx skills add VeryMath/AI4Math-Writing --skill notation-and-variable-consistency
Clone the repo
git clone --depth 1 https://github.com/VeryMath/AI4Math-Writing

Made for: Claude Code, Codex.

Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 325 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00325
Opus 5 $0.00017 $0.00162
Sonnet 5 $0.00007 $0.00065
Haiku 4.5 $0.00003 $0.00032

Measured 2d ago against content hash 8b46535aed71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

notation-and-variable-consistency 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 2d 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/notation-and-variable-consistency/SKILL.md · 43 lines

What it actually says

Notation And Variable Consistency

Maintain a symbol ledger so notation supports comprehension and does not hide mathematical errors.

Inputs

  • Full draft or selected sections in TeX, Markdown, or plain text.
  • Definitions, theorem statements, proof notes, and formula-heavy sections.
  • Optional notation conventions from the target venue or research group.

Output Contract

Return:

  • Symbol ledger: symbol, first definition, type/domain, scope, dimensions, and where it is reused.
  • Drift report: overloaded symbols, undefined symbols, renamed objects, index changes, and conflicting conventions.
  • Patch suggestions: concrete text or TeX edits with meaning-preservation notes.

Workflow

  1. Scan definitions, theorem statements, algorithms, equations, proofs, and figures for symbols.
  2. Record first-use locations and expected mathematical roles.
  3. Compare later uses against the ledger.
  4. Flag domain, dimension, index, and notation conflicts.
  5. Propose minimal renaming or clarification edits.

Review Rules

  • Do not rename symbols globally without checking proof dependencies.
  • Treat variable alignment as semantic, not cosmetic, when it affects indexing, dimensions, or object identity.
  • Preserve common field conventions such as n, d, x, X, A, \epsilon, and \delta unless the draft uses them inconsistently.
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. 2d ago First seen · 43 lines · 35 tokens per session scan A 8b46535aed71

Subscribe to this mod's changes

notation-and-variable-consistency is a skill published in the GitHub repository VeryMath/AI4Math-Writing (5 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 325 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

copt-linear-program

Models and solves linear programs (LP) with Cardinal Optimizer (coptpy). Restates natural-language word problems into LP before building and solving. Use when the user mentions COPT/coptpy, linear programming, LP, word problems, applications, story problems, natural-language descriptions, 应用题, 线性规划文字题, or matrix-form…

VeryMath/AI4Math-Optimization · 90 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

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

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