mph-figure

mph-figure is a skill for Claude Code from mphinance/alpha-skills. It costs 77 tokens per session (628 once invoked), scanned A, original, MIT.

A tool that turns Markdown or HTML into a browser-rendered PNG image. Markdown is plain text with simple formatting, and PNG is a common image format.

In plain words
What is it for?
Use it to render tables, comparison layouts, statistics, and small data cards as images for articles or documents.
Why use it?
It keeps tables and structured figures visually accurate in places such as Substack where Markdown tables may display poorly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the mph-kit plugin — 28 skills, 6 commands, 3 agents shipped together

Good fit Use it to render tables, comparison layouts, statistics, and small data cards as images for articles or documents.

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

Made for: Claude Code.

Or install mph-kit, the plugin that ships this one along with the rest of its 28 skills, 6 commands, 3 agents.

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 mph-figure

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mphinance/alpha-skills/mph-figure"><img src="https://agentmods.dev/badge/skills/mphinance/alpha-skills/mph-figure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 628 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 31
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Rogue Agent · line 36
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00077 $0.00628
Opus 5 $0.00039 $0.00314
Sonnet 5 $0.00015 $0.00126
Haiku 4.5 $0.00008 $0.00063

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

Security

Grade A, and why

mph-figure 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (build_pdf_ofm.mjs, scripts/render.mjs), 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.

plugins/mph-kit/skills/mph-figure/SKILL.md · 63 lines

How it starts

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

MPH Figure

Turns markdown (or raw HTML) into a pixel-accurate image: it renders the content in a real browser via Playwright and screenshots it. Because a browser does the layout, the output has full CSS fidelity — real fonts, text wrapping, column alignment, the lot. More accurate than SVG-shortcut generators, which only support a subset of CSS.

Built mainly for one job: Substack cannot render markdown tables. The mph-substack-writer skill mandates "generate an image instead." This skill is how you generate it.

When to use it

  • A Substack post (or any doc) needs a table — render it as an image instead of writing a raw markdown table.
  • Any time structured content (a comparison, a stat block, a small data card) reads better as a clean image than as plain markdown.

One-time setup

This skill bundles a script with dependencies. Run once:

cd ~/.claude/skills/mph-figure
npm install
npx playwright install chromium   # skip if Playwright's browser is already installed

How to use it

  1. Write the figure as markdown (a normal markdown table works; column alignment with :---: is respected) and save it to a file, e.g. figure.md.

  2. Render it:

    node ~/.claude/skills/mph-figure/scripts/render.mjs --in figure.md --out figure.png
    
  3. Inline the result in the post: ![caption](figure.png).

Need full control of the markup? Pass a .html file (or add --html) instead.

Options

  • --in <file> markdown or HTML input (required)
  • --out <file> output PNG (required)
  • --width <px> figure width, default 720 (a good Substack inline width)
  • --scale <n> sharpness / device scale, default 2 (retina-crisp)
  • --theme <name> visual theme, default bloomberg
  • --html treat the input as raw HTML regardless of extension

Theme

bloomberg — a dark, sharp, data-first look: near-black card, amber accents, clean tables with uppercase headers and tabular numerals. This is the "dark theme, Bloomberg aesthetic" mph-substack-writer asks for. Add more themes to the THEMES map in scripts/render.mjs.

Read the full file on GitHub · 63 lines

Files

What ships with it

5 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.

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. 9d ago First seen · 63 lines · 77 tokens per session scan A 4a1d31920e69

Subscribe to this mod's changes

mph-figure is a skill published in the GitHub repository mphinance/alpha-skills (21 stars, last pushed 11d ago), licensed MIT. It adds 77 tokens to every session and 628 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories