This is a practical architecture agent for Flutter projects that inspects your codebase and applies MVVM, feature-first or layer-first structure, and patterns like Repository, Command, and Result. It reads your pubspec, existing conventions, and folder layout before making changes, so you get structure that fits your app rather than boilerplate dropped in blindly. Use it when adding features, auditing cross-layer imports, migrating to feature-first organization, or setting up dependency injection and offline flows. The skill includes validation steps with flutter analyze and test suites, plus templates for common patterns. One honest take: it won't add empty folders just to match a diagram, which is refreshing.
npx -y skills add madteacher/mad-agents-skills --skill flutter-architecture --agent claude-codeInstalls into .claude/skills of the current project.
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.
pubspec.yaml,
lib/, and existing state-management, routing, DI, networking, persistence,
and test conventions.flutter analyze and
relevant flutter test suites when available; otherwise explain the missing
verification.Ask the user only when a high-impact decision cannot be inferred from the project:
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.
Read only the references needed for the current task:
| Need | Read | Use for |
|---|---|---|
| Basic principles or vocabulary | concepts.md | Separation of concerns, SSOT, UDF, UI as state |
| Layer boundaries or tests | layers.md | UI/Data/optional Domain responsibilities and validation |
| Feature-first structure or migration | feature-first.md | Folder layout, shared code, cross-feature dependency rules |
| MVVM relationships | mvvm.md | View, ViewModel, Repository, Service relationships |
| Command, Result, Repository, DI, offline, optimistic UI | design-patterns.md | Pattern selection and code examples |
| Command template | command.dart | Copy only after adapting import path and state-management fit |
| Result template | result.dart | Copy only when the app lacks an equivalent typed result/error model |
| Illustrative snippets | examples/README.md | Use as examples, not as a required workflow |
shared/, depend on stable interfaces through DI, or
merge features when the boundary is artificial.domain/, use-cases/,
or barrel files are optional until the feature needs them.Before finishing an implementation or review:
flutter analyzeflutter test suites for changed featuresdart format --output=none --set-exit-if-changed for copied Dart assetscursor/plugins
metabase/metabase
metabase/metabase
telagod/code-abyss
github/awesome-copilot
DietrichGebert/ponytail