App Store Publishing
ASecurityApp store publishing for mobile apps, from the app's code and repo. Writes the answers for every Google Play Console and App Store Connect form (create app, App Information, App Privacy, Data safety, age and content rating, export compliance, pricing, review notes) with the file that proves each answer, and does the App Store Connect work by API (listing texts in every language, screenshots for iPhone, iPad and foldable, subscriptions and prices per country, custom product pages), uploads bui...
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added October 23, 2026
Works with
Security analysis
100/100Pro scans all 19 files and shows the line behind each finding
npx -y skills add dalisys/app-store-publishing --skill app-store-publishing --agent claude-codeAre you the author of App Store Publishing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dalisys-app-store-publishing)---
name: app-store-publishing
description: App store publishing for mobile apps, from the app's code and repo. Writes the answers for every Google Play Console and App Store Connect form (create app, App Information, App Privacy, Data safety, age and content rating, export compliance, pricing, review notes) with the file that proves each answer, and does the App Store Connect work by API (listing texts in every language, screenshots for iPhone, iPad and foldable, subscriptions and prices per country, custom product pages), uploads builds to App Store Connect and Google Play, and sets Google Play subscriptions by API. Use this whenever the user works on App Store Connect, Google Play Console, store listings, store screenshots, privacy labels, Data safety, IARC, subscriptions or in-app purchase setup, store builds, uploading or releasing to TestFlight or a Play track, or asks "what do I put here", even if they do not name the skill.
---
# Store forms
The user is filling in store forms by hand. Your job is to give them answers they can paste with no thinking, and to prove each answer from the code. A wrong answer in Data safety or App Privacy can get the app rejected or pulled, so evidence matters more than speed.
## Output
Write one file per store in the app repo:
- `docs/store/google-play.md`
- `docs/store/app-store-connect.md`
Keep the same order as the forms in the console, so the user can scroll the file and the form side by side. If the file exists, update it in place. Do not start over: the user may have added notes or answers.
For each field use this shape:
```markdown
### <Field name exactly as the console shows it>
**Answer:** `<text to paste>` ← text fields, URLs, IDs, emails
**Pick:** `<option to choose>` ← radio, checkbox, dropdown, toggle
**Why:** <one short sentence>
**Source:** `<path:line>` (or "owner decision" / "not in code")
```
Use exactly one of **Answer** or **Pick** per field. The HTML draws a Pick like the console's form, so write it in these shapes:
```markdown
**Pick:** `App` ← one radio; `Yes`/`No` shows both with one selected
**Pick:** `Yes` (short note) ← text after the value is a grey note
**Pick:** ← several questions in one field: one row each
- Downloaded App: `No`
- Digital goods purchase: `Yes`
**Pick:** ← checkboxes: [x] ticked, [ ] unticked
- [x] 18 and over
- [ ] Restrict users that Google has determined to be minors
```
Keep instructions ("set X in app.json") out of Pick lines; put them in **Why** or ⚠️ Check. Long texts (descriptions, review notes) go in a fenced code block under the field. In tables, put backticks around a cell only when it is text to paste; leave choices (Yes/No, purposes) plain.
**HTML view.** After every write, build the HTML pages next to the markdown: `node <skill>/scripts/store_html.mjs docs/store/google-play.md docs/store/app-store-connect.md`. Each page has a side menu per section, a search box, one card per field, and a copy button on every value to paste (none on Pick choices or file paths). Tell the owner to open them (`open docs/store/<store>.html`). The markdown stays the source; never edit the HTML by hand.
Put a `⚠️ Check` line under a field when the answer is a guess, depends on a business choice, or cannot be changed later. Put character counts next to text fields with limits, like `(9/30)`.
At the top of each file, keep a short "Open questions" list for everything only the owner can answer. Ask those questions with AskUserQuestion when it is available, two to four at a time, with your recommended option first.
## Workflow
1. **Find the form.** If the user pasted a form or screenshot, answer that form. If they name a section, answer that section. If they just say "do the store forms", go through every section in the reference file for that store.
2. **Read the reference** for the store: `references/google-play.md` or `references/app-store-connect.md`. For Google Data safety also read `references/google-play-data-safety.md`. It lists each form, each field, where to look in the code, and the traps. If the user's form has a field that the reference does not list, answer it anyway and add the field to the reference afterwards, so the skill learns.
3. **Scan the repo once** for the facts most forms share (see "Facts to collect"). Save them in your head; do not rescan per field.
4. **Answer each field** with evidence. Prefer the production build config over dev or preview variants.
5. **Write or update the output file**, build the HTML view, then tell the user in a few lines what to paste and what they must decide.
6. **First run only: offer the release API.** Read `references/release-api-setup.md`. If `~/.config/app-store-publishing/setup.json` does not exist, explain in 3 short lines that releases can go out by the App Store Connect API and the Google Play Developer API, then ask "Yes, guide me" / "No, I will do it manually". Save the answer at once so the question never comes back. On yes, guide the setup step by step and finish with `scripts/check_release_api.mjs`.
## Google Data safety: deliver a CSV
Google's console imports the whole Data safety form from CSV (Data safety → Import from CSV). Give the user that file, not 80 clicks.
1. Write the answers to `docs/store/google-play-data-safety.answers.json`. Keys are `QUESTION_ID` (single-value rows) or `QUESTION_ID|RESPONSE_ID` (one option of a choice). Look up IDs in `assets/google-play-data-safety-template.csv`. Per data type the usage rows are `PSL_DATA_USAGE_RESPONSES:<TYPE_ID>:<SUB_QUESTION>`.
2. Build the CSV: `python3 <skill>/scripts/fill_data_safety.py docs/store/google-play-data-safety.answers.json docs/store/google-play-data-safety.csv`. It fails on unknown keys.
3. Also write a plain table of the same answers in `docs/store/google-play.md`, so the owner can review without reading CSV.
4. Leave conditional questions empty when they do not apply. Known: `PSL_HAS_OUTSIDE_APP_ACCOUNTS` (and `PSL_OUTSIDE_APP_ACCOUNT_*`) must stay empty when the app has its own account creation; the import fails with "You cannot answer PSL_HAS_OUTSIDE_APP_ACCOUNTS". It only applies to apps without in-app sign-up ("My app does not allow users to create an account").
5. If the console's template changed (import errors, new rows), ask the user to export a fresh CSV and replace the asset.
## App Store Connect API: prefer it over clicking
When the owner has an API key (Users and Access → Integrations → App Store Connect API, role App Manager; file in `~/.appstoreconnect/private_keys/`, never in the repo), do repetitive console work by API: dry run first, show the plan, `--apply` after the owner agrees, then read the result back from Apple to prove it. Env: `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_KEY_PATH`, `ASC_APP_ID`. Scripts in `scripts/` sign the token with Node's own crypto (no installs).
What the API covers (per Apple's App Store Connect API): app info texts per language (name, subtitle, privacy URL), version page texts per language (description, keywords, promotional text, support/marketing URL, what's new), screenshots and app previews, categories, age rating answers, review contact + demo account + notes, build choice, encryption declarations, release type and phased release, app price, subscriptions, in-app purchases, offers and offer codes, TestFlight groups and testers, customer reviews and replies, sales and analytics reports.
Not by API (console only): creating the app record, App Privacy labels, agreements/tax/banking, and (since 2026) subscription availability (POST `subscriptionAvailabilities` returns 500).
## App Store listing by API (all languages)
`scripts/asc_push_listing.mjs listing.json` sets name, subtitle, privacy URL (app info) and description, keywords, promotional text, support/marketing URL, what's new (version) per language, the copyright, and App Review details. It adds missing languages, patches only changed fields, checks Apple's limits (keywords and notes in bytes) and never prints review values. Reviewer login comes from `ASC_DEMO_USER` / `ASC_DEMO_PASSWORD`, never from the file. Build the JSON with a small script in the repo from the English answers + the app's locale files + Google Play translations, so both stores say the same; leave out keyword words that are already in that language's name or subtitle. Values the owner already typed in the console (e.g. a private review contact email) win: read them back and copy them into the spec instead of overwriting.
## Custom product pages and creative assets
- Custom product page = extra version of the product page (own URL, screenshots, promo text; up to 70) for one audience or ad. `scripts/asc_custom_page.mjs spec.json --apply` creates it with promo text and screenshot sets (reorder screenshots for that audience). Never put third-party trademarks (event names) or offers that are not live into buyer-facing text. Submit for review after the first version is approved; then get its URL (`?ppid=`) for ads/QR codes.
- Header (3840×1646 21:9 or 5244×2950) and Search Results (3840×2560 3:2) creative assets: build from the brand art in HTML, no alpha. They live in Apple's new asset library (`placements` on the version localization, undocumented); give the owner the files to drag in.
## Build and upload to the stores
Read `references/build-and-upload.md` before any store build: pre-upload checks (clean tree, production server proven in the bundle, export compliance, build number), iOS archive + upload with `xcodebuild`, Android signed bundle + `scripts/play_upload.mjs` (Play Developer API, service account), what to do after upload, and the Play App Signing fingerprint for app links. Uploads change what testers or users get: show the plan and wait for the owner's go.
## Google Play subscriptions by API
`scripts/play_subscriptions.mjs spec.json [--dry-run]` creates or updates Play subscriptions and base plans from the same App Store price CSV, so both stores charge the same; Google converts the rest. Needs a first bundle with billing uploaded. Dry run first.
## App Store subscriptions by API
`scripts/asc_setup_subscriptions.mjs` + a spec JSON (`docs/store/app-store-subscriptions.json`) creates the subscriptions in an existing group, sets levels, review notes, group name and texts per language. Safe to rerun. Product IDs come from the purchase SDK config and are permanent: a deleted ID can never be used again ("This product ID has already been used"), so warn the owner before deleting a product; a recreated product needs a new ID and the same change in RevenueCat (new product → entitlement + package, old one detached). Apple sometimes returns 500 mid-run: rerun, the scripts skip what is done. It also sets availability (the app's countries) and first prices from a US base. Apple 2026: availability = `subscriptionPlanAvailabilities` with `planType: UPFRONT`, and prices need `planType: UPFRONT` too; the country list can only be created once, so never test with a short list. Prices must exist in every territory Apple has (175), also where the app is not sold, or the subscription stays MISSING_METADATA; the script fills them. Done = state READY_TO_SUBMIT on all. Then use the price script below for per-country fixes.
## Offer codes by API
`scripts/asc_offer_code.mjs <productId> "<name>" <CODE> <uses> <YYYY-MM-DD> [ONE_MONTH] [--apply]` creates a free-trial offer code (new customers, every country the subscription is sold in) plus one custom code, and reads them back on rerun. Redeem link: `https://apps.apple.com/redeem?ctx=offercodes&id=<appId>&code=<CODE>`; RevenueCat sees the purchase when the app opens. Google Play promo codes have no API: Play Console → Monetize with Play → Promotions. A subscription promo needs a backwards compatible base plan (⋮ → "Use for deprecated billing methods", API field `legacyCompatible`), else the Subscription type is greyed out; free trial in days; a custom code needs at least 2,000 redemptions.
## Subscription review screenshot by API
`scripts/asc_review_screenshot.mjs "<group name>" paywall.png [--apply] [--replace]` uploads one paywall image to every subscription in the group (reserve → upload parts → commit with MD5). Take the image from the real app on an iPhone simulator or device (Apple: the purchase screen in the app). A stale dev client (native module added since the install) stops on the splash: rebuild with `LANG=en_US.UTF-8 npx expo run:ios` (CocoaPods fails on Ruby 4 without UTF-8).
## App Store subscription prices in bulk
App Store Connect has no price upload. Use `scripts/asc_subscription_prices.mjs` (Node 18+, no deps):
1. Owner sets the base price in the console first (base country United States), so Apple fills every country.
2. Ask the owner for Apple's price export (subscription → price → Download, CSV `Countries or Regions,Currency Code,Price,Year 1 Proceeds,...`) and look for outliers: one currency with mixed prices (euro countries split between two steps), a price far above the base after conversion (UK), odd round numbers (CHF). Then write `docs/store/app-store-subscription-prices.csv` (`product_id,territory,price`, territory = ISO alpha-3, local price incl. tax) with only the countries to override.
3. Owner creates an App Store Connect API key (Users and Access → Integrations → App Store Connect API, role App Manager) and sets `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_KEY_PATH`, `ASC_APP_ID` (Apple ID on App Information). Never store the key in the repo.
4. Dry run: `node <skill>/scripts/asc_subscription_prices.mjs <csv>`. It checks each price is a real Apple price step and shows proceeds. Then `--apply`.
## App Store screenshots
Build them like the Google Play set (same captions and order), but from **real iOS captures** (iPhone simulator for 6.9" 1320×2868, iPad Pro 13" simulator for 2064×2752; Apple rejects Android bars/buttons). Foldable iPhone Duo: one set `APP_IPHONE_DUO` (max 10) holds both folded 1398×2034 and open 2853×2007 pictures; plan the 10 slots before any upload (default 5 open showing wide-screen benefits + 5 folded). Never crop a capture: a shorter image looks like landscape next to the others. Set the simulator status bar (`simctl status_bar override --time 9:41 …`) and region to the listing language (US dates for en-US). Reject captures that show the dev client's blue "Refreshing…" bar or the splash. Render with HTML templates + headless Chrome, check a contact sheet, then upload with `scripts/asc_upload_screenshots.mjs <version> <locale> APP_IPHONE_67|APP_IPAD_PRO_3GEN_129 files… --apply` and read back the delivery state (COMPLETE). The app needs a signed-in demo account on each simulator; never type the owner's password, ask them to sign in. If the right password is "wrong", check which backend the simulator's dev client talks to (`log show … | grep -oE 'localhost:[0-9]+|api[^ ]*'`): another session's Metro may point it at a local backend; reconnect with `<scheme>://expo-development-client/?url=http%3A%2F%2F127.0.0.1%3A<port>`.
## Store listing translations
Write one import file with the listing translated into **only the languages the app UI supports** (read the app's locale list, e.g. `src/locales/`, `app.config.ts`). Default language is not a row. Read `references/store-translations.md` for the format (Google: CSV for "Import translations with Gemini", one row per Play language code; Apple: EAS `store.config.json` or fastlane folders), the locale mapping and the limits. Reuse the app's own translated product words and any approved slogan translations; per-language natural wording, not literal. Run the length check and keep the build script next to the output. Ask for native review.
## Store images (feature graphic, screenshots)
1. Read the brand rules first (design guidelines, brand kit, marketing foundation). Use existing brand artwork; never redraw logos.
2. Build an HTML prototype board with 2–3 directions (feature graphic + a few screenshots each), render it to PNG (headless Chrome `--screenshot`), send it, and let the owner pick. Iterate on the board, not on final files.
3. Default plan: Google Play 8 phone screenshots 1080×1920 (first one a promo slide: slogan + one-line promise), feature graphic 1024×500 with key content in the centre. Caption every screen with an outcome headline (2–6 words) + one short line.
4. Use **real screenshots of the real app** on the target platform (Android for Play, iPhone for App Store), with demo content that fills each screen. Placeholder or empty screens are never final. If you cannot reach a screen, say so and ask the owner to open it.
5. Keep every prototype, board and export in the repo (`docs/store/prototypes/`, `docs/store/<store>-assets/`). Never delete earlier versions.
6. Compare with the benchmark in `docs/store/research/` if the project has one; otherwise look at 5–10 top apps in the same category first.
## Facts to collect
These feed many forms. Find them first.
- **Identity:** production app name, Android package / iOS bundle ID, version, build number. Expo: `app.config.ts` or `app.json` (watch for variants per `APP_VARIANT`). Native: `android/app/build.gradle` (`applicationId`), Xcode project (`PRODUCT_BUNDLE_IDENTIFIER`).
- **Languages:** default language and the list of UI languages (i18n setup, locale files).
- **Money:** free or paid, in-app purchases, subscriptions (RevenueCat, Play Billing, StoreKit), prices if stated in docs.
- **Ads:** any ad SDK (AdMob, AppLovin, Meta Audience Network, etc.). No ad SDK = "no ads".
- **Accounts:** sign-in methods, whether an account is required, whether there is in-app account deletion, and a web deletion URL.
- **Data:** what the app sends off the device and to whom. Look at API clients, backend code if it is in the repo, analytics (PostHog, Firebase, Amplitude), crash reporting (Sentry, Crashlytics), auth providers, AI providers, storage (S3, R2). Note for each: data type, purpose, optional or required, encrypted in transit, linked to the user.
- **Permissions:** Android manifest permissions (including `blockedPermissions`), iOS usage strings (`NS...UsageDescription`).
- **Encryption:** only HTTPS / OS crypto, or custom crypto? This decides export compliance.
- **Content:** user-generated content, sharing between users, chat, reporting and blocking, age rules.
- **Legal:** privacy policy URL, terms URL, support email or URL, company name and address (often in a legal or docs folder, or in the project's memory notes).
Also read project docs and memory notes. Owners often wrote down decisions (age limit, prices, data processors) that are not in code.
## Rules
- **Never tick a declaration for the user.** Checkboxes like "meets the Developer Program Policies" or "accept US export laws" are the owner's legal statement. Say whether the code gives a reason not to tick, then let them tick it.
- **Flag one-way doors.** Some choices cannot be undone (package name, bundle ID, free → paid). Mark them with ⚠️ and say so in plain words.
- **When unsure, say so.** "Not in code, owner decision" is a valid answer. A confident wrong answer is worse than an open question.
- **Data safety and App Privacy must match each other and the privacy policy.** If they disagree, point it out.
- **Use Google's and Apple's own words.** When a question has a "Learn more" definition, the definition decides the answer, not your guess. If the reference does not quote it, fetch the help page (support.google.com/googleplay/android-developer, developer.apple.com/help/app-store-connect) and cite the sentence that settles it. Save useful definitions into the reference file.
- **Store descriptions describe the app, nothing else.** No links (privacy, terms, website), no email addresses, no AI-accuracy notice in description texts: stores have their own fields for URLs and contact. Apple's subscription rule (3.1.2) wants Terms reachable: default: keep Apple's Standard License Agreement (covers the app; the owner's Terms cover the service and are accepted in-app, with Terms + Privacy links on the paywall). App Review now rejects auto-renewable subscriptions without it (seen 2026-10): with Apple's standard EULA, put one localized Terms of Use line (`https://www.apple.com/legal/internet-services/itunes/dev/stdeula/`) as the last line of the description in EVERY localization, before the first submission. This is the one allowed link. A short plans section without prices is fine (prices differ per country; stores show them).
- **Languages = app UI languages, not sales countries.** A listing language shows to anyone whose device uses it, in every storefront (e.g. zh-Hans users in Singapore, Malaysia, Canada), so keep a language even when one country using it is excluded.
- **Do not paste secrets** (API keys, account IDs from env files) into the output file.
Files in this skill
- SKILL.md
- references/app-store-connect.md
- references/build-and-upload.md
- references/google-play-data-safety.md
- references/google-play.md
- references/release-api-setup.md
- references/store-translations.md
- scripts/asc_custom_page.mjs
- scripts/asc_offer_code.mjs
- scripts/asc_push_listing.mjs
- scripts/asc_review_screenshot.mjs
- scripts/asc_setup_subscriptions.mjs
- scripts/asc_subscription_prices.mjs
- scripts/asc_upload_screenshots.mjs
- scripts/check_release_api.mjs
- scripts/fill_data_safety.py
- scripts/play_subscriptions.mjs
- scripts/play_upload.mjs
- scripts/store_html.mjs
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.