/flutter:release-and-store-shippingfrom Flutter Skills
Enforces the full release pipeline from green CI to shipped build: single-source versioning from pubspec.yaml, artifact verification on hardware, secure signing, obfuscation with archived debug symbols, audited permissions, store declarations provable in repo, size and cold-start budgets, and staged rollout with halt plan.
Ships in Flutter Skills. 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.
Read when SKILL.md points to them; scripts run unread.
CI proves the code; a release proves the artifact. Everything here is about the
exact bundle a stranger installs — built with R8, obfuscation, tree-shaking, and
release-mode asserts stripped, signed by a key you must never lose, declaring
things about itself to a store that will pull the app if they are untrue. This
skill starts where ci-pipeline-and-gates ends and where design-review-workflow
signs off.
Building, signing, uploading, and tagging are side-effecting and irreversible in part (a published build number can never be reused; an iOS build can never be unshipped). Never run them because a task seemed to imply a release — run them only when the developer asks for a release by name. Reading and enforcing the config rules below is always in scope.
Run scripts/check-release-hygiene.sh before any release build (and in CI): it is the
static half of this skill — tracked credentials, a malformed build number, debug
signing, and debug affordances, none of which need a build to catch. Run
scripts/check-ipa-slices.sh on the built IPA before spending an upload. Platform depth
lives in references/android-play.md, references/ios-app-store.md,
references/app-store-connect-submission.md, and
references/privacy-permissions-and-claims.md.
pubspec.yaml's version: x.y.z+N is the only version source. x.y.z →
versionName / CFBundleShortVersionString, N → versionCode /
CFBundleVersion. Override per build only with --build-name / --build-number;
never hardcode a version in build.gradle or Info.plist. WHY: two sources
silently diverge and the crash report then names a version that never shipped.versionCode; App Store Connect rejects a reused
CFBundleVersion for the same short version. A failed upload still burns the
number — bump, don't retry..jks/.p12, the App
Store Connect API key (.p8), the Play service-account JSON, and
android/key.properties are gitignored and injected from a secret store. WHY: a
key in git history is compromised permanently, and rotating an app signing key
is a store-side process you do not want to discover during a release.--obfuscate --split-debug-info=<dir> is mandatory for every uploaded build, and
<dir> must be versioned per build (symbols/<x.y.z>+<N>/) and stored
off-machine. WHY: symbol files are the only way to read that release's stack
traces; regenerating them later produces different symbols and decodes nothing..aab
(via Play internal app sharing / bundletool) or the exact TestFlight build —
never a debug or profile build, never "it worked in the emulator." WHY: R8,
resource shrinking, and obfuscation only run in release, so reflective plugins,
missing ProGuard rules, and stripped asserts fail first in the artifact you ship.tools:node="remove", and keep a
committed expected-permission list that a gate diffs against. On iOS every
NS*UsageDescription present must be honest and every one you need must exist —
a missing usage string is an App Review rejection, an unused one is a claim you
cannot defend. See references/privacy-permissions-and-claims.md.PrivacyInfo.xcprivacy (required-reason APIs
eraseDatabaseOnSchemaChange, log-everything sinks, and staging endpoints are
compiled out or behind a flavor that is not the store flavor — proved by a grep
gate, not by memory. WHY: shipped, they wipe or leak real user data.--analyze-size for bytes, --trace-startup in profile for the first
frame, on a real low-end target device. A regression past the recorded budget is
a release blocker, not a note.design-review-workflow) is a precondition, not part of this pass.GET /v1/reviewSubmissions/{id}/items must return 2
items, not 1. WHY: a configured purchase reports a submittable state that reads, to every
tool and every human, exactly like a submitted one. See
references/app-store-connect-submission.md.Run only when a release is explicitly requested. Do not reorder or skip.
version: in pubspec.yaml — semantic x.y.z for the user-visible
change, +N incremented past the highest number ever uploaded. Commit alone.flutter build appbundle --release \
--obfuscate --split-debug-info=build/symbols/1.4.0+42
flutter build ipa --release \
--obfuscate --split-debug-info=build/symbols/1.4.0+42 \
--export-options-plist=ios/ExportOptions.plist
build/symbols/1.4.0+42/ off-machine alongside the artifact, before
anything is uploaded. This is the step nobody misses twice.run-migration).flutter build appbundle --release --analyze-size # bytes, by library/asset
flutter run --profile --trace-startup # start_up_info.json
PrivacyInfo.xcprivacy, and every privacy sentence in the listing,
against what the code now does.references/app-store-connect-submission.md).pubspec.yaml | Android | iOS | Rules |
|---|---|---|---|
x.y.z | versionName | CFBundleShortVersionString | User-visible; may repeat across builds of the same release |
+N | versionCode | CFBundleVersion | Integer, strictly increasing, never reused; a failed upload still consumes it |
Override for a rebuild with --build-name=1.4.0 --build-number=43; never edit the
generated values in Gradle or Info.plist. In a flavored app, the store flavor's
applicationId / bundle id is fixed for the lifetime of the listing — changing it
creates a new app that existing users never receive.
An obfuscated release produces stack traces of meaningless symbols. They decode only against the symbol files produced by that exact build:
flutter symbolize -i crash.txt -d build/symbols/1.4.0+42/app.android-arm64.symbols
Keep one directory per version+build, uploaded to the same durable store as the
artifact, retained at least as long as the release can still be running on a device.
A rebuilt binary produces different symbols — "just build it again" recovers nothing.
CI runs debug/JIT code on a clean runner. Only the release pass can prove: R8 and tree-shaking left reflective plugins working; the merged permission set is what you intend; the signed artifact installs and upgrades over the previous release; first frame and size fit the budget on real low-end hardware; store-delivered binaries run. State this honestly rather than claiming a green pipeline means shippable.
build.gradle or Info.plist — diverges from pubspec;
crash reports name a build that does not exist.key.properties, .p8, or a service-account JSON —
compromised permanently; scrubbing history does not un-leak it.--obfuscate but not archiving --split-debug-info output — the
release's crashes become permanently unreadable the moment the build dir is wiped.AndroidManifest.xml instead of the merged one — the
permissions users see on the listing come from the merge, not from your file.eraseDatabaseOnSchemaChange reachable in the
store flavor — destroys or exposes real user data.applicationId/bundle id to "fix" a signing problem — it creates a
new app; every existing user is stranded on the old one.version: x.y.z+N bumped in pubspec.yaml only; N higher than every number
ever uploaded; no version hardcoded in platform files.--release with --obfuscate --split-debug-info=<per-build dir>;
symbols archived off-machine with the artifact before upload.key.properties, .p8, or service-account JSON tracked by git;
Play App Signing enrolled; upload key held separately.NS*UsageDescription present and honest.PrivacyInfo.xcprivacy reconciled with the
current dependency set; no absolute privacy claim in listing or onboarding copy.--analyze-size) and cold start (--trace-startup) recorded against the
previous release's numbers; no unexplained regression.scripts/check-release-hygiene.sh passes on the release commit, and
scripts/check-ipa-slices.sh passes on the IPA before it is uploaded.reviewSubmissions/{id}/items returns 2), each purchase having its
review screenshot, tax category, availability and one localization per app locale.Build each flavor with its own --flavor and entry point, and keep one symbol
directory per flavor and build (symbols/<flavor>/<x.y.z>+<N>/). Store flavors
and their applicationIds are fixed for the life of the listing; non-store flavors
(dev, QA) must never be uploadable — enforce it in the release script, not in a
person's memory. See service-boundary-and-native for the flavor composition roots.
ci-pipeline-and-gates — the gates that must be green before this pass starts, and
the honest statement of what CI cannot prove.design-review-workflow — the dated sign-off that is a precondition for step 1.run-migration — the upgrade-over-previous-release path step 5 exercises.dependency-hygiene — where a new dependency is audited before it changes a
store declaration here.service-boundary-and-native — flavors, native seams, and the plugins whose
manifests get merged.flutter-performance — the profile-mode measurement discipline behind the budgets.ads-and-iap-monetization — the entitlement, restore-before-init and preload-or-hide
rules that decide what an App Review reviewer actually sees, and the ad identifiers the
release gate checks.flutter symbolize: https://docs.flutter.dev/deployment/obfuscatereferences/android-play.md (opens in a new tab)references/app-store-connect-submission.md (opens in a new tab)references/ios-app-store.md (opens in a new tab)references/privacy-permissions-and-claims.md (opens in a new tab)scripts/check-ipa-slices.sh (opens in a new tab)scripts/check-release-hygiene.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zakariaf/flutter-skills --plugin flutter40 skills in this plugin
/accessibility-as-codeEnforces accessibility as a correctness property authored into each widget — Semantics(button/label) or ExcludeSemantics on every node, a11y state read from MediaQuery not app state, never MediaQuery.withClampedTextScaling / textScaleFactor / FittedBox / TextOverflow.ellipsis to fit a label, non-color redundant channels (icon+label+shape+text) for every state, contrast against composited backgrounds (4.5:1 body / 3:1 large), 44px single-tap targets, OrdinalSortKey traversal, and honoring boldText / reduce-motion. Use when adding a GestureDetector/InkWell or any tap target, adding an Icon or Image, reaching for withClampedTextScaling/FittedBox/ellipsis/textScaleFactor to make text fit, encoding state via color, sizing type, ordering focus traversal, or reviewing any View for screen-reader/switch/low-vision support./adaptive-layoutEnforces adapting layout by available CONSTRAINTS/size, never device or platform checks — LayoutBuilder + MediaQuery.sizeOf/paddingOf/viewInsetsOf (not .of) for narrow rebuilds, Material 3 window size classes (compact <600, medium 600-840, expanded 840-1200, large >1200) as the breakpoint vocabulary, navigation affordance chosen by width (NavigationBar → NavigationRail → NavigationDrawer), list-detail single-pane-vs-two-pane, readable max-width via ConstrainedBox, Flexible/Expanded/FractionallySizedBox over fixed widths, SafeArea + display cutouts + keyboard insets, never lock orientation, foldable/hinge awareness via MediaQuery.displayFeatures, and golden-matrix verification across sizes. Use when building responsive or adaptive UI, tablet/desktop/foldable support, master-detail or two-pane screens, a NavigationRail-vs-BottomNav shell, breakpoints, LayoutBuilder, MediaQuery sizing, SafeArea/cutouts, or fixing overflow at large widths.Other plugins' skills for the same job