flutter-architecture
Installation
SKILL.md
Flutter Architecture
A structured methodology for defining the technical architecture of a Flutter app — covering structure, state management, routing, and the dependency stack — before any feature is implemented.
Guiding principle: Preserve existing architecture in active projects. Only recommend changes — do not apply them without explicit approval.
Workflow
- Gather context — read
docs/product/app_brief.mdif it exists. Ask: app scale (small/medium/large), team size and Flutter experience, offline requirements, backend type (Firebase/Supabase/REST/none), release timeline, platform targets. - Recommend architecture pattern — apply decision rules below.
- Design folder structure — feature-first or layer-first, based on app scale.
- Choose state management — apply decision rules in
@references/state-management-snippets.md. - Define routing strategy — GoRouter for most apps; auto_route for heavy typed routing needs.
- Define dependency stack — list recommended packages with justifications. Query pub-dev MCP for current versions before pinning any.
- Document decisions — produce an ADR for each major choice. Use
templates/architecture_decision_record.md. - Get user approval on the architecture plan before any implementation begins.