/mph-kit:mph-substack-publishfrom mph-kit
End-to-end Substack pipeline: takes a subject, drafts a post with figures, and pushes it to Substack as a draft or published post.
Ships in mph-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
End-to-end pipeline. Subject in → draft in mphinance.substack.com out (or published post if asked explicitly).
draft) — draft creates a draft only. publish calls /api/v1/drafts/{id}/publish after the draft lands. Always confirm explicitly with Michael before publish mode — that triggers the subscriber email blast and is not reversible.builder — build-in-public, tool launches, code drops. No NFA needed. Default.trade — specific positions / picks / "I bought X". NFA disclaimer required.paid_tease — free post with a paywalled follow-up; include the "what's behind the paywall" section.recovery — personal / sappy / non-finance reflection. No NFA.Read the voice corpus. Read ~/.claude/skills/mph-substack-writer/SKILL.md and ~/.claude/skills/mph-voice-refresh/VOICE.md. The hard rules and RETIRED phrases there supersede anything else.
Pick a slug + workspace.
YYYY-MM-DD_kebab-case-title~/.mph-substack-cache/<slug>/ (create if missing). All intermediate files live here, not in the project repo. NEVER write Substack drafts to docs/substack/drafts/ anymore — Michael does not want post markdown checked into git.Draft the post following the mph-substack-writer skeleton:
 referencepaid_tease category)Render any figures. For tables, comparison cards, stat blocks — write HTML in the workspace folder, render via mph-figure:
node ~/.claude/skills/mph-figure/scripts/render.mjs --in <workspace>/foo.html --out <workspace>/foo.png --html
Reference in markdown as . Substack will receive these as uploaded S3 images.
Push to Substack via the script (handles image upload + ProseMirror conversion + cover image). The pusher lives in the mphinance repo, but the repo path differs per machine, so resolve it for wherever you're running:
C:/Users/mphan/OneDrive/Documents/GitHub/mphinance/substack_social/create_draft_from_md.pymph): ~/mphinance/substack_social/create_draft_from_md.pygit rev-parse --show-toplevel from inside the mphinance checkout, or find ~ -path '*substack_social/create_draft_from_md.py'.python <pusher> <workspace>/post.md
It prints the edit URL. Surface that URL to Michael.
If mode is publish (only with Michael's explicit confirmation):
python <pusher> <workspace>/post.md --publish (same <pusher> resolved in step 5)Use one of these three at the end of EVERY post. Replace the --- separator with markdown horizontal rule (Substack handles it). Do not improvise alternative sign-offs or CTAs; consistency matters more than novelty here.
builder (default) — no NFA— Michael
---
*If this helped, subscribe so the next one lands in your inbox.*
trade — with NFA— Michael
---
*Not financial advice. Do your own research. Don't trade on someone else's conviction.*
*If this helped, subscribe so the next one lands in your inbox.*
paid_tease — with paywall section above the footer## What's behind the paywall
[one-paragraph tease of the paid follow-up — what it covers, when it drops, why it's worth paying for]
— Michael
---
*If this helped, subscribe so the next one lands in your inbox. Paid subs get the deep version on [day].*
The pusher script create_draft_from_md.py lives in the mphinance repo. The absolute path above means this skill works whether Claude is invoked from the mphinance repo, a different repo, or anywhere else. If Michael moves the repo, update the path in this SKILL.md.
The script reads secrets.env from the mphinance repo automatically (resolved relative to the script's parent dir), so SUBSTACK_SID lookup works regardless of CWD.
— Michael. No last name. No MPH initials. No title. No "Managing Partner." No "The Phund." Just the em-dash + first name. (Yes, this is the one place an em-dash is allowed — it's the conventional dash for a signature, not narrative prose.) The MPH handle is fine as a brand/handle in body text ("@mphinance", "the mphinance newsletter") but never as a sign-off — that's the same as using the last name.builder posts. Adding "not financial advice" to a post about building a Python tool reads like a lawyer wrote it. The top-engagement posts in Michael's network (Stephane Derosiaux, Pawel Jozefiak, Jenny Ouyang, even Compounding Quality who literally posts his trades) have ZERO NFA in the body.~/.mph-substack-cache/ is ephemeral. Don't commit it to git. Don't write to docs/substack/drafts/.builder (it's a build-in-public post about a stack change)drafthttps://mphinance.substack.com/publish/post/199012345trade (specific position)draftpublish mode confirmed? Ask: "Confirm you want this published live, not drafted? That'll send the email blast to all subscribers."--publish flag after explicit yes.rawHtml.secrets.env.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mphinance/alpha-skills --plugin mph-kit28 skills in this plugin
/blog-postA long-form article / blog post — masthead, hero image placeholder,
article body with figures and pull quotes, author byline, related posts.
Use when the brief asks for "blog", "article", "post", "essay", or
"case study".
/cavemanUltra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman.
/critiqueRun a 5-dimension expert design review on any HTML artifact in the
project — Philosophy / Visual hierarchy / Detail / Functionality /
Innovation, each scored 0–10. Outputs a single self-contained HTML
report with a radar chart, evidence-backed scores, and three lists:
Keep / Fix / Quick-wins. Use when the brief asks for a "design
review", "design critique", "5 维度评审", "design audit", or "what's
wrong with my design".
/dashboardAdmin / analytics dashboard in a single HTML file. Fixed left sidebar,
top bar with user/search, main grid of KPI cards and one or two charts.
Use when the brief asks for a "dashboard", "admin", "analytics", or
"control panel" screen.
/design-an-interfaceGenerate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice"./design-briefParse a structured design brief written in I-Lang protocol format into a
concrete design spec. Eliminates ambiguity from vague requests like
"make it professional" by requiring explicit dimensions: palette, typography,
layout, mood, density, and constraints.
Trigger keywords: "design brief", "create a design brief", "ilang brief", "structured brief".
Other plugins' skills for the same job