Vintage Picture Recipe
Produces a full-color, double-sided US Letter recipe sheet in one of two selectable period styles:
kodachrome-1960s(Betty Crocker / Good Housekeeping): Warm 1963 Kodachrome studio flash photography on avocado-green boomerang Formica, tilted taped hero photo, Kitchen Tested seal, and a 3×3 step photo grid (examples/sujuk-twice-baked-potatoes/).midcentury-illustrated(Party Cookbook / Fireside / Chatelaine 401 / Festive Buffet): Bold 1950s–60s flat gouache, screenprint & ink spot illustrations, oversized colored initial capitals, offset ink-block frames, and zero photography (examples/sujuk-potatoes-illustrated/). Comes in two illustration flavors—editorial-ink(detailed gouache & crosshatching) andbreezy-upa(minimalist sketchy 1950s ink & off-register spot color instyles/midcentury-illustrated/prompts-breezy.json, whereprint_prompts.py/gen_images.pyflip at random between2B-loose-hand-inkedand2C-hastily-sketched)—plus four selectable ink palettes (party-modern,chatelaine-green,festive-buffet,notebook-sketch).
SKILL_DIR below refers to the folder containing this SKILL.md. Commands assume macOS with python3 (Pillow and pymupdf) and Google Chrome installed.
Step 0: Mandatory Opening Interview (Before Any Work)
Before creating prompts.json, generating images, or copying a template for any new recipe card, interview the user first (using ask_question / AskUserQuestion where supported, skipping only choices they already explicitly specified; see CLAUDE.md and AGENTS.md):
- Style: Style 1 (
kodachrome-1960s) vs. Style 2 (midcentury-illustrated) vs. both styles - If Style 2 (
midcentury-illustrated):- Illustration flavor:
editorial-inkvs.breezy-upasketchy minimalist - Ink palette:
party-modern,chatelaine-green,festive-buffet, ornotebook-sketch - Comic callouts: Clean text-free spot art (default) vs. witty 1950s hand-lettered comic labels (
--callouts, e.g.,"SIZZLE!","CHEESE PULL!")
- Illustration flavor:
- Batch sizing: Single size (
--single-size) vs. 1× / 2× batch-size toggle - Delivery (all cards): Ask where to save finished cards (suggesting
Documents/Recipeson Mac/Windows—or~/Documents/Personal/Recipes/if present—Desktop/Recipesfor quick printing/AirDrop,output/inside the repo, or a custom folder; explain that you'll create the folder automatically if it doesn't exist yet). For 2+ recipes, also ask whether to merge finished PDFs into one tablet cookbook PDF with a linked TOC (scripts/merge_cookbook.py). - Once confirmed, work one recipe-style card at a time.
Reference Examples
examples/sujuk-twice-baked-potatoes/— Style 1 (kodachrome-1960s): 8 step photos +"Make It Ahead",4 Potatoes/8 Potatoestoggle.examples/sujuk-potatoes-illustrated/— Style 2 (midcentury-illustrated): 8 illustrated plates + solid-ink"Make It Ahead"card, batch toggle + 4-palette switcher (data-palette), oversized initial caps.
Workflow
- Confirm style & batch details with the user (Step 0).
- Bootstrap Python deps silently if needed: Run
python3 SKILL_DIR/scripts/ensure_env.pyonce; ifPillow/pymupdfaren't installed globally, it sets up.venv/automatically and printsPYTHON=...to use for the scripts below. - Scaffold a working dir with
new_recipe.py:python3 SKILL_DIR/scripts/new_recipe.py <slug> --style kodachrome-1960s|midcentury-illustrated [--breezy] [--palette ...] [--single-size]This createswork/<slug>/<style>/cleanly without modifyingexamples/. - Update the recipe faithfully. Keep every ingredient amount (including metric
g/mland°F), temperature, and timing exact. For single-batch recipes (--single-size), keep<body data-single-size="true">and skipdata-bigattributes. - Author
prompts.json. Keep the shared"style"block (or"style_variants") from your chosen style word-for-word, and write scene descriptions forhero(3:4) ands1–sN(4:3).- Describe specialty gear and ingredients visually without brand-label text (e.g., La Chamba matte-black clay pot on a round metal stovetop diffuser, tabletop granite raclette stone with mini cheese-melting trays underneath, unlabeled glass mole jar).
- For stacked cookware (e.g., clay pot on a stovetop diffuser), explicitly specify
"flames visible underneath the diffuser, pot sitting cleanly on top (no flames between pot and diffuser)".
- Generate the
herotest visual first, inspect it visually, and confirm the style, framing, and absence of text/borders before generatings1–sN. - Generate the remaining step visuals one recipe-style card at a time, pacing
≥ 0.5–1 sbetween requests. - Inspect every visual on a contact sheet:
python3 SKILL_DIR/scripts/make_contact_sheet.py img contact_sheet.pngViewcontact_sheet.pngand regenerate any shot with extra hands, garbled text, modern digital look, or baked-in white borders. - Adapt
template.htmlfor the recipe's size and step count:- 22+ ingredients: Add
dense(<div class="ing-box dense">/<div class="ing-panel dense">) for clean 2-column ingredients. - 4–6 steps: Add
cols-2(<div class="steps cols-2">) for larger step visuals with zero empty filler boxes. - 7–8 steps: Default 3-column
.stepsgrid + 1–2 hint/note boxes (or.ahead-card.span-2for 7 steps). - 9–12 steps: Use
<div class="steps cols-4">(fits up to 12 cells on Page 2, e.g., 10 steps +.ahead-card.span-2) or expand to a 4-page spread by adding extra<section class="page">blocks. - Multi-option / 12+ step recipes (e.g., Option A & Option B methods): Use a 4-page spread (Pages 2–3 for steps, Page 4 for alternate option + thickeners + notes using
.optb-grid/.panel-box/.thickener-band) rather than cramming text below 7pt.
- 22+ ingredients: Add
- Build HTML, PDF(s), and previews:
python3 SKILL_DIR/scripts/build.py template.html img OUT_BASE --preview-dir previews [--alt-hash small --alt-suffix -4-potatoes](Supports.png,.jpg,.jpeg, and.webpinimg/. Cross-platform Chrome/Chromium auto-detected, or setCHROME_BIN; on macOS Chrome headless needs network access for Google Fonts.) - Verify every preview set (
previews/page1.png,previews/page2.png, etc.) for zero clipped text or footer overlaps. - Create the chosen output folder automatically if needed and save final outputs (e.g.,
Documents/Recipes,Desktop/Recipes,output/, or custom—never overwrite existing files; increment-v2,-v3, etc.). Report the exact saved file paths (so the user can find them right away on Mac or Windows) and image generation cost (zero per-image charge for Gemini/Codex native tools). For multi-recipe batches, offer to merge them into a single tablet cookbook PDF viapython3 SKILL_DIR/scripts/merge_cookbook.py OUT.pdf *.pdf --style illustrated|kodachrome.
Image Backends (Strict Harness Rule)
A. Built-In Native Image Generation (Mandatory for Gemini / Antigravity and Codex)
Gemini / Antigravity and Codex MUST use their native built-in image generation tool ONLY (image-generator / native image tool) and MUST NEVER invoke scripts/gen_images.py or use the user's OpenRouter key—unless the user explicitly authorizes OpenRouter in the conversation.
- Print exact word-for-word prompts:
python3 SKILL_DIR/scripts/print_prompts.py prompts.json [--callouts] - Invoke
image-generator(or your native image tool) forherofirst (3:4portrait) and inspect it. Then generates1–sN(4:3landscape) sequentially through a single subagent (one image call per turn,≥ 0.5–1 sbetween requests—never splits1–sNacross concurrent subagents or fire 8–9 requests in one burst, which triggers duplicate retries and429rolling-quota exhaustion).- If a call still hits a transient
429/ burst rate limit, wait at least 1 second and retry only the failed image(s) viasend_message—never switch to OpenRouter without explicit user authorization.
- If a call still hits a transient
- Because the built-in image tool writes
.jpgfiles into the agent's artifact directory (<name>_<timestamp>.jpg), copy the exact chosen filename (avoid blind globs if a prompt was retried) toimg/<name>.png(or.jpg) in your scratch working directory;build.pyandmake_contact_sheet.pyhandle.png,.jpg,.jpeg, and.webpseamlessly.
B. OpenRouter (scripts/gen_images.py) — Claude Code ONLY (or Authorized Fallback)
Only Claude Code (which has no native image generation tool) uses scripts/gen_images.py by default; Gemini/Antigravity and Codex may run it only when the user explicitly grants permission.
python3 SKILL_DIR/scripts/gen_images.py prompts.json img [--callouts] hero
Then run without names for the rest, or with specific names to redo individual shots.
- Default model
google/gemini-3-pro-image(override viaMODEL=) readsOPENROUTER_API_KEYfrom the environment orOPENROUTER_KEY_FILE(default~/.openrouter_key). Never print or log the API key. - Includes a built-in 1.0 second wait after each image request (
--delay 0.5orIMAGE_DELAY=0.5minimum) to avoid rate-limit bursts. - Always report the total from
img/cost_log.txtwhen using OpenRouter.
Prompting & Layout Lessons
- Never write "scanned from a book page". The model will draw book gutters and gibberish captions. Use
"full-bleed edge-to-edge"and"no text, no captions, no book pages". - Style 1 (
kodachrome-1960s): Count hands explicitly ("No hands"forhero;"Exactly ONE person, exactly TWO hands visible"for action shots). Describe unfamiliar ingredients and garnish sizes visually. Add"no text on it"on tins/shakers. - Style 2 (
midcentury-illustrated): Explicitly forbid photorealism ("NOT photorealistic, NOT a photograph, NOT 3D, NOT modern digital vector clipart") and lock to 3–4 flat gouache/screenprint inks + black ink crosshatching on matte cream paper. Keep Page-1 ingredients compact (7.9pt,line-height: 1.26) so.stats-rowclears.p1-foot. - Style 1 Page-1 overflow guard (16–20 ingredient lines): Keep
.ing-box ularound8.15pt(line-height: 1.24),.introaround9pt,.heroat5.15in, and.p1-footatbottom: .34in. - Style 1 Page-2 inline script spacing: Keep
margin-right: .2inon.p2-head h2 .scriptso"See how easy it is!"doesn't collide with"Step by Step". - Never write a dollar sign followed by a digit in
SKILL.mdso skill loaders don't mistake it for an argument placeholder.