agentleFS
aaziraniaazirani/flutter_agentify/.agents/skills/upgrade-the-framework/SKILL.md

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.

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
  1. Very specific:

    Don't load this for adding a package to the app or changing app code.

    line 8
  2. Distinctive:

    Check the tree is clean:

    line 20
  3. Distinctive:

    If it prints anything, ask the person to commit or stash first.

    line 24
  4. Very specific:

    Read the output. It prints Upgraded Flutter Agentify from …, then the ### Upgrading notes dated on or after the project's last framework …

    line 34
  5. Very specific:

    Run the four commands under Next::

    line 36
  6. Very specific:

    If the gate fails, fix the project's own code, not packages/.

    line 43
  7. Distinctive:

    If the command fails, nothing in the project has changed, unless it printed an undo command.

    line 46

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

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

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

  1. Check the tree is clean:
    git status --short
    If it prints anything, ask the person to commit or stash first. The command refuses a dirty tree.
  2. Run the upgrade:
    dart tool/upgrade.dart
    Flags:
    • --ref <commit> takes that commit, branch or tag instead of main; 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 newest main on GitHub; there are no versions.
    • --starter empty is for a project made with the example starter 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 picks empty when that folder exists, else example.
    • --help prints all flags.
  3. Read the output. It prints Upgraded Flutter Agentify from …, then the ### Upgrading notes dated on or after the project's last framework change or No manual steps., then the skills the framework no longer ships.
  4. 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.
  5. Run the four commands under Next::
    flutter pub get
    dart run build_runner build
    dart run tool/action.dart --write-reference
    tool/check.sh
  6. 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.
  7. 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.dart prints Upgraded Flutter Agentify from …
  • tool/check.sh ends with All checks passed.
  • git status --short shows 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.

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.