Ns generate store screenshots

From Melvynx/saveit.now · View interactive version

Ns generate store screenshots is an AI agent skill from the GitHub repository Melvynx/saveit.now. Generate App Store and Google Play screenshots for NowStack Mobile with an AI-assisted simulator/emulator workflow. Use when preparing store assets, App Review screenshots, Play listing screenshots, launch marketing captures, or when the user asks to automate mobile screenshots.

How to use this skill

Skill file

Generate Store Screenshots - NowStack Mobile

<objective>

Create store-ready iOS and Android screenshots with as much automation as possible: define the screen list, drive the app in simulator/emulator, capture clean device screenshots, optionally wrap them in branded frames, run AI visual QA, and export assets for App Store Connect and Google Play.

This skill is part of the release pipeline. Screenshots are not a nice-to-have; they are a store submission gate.

</objective>

<when_to_use>

Use this workflow when:

Do NOT use this for:

</when_to_use>

<automation_principle>

The goal is not "take a few screenshots by hand". The goal is an AI-assisted repeatable asset pipeline:

  1. An agent reads the app config and produces a screenshot shot list.
  2. The app runs with deterministic demo data.
  3. A simulator/emulator is driven by a scripted flow when possible.
  4. Screenshots are captured by native tooling.
  5. An AI vision pass checks composition, copy, safe areas, blank states, broken UI, and secret leaks.
  6. Assets are exported into a predictable folder for store upload.

Manual hand-capture is not the target path. Store screenshots should be generated, QA-checked, named, and made upload-ready by automation; manual work is allowed only as a documented fallback or final human approval gate.

</automation_principle>

<ninety_nine_percent_automation_architecture>

For a real 90-99% automation setup, treat screenshots as code and keep the capture pipeline in the repo:

  1. Use the safe dry-run-first wrapper before touching devices
  1. Maestro flows live under mobile-app/maestro/store/
  1. Deterministic demo mode replaces human setup
  1. Native device capture is scripted per platform
  1. AI visual QA is manifest-driven
  1. Optional frame/composite generation is a post-process
  1. Upload integration comes after approval
  1. Manual remainder is explicit and small

This is the honest 99% line: preparation, navigation, capture, QA, naming, manifesting, and upload-ready packaging can be automated; platform account/compliance decisions and final approval cannot be truthfully eliminated.

</ninety_nine_percent_automation_architecture>

<state_variables>

Persist these values across the workflow:

| Variable | Type | Description |

| --- | --- | --- |

| {app_name} | string | App name from SiteConfig.title. |

| {deep_link_scheme} | string | Expo deep-link scheme from SiteConfig.slug / mobile-app/app.config.ts. |

| {brand_primary} | string | Primary color from site-config.ts. |

| {ios_devices} | list | Target iOS screenshot device families, usually iPhone 6.7" and iPad if supported. |

| {android_devices} | list | Target Android phone/tablet screenshot profiles. |

| {shot_list} | list | Ordered screens to capture. |

| {demo_account} | string | Demo login identity or bypass mode. Never include a real password in tracked files. |

| {output_dir} | string | Default: documents/store-screenshots/<YYYY-MM-DD>/ or an untracked local folder. |

| {upload_ready} | boolean | True only after visual QA passes and user approves. |

</state_variables>

<critical_safety>

</critical_safety>

<screenshot_spec>

Create a short shot list before touching simulators. For NowStack Mobile, the first version should usually include:

  1. Onboarding / value proposition screen.
  2. Auth screen with Apple/email sign-in visible.
  3. Main dashboard or home feed with clean demo state.
  4. Core feature screen that proves the product is not just another template.
  5. Paywall/subscription screen.
  6. Settings/account/privacy screen for trust/review.

For every shot, define:

</screenshot_spec>

<recommended_tooling>

Default stack:

</recommended_tooling>

<preflight>

Run from the repo root:

git status --short --branch
node --version
npm --version
cd mobile-app && npx expo config --type public
npm run screenshots:store -- --help

Then verify:

site-config.ts
mobile-app/app.config.ts
mobile-app/package.json
mobile-app/app/

Confirm:

</preflight>

