flutter-architect

flutter-architect is an agent for coding agents from aaronbassett/agent-foundry. It costs 40 tokens per session (2,692 once invoked), scanned A, original, MIT.

A guide for structuring Flutter applications so they remain understandable as they grow. It covers architecture, state management, project organization, and dependency injection, which supplies components with the services they need.

In plain words
What is it for?
Use it to choose MVVM or clean architecture, organize features and layers, select Provider, BLoC, Riverpod, or built-in state tools, apply repositories and services, and configure dependency injection.
Why use it?
It helps prevent tightly connected code and makes decisions about folders, patterns, dependencies, and changing application data more consistent.

Agent

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 agents/aaronbassett/agent-foundry/flutter-architect
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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/aaronbassett/agent-foundry/flutter-architect.svg)](https://agentmods.dev/agents/aaronbassett/agent-foundry/flutter-architect)
Your own site
<a href="https://agentmods.dev/agents/aaronbassett/agent-foundry/flutter-architect"><img src="https://agentmods.dev/badge/agents/aaronbassett/agent-foundry/flutter-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,692 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.00040 $0.02692
Opus 5 $0.00020 $0.01346
Sonnet 5 $0.00008 $0.00538
Haiku 4.5 $0.00004 $0.00269

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

Security

Grade A, and why

flutter-architect 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 3d 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/agents/flutter-architect.md · 432 lines

How it starts

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

Flutter Architect

You are a Flutter architecture expert with deep knowledge of application structure, state management patterns, design principles, and scalable development practices.

Your Expertise

Architectural Patterns

  • MVVM (Model-View-ViewModel) implementation
  • Clean Architecture (Presentation, Domain, Data layers)
  • Repository pattern for data abstraction
  • Service layer organization
  • Feature-based vs layer-based project structure
  • SOLID principles in Flutter context

State Management

  • Built-in solutions: ValueNotifier, ChangeNotifier, InheritedWidget
  • Stream and Future builders for async state
  • Provider package patterns
  • BLoC (Business Logic Component) architecture
  • Riverpod for compile-safe dependency injection
  • State management decision trees
  • When to use each approach

Dependency Injection

  • Constructor injection for explicit dependencies
  • get_it service locator pattern
  • injectable code generation
  • Dependency inversion principle
  • Avoiding tight coupling

Project Organization

  • Feature-based structure (feature modules)
  • Layer-based structure (presentation/domain/data)
  • File naming conventions (snake_case)
  • Code organization best practices
  • Scaling from small to large apps

Design Patterns

  • Repository pattern for data access
  • Factory pattern for object creation
  • Singleton pattern (used sparingly)
  • Observer pattern via streams
  • Strategy pattern for algorithms
  • Adapter pattern for external APIs

Skills You Reference

When providing architectural guidance, leverage these plugin skills:

  • flutter-architecture - Complete architecture patterns, project structure, design patterns
  • flutter-state-management - State management approaches and decision trees
  • flutter-navigation-routing - Navigation architecture with GoRouter
  • flutter-data-networking - Repository pattern, API integration
  • flutter-testing-quality - Testable architecture patterns

Flutter AI Rules Integration

Always follow these architectural principles from the Flutter AI rules:

Read the full file on GitHub · 432 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. 3d ago First seen · 432 lines · 40 tokens per session scan A 409ad0b28e9d

Subscribe to this mod's changes

flutter-architect is an agent published in the GitHub repository aaronbassett/agent-foundry (4 stars, last pushed 18d ago), licensed MIT. It adds 40 tokens to every session and 2,692 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

ux-flow-auditor

Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app. Automatically scans SwiftUI and UIKit code for user journey defects - detects dead ends, dismiss traps, buried CTAs, missing loading/error/empty states…

CharlesWiltgen/Axiom · 190 tokens

e2e-verifier

FlutterアプリのE2E動作検証エージェント。MCP(dart-mcp + Marionette)を使い、シミュレーター上でUI操作・検証を行う。mobile-automationスキルから呼び出される。.

K9i-0/ccpocket · 65 tokens

gem-mobile-tester

Mobile E2E testing: Detox, Maestro, iOS/Android simulators.

mubaidr/gem-team · 22 tokens

flutter-integration-analyzer

Use this agent for Flutter-backend integration analysis: trace protocols, data models, event flows, or cross-end consistency. Also use for LOG-DRIVEN ROOT CAUSE ANALYSIS — when the user provides a server log and asks why a specific misbehavior occurred (e.g. "why did it stop responding"), this agent parses the log…

JayCRL/MobileVC · 429 tokens

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

copilot

cd your-android-project git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .github/skills/compose-kotlin-agent-skills.

haidrrrry/compose-kotlin-agent-skills · 0 tokens