A cover from an image generator
A cover tells what the piece is about before anyone reads a word. It is a literal scene, it fills the frame, and it does not look like the previous covers.
Margin checker: scripts/margins.mjs next to this file (in Claude Code, ${CLAUDE_SKILL_DIR}/scripts/margins.mjs). Node 18+.
1. Before the brief
- Read the piece. Write down its 2-3 main ideas, one line each. The scene retells these ideas, not the topic in general.
- Look at the images inside the piece. The cover follows their style. Pick one or two as style references for the generator.
- Look at the last 3-5 covers in the same place. The new one differs in palette, composition and look, even if the last one was liked, unless the human has set a fixed series style.
- Ask about the format: size and aspect ratio (1200x630 for link previews, 16:9 for a blog header, 1:1 for a feed), and whether text will be placed over the picture. Leave room for text only if the answer is yes.
2. The brief
- A literal story with people or characters doing something, readable without a caption. Abstract symbols do not read: floating cubes with icons, glowing brains, crossed-out masks, robots on a conveyor with nobody around. Example. A piece on moving a website to a new server. Abstract: two glowing servers and an arrow. Literal: movers carry a small lit house from one hill to another while the people inside keep working at their desks.
- The scene fills the frame and sits in the centre, with even margins of 8-10% on every side. No empty third "for a title" unless the human asked for room for text.
- Style from the piece's own images (attach them). A palette that differs from the previous covers.
- No text, letters, logos or watermarks in the generated image: generators garble text. If the cover needs a title, set it yourself afterwards in HTML or SVG and render it.
- Size and aspect ratio from step 1.
Scene: <who does what, where; 2-3 concrete details from the piece>.
Composition: the whole scene in the centre of the frame, it fills the frame,
even empty margins of 8-10% on every side, nothing touches the edges.
Style: like the attached images <or: describe>. Palette: <different from the last covers>.
No text, no letters, no logos, no watermarks. Size: <1200x630>.
3. Generate
- Use the image tool the human named. If you have none, hand the brief to the human and check what they bring back.
- Ask for 2-4 variants if the tool allows it.
- Generators rarely keep a percentage margin: requests for 5-7% have come back with 2-4%. So the brief asks for 8-10%, the check accepts 5-15%, and you measure.
4. Check before handing over
-
Measure the margins. Convert JPEG or WebP to PNG first (macOS:
sips -s format png in.jpg --out in.png).node "${CLAUDE_SKILL_DIR}/scripts/margins.mjs" cover.png --draw cover-box.pngIt finds the background from the corners and the box around the scene. It passes when every side is 5-15% and opposite sides differ by no more than 3 points. Open
cover-box.pngand check that the red box really surrounds the scene: on a textured or gradient background, adjust--toleranceor set--bg. If the human asked for room for text, the scene is off centre on purpose: add--even 100 --max 50. -
Look at it at full size: garbled letters, extra fingers, broken faces, stray logos, artefacts, a story that does not read.
-
Look at it small, about 320 px wide: feeds and link previews show it that small. Does the story still read?
-
Compare with the last covers: does it look different?
-
A real person or a known character on the cover: compare details with a reference photo or drawing (hair, beard, clothes, accessories). A logo comes from the original file or not at all; never let the generator invent one.
-
Size and weight: the exact pixel size of the target, and a sensible file size (convert to WebP or JPEG for the web after measuring).
5. When it fails
- Margins too small on a flat background: extend the canvas with the background colour and scale back to the target size. Otherwise regenerate with "the whole scene inside the central 80% of the frame".
- Off centre: shift or crop if the background allows it, otherwise regenerate.
- The story does not read: change the scene in the brief. Regenerating the same brief again rarely fixes the idea.
6. Hand over
The image, the brief you used, the measured margins, what you checked, and one or two alternatives if you have them.