mph-figure
/mph-figure
Renderuje Markdown lub HTML do ostrego obrazu PNG z tabelami, wykresami i kartami statystyk, na przykład do wstawiania w posty Substack, gdzie tabele Markdown wyświetlają się źle.
- Autor
- mphinance ↗
- Repozytorium
- alpha-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 6
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: build_pdf_ofm.mjs, scripts/render.mjs
Co robi i kiedy
Renderuje Markdown lub HTML do ostrego obrazu PNG z tabelami, wykresami i kartami statystyk, na przykład do wstawiania w posty Substack, gdzie tabele Markdown wyświetlają się źle.
Oryginalny opis (EN)
Render markdown or HTML into a crisp, accurately-rendered PNG — tables, data figures, stat cards — for inlining into Substack posts (where markdown tables render as garbage) or anywhere a real-browser-rendered image beats a hand-drawn one. Use whenever a post or doc needs a table-as-image, or any markdown/HTML turned into a picture.
Jak działa
- When to use it
- One-time setup
- How to use it
- Options
- Theme
Podgląd SKILL.md
--- name: mph-figure description: Render markdown or HTML into a crisp, accurately-rendered PNG — tables, data figures, stat cards — for inlining into Substack posts (where markdown tables render as garbage) or anywhere a real-browser-rendered image beats a hand-drawn one. Use whenever a post or doc needs a table-as-image, or any markdown/HTML turned into a picture. --- # 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: ``. 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`.
Pliki w paczce (6)
- .gitignore 1 KB
- SKILL.md 2 KB
- build_pdf_ofm.mjs 3 KB
- package-lock.json 4 KB
- package.json 1 KB
- scripts/render.mjs 4 KB
Wersje
W bazie nie ma innych skilli o nazwie mph-figure.
Migawka bazy z 13.11.2026 · wersja paczki 800a3601817d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100mph-substack-publish
Prowadzi cały proces Substack od tematu do szkicu lub publikacji na mphinance.substack.com, łącząc skille głosu i obrazów z lokalnym skryptem wysyłającym szkic z Markdown. - 100publish-substack-article
Publikuje artykuły Markdown w Substack jako szkice, konwertując Markdown na HTML i nigdy nie publikując automatycznie. - 98substack-draft-status
Pokazuje oczekujące szkice Substacka i porównuje je z lokalnymi wersjami, oznaczając szkice lokalne starsze niż trzy dni. - 100article-html-visuals
Osadza w artykule bloki HTML z wyjaśnieniami, kartami decyzji, tabelami porównań i listami kontrolnymi, ponad zwykłe obrazy. - 100substack
Czyta i publikuje na Substack przez własne ciasteczka logowania: pokazuje profil i główną publikację, listuje wpisy ze statystykami i publikuje nowy post lub newsletter. - 100publish-substack
Publikuje artykuł z katalogu articles/substack/ w Substack albo podmienia treść wpisu, który już jest na żywo, na wersję z repozytorium.