Collection of agent skills for AI assistants working with Dart and Flutter projects
npx skills add https://github.com/madteacher/mad-agents-skills --skill flutter-drift使用 CLI 安装这个技能,并在你的工作区中直接复用对应的 SKILL.md 工作流。
A collection of agent skills for AI assistants working with Dart and Flutter projects, implemented in the Agent Skills format — an open standard for extending AI agents.
Each skill provides structured knowledge based on official documentation, ready-to-use code examples, and detailed reference materials that AI agents can leverage.
This repository contains a set of specialized skills for Dart and Flutter development, organized according to the open Agent Skills standard.
Agent Skills are an open format for providing AI agents with new capabilities and expertise. They are structured folders with instructions, scripts, and resources that agents can discover and use to complete tasks more accurately and efficiently.
Created by: Anthropic
Status: Open standard
Supported by: Leading AI development tools
Each skill includes:
references/assets/scripts/✨ Domain expertise — specialized knowledge in specific areas
🚀 New capabilities — new abilities for agents
🔄 Repeatable workflows — standardized, repeatable workflows
🔗 Interoperability — reuse across different AI tools
Directory: agents-md-generator/
Description: Create or update minimal AGENTS.md files in the repository root and nested module directories using progressive disclosure. Works across heterogeneous projects without assuming any fixed agent folder structure.
When to use:
Key capabilities:
Output:
<repo_root>/AGENTS.md<module_dir>/AGENTS.md (for independent packages/services)References:
AGENTS_TEMPLATE_ROOT.md — Root AGENTS.md templateAGENTS_TEMPLATE_MODULE.md — Nested module templateDirectory: dart-drift/
Description: A complete guide to using the drift library for working with databases in Dart applications (CLI, server applications, non-Flutter desktop apps).
When to use:
Key capabilities:
sqlite3 or drift_postgresReferences:
setup.md — SQLite & PostgreSQL setuppostgres.md — PostgreSQL-specific featurestables.md — Table definitionsqueries.md — Database querieswrites.md — Write operationsstreams.md — Reactive streamsmigrations.md — Schema migrationsDirectory: flutter-adaptive-ui/
Description: Building adaptive and responsive Flutter UIs that work great across platforms and screen sizes.
When to use:
Key concepts:
References:
layout-constraints.md — Constraints system with 29 exampleslayout-basics.md — Core layout widgetslayout-common-widgets.md — Container, GridView, ListView, Stackadaptive-workflow.md — The 3-step approach in detailadaptive-best-practices.md — Design best practicesadaptive-capabilities.md — Capability/Policy patternExamples:
responsive_navigation.dart — Switching NavigationBar ↔ NavigationRailcapability_policy_example.dart — Capability/Policy class examplesDirectory: flutter-animations/
Description: A comprehensive guide to implementing animations in Flutter.
When to use:
Animation types:
Implicit Animations — for simple cases:
Explicit Animations — for full control:
Hero Animations — shared element transitions:
Staggered Animations — sequential effects:
Physics-Based — natural motion:
References:
implicit.md — Implicit animationsexplicit.md — Explicit animations with AnimationControllerhero.md — Hero transitionsstaggered.md — Staggered patternsphysics.md — Physics-based animationscurves.md — Curves referenceTemplates:
implicit_animation.dartexplicit_animation.darthero_transition.dartstaggered_animation.dartDirectory: flutter-architecture/
Description: A comprehensive guide to Flutter app architecture using the MVVM pattern and feature-first organization.
When to use:
Project organization:
Feature-First (recommended for teams):
Layer-First (traditional):
Architectural layers:
Design patterns:
References:
concepts.md — Core architecture principlesfeature-first.md — Feature-first organizationmvvm.md — MVVM implementationlayers.md — Layers and their interactionsdesign-patterns.md — Common patternsExamples:
command.dart — Command pattern templateresult.dart — Result type for error handlingexamples/ — Architecture usage examplesDirectory: flutter-drift/
Description: A complete guide to using the drift library for local storage in Flutter apps.
When to use:
Key capabilities:
drift_flutter packageReferences:
setup.md — Flutter-specific setuptables.md — Table definitionsqueries.md — SELECT querieswrites.md — INSERT, UPDATE, DELETEstreams.md — Reactive streamsmigrations.md — Database migrationsflutter-ui.md — Flutter UI integrationDirectory: flutter-internationalization/
Description: A complete guide to internationalizing Flutter apps using gen-l10n and intl.
When to use:
Approaches:
gen-l10n (recommended):
intl package:
Custom/Manual:
Message types:
References:
l10n-config.md — l10n.yaml configurationarb-format.md — ARB file formatnumber-date-formats.md — Number and date formattingExamples:
app_en.arb — Example ARB filel10n.yaml — Configuration fileDirectory: flutter-navigation/
Description: A comprehensive guide to navigation and routing in Flutter, including Navigator API, go_router, deep linking, and web navigation.
When to use:
Choosing an approach:
Navigator API (imperative):
go_router (declarative, recommended):
Avoid Named Routes:
Common tasks:
References:
navigation-patterns.md — Approach comparisongo_router-guide.md — Detailed go_router guidedeep-linking.md — Deep link setupweb-navigation.md — Web-specific navigationExamples:
navigator_basic.dart — Basic Navigatorgo_router_basic.dart — Basic go_routerpassing_data.dart — Passing datareturning_data.dart — Returning dataDirectory: flutter-networking/
Description: A comprehensive guide to networking in Flutter, including HTTP, WebSocket, authentication, and error handling.
When to use:
HTTP methods:
WebSocket:
web_socket_channelAuthentication:
Error handling:
Performance:
compute()Architecture patterns:
References:
http-basics.md — HTTP CRUD operationswebsockets.md — WebSocket implementationauthentication.md — Authentication strategieserror-handling.md — Error handling patternsperformance.md — OptimizationExamples:
fetch_example.dart — GET request with FutureBuilderpost_example.dart — POST requestwebsocket_example.dart — WebSocket clientauth_example.dart — Authenticated requestbackground_parsing.dart — compute() for JSONTemplates:
http_service.dart — HTTP service templaterepository_template.dart — Repository pattern templateDirectory: flutter-testing/
Description: A comprehensive guide to testing Flutter apps: unit, widget, and integration tests.
When to use:
Test types:
Unit Tests:
Widget Tests:
Integration Tests:
Trade-offs:
| Unit | Widget | Integration | |
|---|---|---|---|
| Confidence | Low | Higher | Highest |
| Maintenance cost | Low | Higher | Highest |
| Execution speed | Quick | Quick | Slow |
Working with plugins:
Common issues:
Build Modes:
Best practices:
References:
unit-testing.md — Unit tests and mockingwidget-testing.md — Widget finding and interactionsintegration-testing.md — End-to-end testingmocking.md — Dependency mockingcommon-errors.md — Fixes for common issuesplugin-testing.md — Plugin testingDirectory: flutter-duit-bdui/
Description: A comprehensive guide to integrating the BDUI framework flutter_duit into Flutter apps.
When to use:
References:
Each skill is organized as follows:
skill-name/
├── SKILL.md # Main skill description
├── references/ # Reference documentation
│ ├── topic1.md
│ ├── topic2.md
│ └── ...
├── assets/ # Code examples and templates
│ ├── examples/
│ ├── templates/
│ └── ...
└── scripts/ # Helper scripts (optional)
This repository follows the open Agent Skills format — a standard for giving AI agents new capabilities and expertise. Agent Skills are folders with instructions, scripts, and resources that agents can discover and use to complete tasks more accurately and efficiently.
Skills from this repository can be used by any AI assistants that support the Agent Skills format, including:
For skill authors:
For teams and organizations:
For AI agents:
| Task | Skill | When to use |
|---|---|---|
| AGENTS.md / repository context | agents-md-generator | Creating/updating AGENTS.md, monorepo structure |
| Local DB (Dart) | dart-drift | CLI, server-side, non-Flutter desktop |
| Local DB (Flutter) | flutter-drift | Flutter apps, mobile/web/desktop |
| Adaptive UI | flutter-adaptive-ui | Multi-platform, responsive layouts |
| Animations | flutter-animations | Motion effects, transitions |
| Project architecture | flutter-architecture | MVVM, feature-first, scalable structure |
| Internationalization | flutter-internationalization | Localization, translations, i18n |
| Navigation | flutter-navigation | Routing, deep linking, screen transitions |
| Backend-driven UI (BDUI) | flutter-duit-bdui | DUIT, server-driven UI, backend-driven screens |
| Networking | flutter-networking | HTTP, WebSocket, REST API |
| Testing | flutter-testing | Unit, widget, integration tests |
This project is licensed under the MIT License — see LICENSE for details.
Contributions are welcome! Please:
assets/SKILL.mdreferences/SKILL.md frontmatterVersion: 1.0
Last updated: January 2026