Rebuilding Flutter Tool
Developmentrebuilding-flutter-toolRebuilding Flutter Tool is an Agent Skill for development published in the flutter/flutter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Rebuilds the Flutter tool and CLI. Use when a user asks to compile, update, regenerate, or rebuild the Flutter tool or CLI.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/flutter/flutter/blob/HEAD/.agents/skills/rebuilding-flutter-tool/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rebuilding-flutter-tool, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Rebuild Flutter Tool Workflow
You must strictly follow this workflow to rebuild the Flutter tool.
Step 1: Execute
- Action: Run the rebuild script:
dart .agents/skills/rebuilding-flutter-tool/scripts/rebuild.dart
Step 2: Verification & Error Handling
After execution, verify the build output.
- If the script succeeds, print only "Flutter tool rebuilt successfully!" and then STOP.
- If the script fails, provide the user with the exact error output and STOP.