Communitygithub.com

madteacher/flutter-architecture

设计、重构、审查或实现 Flutter 应用架构,支持 MVVM、分层 UI/数据/可选领域边界、功能优先或层优先项目结构、仓库、服务、依赖注入、Result 和 Command 模式、离线优先或乐观 UI 流程。

flutter-architecture 是什么?

该技能专注于 Flutter 应用架构的设计、重构和实现。它基于 MVVM 模式,支持 UI、数据以及可选的领域(Domain)层的分层架构。用户可以采用功能优先(feature-first)或层优先(layer-first)的项目结构,并集成仓库(repositories)、服务(services)、依赖注入(dependency injection)等常见模式。此外,该技能还涵盖 Result 和 Command 模式、离线优先(offline-first)或乐观 UI(optimistic UI)数据流,适用于多种 Flutter 开发场景。当开发者需要为 Flutter 项目添加新功能、审计层依赖、修复跨功能导入、迁移到功能优先架构、选择架构方案或创建可扩展且易维护的代码结构时,此技能提供了专业的指导和建议。平台支持包括 Claude Code、Cursor 和 Codex 等 AI 代理工具。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/madteacher/mad-agents-skills/tree/main/skills/flutter-architecture

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

flutter-architecture 是做什么的?

使用 MVVM、分层 UI/数据/可选领域边界、功能优先或层优先项目结构、仓库、服务、依赖注入、Result 和 Command 模式、离线优先或乐观 UI 流程,来设计、重构、审查或实现 Flutter 应用架构。当被要求添加 Flutter 功能、审计层依赖、修复跨功能导入、迁移到功能优先、为 Flutter 项目选择架构,或创建可扩展、可维护的 Flutter 代码组织时使用。

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

madteacher/flutter-adaptive-ui

Build, fix, review, and validate adaptive or responsive Flutter UIs for mobile, tablet, desktop, web, large screens, foldables, and mixed input devices. Use when creating breakpoint-driven layouts, responsive navigation, adaptive dialogs/lists/grids, keyboard/mouse/touch behavior, window-size decisions with MediaQuery or LayoutBuilder, or Capability and Policy patterns for platform-specific behavior.

madteacher/flutter-animations

Add, fix, refactor, debug, test, or explain Flutter animations and motion effects. Use when working with implicit animations such as AnimatedContainer, AnimatedOpacity, AnimatedSwitcher, and TweenAnimationBuilder; explicit animations using AnimationController, Tween, CurvedAnimation, AnimatedWidget, AnimatedBuilder, and built-in transitions; Hero/shared-element route transitions; staggered or sequenced animations; physics-based motion, gestures, springs, flings, scroll physics, curves, performance, accessibility, reduced motion, and animation lifecycle bugs.

madteacher/flutter-testing

Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Use when adding unit tests, widget tests, integration tests, MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or accessibility checks, CI test commands, test failures, MissingPluginException, pump or pumpAndSettle problems, finder errors, build_runner mock generation, device integration testing, web integration testing, or flaky Flutter tests.

相关技能