flutter-build

flutter-build is a command for Claude Code 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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

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

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aaronbassett/agent-foundry/flutter-build
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.

Clone the repo
git clone --depth 1 https://github.com/aaronbassett/agent-foundry

Made for: Claude Code.

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/github.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/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-build

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00022 $0.03603
Opus 5.5 $0.00009 $0.01441
Sonnet 5.5 $0.00004 $0.00721
Haiku 4.5 $0.00002 $0.00360

Measured 3mo ago against content hash fb9259bcbded, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 3mo ago), licensed MIT. It adds 22 tokens to every session and 3,603 once invoked, about $0.0001 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-08-31.

Related

flutter-build compared with commands from other repositories

flutter-build next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-buildaaronbassett/agent-foundryCommand43mo agoMITA22Claude Code
app-store-auditmjmirza/app-store-complianceCommand10ktodaynoneA35Claude Code
erne-animateJubaKitiashvili/everything-react-native-expoCommand501mo agoMITA21Claude Code
react-nativegetsentry/toolkitCommand983todaynoneA0Claude Code
initialize-iosdefendend/Claude-ast-index-searchCommand60526d agoMITA18Claude Code
kmp-update-design-systemronjunevaldoz/kmp-agent-skillsCommand7todaynoneA34Claude Code
mobile-performance-checktungnk123/mobile-best-practicesCommand228mo agoMITA14Claude Code