Generate a Stitch cover experiment board, export its HTML and screenshot via Stitch MCP, extract reusable image assets from the HTML, and turn them into a reviewable cover manifest. Use when Codex needs to: (1) create a Stitch cover board, (2) read Stitch screen export URLs, (3) download HTML and screenshot exports locally, (4) extract direct image URLs from the exported HTML, or (5) prepare cover_image batch manifests. If Stitch MCP is unavailable, fall back to processing an existing Stitch HTML export.
Use this skill when the goal is not just to make a pretty Stitch screen, but to harvest reusable game thumbnail artwork from Stitch output.
Default rule:
6-8 games when the board is meant to produce reusable cover art.Use this mode when Stitch MCP is available.
Required capabilities:
get_screenhtmlCode.downloadUrlscreenshot.downloadUrlUse this mode when Stitch MCP is unavailable but the user already has a Stitch HTML export.
Do not pretend the full pipeline is available if you cannot read Stitch screen exports programmatically.
If Stitch MCP is available:
If Stitch MCP is unavailable:
If you need the exact full-pipeline execution order, read:
references/stitch-mcp-runbook.mdDo not start from a full business screen unless the user explicitly wants that.
For cover harvesting, ask Stitch for:
6-8 game cardsIf you need prompt wording, read:
references/prompt-templates.mdAfter the screen is generated, call get_screen.
You must read:
htmlCode.downloadUrlscreenshot.downloadUrlIf htmlCode.downloadUrl is missing, stop the full pipeline and regenerate instead of silently switching to screenshot cropping.
Use:
scripts/download_stitch_exports.pyInputs:
project_idscreen_idThis script writes:
First check whether the HTML already contains reusable images.
Look for:
<img src="https://...">background-image: url("https://...")If direct image URLs exist, download them first. Do not crop a large screenshot if the HTML already exposes the images.
Use the bundled helper:
scripts/extract_stitch_html_assets.pyUse this quick rule:
6 games: ideal8 games: usually still safe10+ games: high riskCommon failure mode when density is too high:
If the HTML contains 0 reusable images, assume the density or prompt is wrong and regenerate before doing manual cleanup.
Use:
scripts/build_cover_manifest.pyThis script turns the extracted asset list into a reviewable manifest skeleton.
Expected fields include:
indextitlegame_idsource_modesource_urldownloaded_fileoutput_filecover_imagestatusnotesDefault behavior:
title and game_id emptystatus to reviewsource_url and downloaded_fileAfter extraction:
Recommended delivery target:
320x320webp for app deliverypng optional as backup/export formatUse three mapping levels:
Exact match: title and image clearly match the official gameWeak semantic match: image props match the official game closely enoughNo confident match: keep the asset unused and wait for a later batchNever force a wrong match just to use every generated asset.
htmlCode.downloadUrl is missing0 reusable imagesBefore declaring the batch usable, verify:
cover_image paths match the target app runtime formatscripts/download_stitch_exports.py
scripts/extract_stitch_html_assets.py
scripts/build_cover_manifest.py
references/prompt-templates.md
references/stitch-mcp-runbook.md