flutter-architecture

flutter-architecture is a skill for Claude Code, Codex from MADTeacher/mad-agents-skills. It costs 94 tokens per session (1,152 once invoked), scanned A, original, MIT.

A set of rules for organising Flutter application code into views, view models, repositories, services, and optional domain logic. Flutter is a toolkit for building apps; this approach defines how the parts of an app should work together.

In plain words
What is it for?
Use it to design or refactor Flutter project structure, choose feature-first or layer-first organisation, add dependency injection, and implement repositories, commands, results, offline flows, or optimistic updates.
Why use it?
It reduces tangled code by giving UI, state, business rules, data access, and external services clearer responsibilities.

Skill for Claude CodeCodex

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

Good fit Use it to design or refactor Flutter project structure, choose feature-first or layer-first organisation, add dependency injection, and implement repositories, commands, results, offline flows, or optimistic updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madteacher/mad-agents-skills/flutter-architecture
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 MADTeacher/mad-agents-skills --skill flutter-architecture
Clone the repo
git clone --depth 1 https://github.com/MADTeacher/mad-agents-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-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/madteacher/mad-agents-skills/flutter-architecture/github.svg)](https://agentmods.dev/skills/madteacher/mad-agents-skills/flutter-architecture)
Your own site
<a href="https://agentmods.dev/skills/madteacher/mad-agents-skills/flutter-architecture"><img src="https://agentmods.dev/badge/skills/madteacher/mad-agents-skills/flutter-architecture/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-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/madteacher/mad-agents-skills/flutter-architecture"><img src="https://agentmods.dev/badge/skills/madteacher/mad-agents-skills/flutter-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,152 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. Third-party audits
  • Socket pass 1 May 2026
  • Snyk pass 1 May 2026
How audits are shown
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.00094 $0.01152
Opus 5 $0.00047 $0.00576
Sonnet 5 $0.00019 $0.00230
Haiku 4.5 $0.00009 $0.00115

Measured 12d ago against content hash 905b50dc9037, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

flutter-architecture 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 12d 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.

flutter-architecture/SKILL.md · 106 lines

How it starts

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

Flutter Architecture

You are an architecture agent for Flutter apps. Turn existing project facts into concrete structure, code organization, dependency rules, and validation steps. Do not treat this skill as a report: use it to inspect, decide, implement or review, and verify.

Core Contract

  1. Confirm the target is a Flutter or Dart package by inspecting pubspec.yaml, lib/, and existing state-management, routing, DI, networking, persistence, and test conventions.
  2. Preserve existing conventions unless they conflict with a clear architecture requirement or the user explicitly asks to migrate.
  3. Choose the smallest architecture that fits the project:
    • Use feature-first for medium/large apps, team work, frequent feature changes, or clearly bounded business capabilities.
    • Use layer-first for small apps, solo work, or simple CRUD flows.
    • Use a Domain layer only for complex, reusable, or multi-repository business logic. ViewModels may call Repositories directly for simple flows.
  4. Keep Views declarative and thin, ViewModels responsible for UI state and commands, Repositories as the single source of truth for app data, and Services as stateless wrappers around external data sources.
  5. For implementation tasks, change the project structure and code using local patterns first. Add templates from this skill only after checking that their imports, Dart SDK features, state-management style, and naming fit the app.
  6. For review tasks, report layer violations, cross-feature imports, state ownership problems, missing tests, and unclear dependency boundaries before broad style advice.
  7. Validate with the repo's normal commands. Prefer flutter analyze and relevant flutter test suites when available; otherwise explain the missing verification.

Clarification Rules

Ask the user only when a high-impact decision cannot be inferred from the project:

  • product boundary of a new feature;
  • expected scale of team or app when structure choice is ambiguous;
  • offline-first, sync, or conflict-resolution requirements;
  • whether a migration should be incremental or all-at-once.

Read the full file on GitHub · 106 lines

Files

What ships with it

8 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. 12d ago First seen · 106 lines · 94 tokens per session scan A 905b50dc9037

Subscribe to this mod's changes

flutter-architecture is a skill published in the GitHub repository MADTeacher/mad-agents-skills (108 stars, last pushed 4mo ago), licensed MIT. It adds 94 tokens to every session and 1,152 once invoked, about $0.0005 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-30.