Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
madteacher avatar

Flutter Architecture

  • 1.6k installs
  • 105 repo stars
  • Updated May 1, 2026
  • madteacher/mad-agents-skills

flutter-architecture is a skill that >-

About

The flutter-architecture skill helps with >-. Key workflows include Flutter Architecture; Core Contract; Clarification Rules; Resource Routing. Documented capabilities cover Use feature-first for medium/large apps, team work, frequent feature; Use layer-first for small apps, solo work, or simple CRUD flows.; Use a Domain layer only for complex, reusable, or multi-repository; product boundary of a new feature;; expected scale of team or app when structure choice is ambiguous;. Agents should invoke it when users ask about flutter architecture or mention triggers defined in the skill frontmatter. Follow the SKILL.md steps, reference files, and output formats rather than improvising outside documented scope. 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

  • Flutter Architecture
  • Core Contract
  • Use feature-first for medium/large apps, team work, frequent feature
  • Use layer-first for small apps, solo work, or simple CRUD flows.
  • Use a Domain layer only for complex, reusable, or multi-repository

Flutter Architecture by the numbers

  • 1,615 all-time installs (skills.sh)
  • +10 installs in the week ending Jul 29, 2026 (Skillselion tracking)
  • Ranked #149 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
At a glance

flutter-architecture capabilities & compatibility

Capabilities
flutter architecture · core contract · use feature first for medium/large apps, team wo · use layer first for small apps, solo work, or si · use a domain layer only for complex, reusable, o
Use cases
planning · research
From the docs

What flutter-architecture says it does

>-
SKILL.md
npx skills add https://github.com/madteacher/mad-agents-skills --skill flutter-architecture

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.6k
repo stars105
Security audit3 / 3 scanners passed
Last updatedMay 1, 2026
Repositorymadteacher/mad-agents-skills

How do I apply flutter-architecture for flutter architecture tasks?

>-

Who is it for?

Teams using flutter-architecture as documented in the skill repository.

Skip if: Tasks outside the flutter-architecture scope in SKILL.md.

When should I use this skill?

User mentions flutter-architecture, flutter-architecture, or related skill triggers.

What you get

Structured guidance and deliverables from the flutter-architecture SKILL.md workflow.

  • Command0.dart
  • Command1.dart
  • ViewModel command wiring

By the numbers

  • Defines Command0 for zero-argument actions and Command1 for single-argument actions

Files

SKILL.mdMarkdownGitHub ↗

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.

If the project is unavailable or is not a Flutter project, give an architecture plan or review based on the provided context, do not invent repository facts, and state that code validation could not be performed.

Resource Routing

Read only the references needed for the current task:

NeedReadUse for
Basic principles or vocabularyconcepts.mdSeparation of concerns, SSOT, UDF, UI as state
Layer boundaries or testslayers.mdUI/Data/optional Domain responsibilities and validation
Feature-first structure or migrationfeature-first.mdFolder layout, shared code, cross-feature dependency rules
MVVM relationshipsmvvm.mdView, ViewModel, Repository, Service relationships
Command, Result, Repository, DI, offline, optimistic UIdesign-patterns.mdPattern selection and code examples
Command templatecommand.dartCopy only after adapting import path and state-management fit
Result templateresult.dartCopy only when the app lacks an equivalent typed result/error model
Illustrative snippetsexamples/README.mdUse as examples, not as a required workflow

Architecture Defaults

  • Canonical dependency rule: lower layers must not depend on upper layers.

ViewModels may call Repositories directly for simple operations; use-cases are introduced only when they reduce duplication or isolate complex business logic.

  • Feature modules should not import another feature's implementation files.

Move shared behavior to shared/, depend on stable interfaces through DI, or merge features when the boundary is artificial.

  • Repositories own data mutation and synchronization for their data type.

Services should stay stateless and should not own business state.

  • Do not add folders just to satisfy a diagram. Empty domain/, use-cases/,

or barrel files are optional until the feature needs them.

Validation

Before finishing an implementation or review:

1. Check that new imports respect the chosen feature/layer boundary. 2. Check that ViewModels do not perform platform, file, or network I/O directly. 3. Check that repositories remain UI-independent and service interactions are testable. 4. Run the closest available validation:

  • flutter analyze
  • focused flutter test suites for changed features
  • template-only validation with `dart format --output=none

--set-exit-if-changed` for copied Dart assets 5. Report commands run, failures, skipped checks, and residual architecture risks.

Related skills

How it compares

Pick flutter-architecture over generic state-management guides when you need copy-paste Command templates tied to a Result type rather than framework-specific provider patterns.

FAQ

What does flutter-architecture do?

>-

When should I use flutter-architecture?

When you need flutter architecture help per SKILL.md.

Is flutter-architecture safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.