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.
npx skills add felimet/mathtype-for-word --skill mathtype-for-wordgit clone --depth 1 https://github.com/felimet/mathtype-for-wordWrote 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.
[](https://agentmods.dev/skills/felimet/mathtype-for-word/mathtype-for-word)<a href="https://agentmods.dev/skills/felimet/mathtype-for-word/mathtype-for-word"><img src="https://agentmods.dev/badge/skills/felimet/mathtype-for-word/mathtype-for-word/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.
<a href="https://agentmods.dev/skills/felimet/mathtype-for-word/mathtype-for-word"><img src="https://agentmods.dev/badge/skills/felimet/mathtype-for-word/mathtype-for-word.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00123 | $0.04770 |
| Opus 5.5 | $0.00049 | $0.01908 |
| Sonnet 5.5 | $0.00025 | $0.00954 |
| Haiku 4.5 | $0.00012 | $0.00477 |
Grade A, and why
mathtype-for-word 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 25d 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.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MathType for Word and PowerPoint
Create real MathType equations in DOCX and PPTX, preserving MathType-native Word numbering and references. Treat source Office files as user data: write a new output unless the user explicitly authorizes in-place replacement.
Non-negotiable invariants
- Equations are
Equation.DSMT4inline OLE objects created by MathType Toggle TeX. - Numbered displays use MathType
MACROBUTTON MTPlaceRefandSEQ MTEqnfields. - References use
MTCommand_InsertEqnRef, itsMTReferenceplaceholder, and the target number'sMTPlaceRefaction. A resolved reference is aGOTOBUTTONcontaining a nestedREFto aZEqnNum...bookmark. - The default number format is simple Arabic equation number only:
(1),(2),(3), with chapter and section components disabled. - Apply numbering to new numbers and the whole processed document. Update fields after edits.
- Never substitute Word numbered lists, captions,
SEQ Equation, OMath, Unicode-only text, images, or manually typed numbers. Use those only as an explicitly accepted, clearly labeled fallback when MathType is unavailable. - PowerPoint equations are centered, floating
Equation.DSMT4OLE objects. PowerPoint has no MathType-native equivalent of Word's equation-number/reference fields, so do not imitate them with typed numbers or links. - Keep each symbol's mathematical role and font style consistent across display equations, inline math, prose, captions, and definitions.
- Keep Word, PowerPoint, and MathType automation silent: leave application windows hidden, suppress modal alerts, do not steal focus, and do not automate visible UI with mouse, keyboard,
AppActivate, orSendKeys. If a step cannot run silently, stop and report the limitation.
Terminal selection
- Detect the active terminal and available executables before invoking the bridge.
- Use PowerShell 7 directly when the active host is
pwsh.exe7 or later. - From Bash on Windows, including Git Bash, or from CMD, invoke the same Windows
pwsh.exebridge commands. From WSL Bash, invoke Windowspwsh.exe; Linuxpwshcannot automate Windows Office COM. - Never run the bridge inside Windows PowerShell 5.1. If 5.1 is active, switch to Git Bash or CMD and invoke Windows
pwsh.exethere. - When
pwsh.exeis missing, the MCP server installs PowerShell 7.6.6 (LTS) for the current user on the first tool call that needs it (official GitHub ZIP into%USERPROFILE%\.mathtype-for-word\PowerShell\<version>, pinned SHA-256 and Microsoft signature checked, no administrator rights, PATH unchanged). While it installs, the call fails withpowershell.status: installing; tell the user and call the tool again a minute later. The call after it finishes fails withpowershell.status: installedand anotice; relay the notice and call the tool again. Without MCP, runpowershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/ensure-pwsh.ps1from any terminal, with a shell timeout of several minutes (it downloads about 106 MB); it prints one JSON line whosepathreplacespwsh.exein the commands below, andinstalled: truemeans it installed PowerShell 7 now.python scripts\mathtype_batch.py renderinstalls it the same way and returns thenotice. - Whenever PowerShell 7 is installed this way (a tool result's
notice, orinstalled: true), tell the user which version was installed, the folder, and the source, in the user's language. - If the installation fails (
powershell.status: failed, orok: false), stop and ask the user to install PowerShell 7, for example with the MSI installerwinget install --id Microsoft.PowerShell --source winget --installer-type wix(administrator rights), or using https://learn.microsoft.com/zh-tw/powershell/scripting/install/microsoft-update-faq?view=powershell-7.6. Do not silently downgrade the workflow. - Read installation-matrix.md for cross-shell commands and agent-specific installation paths.
What ships with it
10 files 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.
- agents/openai.yaml 389 B
- LICENSE.txt 1.1 KB
- references/academic-equation-style.md 11 KB
- references/advanced-ribbon-operations.md 3.8 KB
- references/installation-matrix.md 7.3 KB
- references/numbering-and-references.md 3.7 KB
- references/powerpoint-workflow.md 3.3 KB
- references/troubleshooting.md 8.4 KB
- references/workflow-and-schema.md 9.9 KB
- scripts/invoke-bridge.ps1 1.6 KB runs code
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.
- 25d ago Changed 2e24897b41f9
- 26d ago Changed · +13 lines 804583634462
- 2mo ago First seen · 175 lines · 123 tokens per session scan A 38768fc2fd81
mathtype-for-word is a skill published in the GitHub repository felimet/mathtype-for-word (18 stars, last pushed 4d ago), licensed MIT. It adds 123 tokens to every session and 4,770 once invoked, about $0.0005 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-08-31.
mathtype-for-word compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mathtype-for-wordfelimet/mathtype-for-word | Skill | 18 | 4d ago | MIT | A | 123 | Claude Code, Codex |
| endnote-for-wordfelimet/endnote-for-word | Skill | 6 | 5d ago | MIT | C | 175 | Claude Code, Codex |
| dcf-modelNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 14 | Claude Code, Codex |
| comps-analysisNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 13 | Claude Code, Codex |
| lbo-modelNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 19 | Claude Code, Codex |
| siyuanNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 17 | Claude Code, Codex |
| pptxasgeirtj/system_prompts_leaks | Skill | 71k | today | CC0-1.0 | A | 217 | Claude Code, Codex |