<ios_capture_flow>

Use this as the baseline iOS capture flow:

cd mobile-app
npm run screenshots:store:ios -- --date YYYY-MM-DD --skip-maestro
npm run env:prod
npx expo prebuild --platform ios
npx expo run:ios
npm run screenshots:store:ios -- --date YYYY-MM-DD --execute --ios-device booted

# Human reference flow. The wrapper itself runs per-shot flows, generating temporary deep-link flows if needed.
maestro test maestro/store/ios-store-screenshots.example.yaml

# Native capture command used by scripted runners after each per-shot Maestro flow:
mkdir -p ../documents/store-screenshots/ios
xcrun simctl io booted screenshot ../documents/store-screenshots/ios/01-onboarding.png

The repo wrapper is mobile-app/scripts/store-screenshots.mjs. It writes the manifest in dry-run mode. In --execute mode it runs a per-shot Maestro flow before each native capture, prefers checked-in per-shot flows, otherwise generates temporary deep-link flows under _maestro/, and calls xcrun simctl io <ios-device> screenshot for each canonical shot. Maestro failures skip that shot's native capture and make the command exit non-zero unless --continue-on-maestro-failure is passed; native failures always exit non-zero.

Restore dev env when done if env:prod mutated local files:

npm run env:dev

</ios_capture_flow>

<android_capture_flow>

Use this as the baseline Android capture flow:

cd mobile-app
npm run screenshots:store:android -- --date YYYY-MM-DD --skip-maestro
npm run env:prod
npx expo prebuild --platform android
npx expo run:android
npm run screenshots:store:android -- --date YYYY-MM-DD --execute --android-device emulator-5554

# Human reference flow. The wrapper itself runs per-shot flows, generating temporary deep-link flows if needed.
maestro test maestro/store/android-store-screenshots.example.yaml

# Native capture command used by scripted runners after each per-shot Maestro flow:
mkdir -p ../documents/store-screenshots/android
adb -s emulator-5554 exec-out screencap -p > ../documents/store-screenshots/android/01-onboarding.png

The repo wrapper is mobile-app/scripts/store-screenshots.mjs. It writes the manifest in dry-run mode. In --execute mode it runs a per-shot Maestro flow before each native capture, prefers checked-in per-shot flows, otherwise generates temporary deep-link flows under _maestro/, and calls adb [-s <android-device>] exec-out screencap -p without shell redirection, writing stdout to the target PNG. Maestro failures skip that shot's native capture and make the command exit non-zero unless --continue-on-maestro-failure is passed; native failures always exit non-zero.

Restore dev env when done if needed:

npm run env:dev

</android_capture_flow>

<ai_visual_qa>

After screenshots are captured, run an AI visual QA pass. The reviewer should answer for each image:

Fail the screenshot set if any answer reveals broken UI, misleading claims, or sensitive data.

Use docs/templates/store-screenshot-manifest.example.json as the starting shape for the QA manifest. The manifest should be machine-readable so an agent can perform deterministic checks first, then visual inspection second.

</ai_visual_qa>

<export_structure>

Write generated assets to an untracked folder by default:

documents/store-screenshots/YYYY-MM-DD/
  manifest.json
  ios/
    iphone-67/fr-FR/01-onboarding.png
    iphone-67/fr-FR/02-auth.png
    iphone-67/fr-FR/03-home.png
    iphone-67/fr-FR/04-core-feature.png
    iphone-67/fr-FR/05-paywall.png
    iphone-67/fr-FR/06-settings.png
  android/
    phone/fr-FR/01-onboarding.png
    phone/fr-FR/02-auth.png
    phone/fr-FR/03-home.png
    phone/fr-FR/04-core-feature.png
    phone/fr-FR/05-paywall.png
    phone/fr-FR/06-settings.png

manifest.json should include device, OS, app version, git SHA, route/flow, and QA status for each screenshot.

</export_structure>

<integration_with_store_deploy>

ns-ios-deploy-app and ns-deploy-android-app must treat screenshots as a release gate:

</integration_with_store_deploy>

<failure_modes>

</failure_modes>

<success_metrics>

</success_metrics>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.