01
It starts by itself
PR changes lib/. Runs in GitHub Actions or Claude Code routine.
- ↻ PR changes lib/
pull_request.opened touching lib/
Flutter features keep clean layer boundaries.
Install the Flutter Architecture skill and make it a habit: follow https://gethabit.dev/skills/madteacher/flutter-architecture.md
2K installs110 starsMIT licenceSource on GitHub ↗

Flutter Architecture
by madteacher · 2K installs
The skill
Flutter architecture is a skill for Flutter developers who design, review or refactor app structure with MVVM, layered boundaries, feature-first or layer-first layout, repositories, services and Command and Result patterns.
Only when you ask.
The habit
Flutter features keep clean layer boundaries.
↻ Runs by itselfPR changes lib/
When does it start? How does it check its work? What does it remember?
Stops after one pull request per run, with one retry.
Inspect pubspec.yaml, lib/ and existing state, routing and DI conventions.
Confirm new imports respect the feature-first or layer-first boundary.
Confirm ViewModels hold UI state and do no platform, file or network I/O.
Confirm repositories stay UI-independent and services stay stateless.
Run flutter analyze and focused flutter test suites.
Log layer violations, missing tests and residual risks.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Flutter Architecture skill helps.
No. The skill adds it only for complex or reusable business logic.
Feature-first for larger apps and teams; layer-first for small apps.
Copy the prompt at the top into your agent. It installs the skill from madteacher/mad-agents-skills and sets up the habit. Or run npx skills add madteacher/mad-agents-skills --skill flutter-architecture.
Yes. It is published under MIT. Habit is free too.
Install the Flutter Architecture skill and make it a habit: follow https://gethabit.dev/skills/madteacher/flutter-architecture.md
All madteacher skills →More code skills →
Works in
Made by madteacher, published under MIT. Habit links to the original and never changes it. Is this your skill?