flutter-build

flutter-build is a command for coding agents from aaronbassett/agent-foundry. It costs 22 tokens per session (3,603 once invoked), scanned A, original, MIT.

A command for building Flutter apps, which are applications made with Google's cross-platform Flutter toolkit, for different operating systems.

In plain words
What is it for?
Use it to create Android APKs or app bundles, iOS and macOS packages, web apps, Windows executables, Linux builds, or builds for all supported platforms.
Why use it?
It gathers platform-specific build choices into one command, including release modes, signing, obfuscation, and Android packaging options.

Command

Part of the flutter-core plugin — 3 skills, 4 commands, 5 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add commands/aaronbassett/agent-foundry/flutter-build
Clone the repo
git clone --depth 1 https://github.com/aaronbassett/agent-foundry

Or install flutter-core, the plugin that ships this one along with the rest of its 3 skills, 4 commands, 5 agents, 1 MCP server.

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-build

README.md
[![agentmods](https://agentmods.dev/badge/commands/aaronbassett/agent-foundry/flutter-build.svg)](https://agentmods.dev/commands/aaronbassett/agent-foundry/flutter-build)
Your own site
<a href="https://agentmods.dev/commands/aaronbassett/agent-foundry/flutter-build"><img src="https://agentmods.dev/badge/commands/aaronbassett/agent-foundry/flutter-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,603 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.03603
Opus 5 $0.00011 $0.01801
Sonnet 5 $0.00004 $0.00721
Haiku 4.5 $0.00002 $0.00360

Measured 4d ago against content hash fb9259bcbded, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flutter-build 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 4d 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.

plugins/flutter-core/commands/flutter-build.md · 606 lines

How it starts

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

Flutter Multi-Platform Build Manager

This command orchestrates building and packaging Flutter applications for all supported platforms with production-ready configurations, code signing, and optimization.

Usage

/flutter-build <platform> [mode] [options]

Platforms

  • android - Build APK/AAB for Android
  • ios - Build IPA for iOS (macOS only)
  • web - Build web app
  • windows - Build Windows executable
  • macos - Build macOS app (macOS only)
  • linux - Build Linux app (Linux/macOS only)
  • all - Build for all available platforms

Build Modes

  • release - Production build (default)
  • debug - Debug build with assertions
  • profile - Performance profiling build

Options

  • --flavor=<name> - Build flavor (dev, staging, prod)
  • --obfuscate - Obfuscate Dart code
  • --split-per-abi - Create separate APKs per ABI (Android)
  • --bundle - Create app bundle instead of APK (Android)
  • --export-method=<method> - iOS export method (app-store, ad-hoc, enterprise, development)
  • --codesign - Code sign the build (required for iOS/macOS distribution)
  • --analyze-size - Generate size analysis report

Examples

# Android release build
/flutter-build android release

# iOS App Store build with obfuscation
/flutter-build ios release --export-method=app-store --obfuscate --codesign

# Android bundle with flavor
/flutter-build android release --bundle --flavor=prod

# Multi-platform release
/flutter-build all release --obfuscate

# Web with size analysis
/flutter-build web release --analyze-size

# Development build for testing
/flutter-build android debug --flavor=dev

Implementation

When this command runs:

1. Pre-build Validation

Check environment and prerequisites:

# Verify Flutter installation
flutter doctor -v

# Check we're in a Flutter project
if [ ! -f "pubspec.yaml" ]; then
  echo "Error: Not a Flutter project"
  exit 1
fi

# Verify platform support
flutter config

Platform-Specific Checks:

Read the full file on GitHub · 606 lines

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. 4d ago First seen · 606 lines · 22 tokens per session scan A fb9259bcbded

Subscribe to this mod's changes

flutter-build is a command published in the GitHub repository aaronbassett/agent-foundry (4 stars, last pushed 19d ago), licensed MIT. It adds 22 tokens to every session and 3,603 once invoked, about $0.0001 per session on Opus 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-08-31.