/corgi:mobile-screenshotsfrom corgi
Captures, frames, and uploads App Store / Play Store screenshots for Expo and React Native apps across multiple screens, devices, and locales.
Ships in corgi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Done when: every screen × device × locale asked for is captured, framed, exported at the store sizes, and - when asked - uploaded, with the upload read back.
Check they are this app, today. Open every picture before and after upload: a set on the store can be a real capture of an old look. iPad sets and the app preview video are the ones forgotten, because nobody looks at them. List what the store really holds through its API, not what is on disk.
Goal isn't "a screenshot" - it's N screens × every device class × every locale,
framed (device mockup + headline + bg), at exact store sizes, optionally
uploaded. Four stages: capture → frame → export → upload. Driving one device is
the mobile skill; this is the matrix + the store pipeline on top.
Skip a quirk below and you re-shoot.
Pipeline at a glance:
/tmp, then copy into the repo.bun export, headless).fastlane deliver (App Store) / supply (Play).Drive via deep links + Maestro (see the mobile skill). The store twist is reliability
across a long run of many screens × locales × devices.
The capture recipe:
maestro test.takeScreenshot inside the flow, not a shell screenshot after. Maestro relaunches
the app to home on test exit → a simctl io … screenshot / adb … screencap taken
after the flow captures home. Keep the shot in the flow.extendedWaitUntil on a locale-neutral home anchor
(the app name shows on home in every language). assertVisible does not take a timeout
in current Maestro ("Unknown Property: timeout") - use extendedWaitUntil { visible, timeout }.waitForAnimationToEnd. The first returns before
the slide even starts (catches a mid-transition frame, prev screen peeking at the edge);
the second waits the slide out./tmp, copy into the repo only after. Writing PNGs inside the Expo
project trips Metro's file-watcher → a "Refreshing…" hot reload mid-capture that
corrupts the next screens. Or add the screenshots dir to metro.config watchFolders/blocklist.simctl shutdown+boot).magick identify) and
retry; capture during the still moment (countdown, settled dice), not peak motion.NativeTabs)
in the target language; an in-app switch updates the JS content but leaves NativeTabs'
cached native labels stale (mixed-language tab bar in the shot). Set the persisted
locale key in the same manifest patch as the seed (below), then relaunch.extendedWaitUntil false-passes on it - skip onboarding before relying on
the anchor.Seed realistic content host-side, not via an in-app route. Empty apps shoot empty (a
tracker's blank calendar, a zero-state dashboard). The tempting fix - a throwaway
<scheme>://seed route that fills the store - fails on real apps: a root NativeTabs (or
fixed Stack) has no container to render an ad-hoc route, expo-router excludes
_-prefixed files from routing, and a route added mid-session only registers after a
Metro cold restart. Patch the persisted store from the host instead, then relaunch:
…/Library/Application Support/<bundle>/RCTAsyncLocalStorage_V1/manifest.json (each key
<key>__mtime). Read it, overwrite the data / theme / locale blobs, write back, then
simctl terminate + launch so the store rehydrates.Per-device gotchas:
simctl openurl (not on
iPhone). Use Maestro openLink instead - no prompt, works on Android too.sips/magick -crop the bottom band). And decimals break Maestro swipe/point
taps ("Parsing Failed") - integer percents only.adb -s <dev> emu rotate → portrait (modern AVDs resist; set hw.initialOrientation=portrait
in the AVD config.ini). The taskbar can't be hidden via policy_control; app content
lays out above that inset, so chop a fixed bottom band (~130px) in post - removes
the dock without losing UI. Gboard may crash-loop on the tablet AVD ("Gboard keeps
stopping") → dismiss + pm disable-user com.google.android.inputmethod.latin.xcrun simctl status_bar <dev> override --time 9:41 --batteryState charged --batteryLevel 100 …; Android SystemUI demo mode (am broadcast -a com.android.systemui.demo …). Force dark to match (simctl ui <dev> appearance dark / cmd uimode night yes).Expo dev-client (dev build) gotchas:
["expo-dev-client", { showFloatingButton: false }] to app.config plugins, and/or
toggle "Tools button" off in the dev menu (persists per install - do it once before
the run; survives relaunch).simctl openurl <udid> "<scheme>://expo-development-client/?url=http%3A%2F%2Flocalhost%3A8081", then tap the
SpringBoard "Open?" confirm (Maestro tapOn the localized "Open"). Plain
simctl launch reuses the cached bundle - it won't pick up a new route / fresh JS.Temporary app edits for clean dev captures (revert after, flag to the user):
LogBox.ignoreAllLogs(true) at the entry.import()s a native module whose async chunk doesn't resolve in dev,
it redboxes - guard/skip that import for captures.Don't hand-roll device frames + headline layout. Use the app-store-screenshots skill
(ParthJadhav/app-store-screenshots on GitHub) - it scaffolds a Next.js
public/screenshots/<platform>/<device>/{locale}/NN.png,
seed app-store-screenshots.json (app name, theme, per-slide localized label+headline,
locales), bun install && bun dev. Headlines: one idea per slide, 3-5 words, one
emphasis word, headline in the top ~30-40%, in the reader's words ("Your tickets, in
your pocket"), never a feature name. The theme and background come from the app itself -
its colour tokens, its icon's palette, its font - so the slides look like the app and
not like the editor's default; one accent colour for the emphasis word on every slide. (Installing a third-party skill executes its
code - confirm the source with the user first.)The editor's Export bundle renders every size × locale (html-to-image → zip). Automate
it headless so it's a command, not 16 clicks: puppeteer-core + the system Chrome (no
Chromium download), set device by editing the project json + reload, click "Export bundle",
capture the zip via CDP Browser.setDownloadBehavior. Wire it as bun export.
Sizing quirks (why raw captures aren't enough):
eas submit ships the binary; screenshots + listing text go up with fastlane
deliver (App Store) / supply (Play). Stage the framed shots + parsed listing copy
into fastlane's layout, then run the lane. Same idea as a make submit, for media+text.
Author the listings as one markdown file per locale (store-listings/{en,ru,uk,fr}.md),
not straight into fastlane's metadata/<locale>/*.txt tree. The MD is the human-editable
source of truth - App Store name / subtitle / keywords / promo / description + Play title /
short / full, all in one reviewable file per language. A small staging script
(stage-store-assets.mjs) parses each MD positionally (fixed heading order) and writes
fastlane's many tiny per-field .txt files + copies the framed shots into
screenshots/<locale>/ and metadata/android/<locale>/images/. One file to translate and
diff per locale beats hand-editing a dozen .txt files; keep keys at parity across locales
(same idea as the app's i18n en/ru/uk/fr parity).
deliver(skip_binary_upload: true, submit_for_review: false, overwrite_screenshots: true, sync_screenshots: true, force: true) updates the currently editable / in-flight version (App Store now needs only iPhone 6.9" + iPad 13" sets). It does not submit - the user presses Submit.supply(skip_upload_apk: true, skip_upload_aab: true, track: "production") updates the main store listing (title/short/full + phone & tablet shots). validate_only: true for a dry run first. Screenshots go in metadata/android/<locale>/images/{phoneScreenshots,tenInchScreenshots}/.ASC_* env (CI), then Apple-ID via Keychain (fastlane fastlane-credentials add - the real password + a cached 2FA session; this is not the app-specific password altool keeps in Keychain, deliver/spaceship can't use that). Play: a service-account json (file or env)..p8/json on disk: keep the key in the macOS Keychain, inject per-run (ASC_KEY_CONTENT env + is_key_content_base64: true). Store base64, not the raw PEM - security -w returns a multi-line PEM as HEX, and app_store_connect_api_key then dies invalid curve name (OpenSSL::PKey::ECError). base64 <key.p8 | tr -d '\n' stays single-line printable → round-trips clean. The key is account/team-level (one issuer per team) → store once; one shared Keychain item serves every app in the team. issuer_id is the UUID at the top of ASC → Users and Access → Integrations → App Store Connect API, not the key's name.ru → App Store ru, Play ru-RU; en → en-US/en-US). Get it wrong and the upload no-ops or mis-files.deliver replaces all screenshots for the sizes you send (overwrite/sync) - send the full set per display family, not a partial.SUBMIT_FOR_REVIEW=1 → a separate *Submit* target), so iterating on the listing never trips the review clock. When you do submit: App Store deliver(submit_for_review: true) needs the review questions answered up front (submission_information export_compliance_uses_encryption: false, add_id_info_uses_idfa: false) or it stalls, and automatic_release decides auto-vs-manual release on approval; Play's analog is supply(changes_not_sent_for_review: false) to send the staged listing changes for review.deliver releases; an old fastlane rejects a valid current size (e.g. iPhone 6.9" 1320×2868) it doesn't recognize. Upgrade fastlane before doubting the shot.deliver setting name fails the app name ... already being used ... on a different account - /data/attributes/name if anyone else owns it. Gate the name.txt write behind a flag (ASC_SET_NAME=1); set the title in App Store Connect directly. Subtitle/keywords/promo/description still upload.deliver calls fetch_app_store_review_detail, which raises No data (RuntimeError) before screenshots upload until the review-detail object exists. Fill App Review Information in ASC once, or push screenshots-only with skip_metadata: true.sync_screenshots is beta-gated - deliver refuses it unless FASTLANE_ENABLE_BETA_DELIVER_SYNC_SCREENSHOTS is set; export it in the lane.deliver aborts An attribute value is too long ... cannot be longer than 100 characters - /data/attributes/keywords. Localized listings carry localized field labels, so measure positionally (the Nth App Store block), not by the English label - else non-en locales slip past unchecked.deliver repeats Waiting for screenshots to appear ... Server error got 500; name + metadata already committed, so just re-run screenshots-only later (deliver itself notes only a 503 self-recovers).metadata/review_information/ - keep that subdir out of git (pull the phone from the Keychain, not a committed file). Repos differ on whether metadata/ is committed or gitignored, so ignore only review_information/, not all of metadata/, or you break a repo that commits its listing text. Trap: .gitignore has no inline comments - a path/ # note line silently fails to ignore, leaking the file; put the comment on its own line.support_url.txt + marketing_url.txt (version-level) and privacy_url.txt (app-info-level) under metadata/<locale>/, plus app-level metadata/copyright.txt and metadata/primary_category.txt. Miss the support URL and ASC blocks submission with a per-locale "Support URL must be filled". primary_category takes the API enum (HEALTH_AND_FITNESS, ENTERTAINMENT, UTILITIES, …), not a display name. (Age rating, pricing, and the App Privacy data questionnaire are not deliver-settable - ASC UI only.)metadata/review_information/notes.txt that states plainly there's no account/login, as natural prose, not a checklist, leading with why the app exists + the value/problem it solves, then: external services = none, no paid/subscriptions/UGC, each permission explained, same in all regions, tested on a physical device. Notes help future/auto submissions - but deliver can not reply in Resolution Center or attach the screen recording Apple demands, so the rejection reply stays manual.fastlane/README.md (its action docs) on every run - clobbering a hand-written README and churning git each deploy. Gitignore fastlane/README.md (keep any custom doc under a different name).magick identify) - "ok" must mean a fresh, valid frame, not a
stale/half-written file that happens to be valid.magick montage, downscale tall shots with sips -Z). Eyeball
every screen × locale before declaring done - wrong-screen, wrong-language, and
mid-transition shots all pass a file check.../_shared/conventions.md first (attribution)./tmp.altool/Transporter app-specific password from Keychain for deliver → deliver/spaceship can't use that; it needs an API key or the real Apple-ID password.invalid curve name from app_store_connect_api_key → Keychain handed the PEM back as HEX; store the key base64 + is_key_content_base64: true.deliver "Invalid screen size" on a current slot → stale fastlane; upgrade it.deliver "app name already used on a different account" → stop pushing name; set the title in ASC.No data (RuntimeError) on a first-ever version → fill App Review Information in ASC, or skip_metadata for screenshots-only.deliver "attribute value is too long / cannot be longer than N characters" → a listing field over cap; trim it and re-check every locale positionally (localized labels hide the overflow).deliver looping Server error got 500 on screenshots → transient ASC; re-run later, don't touch config..gitignore line with an inline # comment → git ignores nothing on it; a staged secret/PII (App Review phone, keys) sneaks into the commit. Comment on its own line.notes.txt (no account, why it exists, value), then reply in Resolution Center with a screen recording by hand.mobile - the single-device drive loop (deep links, Maestro
flow files, --device <udid>, sips crops) + the build/ship gotchas (non-login-shell
pod builds, Metro --clear redbox, magenta SceneKit, stale Android autolinking). This
skill is the matrix + store layer on top of it.design-parity - the other reason to capture: proving a
screen matches its design (frames pulled to the repo, labelled side-by-sides, deviation
table). Store screenshots sell the app; design parity proves it was built as drawn.ParthJadhav/app-store-screenshots) - the
Next.js framing editor + Export-bundle that does stages 2-3 (device frame,
localized headline, background, and rendering every store size). Drive its export headless
for stage 3's bun export.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andriiklymiuk/corgi --plugin corgi33 skills in this plugin
/agentUse for corgi agent mode: Remote Control from a phone, the session board ("who is waiting on me"), watching trackers and PRs ("tell me when someone comments"), why a watch fired, and handoffs ("leave a handoff for ABC-7"). NOT compose authoring (corgi), starting a stack (run), debugging (debug)./alignUse when the user says "align", "let's agree first", or a request can be read two ways before any code. Reaches a shared understanding cheaply, then codes. NOT a plan gate or a long interview./autopilotUse for a SUPERVISED loop that drains the ticket queue into draft PRs: "autopilot", "keep shipping the queue", "drain the backlog overnight". One spec gate per batch, never merges. NOT a single batch (/corgi-queue).Other plugins' skills for the same job