/flutter-flame-harness:flame-harness-submitfrom flutter-flame-harness
Uploads store text metadata and categories via fastlane for iOS and Android, then pauses with manual steps for final review submission and production promotion.
Ships in flutter-flame-harness. 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.
Phase 10 of the flutter-flame-harness pipeline. Uploads store text metadata and app categories via fastlane for both iOS and Android, then pauses the pipeline with exact manual steps for the final review submission / production promotion (see Boundary below for what is genuinely manual and what is a deliberate checkpoint).
All file schemas (config.md, state.md, pipeline-log.md) and the phase transition table are
defined in docs/harness-protocol.md — that document is the single source of truth (§1 for
config.md; §2 for state.md keys and pause_reason values; §6 for pipeline-log.md schema;
§7 for the submit → metadata-done → paused transition and the (paused) → resume → retro
transition). Do not redefine schemas here.
Boundary: Text metadata upload is automated. The final "Submit for Review" on iOS and the "Promote to production" action on Android are manual in this pipeline — deliberately, so a human sees the assembled listing once before it goes out, and because the Play questionnaires (Content Rating, Data Safety, Target Audience) have no API.
Note the iOS half is automatable if you want it: reviewSubmissions will submit a version
end-to-end (see iOS submission over the API below). What is genuinely not automatable is the
Play side and the age-rating questionnaire. Keep the pause unless you have a reason not to — the
review is the point of it.
Prerequisites: Phase 9 (flame-harness-screenshot) completed; screenshots and ASO metadata
already uploaded; state.md shows next_role: submit.
Before any action, load:
docs/harness/config.md — extract app_slug, bundle_id, app_name, and default_language
(per protocol §1).docs/harness/state.md — confirm next_role: submit (per protocol §2).Derive the game project root for <app_slug> from config.md / the harness working directory (the games live under the same parent as the harness, e.g. …/AndroidStudioProjects/<app_slug>/).
Before uploading, write the store-listing + App-Review files from the developer block in
config.md (sourced from credentials/store-metadata.md) so they actually get uploaded — these are
otherwise empty and the listing/review info would be missing.
iOS (deliver picks these up automatically):
ios/fastlane/metadata/copyright.txt ← developer.copyrightko, en-US): support_url.txt ← developer.homepage, marketing_url.txt ←
developer.homepage, privacy_url.txt ← developer.privacyios/fastlane/metadata/review_information/: first_name.txt, last_name.txt, phone_number.txt,
email_address.txt ← developer.*; notes.txt ← reviewer notes (e.g. the ATT screen-recording
note for an ads build).Android (contact email + website have no supply field — set via the Publisher API):
templates/set_contact_details.rb.template → android/fastlane/set_contact_details.rb,
fill __PACKAGE__=bundle_id, __EMAIL__=developer.email, __WEBSITE__=developer.homepage,
and run cd android && ruby fastlane/set_contact_details.rb.Run the fastlane metadata and categories lanes for both platforms. These lanes push text metadata (localized titles, descriptions, release notes) and app category assignments to the stores without uploading a binary.
cd <game>/ios
fastlane metadata
fastlane categories
fastlane metadata pushes all locale text files under ios/fastlane/metadata/ to App Store
Connect via deliver (titles, subtitles, descriptions, keywords, promotional text,
release notes).fastlane categories sets the primary and secondary App Store category. The categories lane
must already exist in the generated ios/fastlane/Fastfile (written by Phase 8
flame-harness-build).cd <game>/android
fastlane metadata
fastlane release_notes
fastlane metadata pushes all locale text files under android/fastlane/metadata/android/ to
Google Play (titles, short descriptions, full descriptions) via upload_to_play_store with
skip_upload_apk: true and skip_upload_aab: true.fastlane release_notes pushes the changelogs/<version-code>.txt files for the current
release.If any fastlane lane exits non-zero, do NOT proceed to the pause step. Instead write
docs/harness/state.md with status: paused, pause_reason: manual_action, and
next_role: submit (retry), then explain the error and stop.
After both upload sequences complete successfully, the pipeline must pause so the developer can perform the final submission actions that cannot be automated.
Pre-submit rejection checklist (print this with the manual steps — these are the rejections
already hit; see docs/game-gotchas.md → Store rejections):
advertising = Yes. Apple added
userGeneratedContent, messagingAndChat, ageAssurance, gunsOrOtherWeapons, advertising,
healthOrWellnessTopics, parentalControls in 2026. An app record that only answered the old
questionnaire is blocked before human review. Any AdMob build (banners count) must answer
advertising = Yes, or Apple's automated analysis bounces it. ageRatingDeclarations is
write-only over the API (GET → 403) — verify in the Connect UI, there is no other way.FOREGROUND_SERVICE_* in particular requires a form with a mandatory
demo video link (unlisted YouTube; private is invisible to reviewers) showing the feature
working while the app is backgrounded. Past the deadline this blocks updates while the live
listing stays up. Check:
grep uses-permission android/app/build/intermediates/merged_manifests/release/AndroidManifest.xmlTARGETED_DEVICE_FAMILY matches reality. Declaring iPad ("1,2") obliges the game to
support every iPad orientation — a portrait-only phone game shipped with the template default
gets rejected under 4.0. Phone-only games use "1".pubspec.yaml
and leave +N (the Android versionCode) alone.ios/Runner/<locale>.lproj/InfoPlist.strings must carry a NSUserTrackingUsageDescription (and
any other NS*UsageDescription the app declares) — a permission string left in only one language
is a repeat localization rejection (the reviewer sees a foreign-language prompt). Verify:
for d in ios/Runner/*.lproj; do grep -q NSUserTrackingUsageDescription "$d/InfoPlist.strings" || echo "MISSING: $d"; done
(no output = OK). Wording must match the App Privacy / tracking declaration.ITSAppUsesNonExemptEncryption=false) so no per-upload prompt.PrivacyInfo.xcprivacy, which is a bundled manifest — the
label is a Connect form). A missing/empty label blocks release. Use the Data-collection profile
below.PrivacyInfo.xcprivacy present in the bundle; tracking matches the ATT prompt.developer.privacy); Content Rating (IARC), Data Safety, and
Target Audience questionnaires completed with the Data-collection profile below. (Contact
email/website were set in Phase 0 via the API script.)tagForChildDirectedTreatment, and Play Target Audience must include children — keep all three
consistent or expect a rejection / FTC exposure.POST /v1/betaGroups) with
isInternalGroup: true and link App Store Connect team developers. Processed builds deploy
instantly to internal testers without Apple Beta review.Cannot set tester group on an internal track). The developer must navigate to
Play Console → Testing → Internal testing → Testers tab, select their tester email list,
and click Save once. Subsequent API uploads deploy automatically to those testers.Per docs/harness-protocol.md §7 (submit → metadata-done event row) and §7 rule 3 (when
status is paused, pause_reason must be non-empty), write docs/harness/state.md atomically
with exactly these field changes (leave created_at, current_round, resume_attempts
unchanged):
status: paused
current_phase: submit
next_role: retro
pause_reason: manual_action
updated_at: "<ISO-8601 UTC now>"
Important: next_role: retro is set at pause time because a paused state stores the role to
run after resume. flame-harness-resume reads next_role directly from state.md (it does
NOT set next_role itself) and dispatches Skill("flame-harness-<next_role>"). Setting
next_role: retro here is what causes resume to advance to retro rather than re-dispatching
submit (see Resume Contract below).
Append one row to docs/harness/pipeline-log.md per the schema in docs/harness-protocol.md §6,
using the transition event name metadata-done (matches protocol §7):
| <ISO-8601 UTC now> | pause | submit | metadata-done: iOS metadata+categories uploaded, Android metadata+release_notes uploaded; awaiting manual Submit for Review (iOS) and production promotion (Android) |
POST /v1/appStoreVersionSubmissions is deprecated: 403 "Allowed operation is: DELETE".
The current flow is three calls:
1. POST /v1/reviewSubmissions { platform: IOS, app: <appId> }
reuse an existing submission in state READY_FOR_REVIEW rather than creating a second
2. POST /v1/reviewSubmissionItems { reviewSubmission: <id>, appStoreVersion: <id> }
3. PATCH /v1/reviewSubmissions/<id> { submitted: true }
Resubmitting after a rejection. The rejected version is still attached to the submission that
rejected it, so step 2 fails with STATE_ERROR.ITEM_PART_OF_ANOTHER_SUBMISSION. Detach first: for
every submission in state UNRESOLVED_ISSUES,
PATCH /v1/reviewSubmissionItems/<itemId> { removed: true }.
Do not create a new version for a rejection — REJECTED, DEVELOPER_REJECTED,
METADATA_REJECTED, INVALID_BINARY are editable, so attach the new build to the same version.
A duplicate version string fails with ENTITY_ERROR.ATTRIBUTE.INVALID.DUPLICATE.
Reviewer communication. Resolution Center has no API — you can read that a version is
REJECTED but not why, and you cannot reply. appStoreReviewDetail.notes is readable, writable,
and read by reviewers; it is the only channel available. When fixing a rejection, put the
explanation in ios/fastlane/metadata/review_information/notes.txt and upload it before
resubmitting. State facts about this build — "we will add it later" invites another rejection.
Metadata stays editable through WAITING_FOR_REVIEW and IN_REVIEW and locks at
READY_FOR_SALE (PATCH → 409). A wrong release note is fixable until approval, then never.
After writing state, print the following instructions verbatim for the developer:
PIPELINE PAUSED — MANUAL SUBMISSION REQUIRED
Fastlane has uploaded all text metadata and categories. You must now complete the final submission steps manually, as the Apple and Google APIs do not support fully automated review submission.
iOS — Submit for Review
flame-harness-build (Phase 8).Android — Promote to Production
flame-harness-build (Phase 8).Data-collection profile — the privacy questionnaires on both stores ask the same underlying question. For a typical offline Flame game with AdMob (and no login/analytics/PII), fill them with:
| Question | Answer |
|---|---|
| Collects data? | Yes — only if AdMob is enabled (skip_admob: false); otherwise No. |
| Data type | Identifiers — advertising ID / device ID (AdMob). No name, email, location, contacts, photos, health, financial, or messages. |
| Purpose | Third-party advertising (and, if ATT-authorized, measurement). |
| Linked to identity? | No (no account/login). |
| Used for tracking? | Yes if ATT-authorized (advertising ID → cross-app). Declare this on iOS App Privacy → "Tracking". |
| Shared with third parties? | Yes — the AdMob SDK (Google). |
| Encrypted in transit? | Yes. |
| User can request deletion? | Not applicable (no server-side user data). |
skip_admob: true, declare Data Not Collected.skip_admob: true, "No data collected".tagForChildDirectedTreatment(true) — all three must agree.When you have completed all of the above steps on both platforms, run:
/flame-harness-resume
flame-harness-resume will confirm you are done, clear the pause, and launch
flame-harness-retro (the pipeline was already set to next_role: retro at pause time).
This section documents the expected behaviour of flame-harness-resume when it encounters the
pause written by this skill. It is informational — flame-harness-resume is the authoritative
implementation (see its SKILL.md).
Per docs/harness-protocol.md §7:
metadata-done; it sets status: paused with pause_reason: manual_action.(paused) → resume → retro.flame-harness-resume will:
pause_reason to "" (per §7 rule 8).status: running atomically (per §7 rules 1 and 2). flame-harness-resume does NOT
set next_role — it reads whatever next_role is already in state.md. Because this
skill wrote next_role: retro at pause time, resume dispatches retro.resume_attempts (per §7 rule 4).resume row to pipeline-log.md (per §6).next_role (= retro) from the updated state.md and dispatch
Skill("flame-harness-retro").The retro phase (next_role: retro) is the final phase; when it completes it sets
status: completed (per §7 retro → complete row).
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/flame-harnessOrchestrator — bootstrap a Flutter/Flame game pipeline (idea→playable game) and dispatch each phase skill. Use when starting or continuing a flame-harness run./flame-harness-admobPhase 7 — analyze the game, decide a rewarded-ad strategy, guide manual AdMob ad-unit creation, and inject google_mobile_ads + ATT/UMP consent code./flame-harness-buildPhase 8 — bootstrap signing credentials, generate fastlane config from templates, and build + upload signed IPA (TestFlight) and AAB (internal track).npx claudepluginhub tjdrhs90/flutter-flame-harness --plugin flutter-flame-harnessOther plugins' skills for the same job