flutter-multi-environment

flutter-multi-environment is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 161 tokens per session (4,261 once invoked), scanned A, original, MIT.

A guide for configuring one Flutter application to run in development, staging, and production environments. It explains how native build variants, Dart configuration, runtime settings, and secrets differ while keeping lib/main.dart as the single Dart entry point.

In plain words
What is it for?
Use it to create or migrate dev, staging, and production setups, configure native schemes and flavors, manage app identities and resources, and keep environment values consistent across builds.
Why use it?
It prevents environment settings from being scattered or confused with build flavors and secret management. This reduces mistakes such as shipping development services or credentials in a production build.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or migrate dev, staging, and production setups, configure native schemes and flavors, manage app identities and resources, and keep environment values consistent across builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaramin/flutter-skills/flutter-multi-environment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ariaramin/flutter-skills --skill flutter-multi-environment
Clone the repo
git clone --depth 1 https://github.com/ariaramin/flutter-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-multi-environment

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-multi-environment/github.svg)](https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-multi-environment)
Your own site
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-multi-environment"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-multi-environment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-multi-environment

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-multi-environment"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-multi-environment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00161 $0.04261
Opus 5.5 $0.00064 $0.01704
Sonnet 5.5 $0.00032 $0.00852
Haiku 4.5 $0.00016 $0.00426

Measured 1mo ago against content hash e46b1a9f3d14, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-multi-environment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flutter-multi-environment/SKILL.md · 523 lines

How it starts

The opening of the file, as written. The whole thing — 523 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flutter Multi-Environment Architecture

Purpose

Implement and maintain multi-environment Flutter applications—normally development, staging, and production—with exactly one Dart application entry point:

lib/main.dart

Never create environment-specific Dart entry points such as:

lib/main_dev.dart
lib/main_staging.dart
lib/main_prod.dart

Treat these as four separate concerns:

native build flavor / scheme
≠ Dart compile-time configuration
≠ runtime configuration
≠ secret management

Mandatory Operating Rules

  1. Keep lib/main.dart as the only Dart application entry point.
  2. Use a canonical environment vocabulary everywhere: development, staging, production unless an existing public build contract requires a migration period.
  3. Use a typed immutable AppEnvironment + AppConfig boundary rather than scattered string checks.
  4. Use APP_ENV as the authoritative Dart-side environment declaration.
  5. Use native flavor/build configuration for native identity, resources, signing references, entitlements, manifests, native SDK files, and other values that must exist before Dart starts.
  6. Use Dart compile-time definitions for client-visible Dart configuration that is fixed per artifact.
  7. Fail closed on missing or malformed required configuration. Never silently default to production.
  8. When appFlavor is available, validate it against APP_ENV and fail startup on mismatch.
  9. Keep build mode (debug, profile, release) independent from deployment environment (development, staging, production). A staging release build is valid.
  10. Parse configuration once at startup and pass typed values through the composition root. Do not repeatedly read environment globals in features/services.
  11. Never treat --dart-define, .env input files, obfuscation, or compiled client values as secret storage.
  12. CI/CD owns deterministic environment selection, release gates, signing/store credentials, artifact identity checks, and publication policy.
  13. Prefer targeted edits to an existing native project. Never regenerate platform directories blindly to “get flavors”.
  14. Version-gate Windows/Linux flavor work against the project's pinned Flutter SDK.
  15. Do not use flutter build web --flavor ...; web environment selection is primarily Dart-define driven.

Read the full file on GitHub · 523 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 523 lines · 161 tokens per session scan A e46b1a9f3d14

Subscribe to this mod's changes

flutter-multi-environment is a skill published in the GitHub repository ariaramin/flutter-skills (11 stars, last pushed 23d ago), licensed MIT. It adds 161 tokens to every session and 4,261 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

flutter-multi-environment compared with skills from other repositories

flutter-multi-environment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-multi-environmentariaramin/flutter-skillsSkill1123d agoMITA161Claude Code, Codex
omh-apple-designrlaope/oh-my-hermesSkill6.2ktodayMITA21Claude Code
platform-conventionsOwl-Listener/designer-skillsSkill3.5k11d agoMITA55Claude Code, Codex
redteam-mobile-detail-packNetw0rkNoob/VulnClawSkill4.0k1mo agoMITA57Claude Code, Codex
android-pentestNetw0rkNoob/VulnClawSkill4.0k1mo agoMITA32Claude Code, Codex
offline-syncWrongStack/WrongStackSkill444todayMITA85Claude Code, Codex
flutter-mobileWrongStack/WrongStackSkill444todayMITA86Claude Code