upgrade-the-framework
Skill0 starsChanged 4 days agoMITView on GitHub
How to bring the newest Flutter Agentify into a project with the upgrade command, make the manual steps it prints and report the result. Use when the person asks to upgrade or update the framework, or when a fix you need is in a newer framework.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- actionsSkill
- adding-a-featureSkill
- agent-workflowSkill
- app-contextSkill
- approval-and-safetySkill
- backend-proxySkill
- background-workSkill
- build-an-appSkill
- capture-learningsSkill
- clean-architectureSkill
- customizing-the-assistantSkill
- delegate-to-agentSkill
- edit-boundariesSkill
- i18n-and-rtlSkill
- model-providersSkill
- performanceSkill
- permissions-and-platformSkill
- read-the-docsSkill
- reliable-mutationsSkill
- routingSkill
- secretsSkill
- state-managementSkill
- storing-dataSkill
- testingSkill
- ui-designSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Don't load this for adding a package to the app or changing app code.
- Distinctive: line 20
Check the tree is clean:
- Distinctive: line 24
If it prints anything, ask the person to commit or stash first.
- Very specific: line 34
Read the output. It prints Upgraded Flutter Agentify from …, then the ### Upgrading notes dated on or after the project's last framework …
- Very specific: line 36
Run the four commands under Next::
- Very specific: line 43
If the gate fails, fix the project's own code, not packages/.
- Distinctive: line 46
If the command fails, nothing in the project has changed, unless it printed an undo command.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Upgrade the framework
Don't load this for adding a package to the app or changing app code; see edit-boundaries.
Rule
Upgrade only with dart tool/upgrade.dart. Start from a clean git tree. Read what it prints, make each listed change in the project's own files, run the four commands it prints, and report what the gate printed. Never edit packages/ or a framework skill to "fix" an upgrade.
Why
The upgrade replaces the framework's own files: the packages in packages/, the skills the framework ships (except the generated action reference), learnings.defaults.md and tool/upgrade.dart. A project made with the empty starter keeps its reference in the .agents/example/ folder, and every upgrade refreshes it with no flag. A hand edit in those paths is lost on the next upgrade. Changes the command cannot make for you are in the dated ### Upgrading notes in CHANGELOG.md.
How
- Check the tree is clean:
If it prints anything, ask the person to commit or stash first. The command refuses a dirty tree.git status --short - Run the upgrade:
Flags:dart tool/upgrade.dart--ref <commit>takes that commit, branch or tag instead ofmain; use it only when the person asks for one.--from <folder>reads the framework from a local folder, with no network. The default is the newestmainon GitHub; there are no versions.--starter emptyis for a project made with theexamplestarter whose item code the person has deleted. It installs the .agents/example/ folder and the skills in their empty form, so the doctor passes again. Without the flag, upgrade picksemptywhen that folder exists, elseexample.--helpprints all flags.
- Read the output. It prints
Upgraded Flutter Agentify from …, then the### Upgradingnotes dated on or after the project's last framework change orNo manual steps., then the skills the framework no longer ships. - Make each listed change in the project's own files (
lib/,test/,pubspec.yaml,assets/). For a skill listed as not shipped, ask the person whether to keep or delete it. - Run the four commands under
Next::flutter pub get dart run build_runner build dart run tool/action.dart --write-reference tool/check.sh - If the gate fails, fix the project's own code, not
packages/. If the cause is a bug in the framework, tell the person; don't patch it. - Report where the framework came from, the manual steps you made, and the last lines of
tool/check.sh.
If the command fails, nothing in the project has changed, unless it printed an undo command; run that first. Read the message, fix the cause (network, folder) and run it again.
Anti-patterns
- Upgrading with uncommitted changes.
- Editing
packages/or a framework skill so the old code keeps working. - Skipping the printed notes because the command said it finished.
- Deleting a skill the command listed without asking.
- Reporting "upgraded" without the gate output.
Verification
dart tool/upgrade.dartprintsUpgraded Flutter Agentify from …tool/check.shends withAll checks passed.git status --shortshows only the upgrade and your manual steps.
Related skills
edit-boundaries— which paths the upgrade owns.verify— running the gate and reading its output.actions— the action reference the upgrade asks you to regenerate.agent-workflow— reporting what changed.
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.

