text.convert_to_latex

text.convert_to_latex is a skill for Claude Code from gpsaggese/helpers. It costs 8 tokens per session (482 once invoked), scanned A, original, Apache-2.0.

A text-formatting procedure that converts mathematical formulas and symbols into LaTeX, a notation system commonly used for typeset mathematics. It keeps the surrounding text structure and meaning unchanged.

In plain words
What is it for?
Use it to rewrite equations, probability expressions, and mathematical arrows in a text file, then check the result with a text linter.
Why use it?
It makes formulas more consistent and readable in documents that support LaTeX instead of leaving them as plain text or Unicode symbols.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to rewrite equations, probability expressions, and mathematical arrows in a text file, then check the result with a text linter.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gpsaggese/helpers/text.convert_to_latex
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 gpsaggese/helpers --skill text.convert_to_latex
Clone the repo
git clone --depth 1 https://github.com/gpsaggese/helpers

Made for: Claude Code.

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 text.convert_to_latex

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gpsaggese/helpers/text.convert_to_latex"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/text.convert_to_latex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.00008 $0.00482
Opus 5.5 $0.00003 $0.00193
Sonnet 5.5 $0.00002 $0.00096
Haiku 4.5 $0.00001 $0.00048

Measured yesterday against content hash d2d27e68fb08, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

text.convert_to_latex 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 yesterday.

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.

.claude/skills/text.convert_to_latex/SKILL.md · 71 lines

What it actually says

Goal

  • Convert formulas to Latex leaving the structure of the text exactly the same
  • Use the rules and conventions in .claude/skills/latex.rules.md

Workflow

Convert Mathematical Formulas

  • Convert mathematical formulas to Latex without changing their meaning and formatting so that they are easily readable
    • Bad (uses Unicode symbols instead of LaTeX)

      P(M | D) ∝ P(D | M) P(M)
      
    • Good (uses LaTeX macros for a readable formula)

      $$
      \Pr(M | D) \propto \Pr(D | M)\, \Pr(M)
      $$
      
    • Bad (plain text notation, not LaTeX)

      a* = argmax_a E_{M~P(M|D)}[Goal | do(a), M]
      
    • Good (LaTeX formula)

      $$
      a^* = \arg\max_a
        \EE_{M | \Pr(M | D)}
        \left[
          \text{Goal} | do(a), M
        \right]
      $$
      

Convert Symbols to Latex

  • Convert symbols into Latex ones, together with variables if needed:
    • Bad (Unicode arrow instead of LaTeX)
      X → Y
      
    • Good (LaTeX symbol)
      $X \to U$
      
  • If there are expressions then leave them unchanged
    • Bad
      "If battery low" → seek charging station
      
    • Bad
      "If battery low" $\to$ seek charging station
      

Lint the File

  • After the conversion run the command:
    > lint_text.py -i <FILE>
    

Verification

  • Confirm all formulas render correctly in LaTeX
  • Confirm non-formula expressions remain unchanged
  • Confirm lint_text.py -i <FILE> completes without errors
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. yesterday First seen · 71 lines · 8 tokens per session scan A d2d27e68fb08

Subscribe to this mod's changes

text.convert_to_latex is a skill published in the GitHub repository gpsaggese/helpers (158 stars, last pushed today), licensed Apache-2.0. It adds 8 tokens to every session and 482 once invoked, about $0.0000 per session on Opus 5.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-11-06.

Related

text.convert_to_latex compared with skills from other repositories

text.convert_to_latex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
text.convert_to_latexgpsaggese/helpersSkill158todayApache-2.0A8Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill35ktodayApache-2.0A123Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA83Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA44Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill33ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.8ktodayApache-2.0A205Claude Code