end to end app store screenshot creation using AI
TypeScript agentic-aiappleappstoreautomateclaudecursordesigngenerateiosios-appmarketingscreenshotskillsskills-shswiftswiftuiui
Docs: replace export workaround with device notes
Parth Jadhav46edc8122f0a
diff --git a/README.md b/README.mdindex 37beecb..5365a5d 100644--- a/README.md+++ b/README.md@@ -14,7 +14,7 @@ Example screenshots generated with this skill were accepted for [Bloom Coffee Sh- Keeps older projects safe with isolated-screen export mode until you opt into connected crops- Saves every deck to `app-store-screenshots.json`, so the project is git-trackable and resumable- Uploads picked screenshots into `public/screenshots/uploaded/<hash>.png`-- Supports iOS, iPad, Android phone, Android tablet, and Play Store feature graphic decks+- Supports iPhone, iPad, Apple TV, Apple Watch, CarPlay, Android phone, Android tablet, and Play Store feature graphic decks- Exports exact PNG bundles for all required App Store and Google Play sizes- Supports locales, RTL-aware copy/layout guidance, reusable themes, and in-place project migration- Ships 18 named visual styles with deep specs and a headline copy library@@ -27,7 +27,7 @@ Example screenshots generated with this skill were accepted for [Bloom Coffee Sh- **Inspector** - edit layout, labels, headlines, screenshots, element stacking, and transforms from the right panel. A **Copy ideas** menu next to the headline drops in a proven formula to rewrite.- **Theme picker** - switch palette presets from the toolbar, including one preset per named style.- **Platform switcher** - keep iOS and Android decks side by side while sharing the same editor workflow.-- **Device selector** - design for iPhone, iPad, Android phone, Android tablets, and feature graphic formats.+- **Device selector** - design for iPhone, iPad, Apple TV, Apple Watch, CarPlay, Android phone, Android tablets, and feature graphic formats.- **Autosave** - writes to disk through `/api/project` and mirrors to `localStorage` for instant reloads.- **Export bundle** - downloads a zip organized by platform, device, resolution, and locale.@@ -114,7 +114,10 @@ project/│ └── screenshots/│ ├── apple/│ │ ├── iphone/{locale}/01.png-│ │ └── ipad/{locale}/01.png+│ │ ├── ipad/{locale}/01.png+│ │ ├── tvos/{locale}/01.png+│ │ ├── watchos/{locale}/01.png+│ │ └── carplay/{locale}/01.png│ └── android/│ ├── phone/{locale}/01.png│ ├── tablet-7/portrait/{locale}/01.png@@ -138,6 +141,7 @@ project/├── defaults.ts├── storage.ts├── image-cache.ts+ ├── export-render.ts└── types.ts```@@ -158,12 +162,23 @@ Uploaded files are saved under `public/screenshots/uploaded/`, and the canonical### Apple App Store-| Display | Resolution |-|---------|------------|-| 6.9" | 1320 x 2868 |-| 6.5" | 1284 x 2778 |-| 6.3" | 1206 x 2622 |-| 6.1" | 1125 x 2436 |+| Device | Resolution |+|--------|------------|+| iPhone 6.9" | 1320 x 2868 |+| iPhone 6.5" | 1284 x 2778 |+| iPhone 6.3" | 1206 x 2622 |+| iPhone 6.1" | 1125 x 2436 |+| iPad 13" | 2064 x 2752 |+| iPad Pro 12.9" | 2048 x 2732 |+| Apple TV | 3840 x 2160, 1920 x 1080 |+| Apple Watch Ultra | 422 x 514, 410 x 502 |+| Apple Watch Series 10 | 416 x 496 |+| Apple Watch Series 7 | 396 x 484 |+| Apple Watch Series 4 | 368 x 448 |+| Apple Watch Series 3 | 312 x 390 |+| CarPlay (iPhone slot, landscape) | 2868 x 1320, 2778 x 1284, 2622 x 1206, 2436 x 1125 |++App Store Connect has no CarPlay screenshot slot: CarPlay shots are uploaded into the iPhone slot, so the CarPlay deck exports landscape iPhone sizes with a head-unit frame.### Google Play Store@@ -176,7 +191,7 @@ Uploaded files are saved under `public/screenshots/uploaded/`, and the canonical| 10" tablet landscape | 2560 x 1600 || Feature graphic | 1024 x 500 |-Screenshots are designed at the largest size for each platform and scaled down for smaller exports. Android frames are CSS-rendered, while iPhone uses the included `mockup.png` bezel.+Screenshots are designed at the largest size for each device and scaled down for smaller exports. Every export waits until each screenshot has actually painted (Safari/WebKit decodes them asynchronously) and warns instead of silently writing a blank device. Android, iPad, Apple TV, Apple Watch and CarPlay frames are CSS-rendered, while iPhone uses the included `mockup.png` bezel.## Project Statediff --git a/skills/app-store-screenshots/SKILL.md b/skills/app-store-screenshots/SKILL.mdindex 8cf8562..1970952 100644--- a/skills/app-store-screenshots/SKILL.md+++ b/skills/app-store-screenshots/SKILL.md@@ -23,9 +23,9 @@ Scaffold a pre-built Next.js + ShadCN editor that lets the user design and exporSupported devices out of the box:- **iPhone** (portrait) — Apple App Store- **iPad** (portrait) — Apple App Store-- **Apple TV** (landscape) — Apple App Store-- **Apple Watch** (portrait) — Apple App Store-- **CarPlay** (landscape) — exports into an **iPhone** slot, see below+- **Apple TV** (landscape, 4K + HD) — Apple App Store+- **Apple Watch** (portrait, every Ultra/Series size) — Apple App Store+- **CarPlay** (landscape head unit) — uploaded into the **iPhone** slot; see "Apple TV, Apple Watch and CarPlay" under Step 5- **Android Phone** (portrait) — Google Play- **Android Tablet 7"** (portrait + landscape) — Google Play- **Android Tablet 10"** (portrait + landscape) — Google Play@@ -336,11 +336,12 @@ Ask the user these. Do not proceed until you have answers:6. **Target stores** — Apple App Store only, Google Play only, or both? Determines which platform decks to seed.7. **iPad / Android tablet screenshots** — If yes, what sizes and orientations?-8. **Feature Graphic** — Want a 1024×500 Play Store banner too?-9. **Localized screenshots** — Languages? (e.g. en, de, es, pt, ja, ar, he)-10. **Number of slides** — Apple allows up to 10, Google Play up to 8.-11. **Brand colors / font** — If they want a custom theme beyond the built-in presets.-12. **Additional instructions** — Anything specific.+8. **Apple TV / Apple Watch / CarPlay** — Does the app have a tvOS or watchOS app, or CarPlay support? Each gets its own deck.+9. **Feature Graphic** — Want a 1024×500 Play Store banner too?+10. **Localized screenshots** — Languages? (e.g. en, de, es, pt, ja, ar, he)+11. **Number of slides** — Apple allows up to 10, Google Play up to 8.+12. **Brand colors / font** — If they want a custom theme beyond the built-in presets.+13. **Additional instructions** — Anything specific.**IMPORTANT:** If the user gives instructions at any point, follow them. They override skill defaults.@@ -382,7 +383,10 @@ public/└── screenshots/├── apple/│ ├── iphone/{locale}/01.png … N.png- │ └── ipad/{locale}/01.png … N.png+ │ ├── ipad/{locale}/01.png … N.png+ │ ├── tvos/{locale}/01.png … N.png # Apple TV, 16:9+ │ ├── watchos/{locale}/01.png … N.png # Apple Watch+ │ └── carplay/{locale}/01.png … N.png # CarPlay head-unit captures└── android/├── phone/{locale}/01.png … N.png├── tablet-7/{portrait|landscape}/{locale}/...@@ -588,10 +592,32 @@ Before export, zoom out to inspect the connected canvas as a strip, then inspectProject locales come from `app-store-screenshots.json` `locales` field — set during scaffolding (Step 4). Single-locale projects produce a flat per-size structure with just the one locale folder.+Each slide is rendered once per locale at canvas resolution and scaled to every export size. The exporter waits until every visible screenshot has actually painted before it saves a PNG (Safari/WebKit decodes images inside the render asynchronously, which used to produce blank device screens), and shows a warning toast naming the screen if one never appears.+If exports come out blank or with black screen rectangles:+- Read the export toast: a "screenshots may be missing" warning names the affected screens. Export again, and check the source image opens.- Verify source screenshots are RGB (not RGBA). The template flattens via `objectFit: cover`, but truly transparent sources can still produce black regions.- Confirm the referenced screenshot paths exist under `public/`; export retries paths that were previously missing before it starts rendering.-- Keep export scaling inside `html-to-image` via `canvasWidth`/`canvasHeight`; CSS `transform: scale(...)` can leave transparent gutters when App Store sizes differ slightly in aspect ratio.++### Apple TV, Apple Watch and CarPlay++Every Apple TV and Apple Watch size below was read from App Store Connect's own metadata (`asc screenshots sizes --all`). Re-derive it the same way if Apple changes the slots.++| Device | Display type | Accepted sizes | Canvas |+|---|---|---|---|+| Apple TV | `APP_APPLE_TV` | 3840×2160, 1920×1080 (landscape only) | 3840×2160 |+| Apple Watch | `APP_WATCH_ULTRA` | 422×514, 410×502 | 422×514 |+| Apple Watch | `APP_WATCH_SERIES_10` | 416×496 | ↑ |+| Apple Watch | `APP_WATCH_SERIES_7` | 396×484 | ↑ |+| Apple Watch | `APP_WATCH_SERIES_4` | 368×448 | ↑ |+| Apple Watch | `APP_WATCH_SERIES_3` | 312×390 | ↑ |+| CarPlay | iPhone slots (landscape) | 2868×1320, 2778×1284, 2622×1206, 2436×1125 | 2868×1320 |++- **Every export is a downscale of the canvas.** Where a slot's aspect differs slightly (Watch 422×514 → 312×390), the exporter scales to cover and trims a few edge pixels instead of stretching the frame. Keep text and the device away from the outermost ~3% on the watch.+- **CarPlay has no App Store screenshot slot.** A CarPlay app ships inside its iPhone app, so a CarPlay shot is uploaded **into the iPhone slot**, in landscape (iPhone slots accept both orientations). The `carplay` device is a head-unit frame on a landscape 6.9" iPhone canvas for exactly that. Head units vary by vehicle; the frame uses Apple's CarPlay Simulator "Standard" 800×480 preset (5:3). Change `CARPLAY_RATIO` in `src/lib/constants.ts` for another preset (Minimum 748×456, Widescreen 1920×720, Portrait 900×1200, Video Playback 1920×1080).+- **TV, Watch and CarPlay frames are contained.** Phones and tablets deliberately bleed off the canvas edge; a cropped TV, watch face or head unit reads as a mistake, so these devices always stay fully inside the canvas.+- **Layouts:** `split-landscape` (caption left, device right) is the strongest layout for the wide TV and CarPlay canvases. On the watch, keep headlines to two or three short words per line — the canvas is only 422 px wide.+- **Screenshots:** use real captures at native resolution — Apple TV 3840×2160 or 1920×1080 from the tvOS simulator, Apple Watch from the watchOS simulator, CarPlay from the CarPlay Simulator (or Xcode's I/O → External Displays → CarPlay).## Step 6: Final QA Gate@@ -603,6 +629,7 @@ If exports come out blank or with black screen rectangles:### Visual Quality- No two adjacent slides share the same layout- Landscape tablet slides use `split-landscape` — never two devices side-by-side+- Apple TV and CarPlay decks lead with `split-landscape` or `hero`; Watch headlines fit on the 422 px canvas without wrapping mid-phrase- At least one contrast (`inverted: true`) slide when the deck is long enough- For decks with 5+ slides, either one cross-screen/cross-canvas moment exists or there is a clear reason to keep every screen isolated- Cross-screen moments are limited to adjacent screens and never split text, required info, faces, or critical UI@@ -624,7 +651,8 @@ If exports come out blank or with black screen rectangles:| Pasted screenshots into git directly | `public/screenshots/...` is fine to commit. Drop-target uploads are now also written to `public/screenshots/uploaded/<hash>.png` — commit both that folder **and** `app-store-screenshots.json` so collaborators reproduce your deck after `git clone`. || Wrong directory layout for tablet screenshots | See Step 2 — `android/tablet-7/portrait/{locale}/...` etc. || Reset wiped the deck | Reset clears in-memory state and re-saves defaults to `app-store-screenshots.json`. Recover by `git checkout app-store-screenshots.json` if it was committed, or export first before resetting. |-| Export is blank | Source PNGs probably have alpha — flatten to RGB |+| Export is blank | Check the export toast for a "may be missing" warning and re-export; otherwise the source PNG probably has alpha — flatten to RGB |+| Looked for a CarPlay slot in App Store Connect | There isn't one — upload CarPlay shots into the iPhone slot || `bun dev` port collision | Template defaults to `next dev`; let Next pick the next free port (3001+) |## Project Migration@@ -676,7 +704,7 @@ project/│ │ ├── inspector.tsx # Right-pane controls for active slide│ │ ├── screenshot-picker.tsx # File drop + picker│ │ ├── slide-canvas.tsx # Data-driven screen/deck renderer (all layouts)- │ │ └── device-frames.tsx # Phone, AndroidPhone, IPad, tablets+ │ │ └── device-frames.tsx # Phone, IPad, AppleTV, AppleWatch, CarPlayScreen, Android│ └── ui/ # Minimal ShadCN primitives (button, select, etc.)└── lib/├── constants.ts # Canvas sizes, export sizes, themes, frame ratios@@ -684,6 +712,7 @@ project/├── types.ts # Slide / ProjectState / Theme types├── storage.ts # useProject() — localStorage autosave hook├── image-cache.ts # preloadImages + img() helper+ ├── export-render.ts # Slide → PNG; waits for every screenshot to paint└── utils.ts # cn() helper```@@ -704,69 +733,3 @@ When you finish scaffolding, **start the dev server** (`bun dev` / `pnpm dev` /6. **Invite further edits:** say something like _"Feel free to ask me to make any changes you'd like to the screenshots — copy, layout, palette, anything. I can iterate with you."_7. **Showcase callout** (always include this, verbatim spirit):> Check out apps generated by this skill here: https://www.parthjadhav.com/products/app-store-screenshots — and tag **@parthjadhav8** on Twitter if you want your app to be added to the showcase.--## Verifying an export — REQUIRED--**The exporter intermittently drops the screenshot inside the device frame.** You get a perfect headline, background and frame with a blank device screen, no error, and a correct on-canvas preview. Observed 18 Aug 2026 across repeated exports of one deck: a different slide failed each run, and the *same* slide dropped at 4K while rendering correctly at 1080p in the same run. Root cause not established.--**After every export, run:**--```-~/.claude/skills/app-store-screenshots/verify-export <export-dir>-```--It counts unique colours per file against its same-size siblings (a dropped screenshot loses tens of thousands of colours — measured: ~4,000 dropped vs 32,000–290,000 intact) and writes one contact sheet per size into `_contact-sheets/`.--**Then open the sheets and look.** The count is triage, not proof. Two automated detectors were tried during that session — mean brightness and colourfulness — and both gave false readings in both directions, one of them passing a broken file. A missing screenshot is unmissable beside its siblings on a contact sheet and easy to miss when opening files one at a time.--**Do not track the contact sheets, and never read one you did not just generate.** They are derived from the PNGs beside them and regenerate in seconds. A sheet left over from an earlier export will show a good slide for a file that has since been re-exported and broken — worse than no sheet at all.--**If a file is flagged, re-export and re-check.** Which slide fails reshuffles between runs, so assemble the final deck from whichever renders come out clean.--## Apple device notes--Every dimension below was read from App Store Connect's own metadata with-`asc screenshots sizes --all`, not from documentation or blog posts. Re-derive it-the same way rather than trusting this list if Apple changes the slots.--| Device | Display type | Accepted sizes | Orientation |-|---|---|---|---|-| Apple TV | `APP_APPLE_TV` | 3840×2160, 1920×1080 | landscape only |-| Apple Watch | `APP_WATCH_ULTRA` | 422×514, 410×502 | portrait only |-| Apple Watch | `APP_WATCH_SERIES_10` | 416×496 | portrait only |-| Apple Watch | `APP_WATCH_SERIES_7` | 396×484 | portrait only |-| Apple Watch | `APP_WATCH_SERIES_4` | 368×448 | portrait only |-| Apple Watch | `APP_WATCH_SERIES_3` | 312×390 | portrait only |--### 🚨 CarPlay has no App Store screenshot slot--There is **no CarPlay display type in App Store Connect** — the accepted types are-Apple TV, Vision Pro, Desktop, iPad, iPhone, Watch and iMessage, and nothing else. A-CarPlay app ships inside its iPhone app, so a CarPlay screenshot is submitted **in an-iPhone slot**.--The `carplay` device therefore exists to give you a *head-unit frame on an-iPhone-sized canvas*, which is what apps with CarPlay support actually publish. Its-export sizes are the iPhone sizes on purpose. Do not go looking for a CarPlay slot to-upload it to.--CarPlay head units vary by vehicle and there is no single correct aspect. Apple ships-five presets in `CarPlay Simulator.app/Contents/Resources/VehicleConfigs`:--| Preset | Pixels | Ratio |-|---|---|---|-| Minimum | 748×456 | ~1.64 |-| **Standard** (default here) | **800×480** | 5:3 |-| Widescreen | 1920×720 | 8:3 |-| Portrait | 900×1200 | 3:4 |-| Standard Video Playback | 1920×1080 | 16:9 |--Change `CARPLAY_RATIO` in `src/lib/constants.ts` to target a different one.--### Landscape devices are contained, not bled off the edge--Phones and tablets are deliberately hung past the canvas edge so they bleed off it.-That same overhang **crops** a landscape device, and a clipped television or head unit-reads as a mistake rather than a design. `getDefaultRects` takes a `contain` flag,-set for `tvos` and `carplay`, which keeps every device rect inside the canvas.-Apple Watch is portrait and does not need it.diff --git a/skills/app-store-screenshots/template/README.md b/skills/app-store-screenshots/template/README.mdindex 7cb72e6..88b744b 100644--- a/skills/app-store-screenshots/template/README.md+++ b/skills/app-store-screenshots/template/README.md@@ -13,7 +13,7 @@ bun dev # http://localhost:3000- **Connected canvas editor** (`src/components/editor/`) — every screen sits on one horizontal canvas, so phones, captions, and other elements can be dragged across screen boundaries and exported as split crops when Connected mode is enabled.- **Screen controls** — drag-to-reorder screens, click-to-edit text, screenshot drop targets, per-screen layout switcher, dark/light toggle.-- **Device frames** (`src/components/editor/device-frames.tsx`) — iPhone (PNG mockup), iPad, Android phone, Android tablet (portrait + landscape), feature graphic.+- **Device frames** (`src/components/editor/device-frames.tsx`) — iPhone (PNG mockup), iPad, Apple TV, Apple Watch, CarPlay head unit, Android phone, Android tablet (portrait + landscape), feature graphic.- **Auto-save (git-trackable)** — every change is persisted within ~600ms to **`app-store-screenshots.json`** at the project root (via `/api/project`) **and** mirrored to `localStorage` as an instant-paint cache. Commit `app-store-screenshots.json` and you can `git clone` to another machine and resume exactly where you left off.- **Multi-device decks** — iOS and Android slide decks live side by side; switching the platform tab preserves both.- **One-click export** — bulk PNG export at any required App Store / Play Store resolution using `html-to-image`; each PNG is rendered from the current connected or isolated deck mode.@@ -29,6 +29,7 @@ Two ways:- `public/screenshots/apple/iphone/en/...`- `public/screenshots/android/phone/en/...`- `public/screenshots/apple/ipad/en/...`+ - `public/screenshots/apple/{tvos,watchos,carplay}/en/...` for Apple TV, Apple Watch and CarPlay decksUpdate the matching `screenshot` fields in `app-store-screenshots.json` to point at whatever filenames you choose.@@ -36,6 +37,10 @@ Update the matching `screenshot` fields in `app-store-screenshots.json` to pointThe toolbar dropdown lists every Apple/Google-required size for the current device. Click **Export bundle** to download a zip. In Connected mode, each PNG is clipped from the connected canvas, so an element that straddles two screens appears split exactly where you placed it. In Isolated mode, each screen clips its own elements and legacy offscreen content cannot leak into neighboring exports.+Each screen is rendered once per locale at canvas resolution (`src/lib/export-render.ts`) and scaled to every size; slots whose aspect differs slightly are cover-scaled rather than stretched. Before saving, the exporter redraws until every visible screenshot has painted, because WebKit decodes images inside the html-to-image SVG asynchronously and a single draw can leave device screens blank. If a screenshot never appears, a toast names the screen.++CarPlay has no App Store Connect slot of its own: the CarPlay deck is a head-unit frame on a landscape iPhone canvas and exports landscape iPhone sizes for upload into the iPhone slot.+## Customizing| Where | What |@@ -50,7 +55,7 @@ The toolbar dropdown lists every Apple/Google-required size for the current devi## Notes- `mockup.png` is the iPhone bezel overlay; replacing it requires re-measuring the `PHONE_SCREEN` constants.-- Image preloading converts every static path to a base64 data URI before exports run, and export retries paths that were previously missing — this prevents the html-to-image race where some slide screenshots come out black.+- Image preloading converts every static path to a base64 data URI before exports run, and export retries paths that were previously missing. `export-render.ts` then waits for those images to paint in the render (see Exporting).- Reset via the toolbar's circular arrow icon clears in-memory state and reloads the default screens. To wipe disk state too, delete `app-store-screenshots.json`.- **Persistence model** — the canonical state lives in `app-store-screenshots.json` (git-tracked). On load, the editor reads localStorage first for instant paint, then overwrites with the file contents if present; if the file endpoint is unavailable, autosave is blocked so stale cache cannot overwrite disk. On save, both are written. If you ever see a conflict, the file always wins.- **Migration model** — schema v1 projects do not need a manual conversion. On first load, the editor upgrades localized text and transform records, writes `schemaVersion: 2`, preserves all existing screens, and keeps `connectedCanvas: false` so old offscreen/clipped elements export exactly as isolated screens. Turn on **Connected** in the toolbar when you want elements to cross screen edges. Explicit skill migrations preserve an existing `connectedCanvas` choice, otherwise they keep legacy decks isolated too.