Read the GTM Vault newsletter at gtmvault.coRead GTM Vault
GTM Vault
Menu

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:

  1. Tag, top left: gold square, then GTM VAULT <TYPE> in JetBrains Mono 800, then an optional gold chip (section or number).
  2. Hook, 2 lines, Inter 900 uppercase, always 106px: line 1 white, line 2 gold.
  3. Coral rule under the hook.
  4. 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

  1. 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.
  2. Link previews use 1.91:1 and trim top and bottom slightly. Keep text off the outer 40px.
  3. Check every new cover at feed size (about 430px wide, cropped to 3:2) before it ships.

Types and motifs

Postlabelchipmotif
EssayESSAYsection, e.g. ARCHITECTURE, STRATEGYlayers: 8 slabs. lit = gold layers the essay is about, missing = coral dashed gap for an absent layer
Playbook essayESSAYPLAYBOOKsteps: 4-step stair, top step gold
ExplainerEXPLAINERnonedefinition: dictionary card with term and pos (part of speech or a short qualifier)
LawLAW2-digit numbernumeral on the left, set numeral
ResearchRESEARCHyear, SURVEY, DATA or LISTbars: 8 values 0 to 100, last bar gold with a coral dot
Course chapterCOURSECH 01, or WORKSHEET 05chapter: giant gold number, n, of, optional note
MCP or AI productMCPnonechat: giant gold quote mark and a cite chip
Index or librarySTACK INDEX or LIBRARYoptionaltiles: codes or names, first tile gold; only columns 1 and 2 carry text
Proof cardanye.g. FREEproof: 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

  1. 2 short lines, a claim, not the title. "Lean stack. / No record." beats restating the headline.
  2. 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.
  3. No em dashes, emojis or exclamation marks. Digits for numbers. Type normal case; CSS uppercases.
  4. 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

  1. Fix every HOOK TOO LONG line by rewriting the hook, then re-render.
  2. 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.
  3. 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.

  1. 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.
  2. Upload: fetch the JPG, read it as a data URL, then POST /api/v1/image with JSON {"image": "<dataURL>"}. A multipart body is rejected with "Invalid value". The response carries url.
  3. 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's og:image. No republish is needed and no email goes out.
  4. Before the PUT, read the old cover_image and keep a log of old and new URLs so any cover can be put back.
  5. Verify: GET /api/v1/posts/<slug> shows the new cover_image, and the post page's og:image meta 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.
  6. Batch with a short pause between posts (about 400 ms).

Every GTM Vault skill