mph-substack-publish

mph-substack-publish is a skill for Claude Code from mphinance/alpha-skills. It costs 94 tokens per session (1,861 once invoked), scanned A, original, MIT.

A workflow for creating Substack drafts or publishing posts from a subject, combining a writing guide, image creation, and a local upload script.

In plain words
What is it for?
Use it to draft or explicitly publish posts on mphinance.substack.com, including choosing a title slug, article category, voice, images, and required disclaimers.
Why use it?
It organizes the work from topic to Substack post and applies different requirements for builder, trade, paid-follow-up, and recovery articles. Publishing is separate from drafting because it sends the post to subscribers and cannot be undone.

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 draft or explicitly publish posts on mphinance.substack.com, including choosing…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mphinance/alpha-skills/mph-substack-publish
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-substack-publish
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-substack-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/mphinance/alpha-skills/mph-substack-publish.svg)](https://agentmods.dev/skills/mphinance/alpha-skills/mph-substack-publish)
Your own site
<a href="https://agentmods.dev/skills/mphinance/alpha-skills/mph-substack-publish"><img src="https://agentmods.dev/badge/skills/mphinance/alpha-skills/mph-substack-publish.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,861 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.00094 $0.01861
Opus 5 $0.00047 $0.00931
Sonnet 5 $0.00019 $0.00372
Haiku 4.5 $0.00009 $0.00186

Measured 6d ago against content hash 770dbec5bb63, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mph-substack-publish 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 6d 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.

plugins/mph-kit/skills/mph-substack-publish/SKILL.md · 135 lines

How it starts

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

MPH Substack Publish

End-to-end pipeline. Subject in → draft in mphinance.substack.com out (or published post if asked explicitly).

Inputs

  • Subject (required) — what the post is about. One line is fine; longer briefs are better.
  • Mode (default: 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.
  • Post category (inferred from subject, or asked once if ambiguous):
    • 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.

Pipeline

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

  2. Pick a slug + workspace.

    • Slug: YYYY-MM-DD_kebab-case-title
    • Workspace: ~/.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.
  3. Draft the post following the mph-substack-writer skeleton:

    • H1 title (Title Case, terse)
    • One-line italic subtitle (the "dek")
    • Optional ![hero](hero.png) reference
    • Bold opener (1-2 short paragraphs)
    • Context section
    • The meat (data + figures + voice)
    • "Here's the truth..." pivot
    • Optional paywall tease (for paid_tease category)
    • Standardized footer (see template below — do NOT improvise this)
  4. 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 ![alt](foo.png). Substack will receive these as uploaded S3 images.

Read the full file on GitHub · 135 lines

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. 6d ago First seen · 135 lines · 94 tokens per session scan A 770dbec5bb63

Subscribe to this mod's changes

mph-substack-publish is a skill published in the GitHub repository mphinance/alpha-skills (21 stars, last pushed 9d ago), licensed MIT. It adds 94 tokens to every session and 1,861 once invoked, about $0.0005 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens