Skills/How GTM Vault is run / Produce
Post cover images
Renders 1600 by 900 covers from a cards file: tag, 2-line hook, and a motif per type, with a fit check and the Substack upload steps.
Download gtm-vault-thumbnails.zip SKILL.md plus scripts/cards.example.json, scripts/render.js.
Needs: Node with Playwright. The generator and an example cards file are included. Or run it without installing: connect the GTM Vault MCP and ask Claude to run gtm-vault-thumbnails.
Published by GTM Vault (gtmvault.co) as part of How GTM Vault Is Run. Swap the brand, palette and post types for your own.
One cover system for every post that is not an episode. Episodes use the show thumbnails from the episode thumbnail rail. The point of one system: a reader scanning the archive can tell an essay from a law from a research piece at a glance, and the covers still read as one publication next to the episode thumbnails.
GTM Vault moved all 102 of its non-episode posts to this system on 10 Nov 2026.
The frame
Same grammar as the episode thumbnails:
- Tag, top left: gold square, then
GTM VAULT <TYPE>in JetBrains Mono 800, then an optional gold chip (section or number). - Hook, 2 lines, Inter 900 uppercase, always 106px: line 1 white, line 2 gold.
- Coral rule under the hook.
- Visual, a full-height 640x900 panel from x=960 that bleeds off the right edge, the way the guest photo does on an episode thumbnail. Laws flip this: the numeral sits left, the hook right.
Canvas 1600x900. Palette: bg #0b0b0a, gold #c8a832, coral #e0663c, text #f2f0e9, grid #2a2a26, slab #2b2a25, edge #55524a.
Crop rules
- Substack's home page crops post cards to 3:2, keeping x 125 to 1475. Anything that must read sits inside that band. The motifs already respect it.
- Link previews use 1.91:1 and trim top and bottom slightly. Keep text off the outer 40px.
- Check every new cover at feed size (about 430px wide, cropped to 3:2) before it ships.
Types and motifs
| Post | label | chip | motif |
|---|---|---|---|
| Essay | ESSAY | section, e.g. ARCHITECTURE, STRATEGY | layers: 8 slabs. lit = gold layers the essay is about, missing = coral dashed gap for an absent layer |
| Playbook essay | ESSAY | PLAYBOOK | steps: 4-step stair, top step gold |
| Explainer | EXPLAINER | none | definition: dictionary card with term and pos (part of speech or a short qualifier) |
| Law | LAW | 2-digit number | numeral on the left, set numeral |
| Research | RESEARCH | year, SURVEY, DATA or LIST | bars: 8 values 0 to 100, last bar gold with a coral dot |
| Course chapter | COURSE | CH 01, or WORKSHEET 05 | chapter: giant gold number, n, of, optional note |
| MCP or AI product | MCP | none | chat: giant gold quote mark and a cite chip |
| Index or library | STACK INDEX or LIBRARY | optional | tiles: codes or names, first tile gold; only columns 1 and 2 carry text |
| Proof card | any | e.g. FREE | proof: groups of name rows, e.g. ON THE RECORD and BACKED BY |
Pick the lit layers from what the essay argues. A missing layer (coral) is the strongest picture
when the essay is about a gap.
Hook rules
- 2 short lines, a claim, not the title. "Lean stack. / No record." beats restating the headline.
- One size for every card. The generator never shrinks a hook. If it prints
HOOK TOO LONG, rewrite the hook. About 12 characters per line is the safe limit. - No em dashes, emojis or exclamation marks. Digits for numbers. Type normal case; CSS uppercases.
- Laws use a 2-line compression of the law, e.g. "Local wins. / System debt."
Rendering
Needs Node and Playwright with Chromium. Fonts come from npm and are embedded as base64, so output does not depend on system fonts.
cd scripts && npm i playwright @fontsource/inter @fontsource/jetbrains-mono
npx playwright install chromium # skip if Chromium is already installed for Playwright
node render.js cards.example.json out
scripts/cards.example.json holds one card of each main type. Use the Substack post id as slug
so each file maps to its post. Convert to JPG (quality 88, progressive) before upload; a cover
lands at about 80 KB.
If Playwright cannot run in the session, say so and stop. Do not hand-draw covers on a canvas.
Checking
- Fix every
HOOK TOO LONGline by rewriting the hook, then re-render. - Build a contact sheet: crop each cover to x 125 to 1475, resize to about 430px wide, and look at it. Fix any word, number or gold mark cut by the crop.
- Show the host the sheet for new types or new hooks before upload.
Uploading to Substack
Run these in a browser tab on the publication's own domain, signed in as an admin.
- Host the JPG where the page can fetch it: a public URL you control that sends
Access-Control-Allow-Origin. Remove the files once the upload is done. Never host subscriber data this way. - Upload: fetch the JPG, read it as a data URL, then
POST /api/v1/imagewith JSON{"image": "<dataURL>"}. A multipart body is rejected with "Invalid value". The response carriesurl. - Set the cover:
PUT /api/v1/drafts/<id>with{"cover_image": url}. On a published post this updates the live post at once, including the page'sog:image. No republish is needed and no email goes out. - Before the PUT, read the old
cover_imageand keep a log of old and new URLs so any cover can be put back. - Verify:
GET /api/v1/posts/<slug>shows the newcover_image, and the post page'sog:imagemeta points at it. If a post had a social preview image set by hand in the editor's File Settings, that override can still win, so check it and tell the host. LinkedIn and X keep their cached preview of earlier shares until they re-scrape. - Batch with a short pause between posts (about 400 ms).