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 mphinance/alpha-skills --skill mph-substack-publishgit clone --depth 1 https://github.com/mphinance/alpha-skillsWrote 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/mphinance/alpha-skills/mph-substack-publish)<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/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/mphinance/alpha-skills/mph-substack-publish"><img src="https://agentmods.dev/badge/skills/mphinance/alpha-skills/mph-substack-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 4 findings, up to high
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 →
- high Privilege Escalation · line 103 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 134 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- medium Rogue Agent · line 3 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.
- medium Agent Snooping · line 22 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00094 | $0.01861 |
| Opus 5.5 | $0.00038 | $0.00744 |
| Sonnet 5.5 | $0.00019 | $0.00372 |
| Haiku 4.5 | $0.00009 | $0.00186 |
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 3mo 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 — 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) —draftcreates a draft only.publishcalls/api/v1/drafts/{id}/publishafter the draft lands. Always confirm explicitly with Michael beforepublishmode — 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
-
Read the voice corpus. Read
~/.claude/skills/mph-substack-writer/SKILL.mdand~/.claude/skills/mph-voice-refresh/VOICE.md. The hard rules and RETIRED phrases there supersede anything else. -
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 todocs/substack/drafts/anymore — Michael does not want post markdown checked into git.
- Slug:
-
Draft the post following the mph-substack-writer skeleton:
- H1 title (Title Case, terse)
- One-line italic subtitle (the "dek")
- Optional
reference - Bold opener (1-2 short paragraphs)
- Context section
- The meat (data + figures + voice)
- "Here's the truth..." pivot
- Optional paywall tease (for
paid_teasecategory) - Standardized footer (see template below — do NOT improvise this)
-
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 --htmlReference in markdown as
. Substack will receive these as uploaded S3 images.
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.
- 3mo ago First seen · 135 lines · 94 tokens per session scan A 770dbec5bb63
mph-substack-publish is a skill published in the GitHub repository mphinance/alpha-skills (34 stars, last pushed 22d ago), licensed MIT. It adds 94 tokens to every session and 1,861 once invoked, about $0.0004 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-30.
mph-substack-publish compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mph-substack-publishmphinance/alpha-skills | Skill | 34 | 22d ago | MIT | A | 94 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | yesterday | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 6d ago | MIT | A | 21 | Claude Code |