flutter-release-engineering
Skill28 starsChanged 3 months agoApache-2.0View on GitHub
Use when setting up or reviewing how a Flutter app ships — build flavors and environment config (--dart-define-from-file), app signing, the flutter build matrix per platform, version/build-number strategy, store metadata, and whether to use an over-the-air update service (Shorebird). Covers release concerns the official Flutter/Dart skills do not.
In this repository34 other files it gives its agents.
- bigquery-query-optimizationSkill
- build-and-ci-gatesSkill
- cdc-scd-patternsSkill
- code-implementerSkill
- code-smells-expertSkill
- commit-expertSkill
- compliance-verifierSkill
- context-captureSkill
- context-restoreSkill
- database-migration-expertSkill
- design-spec-expertSkill
- documentation-expertSkill
- flutter-architecture-decisionsSkill
- flutter-performance-profilingSkill
- flutter-review-checklistSkill
- flutter-senior-orchestrationSkill
- flutter-test-strategySkill
- flutter-upgrade-migrationSkill
- gcp-data-engineeringSkill
- guidelines-karpathySkill
- loop-engineeringSkill
- performance-scalabilitySkill
- product-analystSkill
- pull-request-expertSkill
- python-expertSkill
- qa-testerSkill
- refactoring-code-expertSkill
- repo-researchSkill
- security-auditSkill
- senior-architect-engineeringSkill
- senior-dev-orchestratorSkill
- sql-query-optimizationSkill
- test-driven-developmentSkill
- testing-expertSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Day-to-day feature implementation: Use flutter-implementer and official flutter-* skills for widget and domain coding.
- Very specific: line 22
Local code formatting: Use dart format and dart analyze.
- Very specific: line 45
Verify signature integrity on build artifacts before distribution (apksigner verify, codesign -dv).
- Distinctive: line 91
Google Antigravity: Run build and signing validation commands via terminal or integrate with release automation pipelines.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flutter Release Engineering
Overview
The Flutter Release Engineering skill provides the complete deployment, packaging, and configuration lifecycle for Flutter applications across mobile (Android/iOS), web, and desktop. Operating across Claude Code and Google Antigravity, this skill guides teams through environment configuration injection (--dart-define-from-file), flavor schemes, secure app signing without in-repo credentials, reproducible CI build matrices, semver versioning, and over-the-air (OTA) patching via Shorebird.
When to Use
Trigger Scenarios
- Configuring environment flavors (dev, staging, production) and injecting configuration files.
- Setting up automated CI/CD build matrices for App Store (IPA), Google Play (AAB), Web, and Desktop.
- Establishing secure key signing pipelines for Android Keystores and Apple Provisioning Profiles.
- Evaluating and deploying over-the-air code patching (Shorebird) while managing store compliance.
When NOT to Use
- Day-to-day feature implementation: Use
flutter-implementerand officialflutter-*skills for widget and domain coding. - Pure backend container builds: For Docker or Cloud Run builds, use
build-and-ci-gates. - Local code formatting: Use
dart formatanddart analyze.
Process
flowchart TD
A[Release Candidate Ready] --> B[Step 1: Environment Config Injection]
B --> C[Step 2: Credential & Signing Validation]
C --> D[Step 3: Multi-Platform Release Build Matrix]
D --> E[Step 4: Obfuscation & Symbol Archival]
E --> F[Step 5: Automated Store Packaging & Metadata]1. Environment Configuration
- Inject non-secret configuration variables using build-time definition files:
flutter build <target> --dart-define-from-file=config/prod.json - Access values in Dart via a typed
AppConfigwrappingString.fromEnvironmentandbool.fromEnvironment. - Manage native variations (package IDs, bundle names, icons, Firebase configs) using Android product flavors and iOS schemes/xcconfig.
- Never commit production secrets, service keys, or keystores into source control. Store secrets strictly in CI encrypted stores.
2. Signing Security
- Android: Configure
key.properties(git-ignored) with keystore paths injected via CI environment variables. Prefer Google Play App Signing. - iOS: Manage signing identities and provisioning profiles via fastlane
matchor App Store Connect API keys in CI. Zero.p12files in the repository. - Verify signature integrity on build artifacts before distribution (
apksigner verify,codesign -dv).
3. Multi-Platform Build Matrix
Build from clean, pinned checkouts using Flutter Version Management (FVM):
- Android App Bundle (Play Store):
flutter build appbundle --release --flavor prod --dart-define-from-file=config/prod.json - Android APK (QA/Sideload):
flutter build apk --release --flavor staging --dart-define-from-file=config/staging.json - iOS IPA (App Store):
flutter build ipa --release --flavor prod --export-options-plist=ios/exportOptions.plist --dart-define-from-file=config/prod.json - Web:
flutter build web --release --dart-define-from-file=config/prod.json
4. Obfuscation & Crash Symbol Storage
Enable code obfuscation and split debug symbols:
--obfuscate --split-debug-info=build/symbols
Archive build/symbols in CI storage with release build tags for crash symbolication in Sentry or Firebase Crashlytics.
5. Versioning & Over-The-Air Updates
- Maintain
version: X.Y.Z+BUILDinpubspec.yaml, setting+BUILDdynamically in CI via--build-number=$CI_PIPELINE_IID. - Tag git releases (
vX.Y.Z) following Conventional Commits. - Evaluate Shorebird OTA patching only for Dart-level bug fixes; never bypass app store review for native modifications or permissions changes.
Usage
Build Commands & Matrix
Production Android release build:
flutter build appbundle --release --flavor prod --dart-define-from-file=config/prod.json --obfuscate --split-debug-info=build/symbolsProduction iOS release build:
flutter build ipa --release --flavor prod --dart-define-from-file=config/prod.json --export-options-plist=ios/exportOptions.plistExample Prompts
"Set up --dart-define-from-file configuration and product flavors for dev, staging, and prod in our Flutter repository.""Configure our CI GitHub Actions workflow to build release AAB and IPA artifacts with debug symbol archiving."Host Execution Instructions
- Claude Code: Invoke via
/skill flutter-release-engineeringor prompt for Flutter release/flavor setup. - Google Antigravity: Run build and signing validation commands via terminal or integrate with release automation pipelines.
Red Flags
- Hard-coding API URLs, backend endpoints, or environment flags in Dart source files.
- Committing Android
.jks/.keystorefiles or iOS.p12certificates to git history. - Manually incrementing build numbers in
pubspec.yamlinstead of driving monotonically in CI. - Shipping release builds without stripping and archiving debug symbols.
- Using Shorebird OTA updates to push native permission or manifest changes.
Verification
- No plaintext secrets or keys committed in source files or
pubspec.yaml. - Configuration separated cleanly across
config/*.jsonand loaded via--dart-define-from-file. - Production Android bundle (
.aab) and iOS IPA (.ipa) build cleanly. - Code obfuscation and split debug symbols generated and archived in
build/symbols. - Signing certificates verified with
apksignerandcodesign. - Native flavors aligned between Android
build.gradleand iOS Xcode schemes.
References
- Flavors, Config, and the AppConfig Pattern
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

