formula-healer

formula-healer is a skill for Claude Code, Codex from Jacobinwwey/notemdpro. It costs 33 tokens per session (1,042 once invoked), scanned A, original, MIT.

A repair tool for LaTeX formulas, which is a text format used to write mathematical notation in Markdown files.

In plain words
What is it for?
It converts matching single-dollar formula blocks to double-dollar display blocks and can process individual files or folders.
Why use it?
It fixes incorrect formula delimiters that can make mathematical content render in the wrong style.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit It converts matching single-dollar formula blocks to double-dollar display blocks and can process individual files or folders.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jacobinwwey/notemdpro/formula-healer
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 Jacobinwwey/notemdpro --skill formula-healer
Clone the repo
git clone --depth 1 https://github.com/Jacobinwwey/notemdpro

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-healer

README.md
[![agentmods](https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/formula-healer/github.svg)](https://agentmods.dev/skills/jacobinwwey/notemdpro/formula-healer)
Your own site
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/formula-healer"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/formula-healer/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-healer

Your own site · 80×15
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/formula-healer"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/formula-healer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,042 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.00033 $0.01042
Opus 5 $0.00016 $0.00521
Sonnet 5 $0.00007 $0.00208
Haiku 4.5 $0.00003 $0.00104

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

Security

Grade A, and why

formula-healer 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (formulaFixer.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/formula-healer/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NoteMD Pro - Formula Fixing

Overview

This skill fixes LaTeX math formula formatting in markdown files. It converts single-line formulas delimited by single $ to double $$ for proper display math rendering.

When to Use

  • Fix inline math: Convert $ formula $ to display math $$ formula $$
  • Batch repair: Fix multiple files at once
  • Format consistency: Ensure proper math rendering

Function Call Chain

fixFormulaFormats (formulaFixer.ts)
├── read file content
├── apply regex pattern: /^(\s*)\$(\s*)$/gm
├── replace with: $1$$$$$2
└── return fixed content

fixFormulaFormatsInFile
├── read_file(inputPath)
├── fixFormulaFormats(content)
├── if changed: write_file(inputPath, content)
└── return: boolean (modified or not)

batchFixFormulaFormatsInFolder
├── get files in folder (.md, .txt)
├── for each file
│   └── fixFormulaFormatsInFile
└── return: { modifiedCount, errors[] }

Code File

The full TypeScript code is available in: formulaFixer.ts

This file contains:

  • fixFormulaFormats() - Core fix function
  • fixFormulaFormatsInFile() - Single file processing
  • batchFixFormulaFormatsInFolder() - Batch processing

Fix Pattern

Single-line Formula Conversion

Input:

$

x^2 + y^2 = z^2

$

Output:

$$

x^2 + y^2 = z^2


$$

Regex Pattern (Current Limitation)

// Pattern: ^(\s*)\$(\s*)$
// Matches: start of line, optional whitespace, single $, optional whitespace, end of line

// Replacement: $1$$$$$2
// Result: optional whitespace + $$ + $$ + optional whitespace

[!WARNING] Regex Fragility The current line-based regex is highly brittle. It fails to properly handle inline math (The value is $x=2$), single-line block math containing text ($x=2$), or multi-line single-dollar blocks.

🚀 Future Robustness Upgrade (AST Parsing)

To make this Agentic skill enterprise-grade, the AI should be instructed to replace this simple Regex with an Abstract Syntax Tree (AST) parser like remark-math, or write heavily context-aware regex patterns that track state to safely distinguish between inline $..$ and block $$..$$ requirements.

Read the full file on GitHub · 169 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 169 lines · 33 tokens per session scan A 4cb31bd64826

Subscribe to this mod's changes

formula-healer is a skill published in the GitHub repository Jacobinwwey/notemdpro (2 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 1,042 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

nft-standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

wshobson/agents · 48 tokens

postgresql-table-design

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

wshobson/agents · 37 tokens

spark-training-gotchas

Preflight and diagnose the ten known failure modes for ML training on NVIDIA DGX Spark. Use when a training run on DGX Spark fails to start, OOMs below the 128GB limit, slows down mid-run, or before any multi-hour training job on GB10.

wshobson/agents · 63 tokens

parallel-feature-development

Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns for multi-agent implementation. Use this skill when decomposing a large feature into independent work streams, when two or more agents need to implement different layers of the same system…

wshobson/agents · 105 tokens

cost-optimization

Optimize cloud costs across AWS, Azure, GCP, and OCI through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.

wshobson/agents · 48 tokens

istio-traffic-management

Configure Istio traffic management including routing, load balancing, circuit breakers, and canary deployments. Use when implementing service mesh traffic policies, progressive delivery, or resilience patterns.

wshobson/agents · 40 tokens