mvanhorn/printing-press-library/substack
Claude Code and agent skill by mvanhorn/printing-press-library
- community
Checking that the SKILL.md file is still in the repository.
Run your Substack growth and authoring loop from the command line — publish rich drafts, manage a multi-publication portfolio, and measure what drives growth. Trigger phrases: `post a substack note`, `schedule a week of substack notes`, `find substack swap partners`, `which of my notes drove subs`, `what's my engagement reciprocity`, `voice-match a substack note`, `best time to post on substack`, `create a substack draft`, `sync my substack portfolio`, `top posts across my publications`, `search my substack posts`, `use substack`, `run substack`.
Install
npx vskill@latest install mvanhorn/printing-press-library/substackSKILL.md
The same SKILL.md was published earlier as mvanhorn/printing-press-library/substack.
Substack — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the substack-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:
``bash npx -y @mvanhorn/printing-press-library install substack --cli-only ``
- Verify:
substack-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
When to Use This CLI
Reach for this CLI when an agent needs to operate a Substack publication end-to-end: posting Notes on a cadence, drafting and publishing long-form, engaging with niche writers, finding swap partners, and measuring which content actually drove subs. It is the right pick over WriteStack/StackSweller when you need agent-native plumbing (--json, --select, --dry-run, typed exit codes), offline-first analytics (every join runs locally over SQLite), or coverage of the writer surface those tools don't expose. Engage write actions (engage like, engage restack, engage restack-with-comment) print a curl-equivalent by default and only fire with --send; treat the print-curl output as a preflight, not a live action.
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Local state that compounds
- `growth attribution` — Connect every Note you posted to the paid and free subscribers that actually arrived in the 24-hour window after, so you stop guessing which content drove growth.
_Pick this over a generic stats call when an agent needs to decide which Note formats to repeat next week._
``bash substack-pp-cli growth attribution --days 30 --json --select rank,note_id,note_excerpt,subs_acquired,paid_subs_acquired ``
- `engage reciprocity` — See net-give/net-take per writer you engage with — who reciprocates your restacks/comments, who quietly free-rides on yours.
_Use when an agent is deciding whether to keep investing in a swap partner; surfaces relationships before they go stale._
``bash substack-pp-cli engage reciprocity --days 30 --agent --select handle,outgoing,incoming,net,drift ``
Algorithm-aware automation
- `notes schedule --guard` — Refuse to fire (or queue) a Note that lands less than 30 minutes after your last own-Note or violates your time-of-day rotation. Returns typed exit 2 with a JSON diagnosis.
_Stops an agent from accidentally torching its own reach by dumping a queue all at once._
``bash substack-pp-cli notes schedule --at 2026-05-10T13:00:00Z --body "hook line\n\nbody" --guard --json ``
- `growth best-time` — Top day-of-week × hour cells ranked for whichever growth signal you pick (paid subs, likes, restacks, or comments) — not a single average.
_An agent picking when to schedule tomorrow's Notes can ask for the goal it's optimizing instead of guessing._
``bash substack-pp-cli growth best-time --days 90 --for-goal subs --json --select day_of_week,hour,rate,sample_size ``
Pattern intelligence
- `discover patterns` — Mechanically extracts which hook patterns (curiosity-gap colon, 3-sentence formula, em-dash reframe, question opener) actually rank in a niche, with restack/comment ratios.
_An agent drafting Notes can ask which hook shape currently outperforms in this niche before generating._
``bash substack-pp-cli discover patterns --niche productivity --sort restacks --since 14d --agent --select pattern,sample_count,avg_restacks,avg_comments,top_example ``
- `voice fingerprint` — Measurable voice profile — sentence length, em-dash rate, colon-hook rate, hook-line ratios, vocabulary uniqueness — for any handle, with --diff to compare against another writer.
_An agent drafting Notes for a ghostwriter client can verify the output stays inside the client's voice envelope._
``bash substack-pp-cli voice fingerprint --handle maya --diff devon --json --select metric,self,other,delta ``
Network leverage
- `recs find-partners` — Score candidate publications for a Substack Recommendations swap by mutual-overlap density across followee + recommendation graphs.
_An agent running a weekly cross-promo pass can rank candidates instead of pitching cold._
``bash substack-pp-cli recs find-partners --my-pub on --top 20 --json --select rank,handle,pub,overlap_score,shared_followees ``
- `growth pod` — Given a list of handles, render a member × member engagement matrix — last 30 days of restacks/comments/likes between every pair.
_An agent organizing a mutual-aid pod can see who's net-positive vs free-riding without a spreadsheet._
``bash substack-pp-cli growth pod --members maya,devon,priya,jordan --days 30 --json ``
Authoring with rich field control
- `drafts create` / `drafts update` — Full Substack draft API surface: 30+ flags covering title, subtitle, body (Markdown auto-converts to ProseMirror), section-id, type (newsletter/podcast/video/thread), audience, bylines, SEO metadata, social title, cover image, comment settings, podcast/video URLs, and visibility toggles. The only authoring path that gives agents field-level control without fighting a web editor.
_Use when an agent is constructing a complete long-form post from structured data — research summary, translated copy, ghostwritten piece — and needs paywall, SEO, and section placement set in one command._
``bash export SUBSTACK_PUBLICATION=mypub substack-pp-cli drafts create --title "Why X matters" \ --body-file ./post.md --audience only_paid \ --seo-title "X explained" --seo-description "How X affects Y" \ --cover-image https://substackcdn.com/.../cover.jpg --json ``
Portfolio & analytics (local columnar store)
These commands read a local SQLite store populated by portfolio sync. The workflow is:
Custom-domain publications are supported: auth login --chrome captures the Creator-session cookie from the custom domain automatically.
- `portfolio sync` — The data-population command. Discovers every publication you own and writes posts, subscribers, and drafts into the local columnar store. Must be run before
portfolio,posts best,grep,schedule board,subs churn, andsubs cross-sellcan return cross-publication data.
``bash export SUBSTACK_PUBLICATION=mypub substack-pp-cli portfolio sync --json ``
- `portfolio` — One-screen status of every publication you own: subscriber count, paid count, posts published, drafts pending, next scheduled. No tab-switching, no CSV exports.
``bash substack-pp-cli portfolio --json ``
- `posts best` — Rank posts by views, likes, comments, or restacks within a window.
--cross-pubaggregates across all your publications.
_Use when an agent is deciding which posts to twin into a new publication or surface in a weekly newsletter._
``bash substack-pp-cli posts best --by restacks --window 30d --cross-pub --json substack-pp-cli posts best --by views --limit 5 --publication mypub-en ``
- `posts twin <slug> --to <pub>` — Duplicate a published post into another publication you own as a draft. Preserves paywall markers, section mapping, and re-uploads images to the target CDN.
``bash substack-pp-cli posts twin my-en-slug --to mypub-de --dry-run --json substack-pp-cli posts twin my-en-slug --to mypub-de ``
- `posts pair <en> <de>` / `posts pairs [--missing]` — Record EN↔DE post pairings in a local table.
--missinglists posts without a recorded twin — feed that list intoposts twinto spin up the missing translations.
``bash substack-pp-cli posts pair my-en-slug my-de-slug substack-pp-cli posts pairs --missing --publication mypub-en --json ``
- `grep <query>` — FTS5 full-text search across synced posts, notes, and comments, ranked by bm25, returning snippets and source URLs. Optional
--scope,--publication, and--sincefilters.
``bash substack-pp-cli grep "yield curve" --json substack-pp-cli grep "rate hike" --scope posts --publication mypub-en --since 2024-01-01 ``
- `schedule board` — ASCII calendar of the next N days showing scheduled posts across every publication you own. Multi-publication editorial overview in one screen.
``bash substack-pp-cli schedule board --days 30 --json ``
- `subs churn` — Diff subscriber snapshots: who newly subscribed, who unsubscribed, who upgraded free→paid, who downgraded paid→free. Run
--snapshotat least once first to create a baseline.
``bash substack-pp-cli subs churn --snapshot substack-pp-cli subs churn --since 7d --json --publication mypub-paid ``
- `subs cross-sell` — Emails that pay on at least one of your publications but are free or absent on the others. Requires 2+ owned publications in the local store. The cross-sell list Substack's UI does not ship.
``bash substack-pp-cli subs cross-sell --json --limit 100 ``
Command Reference
categories — Site-wide Substack category list — culture, technology, food, etc.
substack-pp-cli categories list— List all Substack categoriessubstack-pp-cli categories list-publications— List publications in a category
comments — Long-form post comments (distinct from Notes)
substack-pp-cli comments get— Get a single comment by ID (same shape as a Note — Substack treats them uniformly)substack-pp-cli comments list— List comments on a post
discover — Discovery surfaces — search publications, embed metadata
substack-pp-cli discover— Search Substack publications by query
drafts — Drafts CRUD + publish + schedule
substack-pp-cli drafts create— Create a new draftsubstack-pp-cli drafts delete— Delete a draftsubstack-pp-cli drafts get— Get a draft by IDsubstack-pp-cli drafts list— List draftssubstack-pp-cli drafts prepublish— Validate a draft for publication; returns blockerssubstack-pp-cli drafts publish— Publish a draft nowsubstack-pp-cli drafts schedule— Schedule a draft for future publish (or unschedule with --post-date null)substack-pp-cli drafts update— Update an existing draft
feed — RSS feed for a publication
substack-pp-cli feed— RSS XML feed (returns XML; use--rawto dump)
images — Image upload (data-URI JSON, not multipart)
substack-pp-cli images— Upload an image; returns CDN URL. Body is data-URI JSON.
inbox — Authenticated reader feed (home feed) — Notes + posts surfaced for the current user
substack-pp-cli inbox home— Authenticated home feedsubstack-pp-cli inbox reader-posts— Posts feed for current user
reader — Reader-side commands — subscriptions, following, and reading list
substack-pp-cli reader subscriptions— List all publications you subscribe to as a reader. Flags:--filter paid|free,--cursor,--limit. Store resourcereaderis populated bysync(and write-through on live reads) so--data-source localand auto network fallback work.
notes — Substack Notes — short-form posts (Substack treats Notes as comments internally)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglibrary/media-and-entertainment/substack/SKILL.md
Popularity
- Repository stars
- 1,937
- Repository forks
- 581
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mvanhorn/printing-press-library/substack)