AGENT SKILL

ship

Release checklist for getting a build to testers or the stores. Runs the risk gate first (refuses while a risk item is open) and walks the owner through the compliance checklist. Covers the version bump, EAS build and submit, OTA updates and when they're safe, changelog, store listing, privacy nutrition label / data safety form, the Accessibility Nutrition Labels, and the account-deletion requirement. Guidance-level; it never handles signing secrets. Use when asked to ship, release, submit to TestFlight / App Store / Play, or push an OTA update.

License 许可
MIT
最近更新
2026-10-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
ship
description
Release checklist for getting a build to testers or the stores. Runs the risk gate first (refuses while a risk item is open) and walks the owner through the compliance checklist. Covers the version bump, EAS build and submit, OTA updates and when they're safe, changelog, store listing, privacy nutrition label / data safety form, the Accessibility Nutrition Labels, and the account-deletion requirement. Guidance-level; it never handles signing secrets. Use when asked to ship, release, submit to TestFlight / App Store / Play, or push an OTA update.
argument-hint
[testflight|store|ota]
disable-model-invocation
true

03 SKILL.md 正文

Ship

A release is the one step you can't take back: a store build lives on phones for weeks. Go through the checklist in order, report each line as ✅ / ❌ / n/a with evidence, and stop at the first ❌ that blocks. Store-account, signing and payment steps are the owner's. Tell them exactly what to click; never ask for or handle Apple/Google credentials, keystores or .p8 keys (EAS stores those).

0. Which release?

Kind What changes Command shape Reversible?
OTA update JS/assets only, same native build push to release (release.yml), or by hand eas update --branch production --rollout-percentage 10 --message "<summary>" Yes: revert the rollout, or roll back (scripts/rollback-ota.sh)
TestFlight / internal New native build for testers eas build --profile preview (Android APK) or --profile production + eas submit -p ios Mostly
Store release Public build eas build --profile production --platform all then eas submit --platform all No

OTA is only safe for JS changes. app.json uses runtimeVersion: {policy: "appVersion"}, so an update only reaches builds with the same version. Any new native module, permission, config plugin or SDK bump needs a new build. When unsure, build. Check with npx expo install --check and git diff <last-release-tag> -- mobile/app.json mobile/package.json.

Risk gate (every release, before anything else)

The idea was screened for privacy, safety and misuse risk at shape (design/brief.json → risk, readable in docs/product/RISK.md). A release waits until that screen has no loose ends:

python3 scripts/risk_gate.py check

Exit 1 means stop: report it as ❌ and list every item it names, word for word. It refuses while a risk question is open, while an accepted risk has no owner (by) or date (on), while a high-tier category has nothing answered or accepted, while SCREENS.md or a spec mentions a category the screen never covered (run the rescreen it suggests), or when the idea was never screened. Put the open items to the owner in one structured round: answer it (written back to risk.questions), or accept it as a recorded call (risk.accepted: item, by, on, a note). Never answer, accept or edit an item for them to get past the gate, and never ship around it. The gate holds for an OTA update too: a feature that reaches phones over the air carries the same risk.

Once it passes, for a TestFlight or store release, generate the owner's checklist and go through it with them:

python3 scripts/risk_gate.py checklist   # docs/product/COMPLIANCE.md; ticks are kept

It covers, per category: store guidelines, the age-rating answers, a pointer to the privacy labels, the regimes that may apply (with links) and, at tier high, a line to talk to counsel before launch. Never tell the owner the app is compliant, or that a law or store rule is satisfied: you can't know, and it isn't your call. Say which checklist items are done and which are theirs, and at tier high repeat that a lawyer should look before the first public release. A passing gate means "no open risk items", nothing more.

Decisions due before launch (first TestFlight or store release)

