惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
小众软件
小众软件
D
Docker
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
博客园 - 叶小钗
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
IT之家
IT之家
博客园 - 司徒正美
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Your AI Sucks at Math. Fix It With One Command.
Chenrui Hu · 2026-05-31 · via DEV Community

Chenrui Hu

You've seen this before.

You ask your AI agent: "Find ∫ x·e^x dx"

It confidently replies: e^x + C, complete with a plausible-looking derivation. You nod. Then you check — the correct answer is (x−1)·e^x + C. It was wrong by a mile, and you almost shipped it.

This is the fundamental problem with AI math today: LLMs can talk, but they can't verify their own work. They sound convincing while being catastrophically wrong. And the more complex the problem, the better the hallucination.

Math.skill changes that. It's an open-source mathematical reasoning skill for AI agents — install it, and your agent stops guessing and starts verifying.


What Makes It Different

Typical AI Math Plugin Math.skill
Workflow Prompt → LLM → answer Prompt → 7-step pipeline → ≥2 verifications → answer
Verification None Answer blocked if verification fails
Open problems Might hallucinate a "solution" Honestly says "this is unsolved"
Error recovery No mechanism Auto-backtrack, fix, recompute, re-verify

The core differentiator: a verification engine that runs at least 2 of 11 independent checks on every answer. No answer leaves the pipeline unverified. Period.


The 7-Step Pipeline

Every problem flows through this:

Step What Happens Why It Matters
1. Parse Extract conditions, goals, variables, implicit domain constraints Catches misread problems before they waste your time
2. Model Build formal representation: equation, function, matrix, probability space, etc. Prevents building the wrong mathematical structure
3. Select Choose the optimal method from 30+ strategies Avoids brute-forcing when elegance exists
4. Solve Step-by-step with mathematical justification at every transformation Full traceability — nothing hidden
5. Verify Apply ≥2 of 11 independent verification methods The differentiator — catches what LLMs miss
6. Correct If verification fails: backtrack to last known-good step, fix, recompute, re-verify No "doubling down" on wrong answers
7. Deliver Exact answer (not approximate), domain conditions, verification summary You know it's right, and you know why

The Verification Engine: 11 Independent Methods

This is the heart of Math.skill. Each method catches a different class of errors:

ID Method What It Catches
A Back-substitution Extraneous roots, sign errors — plug the answer back in
B Domain check Division by zero, negative radicands, log(0), arcsin(2)
C Boundary analysis Missed interval endpoints, parameter edge cases
D Reverse derivation Irreversible step errors — work backwards from answer
E Numerical sampling Coefficient drift, off-by-factor — test with specific values
F Dimensional analysis Unit mismatches, P > 1, variance < 0
G Limits & special cases Degenerate behavior as parameters approach 0 or ∞
H Cross-validation Solve with a completely different independent method
I Counterexample search Disprove false universal claims by construction
J Formal logic check ∀∃ order errors, necessary vs. sufficient, circular reasoning
K Computational consistency det(A−λI) = 0, total probability = 1, trace = sum of eigenvalues

At least two methods per problem. The engine selects which ones based on the problem type. You don't have to think about it — it just works.


34 Math Categories. One Skill.

Math.skill covers everything from arithmetic to abstract algebra. Each category has its own verification protocol and common-error checklist:

Arithmetic · Algebra · Equations/Inequalities · Functions
Geometry · Trigonometry · Sequences · Combinatorics
Probability/Statistics · Limits · Differentiation · Integration
Multivariable Calculus · Linear Algebra · ODEs
Complex Analysis · Real Analysis · Abstract Algebra
Topology · Number Theory · Discrete Math · Optimization
Mathematical Modeling · Proofs · Counterexamples
Solution Checking · Problem Generation · Research-Level Problems

Not a one-size-fits-all. Each category gets targeted handling.


It Won't Lie About Unsolved Problems

Ask it to "prove the Riemann Hypothesis" and you won't get a hallucinated Nobel-worthy breakthrough. You'll get:

"This is a known open problem. Here's what I can provide: partial results, known bounds, and why this remains unsolved."

Honesty is the baseline. If a problem is open, it says so. If it can only give partial results, it clearly labels what's proven vs. conjectured.


Preemptive Error Prevention: 8 Guard Categories

The most common AI math failures are blocked before they happen:

  • Algebra: Check division by zero before dividing. Verify roots after squaring. Re-expand after factoring.
  • Inequalities: Sign reversal on multiply-by-negative. Case analysis for variable expressions.
  • Functions: Find domain first. Distinguish critical points from extrema. Check non-differentiable points.
  • Probability: Reject P ∉ [0,1]. Reject negative variance. Verify total probability = 1.
  • Calculus: Verify L'Hôpital conditions. State Taylor remainder order. Always add +C. Check improper integral convergence.
  • Linear Algebra: Check matrix dimensions. Verify Av = λv. Verify A = PDP⁻¹.
  • Geometry: Don't rely on visual intuition. State theorem conditions explicitly. Explain auxiliary constructions.
  • Abstract Math: Verify all definition components. Check quantifier order (∀ε∃δ ≠ ∃δ∀ε). Verify well-definedness.

One Command to Install

npx skills add Wholiver/Math.Skill

That's it. No config. No API keys. No dependencies to wrestle with.

Works with: Claude Code · GitHub Copilot · Cursor · Windsurf · Codex · OpenCode — any AI agent that supports skills.sh.

MIT Licensed. Free to use. Free to modify. Free to ship with your product.


Who Is This For?

  • Students — homework help with verified solutions. Learn the how and the why, not just the answer.
  • Teachers — generate well-posed problems with full solutions. Check student answers against verified references.
  • Researchers — quickly validate intermediate derivations. Catch errors before they propagate into your paper.
  • Developers — if your AI coding agent touches math, stop it from hallucinating incorrect calculations.
  • Everyone who's been burned by AI math — you know the feeling. This is the antidote.

The Bottom Line

Your AI agent is brilliant at many things. Math isn't one of them — unless you give it the right tools.

Math.skill gives your agent what it's missing: a mathematician's discipline. Parse, model, solve, verify, correct, deliver. Every time. No exceptions.

"One question. A verified answer."

npx skills add Wholiver/Math.Skill

GitHub → Wholiver/Math.Skill