flutter-new

flutter-new is a command for coding agents from aaronbassett/agent-foundry. It costs 19 tokens per session (1,372 once invoked), scanned A, original, MIT.

A command for creating new Flutter projects with selected templates and setup options. Flutter is a toolkit for building apps for phones, websites, and computers from one codebase.

In plain words
What is it for?
Use it to create a project, choose supported platforms, configure Provider, BLoC, or Riverpod for managing changing app data, and start with optional Material 3, clean-architecture, or Serverpod full-stack templates.
Why use it?
It saves time when starting a project by preparing a basic, Material 3, clean-architecture, or full-stack structure with chosen platforms and state-management tools.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/aaronbassett/agent-foundry/flutter-new.svg)](https://agentmods.dev/commands/aaronbassett/agent-foundry/flutter-new)
Your own site
<a href="https://agentmods.dev/commands/aaronbassett/agent-foundry/flutter-new"><img src="https://agentmods.dev/badge/commands/aaronbassett/agent-foundry/flutter-new.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,372 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.00019 $0.01372
Opus 5 $0.00010 $0.00686
Sonnet 5 $0.00004 $0.00274
Haiku 4.5 $0.00002 $0.00137

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

Security

Grade A, and why

flutter-new 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-new.md · 200 lines

How it starts

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

Create New Flutter Project

This command creates a new Flutter project with optional templates and pre-configured state management, architecture patterns, and development tools.

Usage

/flutter-new <project-name> [template] [options]

Templates

  • basic - Minimal Flutter app (default)
  • material3 - Material Design 3 with theming
  • clean-arch - Clean architecture structure
  • full-stack - Flutter app + ServerPod backend

Options

  • --state-management=<provider|bloc|riverpod> - Pre-configure state management
  • --platforms=<android,ios,web,windows,macos,linux> - Enable specific platforms
  • --org=<com.example> - Organization identifier

Examples

# Basic Material 3 app
/flutter-new my_app material3

# Clean architecture with BLoC
/flutter-new my_app clean-arch --state-management=bloc

# Full-stack app with ServerPod
/flutter-new my_backend full-stack

# Web-only app with Riverpod
/flutter-new my_web_app basic --platforms=web --state-management=riverpod

Implementation

When this command runs:

  1. Parse Arguments

    • Extract project name (required)
    • Extract template (default: basic)
    • Parse options (state management, platforms, org)
    • Validate project name (lowercase, underscores only)
  2. Ask for Clarifications (if needed)

    • If no template specified, ask which template
    • If no state management specified for non-basic template, ask preference
    • If no platforms specified, use Flutter defaults
  3. Create Base Project

    flutter create \
      --project-name=<project_name> \
      --org=<org_id> \
      --platforms=<platforms> \
      <project_name>
    
  4. Apply Template Based on selected template:

    material3 template:

    • Update lib/main.dart with Material 3 theming
    • Add ThemeData with useMaterial3: true
    • Configure ColorScheme.fromSeed()
    • Add dark theme support
    • Create lib/theme/ directory with theme configuration

    clean-arch template:

    • Create directory structure:
      lib/
      ├── core/
      │   ├── error/
      │   ├── network/
      │   └── utils/
      ├── features/
      │   └── example/
      │       ├── data/
      │       │   ├── datasources/
      │       │   ├── models/
      │       │   └── repositories/
      │       ├── domain/
      │       │   ├── entities/
      │       │   ├── repositories/
      │       │   └── usecases/
      │       └── presentation/
      │           ├── pages/
      │           └── widgets/
      └── main.dart
      
    • Add dependency injection setup (get_it)
    • Create example feature with complete layers

Read the full file on GitHub · 200 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 · 200 lines · 19 tokens per session scan A 28f7f371924d

Subscribe to this mod's changes

flutter-new is a command published in the GitHub repository aaronbassett/agent-foundry (4 stars, last pushed 19d ago), licensed MIT. It adds 19 tokens to every session and 1,372 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.