Communitygithub.com

madteacher/flutter-architecture

設計、重構、審查或實作 Flutter 應用程式架構,採用 MVVM、分層 UI/Data/可選 Domain 邊界、功能優先或層級優先的專案結構、Repository、Service、依賴注入、Result 與 Command 模式、離線優先或樂觀 UI 流程。

flutter-architecture 是什麼?

此技能專注於 Flutter 應用程式的架構設計、重構與審查。它支援 MVVM、分層架構(UI/Data/可選 Domain)、功能優先或層級優先的專案結構,以及 Repository、Service、依賴注入、Result 與 Command 模式等核心設計模式。此外,它也涵蓋離線優先與樂觀 UI 流程,以提升應用程式的穩定性與使用者體驗。當開發者需要新增 Flutter 功能、審查層級依賴關係、修正跨功能匯入、遷移至功能優先架構、為專案選擇合適的架構,或建立可擴展且易於維護的 Flutter 程式碼組織時,此技能能提供明確的指引與最佳實踐。

相容平台~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 是做什麼的?

設計、重構、審查或實作 Flutter 應用程式架構,採用 MVVM、分層 UI/Data/可選 Domain 邊界、功能優先或層級優先的專案結構、Repository、Service、依賴注入、Result 與 Command 模式、離線優先或樂觀 UI 流程。當被要求新增 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.

相關技能