dart-sdk-skills
AGENTS.md34 starsChanged 3 months agoMITView on GitHub
Welcome, agent! This document defines the maintenance constitution, update runbooks, and quality standards for the dart-sdk-skills repository. This repository provides authoritative, version-by-version agent skills for both the Dart SDK and the Flutter SDK: 1. skills/dart-sdk-changelog: Language features, core library APIs, minSdk verification, experimental flags, macros/augmentations, and legacy Dart modernization. 2. skills/flutter-sdk-changelog: Widget deprecations, API replacements, Material 3 migrations, and legacy Flutter app rescue. Whenever a new Dart SDK version (for example 3.15.0, 3.16.0, 4.0.0) is released: 1. Source Upstream: Fetch…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- dart-sdk-changelogSkill
- flutter-sdk-changelogSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 20
Run dart compile exe --help -v to inspect all active --enable-experiment flags.
- Very specific: line 21
If any experimental flag graduated to stable in this release (for example variance or macros), move it from active experiments to the …
- Distinctive: line 22
Add any newly introduced experimental flags to the active matrix with syntax examples.
- Very specific: line 23
Author Version Guide: Create skills/dart-sdk-changelog/references/whats-new-in-dart-X-Y.md with side-by-side Before/After code snippets.
- Very specific: line 24
Update Matrices: Update skills/dart-sdk-changelog/SKILL.md, version-matrix.md, and README.md.
- Very specific: line 35
Update Version Matrix: Add the release row to skills/flutter-sdk-changelog/references/flutter-to-dart-version-matrix.md with bundled Dart …
- Very specific: line 36
Document Widget Deprecations: Add newly deprecated widgets/methods to …
- Very specific: line 37
Update Fast Replacement Tables: Update skills/flutter-sdk-changelog/SKILL.md and README.md.
- Very specific: line 44
Phrasing Standard: Never use abbreviations e.g.
- Very specific: line 47
Run dart run tool/update_skills_index.dart after modifying any SKILL.md to refresh skills-lock.json and computed SHA-256 hashes.
- Very specific: line 48
Run dart test and dart analyze --fatal-infos to verify that all links, YAML frontmatters, and style constraints pass quality gates.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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
AI Agent Developer Handbook (AGENTS.md)
Welcome, agent! This document defines the maintenance constitution, update runbooks, and quality standards for the dart-sdk-skills repository.
🎯 Repository Purpose
This repository provides authoritative, version-by-version agent skills for both the Dart SDK and the Flutter SDK:
skills/dart-sdk-changelog: Language features, core library APIs,minSdkverification, experimental flags, macros/augmentations, and legacy Dart modernization.skills/flutter-sdk-changelog: Widget deprecations, API replacements, Material 3 migrations, and legacy Flutter app rescue.
🔄 Runbook 1: Updating for New Dart SDK Releases
Whenever a new Dart SDK version (for example 3.15.0, 3.16.0, 4.0.0) is released:
- Source Upstream: Fetch
https://raw.githubusercontent.com/dart-lang/sdk/main/CHANGELOG.md. - Audit Experimental Flags:
- Run
dart compile exe --help -vto inspect all active--enable-experimentflags. - If any experimental flag graduated to stable in this release (for example
varianceormacros), move it from active experiments to the Graduated Stable Matrix inskills/dart-sdk-changelog/references/experimental-features-guide.md. - Add any newly introduced experimental flags to the active matrix with syntax examples.
- Run
- Author Version Guide: Create
skills/dart-sdk-changelog/references/whats-new-in-dart-X-Y.mdwith side-by-side Before/After code snippets. - Update Matrices: Update
skills/dart-sdk-changelog/SKILL.md,version-matrix.md, andREADME.md.
🔄 Runbook 2: Updating for New Flutter Framework Releases
Whenever a new Flutter version (for example 3.47.0, 3.50.0, 4.0.0) is released:
- Source Upstream:
- Query the official Google Cloud Storage archive manifest at
https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json(orhttps://flutterreleases.com/releases.json) to confirm the exact canonical Flutter version, release date, and bundled Dart SDK version. - For major
.0feature releases, inspect release notes and framework deprecations athttps://docs.flutter.dev/release/release-notes. - For hotfix or patch releases (for example
3.47.6), inspect the changelog anchor athttps://github.com/flutter/flutter/blob/stable/CHANGELOG.md.
- Query the official Google Cloud Storage archive manifest at
- Update Version Matrix: Add the release row to
skills/flutter-sdk-changelog/references/flutter-to-dart-version-matrix.mdwith bundled Dart SDK and engine milestones. - Document Widget Deprecations: Add newly deprecated widgets/methods to
skills/flutter-sdk-changelog/references/widget-deprecations-and-replacements.md. - Update Fast Replacement Tables: Update
skills/flutter-sdk-changelog/SKILL.mdandREADME.md.
📏 Quality & Style Guidelines
- Precision: All
minSdkand Flutter version numbers must reflect official release changelogs accurately. - Phrasing Standard: Never use abbreviations
e.g.(use "for example") ori.e.(use "that is"). - Code Examples: Provide runnable, modern, and idiomatic Dart & Flutter code snippets demonstrating new syntax and widgets.
- Verification & Indexing:
- Run
dart run tool/update_skills_index.dartafter modifying anySKILL.mdto refreshskills-lock.jsonand computed SHA-256 hashes. - Run
dart testanddart analyze --fatal-infosto verify that all links, YAML frontmatters, and style constraints pass quality gates.
- Run
- Action-Oriented Skill Triggers: When authoring or editing
SKILL.mdfrontmatter descriptions, always use action-oriented, imperative coding triggers (for example "authoring or refactoring code", "inspecting pubspec.yaml sdk constraints", "writing control flow", "handling deprecated widgets") rather than passive conversational FAQ triggers (such as "whenever the user asks 'what's new in...'"). This guarantees autonomous agent routers activate the skill during proactive code generation.
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.