Some product calls were parked on day 0 because they're cheap to change and best made once people use the app. They come due here. Read design/brief.json → decisions for every deferred entry with ask_at: pre-launch (next lists them as decisions_due). Ask them in one structured round before the checklist, recommended option first, and write each answer back (status: asked). They always include:

  • Price and paywall placement (only if money.model isn't free): what it costs, and where the paywall sits relative to the payoff (after it, never before the user has felt it). Payments themselves are recipe-payments.
  • Store listing: name, subtitle, keywords and category, written for how the brief's distribution says the first 100 users will search.
  • Privacy and accessibility labels: the generated answers in step 3 below, confirmed by the owner.
  • Support channel: where users reach a human (an email, a form, a community), which becomes the store's support URL.

An unanswered one blocks a store release, not an OTA update.

1. Pre-flight (all releases)

  • [ ] On a release branch or main at a tagged commit; git status clean.
  • [ ] Gates green: cd mobile && npm run gates and scripts/dev-venv.sh python -m pytest -q.
  • [ ] Backend deployed first, and /health shows features_unavailable: [] for every feature this build uses. Old app builds must keep working against it (additive wire rule).
  • [ ] Every EXPO_PUBLIC_* the app reads is set for the target EAS environment: eas env:list --environment production. Missing = a feature that silently does nothing in the store build.
  • [ ] Sentry source maps upload, so crashes are readable: SENTRY_AUTH_TOKEN, SENTRY_ORG and SENTRY_PROJECT are set for the target EAS environment (eas env:list --environment production). Every OTA job in mobile/.eas/workflows/ uploads with upload_sentry_sourcemaps: true and fails without them; that's deliberate, an unreadable OTA crash is worse than a red job.

2. Version + changelog (store/TestFlight)

  • [ ] Bump version in mobile/app.json (semver: patch = fixes, minor = features). Build numbers are handled by EAS (appVersionSource: remote, autoIncrement).
  • [ ] CHANGELOG.md: a dated section in plain language, built from merged PR titles since the last tag: git log <last-tag>..HEAD --oneline.
  • [ ] "What's new" store text: 2–4 lines, user benefit first, in the project's voice.
  • [ ] Tag after the build succeeds: git tag v<version> && git push origin v<version>.

3. Store requirements (first submission, and whenever they change)

  • [ ] Account deletion (Apple 5.1.1(v), Google Play policy). An app with sign-up must let users delete their account and data from inside the app, and Google also needs a web URL for it. The backend ships DELETE /api/v1/me (body {"confirm":"DELETE"}); check the app has a Settings screen that calls it. If the screen or web URL is missing, this is ❌: file it with backlog as p0 and stop.
  • [ ] Privacy nutrition label (App Store Connect) / Data safety (Play Console). The answers are generated from privacy/data-map.yaml: privacy/APP_STORE.md and privacy/PLAY_DATA_SAFETY.md (CI fails when they're stale, so they match the code). Walk the owner through them; the owner submits them. The iOS privacy manifest comes from the same map (expo.ios.privacyManifests in mobile/app.json).
  • [ ] Accessibility Nutrition Labels (App Store Connect → App Accessibility). Run python3 scripts/a11y_labels.py --check (CI runs it too), then list for the owner one line per feature from docs/product/ACCESSIBILITY.md: VoiceOver, Voice Control, Larger Text, Sufficient Contrast, Reduced Motion, Dark Interface, Differentiate Without Color Alone, Captions, Audio Descriptions. Tell them to claim only the lines that say "supported", word for word with the evidence named; "not yet claimed" stays unclaimed, and "not applicable" is answered as such. Never claim a feature the file doesn't, even if the owner believes it works: make the missing evidence true (a check, a Maestro flow), regenerate, then claim it.
  • [ ] Privacy policy URL (required by both stores), and support URL. Start from privacy/PRIVACY_POLICY.md, a generated draft: the owner fills in the bracketed parts, has it reviewed (it is not legal advice), and publishes it at a public URL.
  • [ ] Sign in with Apple is required on iOS if the app offers any other third-party sign-in (e.g. Google).
  • [ ] Listing assets: icon (1024×1024, no transparency), screenshots for each required device size, name, subtitle, description, keywords, category, age rating.
  • [ ] Permission strings (NSCameraUsageDescription and so on) say why in plain words, if the app requests any.
  • [ ] Health, financial or children's data: the matching .agents/rules/ note has extra store rules. Read it, and work through docs/product/COMPLIANCE.md (the risk gate above) with the owner.

4. Build + submit

  • [ ] eas build --profile production --platform <ios|android|all>. Report the build URL.
  • [ ] Install the build (TestFlight / internal track) and run the core loop once on a real device. Confirm a screen_viewed event lands in PostHog from that build.
  • [ ] eas submit --platform <…>, then the owner completes review questions in App Store Connect / Play Console.

5. OTA: promote the staged rollout

An OTA reaches 10% of users first and waits on a "Roll out to 100%" approval in the workflow run. Report the numbers, then tell the owner which button to press (approving is theirs, on expo.dev):

  • [ ] The update's Sentry release is <app id>@<version>+<update id> (Sentry → Releases; the update id is in the workflow run). It has had 24 hours at 10%.
  • [ ] Crash-free sessions are 99.5% or more and no lower than the previous release's; no new issue first seen in this release. Under about 100 sessions, say so and list the release's issues instead of quoting a percentage.
  • [ ] All ✅: promote, by approving the step (or cd mobile && eas update:edit <group-id> --rollout-percentage 100 --non-interactive).
  • [ ] Any ❌: don't promote. Reject the approval and run scripts/rollback-ota.sh (it plans; --yes reverts the rollout).
  • [ ] Either way, finish the rollout before the next release: EAS won't publish a new update on a runtime with a rollout still in progress.

The gate and its reasoning: docs/runbooks/release.md → "Staged OTA rollout".

6. After release

  • [ ] Watch Sentry and the north-star funnel for 48h (north-star-report can read it).
  • [ ] If a JS-only bug slips through: fix on a branch, then ship it as an OTA (it stages like any other), and say which builds it reaches.

Report: the checklist with ✅/❌/n/a, the build/submit URLs, and "What I need from you" (the store-console steps and the rollout approval, which only the owner can do).

Ask the owner

Follow .agents/rules/product-judgement.md: ask with a structured question (recommended option first), never decide these silently. In this skill that means: Release notes wording, store listing copy and screenshots, pricing or availability changes, releasing with a known issue, and promoting an OTA whose crash-free numbers miss the gate. Ask each before submitting; store changes can't be quietly undone.

04 同仓库更多 Skills

foxinthehenhouse
foxinthehenhouse/app-in-a-box

routines

Put the project's recurring rituals on a schedule, with the owner's consent. Weekly north-star report, monthly market watch, dependency triage, Supabase advisor sweep, reflect and harness-optimize. Uses Claude Code Routines (cloud cron) where they fit, and documents the Codex / local cron equivalent. Use when asked to automate, schedule or "keep the project moving on its own", or after setup finishes.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

reflect

Consolidate what recent sessions learned into the project's long-term memory (.agents/memory). Use at the end of a substantial session, after a correction from the user, after a painful debugging session, when the session-start healthcheck says reflect is overdue or a pending-reflection seed is waiting, or when MEMORY.md exceeds its budget.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

pr-review

Review a pull request on the owner's behalf and fix what's safe to fix. Runs the deterministic gates first, then correctness/security, design-system, accessibility and analytics review passes, verifies each blocking finding, applies safe fixes, re-checks, and ends with a plain-English verdict. Use when a PR is opened, when asked to review a PR, a branch or a pasted diff, or before merging anything.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

north-star-report

Weekly product-analytics and reliability readout. Pulls the funnel of the brief's 5 north-star events from PostHog, finds the biggest drop-offs and errors, checks each SLO in docs/slo.yaml against its error budget, compares with last week, and proposes (then, with a yes, files) tickets that target them. Use weekly, when the session-start line says it's overdue, when the backlog is empty, or when asked "how is the app doing?".

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

next

Decide the single next best thing to work on, with two alternates. Reads setup progress, work in progress, open PRs and failing CI, the backlog (GitHub Issues or Linear), overdue harness rituals, product decisions parked until now, and north-star analytics if PostHog is connected. Use when someone asks "what next?", "what should I work on?", at the start of a session, or after a PR merges.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

new-worktree

Create an isolated git worktree + branch off origin/main for one unit of work, so parallel agents or sessions never share a checkout. Use when starting any ticket, or when another session may be working in the main checkout.

★ 0