Flutter Flavors
Use this skill when the user asks to configure, audit, or switch Flutter flavors, build environments, app IDs, display names, launch configs, or platform-specific app identities.
Core Rule
Flutter flavor/environment and Flutter build mode are separate axes.
- Flavor/environment defines which app identity or deployment profile is built.
- Build mode (
debug, profile, release) defines how the Flutter runtime is compiled.
- Do not use
profile as a synonym for beta.
- Do not use
release as a synonym for prod.
- Validate every app ID against
references/identifier-rules.md before editing. That reference owns platform character rules, cross-platform ID differences, slug derivation from display names, and the ban on applying example IDs literally.
- When Flavorizr config and native platform files both exist, treat them as separate sources until reconciled. Before applying canonical or personal changes, identify which one is source of truth and update the other to match; if they conflict, ask before editing.
- Preserve unknown or extra flavors unless the user explicitly asks to remove or rename them. If applying canonical or personal policy, ask whether extra flavors should be updated, mapped, or left untouched.
- If multiple flavor meanings coexist, such as environment flavors (
dev, test, beta, prod) plus custom flavors (custom_flavor_a, custom_flavor_b), ask whether to flatten combinations or keep them independent. When kept independent, add VS Code debug launch configs for custom-only flavors unless the user requests profile/release variants.
Scope
Current bundled references cover generic Android/iOS mobile setup:
- Read
references/identifier-rules.md before writing any app ID, bundle identifier, or derived slug.
- Read
references/mobile-identities.md for canonical team identities and personal Apple Developer/local device testing identities.
- Read
references/flutter-flavorizr.md when a project already uses flutter_flavorizr, has flavorizr.yaml, or the user asks to generate/manage Flutter Flavorizr configuration.
- Read
references/example-prompts.md only when the user asks for example prompts or usage examples.
For macOS, web, Windows, or Linux, first inspect existing project docs and native platform files. Only apply platform-specific identity changes when the requested target and source of truth are clear. Otherwise, report the likely files and ask for a platform policy.
If the user invokes only $flutter-flavors without a concrete task, ask for the intended action and do not edit files.
Workflow
- Identify requested target: canonical, personal, switch canonical to personal, switch personal to canonical, audit only, or add a new platform policy.
- Load only the relevant reference file.
- Inspect existing Android/iOS/macOS/web/Windows/Linux project files before editing.
- Preserve unrelated launch configs, schemes, build files, signing settings, and app logic.
- Stop and report when signing, export, store, CI/CD, provisioning, capabilities, notarization, package identity, or release-path decisions need human confirmation.
- Verify with the smallest available Flutter/native check that does not require unavailable signing credentials.
Platform Notes
- Android uses Gradle Kotlin DSL product flavors, lowercase
applicationId, and manifest label placeholders.
- iOS and macOS use Xcode schemes/build configurations, bundle identifiers, display names, and signing settings.
- Web usually uses deployment environment/profile settings rather than a native installable flavor.
- Windows/Linux usually use package/app metadata and build-time environment profiles rather than Android-style product flavors.
Output
Report what identity set was applied or audited, which platform files changed, which checks ran, and any human decisions still required.
1---2name: flutter-flavors3description: Use when setting up, auditing, or switching Flutter flavors, flutter_flavorizr, flavorizr.yaml, or platform-specific app identities (app IDs, display names, launch configs) across Android, iOS, macOS, web, Windows, and Linux.4---56# Flutter Flavors78Use this skill when the user asks to configure, audit, or switch Flutter flavors, build environments, app IDs, display names, launch configs, or platform-specific app identities.910## Core Rule1112Flutter flavor/environment and Flutter build mode are separate axes.1314- Flavor/environment defines which app identity or deployment profile is built.15- Build mode (`debug`, `profile`, `release`) defines how the Flutter runtime is compiled.16- Do not use `profile` as a synonym for `beta`.17- Do not use `release` as a synonym for `prod`.18- Validate every app ID against `references/identifier-rules.md` before editing. That reference owns platform character rules, cross-platform ID differences, slug derivation from display names, and the ban on applying example IDs literally.19- When Flavorizr config and native platform files both exist, treat them as separate sources until reconciled. Before applying canonical or personal changes, identify which one is source of truth and update the other to match; if they conflict, ask before editing.20- Preserve unknown or extra flavors unless the user explicitly asks to remove or rename them. If applying canonical or personal policy, ask whether extra flavors should be updated, mapped, or left untouched.21- If multiple flavor meanings coexist, such as environment flavors (`dev`, `test`, `beta`, `prod`) plus custom flavors (`custom_flavor_a`, `custom_flavor_b`), ask whether to flatten combinations or keep them independent. When kept independent, add VS Code debug launch configs for custom-only flavors unless the user requests profile/release variants.2223## Scope2425Current bundled references cover generic Android/iOS mobile setup:2627- Read `references/identifier-rules.md` before writing any app ID, bundle identifier, or derived slug.28- Read `references/mobile-identities.md` for canonical team identities and personal Apple Developer/local device testing identities.29- Read `references/flutter-flavorizr.md` when a project already uses `flutter_flavorizr`, has `flavorizr.yaml`, or the user asks to generate/manage Flutter Flavorizr configuration.30- Read `references/example-prompts.md` only when the user asks for example prompts or usage examples.3132For macOS, web, Windows, or Linux, first inspect existing project docs and native platform files. Only apply platform-specific identity changes when the requested target and source of truth are clear. Otherwise, report the likely files and ask for a platform policy.3334If the user invokes only `$flutter-flavors` without a concrete task, ask for the intended action and do not edit files.3536## Workflow37381. Identify requested target: canonical, personal, switch canonical to personal, switch personal to canonical, audit only, or add a new platform policy.392. Load only the relevant reference file.403. Inspect existing Android/iOS/macOS/web/Windows/Linux project files before editing.414. Preserve unrelated launch configs, schemes, build files, signing settings, and app logic.425. Stop and report when signing, export, store, CI/CD, provisioning, capabilities, notarization, package identity, or release-path decisions need human confirmation.436. Verify with the smallest available Flutter/native check that does not require unavailable signing credentials.4445## Platform Notes4647- Android uses Gradle Kotlin DSL product flavors, lowercase `applicationId`, and manifest label placeholders.48- iOS and macOS use Xcode schemes/build configurations, bundle identifiers, display names, and signing settings.49- Web usually uses deployment environment/profile settings rather than a native installable flavor.50- Windows/Linux usually use package/app metadata and build-time environment profiles rather than Android-style product flavors.5152## Output5354Report what identity set was applied or audited, which platform files changed, which checks ran, and any human decisions still required.