flutter-architecture by madteacher/mad-agents-skills
npx skills add https://github.com/madteacher/mad-agents-skills --skill flutter-architecture提供使用 MVVM 模式、分层架构以及 Flutter 团队推荐的设计模式来构建可扩展 Flutter 应用程序的架构指导和最佳实践。
根据应用程序的复杂性和团队规模选择合适的项目组织方式。
按业务功能组织代码:
lib/
├── features/
│ ├── auth/
│ │ ├── data/
│ │ ├── domain/
│ │ └── presentation/
│ ├── todos/
│ │ ├── data/
│ │ ├── domain/
│ │ └── presentation/
│ └── settings/
│ ├── data/
│ ├── domain/
│ └── presentation/
├── shared/
│ ├── core/
│ ├── data/
│ └── ui/
└── main.dart
适用场景:
优势:
完整实现细节请参阅功能优先指南。
按架构层次组织代码:
lib/
├── data/
│ ├── repositories/
│ ├── services/
│ └── models/
├── domain/
│ ├── use-cases/
│ └── entities/
├── presentation/
│ ├── views/
│ └── viewmodels/
└── shared/
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
适用场景:
优势:
从以下核心概念入手:
详细概念请参阅概念。
Flutter 应用应分层构建:
各层次职责和交互的详细信息,请参阅层次指南。
构建健壮 Flutter 应用的常见模式:
实现细节请参阅设计模式。
在以下情况下使用此技能:
周安装量
1.2K
代码仓库
GitHub 星标数
87
首次出现
2026 年 1 月 22 日
安全审计
安装于
codex1.0K
opencode1.0K
gemini-cli999
github-copilot941
kimi-cli826
amp814
Provides architectural guidance and best practices for building scalable Flutter applications using MVVM pattern, layered architecture, and recommended design patterns from the Flutter team.
Choose the right project organization based on your app's complexity and team size.
Organize code by business features:
lib/
├── features/
│ ├── auth/
│ │ ├── data/
│ │ ├── domain/
│ │ └── presentation/
│ ├── todos/
│ │ ├── data/
│ │ ├── domain/
│ │ └── presentation/
│ └── settings/
│ ├── data/
│ ├── domain/
│ └── presentation/
├── shared/
│ ├── core/
│ ├── data/
│ └── ui/
└── main.dart
When to use:
Benefits:
See Feature-First Guide for complete implementation details.
Organize code by architectural layers:
lib/
├── data/
│ ├── repositories/
│ ├── services/
│ └── models/
├── domain/
│ ├── use-cases/
│ └── entities/
├── presentation/
│ ├── views/
│ └── viewmodels/
└── shared/
When to use:
Benefits:
Start with these core concepts:
For detailed concepts, see Concepts.
Flutter apps should be structured in layers:
See Layers Guide for detailed layer responsibilities and interactions.
Common patterns for robust Flutter apps:
See Design Patterns for implementation details.
Use this skill when:
Weekly Installs
1.2K
Repository
GitHub Stars
87
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex1.0K
opencode1.0K
gemini-cli999
github-copilot941
kimi-cli826
amp814
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装