dart-expert-skills
Copilot instructions7 starsChanged 8 months agoMITView on GitHub
This is a comprehensive library of modular AI Skills for Flutter & Dart development. Each skill provides structured knowledge and expert-level guidance optimized for both LLM consumption and human readability. Core Philosophy: Minimalist approach focusing on user experience over engineering abstractions. All code snippets are production-ready with zero placeholders. Latest stable package versions with explicit version documentation. CRITICAL: When creating or modifying skills: 1. Use the .agents/skills/skill-creator skill for guidance 2. Follow the metadata convention: last_modified: "YYYY-MM-DD HH:MM:SS (GMT+8)" 3.…
In this repository41 other files it gives its agents.
- skill-creatorSkill
- flutter-dbSkill
- flutter-routingSkill
- flutter-state-managementSkill
- configuring-codemagicSkill
- applying-effective-dartSkill
- deploying-with-fastlaneSkill
- integrating-firebaseSkill
- implementing-fl-chartSkill
- integrating-google-adsSkill
- animating-flutter-widgetsSkill
- routing-with-autorouteSkill
- implementing-flutter-blocSkill
- configuring-deep-linksSkill
- persisting-data-with-driftSkill
- building-flutter-production-appsSkill
- generating-flutter-uiSkill
- routing-with-gorouterSkill
- managing-hive-storageSkill
- using-flutter-hooksSkill
- running-flutter-isolatesSkill
- managing-flutter-provider-stateSkill
- implementing-responsive-layoutsSkill
- implementing-riverpodSkill
- managing-secure-storageSkill
- flutter-setupSkill
- managing-shared-preferencesSkill
- implementing-flutter-social-authSkill
- flutter-testingSkill
- using-fpdartSkill
- generating-freezed-modelsSkill
- configuring-github-actionsSkill
- building-jaspr-web-appsSkill
- testing-with-marionetteSkill
- implementing-openapi-in-dartSkill
- integrating-revenuecatSkill
- integrating-sentrySkill
- developing-serverpod-backendSkill
- building-shadcn-flutter-uiSkill
- integrating-supabaseSkill
- converting-ts-to-dartSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
31 rules. About 0 are common, 21 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
All skills follow a standardized format:
- Very specific: line 28
Progressive disclosure: Keep SKILL.md under 500 lines.
- Very specific: line 29
One-level-deep references only: All reference files must link directly from SKILL.md.
- Distinctive: line 36
Version-Aware: All packages use latest stable versions (last updated 2026-03-31)
- Distinctive: line 43
CRITICAL: When creating or modifying skills:
- Very specific: line 44
Use the .agents/skills/skill-creator skill for guidance
- Very specific: line 45
Follow the metadata convention: last_modified: "YYYY-MM-DD HH:MM:SS (GMT+8)"
- Distinctive: line 47
Add trigger keywords in description for precise AI activation
- Distinctive: line 48
Keep descriptions "pushy" to combat under-triggering - be explicit about when to use
- Very specific: line 62
Avoid time-sensitive conditions: Don't write "if you're doing this before August 2025..." — instead use an "Old patterns" <details> section …
- Distinctive: line 81
When a skill is referenced:
- Very specific: line 82
Start with SKILL.md for overview and process
- Distinctive: line 89
All code comments MUST be in English only (per custom instructions)
- Distinctive: line 90
All user-facing communication in Traditional Chinese (per custom instructions)
- Distinctive: line 91
Follow minimalist principles: flat structure unless modularity explicitly requested
- Distinctive: line 93
No placeholder code - all snippets must be production-ready
- Distinctive: line 96
Use semantic markdown headings for LLM navigation
- Distinctive: line 98
Add "❌ Anti-pattern" and "✅ Best practice" examples for clarity
- Distinctive: line 103
Use kebab-case for file and directory names
- Distinctive: line 104
Keep skills atomic - one skill per technology/framework
- Very specific: line 117
Create SKILL.md with YAML frontmatter and standardized sections
- Very specific: line 118
Add references/ directory if content exceeds 500 lines
- Distinctive: line 119
Update main README.md skill categories section
- Distinctive: line 123
When updating a skill for new package versions:
- Very specific: line 124
Update version numbers in SKILL.md description and code examples
- Distinctive: line 126
Update breaking changes and migration patterns
- Distinctive: line 127
Add edge cases and troubleshooting for new version
- Very specific: line 141
If a skill isn't triggering appropriately, optimize the description field
- Distinctive: line 146
All core skills (as of 2026-03-31 update) include:
- Distinctive: line 154
When working with Flutter code:
- Distinctive: line 155
Test golden files have platform-specific rendering issues (covered in flutter-testing)
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flutter Skills Repository - Copilot Instructions
Repository Overview
This is a comprehensive library of modular AI Skills for Flutter & Dart development. Each skill provides structured knowledge and expert-level guidance optimized for both LLM consumption and human readability.
Core Philosophy: Minimalist approach focusing on user experience over engineering abstractions. All code snippets are production-ready with zero placeholders. Latest stable package versions with explicit version documentation.
Architecture
Directory Structure
skills/
└── <skill-name>/
├── SKILL.md # Entry point: Goals, Process, Constraints
└── references/ # Detailed implementation guides (optional)
.agents/
└── skills/
└── skill-creator/ # Meta-skill for creating and optimizing skillsSkill Structure
All skills follow a standardized format:
- YAML frontmatter:
name,description(required),metadata.last_modified - Description field: Acts as primary triggering mechanism for AI agents - includes both what the skill does AND specific contexts for when to use it
- Body sections: Goal, Process, Reference Documentation, Constraints
- Progressive disclosure: Keep SKILL.md under 500 lines; split larger content into
references/directory - One-level-deep references only: All reference files must link directly from SKILL.md. Avoid
SKILL.md → A.md → B.mdchains — Claude may only partially read nested files - Table of contents for long references: Any reference file exceeding 100 lines must include a ToC at the top so Claude can navigate without reading the entire file
Key Design Principles
- Single Responsibility: Each skill focuses on one technology/framework
- LLM-Optimized: Semantic headings, structured for AI context windows
- Production-Ready: Working code snippets with latest stable versions
- Version-Aware: All packages use latest stable versions (last updated 2026-03-31)
- Concise is Key: The context window is shared. Every token in SKILL.md competes with conversation history and other skills. Default assumption: Claude is already very smart — only add context Claude doesn't already have. Challenge each paragraph: "Does Claude need this, or does it already know it?"
Working with Skills
Creating or Modifying Skills
CRITICAL: When creating or modifying skills:
- Use the
.agents/skills/skill-creatorskill for guidance - Follow the metadata convention:
last_modified: "YYYY-MM-DD HH:MM:SS (GMT+8)" - Include version numbers in package references (e.g., "Riverpod v3.3.1")
- Add trigger keywords in description for precise AI activation
- Keep descriptions "pushy" to combat under-triggering - be explicit about when to use
- Always write descriptions in third person — the description is injected into the system prompt; inconsistent POV breaks discovery. ✅ "Processes Excel files..." ❌ "I can help you process Excel files"
- Use gerund form for skill names:
processing-pdfs,testing-code,managing-state— not vague terms likehelper,utils, ortools
Degrees of Freedom in Instructions
Match instruction specificity to the task's fragility:
- High freedom (plain text guidance): Use when multiple approaches are valid or context determines the best approach. Example: code reviews.
- Medium freedom (pseudocode/template with parameters): Use when a preferred pattern exists but variation is acceptable.
- Low freedom (exact commands, no deviation): Use when operations are fragile and consistency is critical. Example: database migrations, release scripts.
Content Guidelines
- Avoid time-sensitive conditions: Don't write "if you're doing this before August 2025..." — instead use an "Old patterns"
<details>section for deprecated info - Use consistent terminology: Choose one term per concept and use it throughout. Never mix "API endpoint" / "URL" / "API route" within the same skill
- Use workflows for complex tasks: Break multi-step processes into numbered checklists Claude can track. Implement feedback loops: run validator → fix errors → repeat
Skill Categories
State Management: provider, riverpod, bloc
Database & Storage: shared-preferences, secure-storage, hive, drift
Routing: gorouter, autoroute
Authentication: social-auth, deeplink
Backend: supabase, serverpod, firebase
Testing: flutter-testing
Advanced: flutter-expert, flutter-genui
UI: shadcn-flutter, flutter-responsive, flutter-animate, flutter-hooks
Utilities: freezed, fpdart, openapi-to-dart, ts-to-dart, sentry-flutter
DevOps: flutter-setup, github-actions, fastlane, codemagic
Reading Skills
When a skill is referenced:
- Start with SKILL.md for overview and process
- Load specific
references/*.mdfiles only as needed - For large reference files (>300 lines), check table of contents first
Conventions
Code Style
- All code comments MUST be in English only (per custom instructions)
- All user-facing communication in Traditional Chinese (per custom instructions)
- Follow minimalist principles: flat structure unless modularity explicitly requested
- Leverage Dart 3+ features: pattern matching, records, sealed classes
- No placeholder code - all snippets must be production-ready
Documentation
- Use semantic markdown headings for LLM navigation
- Include version numbers for all package references
- Add "❌ Anti-pattern" and "✅ Best practice" examples for clarity
- Decision tables for technical choices (when multiple options exist)
File Organization
- Organize by business domain, not technical type
- Use kebab-case for file and directory names
- Keep skills atomic - one skill per technology/framework
MCP Servers
This repository uses two MCP servers (configured in .mcp.json):
- exa: Web search and content crawling (for research and documentation lookup)
- dart: Dart/Flutter language server integration
Common Tasks
Adding a New Skill
- Reference
.agents/skills/skill-creator/SKILL.mdfor the creation process - Create directory:
skills/<skill-name>/ - Create
SKILL.mdwith YAML frontmatter and standardized sections - Add
references/directory if content exceeds 500 lines - Update main README.md skill categories section
- Set
metadata.last_modifiedto current timestamp (GMT+8)
Updating Package Versions
When updating a skill for new package versions:
- Update version numbers in SKILL.md description and code examples
- Review
references/*.mdfor version-specific changes - Update breaking changes and migration patterns
- Add edge cases and troubleshooting for new version
- Update
metadata.last_modified
Split Skills (Modular Approach)
Recent refactoring split monolithic skills into focused modules:
flutter-state-management→flutter-provider,flutter-riverpod,flutter-blocflutter-db→flutter-shared-preferences,flutter-secure-storage,flutter-hive,flutter-driftflutter-routing→flutter-gorouter,flutter-autoroute
Original aggregated skills moved to skills/archived/ for reference.
Edge Cases & Troubleshooting
Skill Triggering
- If a skill isn't triggering appropriately, optimize the
descriptionfield - Make descriptions explicit and "pushy" about when to use
- Include trigger keywords: technical terms, common user phrases, edge cases
Production Best Practices
All core skills (as of 2026-03-31 update) include:
- Memory leak prevention patterns
- Error handling and edge cases
- CI/CD troubleshooting guides
- Decision tables for technical choices
- Anti-patterns with explanations
Cross-Platform Considerations
When working with Flutter code:
- Test golden files have platform-specific rendering issues (covered in flutter-testing)
- Secure storage has Android/iOS-specific configuration (covered in flutter-secure-storage)
- Deep linking requires platform-specific setup (covered in flutter-deeplink)
Version History
2026-04-01 Skill Authoring Best Practices Injection:
- Injected Claude official skill authoring best practices (platform.claude.com/docs)
- Added "Concise is Key" + "Claude is already smart" principle to Key Design Principles
- Added third-person rule and gerund naming convention for skill authoring
- Added Degrees of Freedom framework (high/medium/low) for instruction specificity
- Added Content Guidelines: avoid time-sensitive info, consistent terminology, workflow checklists
- Added one-level-deep reference rule and ToC requirement for files >100 lines
2026-03-31 Fleet Mode Deep Update:
- 8 core skills updated with production best practices
- 4,980+ lines of new content: memory leaks, error handling, CI/CD
- 85+ code examples with anti-patterns and best practices
- 12 decision tables for technical choices
- Major package updates: GoRouter v17.1.0, Drift v2.32.x, Riverpod v3.3.1, BLoC v9.1.1, SecureStorage v10.0.0
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

