
Math Review
Install math-review when your agent or backend relies on derivations, approximations, or probabilistic formulas and you need a structured pass before you trust the numbers.
Install
npx skills add https://github.com/athola/claude-night-market --skill math-reviewWhat is this skill?
- Symbolic verification workflow using SymPy, Mathematica, or Maple against handwritten algebra and calculus
- Probabilistic reasoning checks: conditional probability, Bayes rule, expectations, variances, and distribution propertie
- Approximation audit: series truncation order, linearization domains, surrogate vs ground-truth comparison
- Error-bound derivation with empirical checks at domain boundaries and worst-case scenarios
- Grounded in NASA-STD-7009 and ASME V&V 20 modeling and simulation verification expectations
Adoption & trust: 1 installs on skills.sh; 304 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Journey fit
Derivation and approximation verification is a quality gate before release—same journey shelf as pre-ship review, even when you started the math earlier in validate or build. The SKILL.md is entirely about re-deriving formulas, challenging truncations, and documenting error bounds—work that belongs on the review subphase, not raw implementation.
Common Questions / FAQ
Is Math Review safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Math Review
# Derivation Verification ## Re-derive Critical Formulas **Symbolic Verification** - Use Computer Algebra Systems (SymPy, Mathematica, Maple) - Confirm algebraic manipulations - Verify calculus operations (derivatives, integrals) - Check limit behavior **Computational Notebooks** ```python # Example: Verify gradient computation import sympy as sp x, y = sp.symbols('x y') f = x**2 + y**2 grad_f = [sp.diff(f, var) for var in [x, y]] # Compare with implementation ``` **Probabilistic Reasoning** - Verify conditional probability formulas - Check Bayes rule applications - Confirm expectation/variance calculations - Validate distribution properties ## Challenge Approximations **Series Truncation** - Document truncation order (e.g., O(h³)) - Estimate truncation error - Test convergence with different orders - Provide error bounds across domain **Linearizations** - Identify linearization points - Estimate valid domain size - Test against full nonlinear model - Document approximation quality **Surrogate Models** - Compare surrogate to ground truth - Quantify approximation error - Document training/validation data - Test extrapolation behavior **Error Bounds** - Derive theoretical error bounds - Verify empirically - Document worst-case scenarios - Test at domain boundaries ## Authoritative References **Standards and Frameworks** - **NASA-STD-7009**: Modeling and Simulation V&V - **ASME V&V 20**: Verification & Validation in CFD/HT - **ASME V&V 10**: Guide for V&V in Computational Solid Mechanics - **SIAM**: Reproducibility checklists - **IEEE 754**: Floating-point arithmetic - **NIST**: Uncertainty quantification guidelines **Academic Sources** - Peer-reviewed papers (DOI links) - Textbooks (edition and page numbers) - Technical reports - Conference proceedings **Implementation References** - Reference implementations (NumPy, SciPy, GSL) - Algorithm papers (original sources) - Numerical recipes - Domain-specific libraries ## Document Conflicts When implementation deviates from standards: ```markdown ### Deviation: [Brief title] - **Standard**: NASA-STD-7009 Section 3.4.2 - **Requirement**: Monte Carlo with n≥1000 samples - **Implementation**: n=100 samples - **Justification**: Performance constraints - **Risk**: Reduced confidence intervals - **Mitigation**: Document uncertainty, flag results - **Owner**: [name] - **Due date**: [date] ``` ## Citation Format ```markdown ## References [1] Wilkinson, J.H. (1963). *Rounding Errors in Algebraic Processes*. Prentice-Hall. Chapter 3. [2] NASA-STD-7009A. (2016). *Standard for Models and Simulations*. Section 4.2: Verification Requirements. [3] Goldberg, D. (1991). "What Every Computer Scientist Should Know About Floating-Point Arithmetic". *ACM Computing Surveys*, 23(1). DOI: 10.1145/103162.103163 ``` ## Verification Checklist - [ ] Formulas re-derived from first principles - [ ] Symbolic verification completed (CAS) - [ ] Approximation order documented - [ ] Error bounds derived and tested - [ ] Authoritative references cited - [ ] Deviations from standards documented - [ ] Conflicts resolved or flagged - [ ] Implementation matches theory --- parent_skill: pensive:math-review load_priority: high estimated_tokens: 400 --- # Numerical Stability Analysis ## Conditioning **Condition Numbers** - Measure sensitivity to input perturbations - High condition number = unstable computation - Use scaled condition numbers when possible **Sensitivity Analysis** - Perturb inputs systematically - Measure output variation - Document acceptable tolerance ranges ## Precision Management **Floating-Point Error Propagation** ```python # Bad: Accumulating small values into large total = 1e15 for x in small_values: total += x # Precision lost # Good: Kahan summation or sort first sorted_values = sorted(small_values) total = sum(sorted_values) # Better precision ``` **Catastrophic