agentleFS
Poorgramer-ZackPoorgramer-Zack/dart-expert-skills/.github/copilot-instructions.md

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.…

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
  1. Distinctive:

    All skills follow a standardized format:

    line 24
  2. Very specific:

    Progressive disclosure: Keep SKILL.md under 500 lines.

    line 28
  3. Very specific:

    One-level-deep references only: All reference files must link directly from SKILL.md.

    line 29
  4. Distinctive:

    Version-Aware: All packages use latest stable versions (last updated 2026-03-31)

    line 36
  5. Distinctive:

    CRITICAL: When creating or modifying skills:

    line 43
  6. Very specific:

    Use the .agents/skills/skill-creator skill for guidance

    line 44
  7. Very specific:

    Follow the metadata convention: last_modified: "YYYY-MM-DD HH:MM:SS (GMT+8)"

    line 45
  8. Distinctive:

    Add trigger keywords in description for precise AI activation

    line 47
  9. Distinctive:

    Keep descriptions "pushy" to combat under-triggering - be explicit about when to use

    line 48
  10. Very specific:

    Avoid time-sensitive conditions: Don't write "if you're doing this before August 2025..." — instead use an "Old patterns" <details> section …

    line 62
  11. Distinctive:

    When a skill is referenced:

    line 81
  12. Very specific:

    Start with SKILL.md for overview and process

    line 82
  13. Distinctive:

    All code comments MUST be in English only (per custom instructions)

    line 89
  14. Distinctive:

    All user-facing communication in Traditional Chinese (per custom instructions)

    line 90
  15. Distinctive:

    Follow minimalist principles: flat structure unless modularity explicitly requested

    line 91
  16. Distinctive:

    No placeholder code - all snippets must be production-ready

    line 93
  17. Distinctive:

    Use semantic markdown headings for LLM navigation

    line 96
  18. Distinctive:

    Add "❌ Anti-pattern" and "✅ Best practice" examples for clarity

    line 98
  19. Distinctive:

    Use kebab-case for file and directory names

    line 103
  20. Distinctive:

    Keep skills atomic - one skill per technology/framework

    line 104
  21. Very specific:

    Create SKILL.md with YAML frontmatter and standardized sections

    line 117
  22. Very specific:

    Add references/ directory if content exceeds 500 lines

    line 118
  23. Distinctive:

    Update main README.md skill categories section

    line 119
  24. Distinctive:

    When updating a skill for new package versions:

    line 123
  25. Very specific:

    Update version numbers in SKILL.md description and code examples

    line 124
  26. Distinctive:

    Update breaking changes and migration patterns

    line 126
  27. Distinctive:

    Add edge cases and troubleshooting for new version

    line 127
  28. Very specific:

    If a skill isn't triggering appropriately, optimize the description field

    line 141
  29. Distinctive:

    All core skills (as of 2026-03-31 update) include:

    line 146
  30. Distinctive:

    When working with Flutter code:

    line 154
  31. Distinctive:

    Test golden files have platform-specific rendering issues (covered in flutter-testing)

    line 155

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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 skills

Skill 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.md chains — 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

  1. Single Responsibility: Each skill focuses on one technology/framework
  2. LLM-Optimized: Semantic headings, structured for AI context windows
  3. Production-Ready: Working code snippets with latest stable versions
  4. Version-Aware: All packages use latest stable versions (last updated 2026-03-31)
  5. 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:

  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. Include version numbers in package references (e.g., "Riverpod v3.3.1")
  4. Add trigger keywords in description for precise AI activation
  5. Keep descriptions "pushy" to combat under-triggering - be explicit about when to use
  6. 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"
  7. Use gerund form for skill names: processing-pdfs, testing-code, managing-state — not vague terms like helper, utils, or tools

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:

  1. Start with SKILL.md for overview and process
  2. Load specific references/*.md files only as needed
  3. 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

  1. Reference .agents/skills/skill-creator/SKILL.md for the creation process
  2. Create directory: skills/<skill-name>/
  3. Create SKILL.md with YAML frontmatter and standardized sections
  4. Add references/ directory if content exceeds 500 lines
  5. Update main README.md skill categories section
  6. Set metadata.last_modified to current timestamp (GMT+8)

Updating Package Versions

When updating a skill for new package versions:

  1. Update version numbers in SKILL.md description and code examples
  2. Review references/*.md for version-specific changes
  3. Update breaking changes and migration patterns
  4. Add edge cases and troubleshooting for new version
  5. Update metadata.last_modified

Split Skills (Modular Approach)

Recent refactoring split monolithic skills into focused modules:

  • flutter-state-management → flutter-provider, flutter-riverpod, flutter-bloc
  • flutter-db → flutter-shared-preferences, flutter-secure-storage, flutter-hive, flutter-drift
  • flutter-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 description field
  • 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.