[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77G707P56DA1J90N8M0FEM5":3,"skill-same:01M77G707P56DA1J90N8M0FEM5":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M77G707P56DA1J90N8M0FEM5","flutter-updater",null,"Keep Flutter\u002FDart projects automatically up-to-date.\nDetects new Flutter\u002FDart SDK releases, updates pubspec.yaml dependencies with\nsafe breaking-change handling (reads changelogs, auto-fixes code, rolls back\nper-package if unfixable), runs dart fix, and performs full QA\n(flutter analyze → flutter test → flutter build).\nUse when asked to \"update flutter\", \"update dependencies\", \"upgrade packages\",\nor \"keep flutter up to date\". Flags: --sdk-only, --deps-only, --qa-only.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ff\u002Fflutter-updater\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: flutter-updater\nversion: 1.0.0\ndescription: |\n  Keep Flutter\u002FDart projects automatically up-to-date.\n  Detects new Flutter\u002FDart SDK releases, updates pubspec.yaml dependencies with\n  safe breaking-change handling (reads changelogs, auto-fixes code, rolls back\n  per-package if unfixable), runs dart fix, and performs full QA\n  (flutter analyze → flutter test → flutter build).\n  Use when asked to \"update flutter\", \"update dependencies\", \"upgrade packages\",\n  or \"keep flutter up to date\". Flags: --sdk-only, --deps-only, --qa-only.\nallowed-tools:\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Grep\n  - Glob\n  - WebFetch\n  - AskUserQuestion\n---\n\n## Preamble (run first, always)\n\n```bash\n# Self-update check (silent if up to date)\n_SKILL_DIR=\"$(dirname \"$(which flutter-updater-config 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo \"$HOME\u002F.claude\u002Fskills\u002Fflutter-updater\u002Fbin\")\"\n_SKILL_BASE=\"$(dirname \"$_SKILL_DIR\" 2>\u002Fdev\u002Fnull || echo \"$HOME\u002F.claude\u002Fskills\u002Fflutter-updater\")\"\n_UPD=$(\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-version-check\" 2>\u002Fdev\u002Fnull || true)\n[ -n \"$_UPD\" ] && echo \"$_UPD\" || true\n\n# Load config\n_INTERVAL=$(   \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get check_interval_hours 2>\u002Fdev\u002Fnull || echo \"12\")\n_IGNORED=$(    \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get ignored_packages      2>\u002Fdev\u002Fnull || echo \"\")\n_AUTO_SAFE=$(  \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get auto_apply_safe       2>\u002Fdev\u002Fnull || echo \"true\")\n_CHANNEL=$(    \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get track_channel         2>\u002Fdev\u002Fnull || echo \"stable\")\necho \"CONFIG: interval=${_INTERVAL}h channel=${_CHANNEL} auto_safe=${_AUTO_SAFE}\"\n[ -n \"$_IGNORED\" ] && echo \"CONFIG: ignored_packages=${_IGNORED}\"\n\n# Project state\n_LAST_CHECK=$(\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" get-last-check 2>\u002Fdev\u002Fnull || echo \"\")\n_SLUG=$(      \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" slug 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"PROJECT: $_SLUG\"\n[ -n \"$_LAST_CHECK\" ] && echo \"LAST_CHECK: $_LAST_CHECK\" || echo \"LAST_CHECK: never\"\n\n# Detect build targets\n_TARGETS=$(\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-detect-targets\" 2>\u002Fdev\u002Fnull || echo \"\")\necho \"TARGETS: ${_TARGETS:-none}\"\n\n# Parse flags\n_FLAG=\"${1:-}\"\necho \"FLAG: ${_FLAG:-none}\"\n```\n\nAfter running the preamble:\n- Store `$_SKILL_BASE` for use in later phases.\n- Store `$_IGNORED`, `$_AUTO_SAFE`, `$_CHANNEL`, `$_TARGETS`, `$_FLAG`.\n- If `$_LAST_CHECK` is within `$_INTERVAL` hours AND `$_FLAG` is empty, ask the user: \"Already checked `$_INTERVAL`h ago. Run again?\" before proceeding.\n\n---\n\n## PHASE 0: Environment Validation\n\n```bash\n# Verify Flutter project\n[ -f pubspec.yaml ] || { echo \"ERROR: No pubspec.yaml found. Run from Flutter\u002FDart project root.\"; exit 1; }\n\n# Run dart pub outdated --json (used in Phase 2)\ndart pub outdated --json 2>\u002Fdev\u002Fnull\n```\n\nIf `pubspec.yaml` is missing, stop and tell the user. Do not proceed.\n\n---\n\n## PHASE 1: Flutter SDK Update Check\n\nSkip if `$_FLAG` is `--deps-only` or `--qa-only`.\n\n```bash\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-sdk-check\" \"$_CHANNEL\" 2>&1\n```\n\nParse output lines:\n- `CURRENT:\u003Cversion>` → current Flutter version\n- `LATEST:\u003Cversion>` → latest available\n- `UPDATE_AVAILABLE` → upgrade is needed\n- `UP_TO_DATE` → skip this phase, note \"Flutter SDK is current (vX.Y.Z)\"\n- `ERROR:...` → warn user, skip phase\n\nIf `UPDATE_AVAILABLE`:\n> Use AskUserQuestion: \"Flutter SDK update: vCURRENT → vLATEST. Upgrade now?\"\n> Options: a) Yes, upgrade   b) Skip\n\nIf user chooses (a):\n```bash\nflutter upgrade\n```\nThen re-run the sdk-check to confirm new version.\n\n---\n\n## PHASE 2: Dependency Classification\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\n\nRun the classifier using the `dart pub outdated --json` output from Phase 0:\n\n```bash\necho \"\u003COUTDATED_JSON_FROM_PHASE_0>\" | \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-classify\" pubspec.yaml \"$_IGNORED\"\n```\n\nParse each output line:\n- `SAFE:\u003Cname>:\u003Ccurrent>:\u003Ctarget>` → safe update list\n- `BREAKING:\u003Cname>:\u003Ccurrent>:\u003Clatest>` → breaking update list\n- `UP_TO_DATE:\u003Cname>:\u003Cversion>` → already current\n- `SKIP_PATH:\u003Cname>` \u002F `SKIP_GIT:\u003Cname>` \u002F `SKIP_SDK:\u003Cname>` \u002F `SKIP_IGNORED:\u003Cname>:\u003Cv>` → skip\n\nPrint a summary table to the user:\n```\nDependency Analysis\n  Safe updates    (N): package_a 1.0→1.2, package_b 3.1→3.1.4\n  Breaking updates(N): package_c 0.13→1.2, package_d 6.0→7.0\n  Up to date      (N): ...\n  Skipped         (N): path\u002Fgit\u002Fsdk\u002Fignored\n```\n\nIf there are no updates at all (all UP_TO_DATE or SKIP), jump directly to Phase 5 (dart fix) unless `--deps-only`.\n\n---\n\n## PHASE 3: Safe Updates\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\nSkip if no SAFE packages were found.\n\nIf `$_AUTO_SAFE` is `true`, apply automatically.\nIf `$_AUTO_SAFE` is `false`, ask the user first.\n\n```bash\ndart pub upgrade 2>&1\n```\n\nAfter applying, run:\n```bash\ndart analyze 2>&1 | head -60\n```\n\nIf `dart analyze` shows errors after safe updates, read each error and fix with Edit tool.\nThese should be minor issues (API changes within the same major version).\n\n---\n\n## PHASE 4: Breaking Change Updates (one package at a time)\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\nSkip if no BREAKING packages were found.\n\nFor each BREAKING package, do the following in sequence:\n\n### 4a — Backup (once before first breaking update)\n\n```bash\ncp pubspec.yaml pubspec.yaml.fu_bak\ncp pubspec.lock pubspec.lock.fu_bak\n```\n\n### 4b — Fetch Changelog\n\n```bash\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-changelog\" \"\u003CPACKAGE_NAME>\" \"\u003CTARGET_VERSION>\" 2>&1\n```\n\nRead the changelog output. Identify:\n- Removed classes or methods (exact names)\n- Renamed classes or methods (old → new)\n- Changed constructors or method signatures\n- Any migration guide mentioned\n\n### 4c — Scan Codebase for Affected APIs\n\nUse Grep to find every usage of the removed\u002Fchanged APIs in `lib\u002F`, `test\u002F`, `bin\u002F`:\n```bash\ngrep -rn \"OldClassName\\|removedMethod\\|changedSignature\" lib\u002F test\u002F bin\u002F 2>\u002Fdev\u002Fnull\n```\n\nBuild a file:line map of what needs changing.\n\n### 4d — Confirm with User\n\n> Use AskUserQuestion:\n> \"**PACKAGE_NAME** vCURRENT → vLATEST (Breaking)\n>\n> Changelog summary:\n> - [key breaking changes from 4b]\n>\n> Affected in your code:\n> - lib\u002Ffoo.dart:42 — OldClassName\n> - lib\u002Fbar.dart:17 — removedMethod()\n>\n> Attempt automatic migration?\"\n>\n> Options: a) Yes, migrate   b) Skip this package\n\nIf user skips → record `SKIP` for this package, continue to next.\n\n### 4e — Apply Update\n\n```bash\ndart pub upgrade --major-versions \"\u003CPACKAGE_NAME>\" 2>&1\n```\n\nIf this fails (non-zero exit), do NOT modify pubspec.yaml. Record as failed, skip to next package.\n\n### 4f — Fix Compilation Errors (up to 3 rounds)\n\n```bash\ndart analyze 2>&1\n```\n\nFor each error:\n1. Read the affected file with Read tool.\n2. Cross-reference with changelog from 4b to determine the correct replacement.\n3. Apply fix with Edit tool.\n4. Re-run `dart analyze`. Repeat up to 3 times.\n\nCommon fix patterns:\n- `Undefined class 'OldName'` → rename to `NewName` everywhere (use Grep to find all uses, Edit to replace)\n- `Method 'removedMethod' not found` → replace with new API equivalent\n- `Too many positional arguments` → update call signature\n- `The named parameter 'oldParam' isn't defined` → rename or remove parameter\n\n### 4g — Rollback if Unfixable\n\nIf errors remain after 3 fix rounds:\n\nRead `pubspec.yaml.fu_bak`, find the original constraint for this package, and restore just that line in `pubspec.yaml` using Edit tool. Then:\n\n```bash\ndart pub get 2>&1\n```\n\nTell the user:\n> \"Rolled back **PACKAGE_NAME** to vCURRENT.\n> Auto-migration failed after 3 attempts.\n>\n> Manual migration needed:\n> - [specific breaking APIs that still need fixing]\n> - [official migration guide URL if found in changelog]\n> - Affected files: [list]\"\n\n### 4h — Continue to Next Breaking Package\n\nAfter all breaking packages: clean up backups.\n```bash\nrm -f pubspec.yaml.fu_bak pubspec.lock.fu_bak\n```\n\n---\n\n## PHASE 5: dart fix\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\n\n```bash\ndart fix --dry-run 2>&1\n```\n\nIf fixes are available:\n> Use AskUserQuestion: \"dart fix can repair N issues. Apply?\"\n> Options: a) Yes   b) Skip\n\nIf (a):\n```bash\ndart fix --apply 2>&1\n```\n\nRun `dart analyze` once more to confirm no regressions.\n\n---\n\n## PHASE 6: QA\n\nSkip if `$_FLAG` is `--sdk-only` or `--deps-only`.\n\n### 6a — Static Analysis\n\n```bash\nflutter analyze 2>&1\n```\n\nIf errors: read each, attempt Edit fixes, re-run (up to 2 rounds).\nWarnings are acceptable — note them but do not block.\n\n### 6b — Tests\n\n```bash\nflutter test 2>&1\n```\n\nIf tests fail:\n- If failure is directly caused by a dependency API change (verified against changelog): read test file, update to new API, re-run once.\n- If failure is a genuine regression (unrelated to update): record as failed, do NOT silently fix test assertions.\n\n### 6c — Build Verification\n\nUse `$_TARGETS` from preamble. Pick the first available in order: `android` → `web` → `macos` → `linux` → `ios` → `windows`.\n\n| Target | Command |\n|--------|---------|\n| android | `flutter build apk --debug 2>&1 \\| tail -30` |\n| web | `flutter build web 2>&1 \\| tail -30` |\n| macos | `flutter build macos --debug 2>&1 \\| tail -30` |\n| linux | `flutter build linux --debug 2>&1 \\| tail -30` |\n| ios | `flutter build ios --debug --no-codesign 2>&1 \\| tail -30` |\n| windows | `flutter build windows --debug 2>&1 \\| tail -30` |\n| dart_only | `dart compile exe bin\u002Fmain.dart -o \u002Ftmp\u002Fflutter_updater_build_check 2>&1 \\| tail -10` |\n\nIf build fails: apply same fix-analyze loop as 6a (up to 2 rounds). If still failing: record in report.\n\n---\n\n## PHASE 7: Update State & Save Report\n\n```bash\n# Record this run in project state\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" set-last-check\n\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" log-update '{\n  \"sdk_updated\": \"\u003CNEW_SDK_VERSION_OR_EMPTY>\",\n  \"updated\": [\"\u003Clist of successfully updated packages>\"],\n  \"skipped\": [\"\u003Clist of rolled-back packages>\"],\n  \"dart_fix_applied\": true_or_false,\n  \"qa_analyze\": \"pass|fail\",\n  \"qa_test\": \"pass|fail|N\u002FN\",\n  \"qa_build\": \"pass|fail|skipped\"\n}'\n```\n\n### 7a — Compose the Report\n\nCompose the full Markdown report (see template below) and write it to a temp file:\n\n```bash\ncat > \u002Ftmp\u002Fflutter_updater_report_$$.md \u003C\u003C 'REPORT'\n\u003Cfull markdown report content>\nREPORT\n```\n\n### 7b — Save Report to Project\n\nDetermine the current Flutter version (use the post-update version if SDK was upgraded).\n\n```bash\n_FLUTTER_VER=$(flutter --version --machine 2>\u002Fdev\u002Fnull | python3 -c \"import json,sys; print(json.load(sys.stdin).get('frameworkVersion','unknown'))\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\n\n# Default save location: .flutter_updater\u002Freports\u002F inside the project\n# User can override by setting FLUTTER_UPDATER_REPORT_DIR in their shell\n_REPORT_DIR=\"${FLUTTER_UPDATER_REPORT_DIR:-.flutter_updater\u002Freports}\"\n\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-save-report\" \"$_FLUTTER_VER\" \"\u002Ftmp\u002Fflutter_updater_report_$$.md\" \"$_REPORT_DIR\"\n```\n\nAfter saving, tell the user the exact file path where the report was saved.\nAlso print the report contents to the conversation.\n\nClean up:\n```bash\nrm -f \u002Ftmp\u002Fflutter_updater_report_$$.md\n```\n\n### Report Template\n\nThe report file must follow this structure:\n\n```markdown\n# Flutter Update — v\u003CFLUTTER_VERSION> (\u003CYYYY-MM-DD>)\n\nProject: \u003Cproject name from pubspec.yaml>\nRun at: \u003CISO timestamp>\n\n---\n\n## Flutter SDK\n- Before: v\u003COLD>  →  After: v\u003CNEW>  (or: Already current \u002F Skipped)\n\n## Dependency Updates\n\n| Package | Before | After | Type | Result |\n|---------|--------|-------|------|--------|\n| http | 0.13.5 | 1.2.2 | Breaking | ✅ Updated + auto-fixed (3 files) |\n| provider | 6.1.2 | 6.1.4 | Safe | ✅ Updated |\n| dio | 4.0.6 | 5.4.0 | Breaking | ⚠️ Rolled back — see below |\n| path | 1.8.3 | 1.8.3 | — | ⏭ Up to date |\n\n## Code Changes Applied\n\n### Auto-fixed (dart fix)\n- N issues fixed  (or: No fixes needed \u002F Skipped)\n\n### Breaking Change Migrations\nFor each auto-fixed breaking package, list:\n- **\u003Cpackage_name>** v\u003Cold> → v\u003Cnew>\n  - Changed: `OldClass` → `NewClass` in lib\u002Ffoo.dart:42, lib\u002Fbar.dart:17\n  - Changed: `oldMethod()` → `newMethod()` in lib\u002Fservice.dart:88\n\n## QA Results\n\n| Check | Result | Details |\n|-------|--------|---------|\n| flutter analyze | ✅ Pass | 0 errors, 2 warnings |\n| flutter test | ✅ Pass | 47\u002F47 tests passed |\n| flutter build (android) | ✅ Pass | Build succeeded |\n\n## Manual Action Required\n\n### \u003Cpackage_name> — Could Not Auto-Migrate\n- **Version**: v\u003Cold> → v\u003Clatest> (rolled back to v\u003Cold>)\n- **Breaking change**: `Options` class removed; use `RequestOptions` instead\n- **Your affected files**:\n  - `lib\u002Fapi\u002Fclient.dart` lines 34, 89\n  - `test\u002Fapi_test.dart` line 12\n- **Migration guide**: \u003CURL if found in changelog>\n\n---\n*Generated by flutter-updater v1.0.0*\n```\n\n---\n\n## Error Recovery Rules\n\n- **Network failures** (GitHub, pub.dev): Retry once silently. If still failing, skip that step and note it in the report. Never abort the full run.\n- **`dart pub upgrade` resolution failure**: Do not touch pubspec.yaml. Report conflict and skip that package.\n- **Fix loop cap**: Max 3 rounds of analyze → fix per package. After 3, rollback.\n- **Flaky test**: Re-run `flutter test` once. If it fails again, record as failed.\n- **Unrelated build failure**: Report but do not attempt to fix issues not caused by the update.\n- **git**: Do NOT run any git commands (stash, commit, checkout). Use only file backup\u002Frestore strategy.\n","## Preamble (run first, always)\n\n```bash\n# Self-update check (silent if up to date)\n_SKILL_DIR=\"$(dirname \"$(which flutter-updater-config 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo \"$HOME\u002F.claude\u002Fskills\u002Fflutter-updater\u002Fbin\")\"\n_SKILL_BASE=\"$(dirname \"$_SKILL_DIR\" 2>\u002Fdev\u002Fnull || echo \"$HOME\u002F.claude\u002Fskills\u002Fflutter-updater\")\"\n_UPD=$(\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-version-check\" 2>\u002Fdev\u002Fnull || true)\n[ -n \"$_UPD\" ] && echo \"$_UPD\" || true\n\n# Load config\n_INTERVAL=$(   \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get check_interval_hours 2>\u002Fdev\u002Fnull || echo \"12\")\n_IGNORED=$(    \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get ignored_packages      2>\u002Fdev\u002Fnull || echo \"\")\n_AUTO_SAFE=$(  \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get auto_apply_safe       2>\u002Fdev\u002Fnull || echo \"true\")\n_CHANNEL=$(    \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-config\" get track_channel         2>\u002Fdev\u002Fnull || echo \"stable\")\necho \"CONFIG: interval=${_INTERVAL}h channel=${_CHANNEL} auto_safe=${_AUTO_SAFE}\"\n[ -n \"$_IGNORED\" ] && echo \"CONFIG: ignored_packages=${_IGNORED}\"\n\n# Project state\n_LAST_CHECK=$(\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" get-last-check 2>\u002Fdev\u002Fnull || echo \"\")\n_SLUG=$(      \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" slug 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"PROJECT: $_SLUG\"\n[ -n \"$_LAST_CHECK\" ] && echo \"LAST_CHECK: $_LAST_CHECK\" || echo \"LAST_CHECK: never\"\n\n# Detect build targets\n_TARGETS=$(\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-detect-targets\" 2>\u002Fdev\u002Fnull || echo \"\")\necho \"TARGETS: ${_TARGETS:-none}\"\n\n# Parse flags\n_FLAG=\"${1:-}\"\necho \"FLAG: ${_FLAG:-none}\"\n```\n\nAfter running the preamble:\n- Store `$_SKILL_BASE` for use in later phases.\n- Store `$_IGNORED`, `$_AUTO_SAFE`, `$_CHANNEL`, `$_TARGETS`, `$_FLAG`.\n- If `$_LAST_CHECK` is within `$_INTERVAL` hours AND `$_FLAG` is empty, ask the user: \"Already checked `$_INTERVAL`h ago. Run again?\" before proceeding.\n\n---\n\n## PHASE 0: Environment Validation\n\n```bash\n# Verify Flutter project\n[ -f pubspec.yaml ] || { echo \"ERROR: No pubspec.yaml found. Run from Flutter\u002FDart project root.\"; exit 1; }\n\n# Run dart pub outdated --json (used in Phase 2)\ndart pub outdated --json 2>\u002Fdev\u002Fnull\n```\n\nIf `pubspec.yaml` is missing, stop and tell the user. Do not proceed.\n\n---\n\n## PHASE 1: Flutter SDK Update Check\n\nSkip if `$_FLAG` is `--deps-only` or `--qa-only`.\n\n```bash\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-sdk-check\" \"$_CHANNEL\" 2>&1\n```\n\nParse output lines:\n- `CURRENT:\u003Cversion>` → current Flutter version\n- `LATEST:\u003Cversion>` → latest available\n- `UPDATE_AVAILABLE` → upgrade is needed\n- `UP_TO_DATE` → skip this phase, note \"Flutter SDK is current (vX.Y.Z)\"\n- `ERROR:...` → warn user, skip phase\n\nIf `UPDATE_AVAILABLE`:\n> Use AskUserQuestion: \"Flutter SDK update: vCURRENT → vLATEST. Upgrade now?\"\n> Options: a) Yes, upgrade   b) Skip\n\nIf user chooses (a):\n```bash\nflutter upgrade\n```\nThen re-run the sdk-check to confirm new version.\n\n---\n\n## PHASE 2: Dependency Classification\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\n\nRun the classifier using the `dart pub outdated --json` output from Phase 0:\n\n```bash\necho \"\u003COUTDATED_JSON_FROM_PHASE_0>\" | \"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-classify\" pubspec.yaml \"$_IGNORED\"\n```\n\nParse each output line:\n- `SAFE:\u003Cname>:\u003Ccurrent>:\u003Ctarget>` → safe update list\n- `BREAKING:\u003Cname>:\u003Ccurrent>:\u003Clatest>` → breaking update list\n- `UP_TO_DATE:\u003Cname>:\u003Cversion>` → already current\n- `SKIP_PATH:\u003Cname>` \u002F `SKIP_GIT:\u003Cname>` \u002F `SKIP_SDK:\u003Cname>` \u002F `SKIP_IGNORED:\u003Cname>:\u003Cv>` → skip\n\nPrint a summary table to the user:\n```\nDependency Analysis\n  Safe updates    (N): package_a 1.0→1.2, package_b 3.1→3.1.4\n  Breaking updates(N): package_c 0.13→1.2, package_d 6.0→7.0\n  Up to date      (N): ...\n  Skipped         (N): path\u002Fgit\u002Fsdk\u002Fignored\n```\n\nIf there are no updates at all (all UP_TO_DATE or SKIP), jump directly to Phase 5 (dart fix) unless `--deps-only`.\n\n---\n\n## PHASE 3: Safe Updates\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\nSkip if no SAFE packages were found.\n\nIf `$_AUTO_SAFE` is `true`, apply automatically.\nIf `$_AUTO_SAFE` is `false`, ask the user first.\n\n```bash\ndart pub upgrade 2>&1\n```\n\nAfter applying, run:\n```bash\ndart analyze 2>&1 | head -60\n```\n\nIf `dart analyze` shows errors after safe updates, read each error and fix with Edit tool.\nThese should be minor issues (API changes within the same major version).\n\n---\n\n## PHASE 4: Breaking Change Updates (one package at a time)\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\nSkip if no BREAKING packages were found.\n\nFor each BREAKING package, do the following in sequence:\n\n### 4a — Backup (once before first breaking update)\n\n```bash\ncp pubspec.yaml pubspec.yaml.fu_bak\ncp pubspec.lock pubspec.lock.fu_bak\n```\n\n### 4b — Fetch Changelog\n\n```bash\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-changelog\" \"\u003CPACKAGE_NAME>\" \"\u003CTARGET_VERSION>\" 2>&1\n```\n\nRead the changelog output. Identify:\n- Removed classes or methods (exact names)\n- Renamed classes or methods (old → new)\n- Changed constructors or method signatures\n- Any migration guide mentioned\n\n### 4c — Scan Codebase for Affected APIs\n\nUse Grep to find every usage of the removed\u002Fchanged APIs in `lib\u002F`, `test\u002F`, `bin\u002F`:\n```bash\ngrep -rn \"OldClassName\\|removedMethod\\|changedSignature\" lib\u002F test\u002F bin\u002F 2>\u002Fdev\u002Fnull\n```\n\nBuild a file:line map of what needs changing.\n\n### 4d — Confirm with User\n\n> Use AskUserQuestion:\n> \"**PACKAGE_NAME** vCURRENT → vLATEST (Breaking)\n>\n> Changelog summary:\n> - [key breaking changes from 4b]\n>\n> Affected in your code:\n> - lib\u002Ffoo.dart:42 — OldClassName\n> - lib\u002Fbar.dart:17 — removedMethod()\n>\n> Attempt automatic migration?\"\n>\n> Options: a) Yes, migrate   b) Skip this package\n\nIf user skips → record `SKIP` for this package, continue to next.\n\n### 4e — Apply Update\n\n```bash\ndart pub upgrade --major-versions \"\u003CPACKAGE_NAME>\" 2>&1\n```\n\nIf this fails (non-zero exit), do NOT modify pubspec.yaml. Record as failed, skip to next package.\n\n### 4f — Fix Compilation Errors (up to 3 rounds)\n\n```bash\ndart analyze 2>&1\n```\n\nFor each error:\n1. Read the affected file with Read tool.\n2. Cross-reference with changelog from 4b to determine the correct replacement.\n3. Apply fix with Edit tool.\n4. Re-run `dart analyze`. Repeat up to 3 times.\n\nCommon fix patterns:\n- `Undefined class 'OldName'` → rename to `NewName` everywhere (use Grep to find all uses, Edit to replace)\n- `Method 'removedMethod' not found` → replace with new API equivalent\n- `Too many positional arguments` → update call signature\n- `The named parameter 'oldParam' isn't defined` → rename or remove parameter\n\n### 4g — Rollback if Unfixable\n\nIf errors remain after 3 fix rounds:\n\nRead `pubspec.yaml.fu_bak`, find the original constraint for this package, and restore just that line in `pubspec.yaml` using Edit tool. Then:\n\n```bash\ndart pub get 2>&1\n```\n\nTell the user:\n> \"Rolled back **PACKAGE_NAME** to vCURRENT.\n> Auto-migration failed after 3 attempts.\n>\n> Manual migration needed:\n> - [specific breaking APIs that still need fixing]\n> - [official migration guide URL if found in changelog]\n> - Affected files: [list]\"\n\n### 4h — Continue to Next Breaking Package\n\nAfter all breaking packages: clean up backups.\n```bash\nrm -f pubspec.yaml.fu_bak pubspec.lock.fu_bak\n```\n\n---\n\n## PHASE 5: dart fix\n\nSkip if `$_FLAG` is `--sdk-only` or `--qa-only`.\n\n```bash\ndart fix --dry-run 2>&1\n```\n\nIf fixes are available:\n> Use AskUserQuestion: \"dart fix can repair N issues. Apply?\"\n> Options: a) Yes   b) Skip\n\nIf (a):\n```bash\ndart fix --apply 2>&1\n```\n\nRun `dart analyze` once more to confirm no regressions.\n\n---\n\n## PHASE 6: QA\n\nSkip if `$_FLAG` is `--sdk-only` or `--deps-only`.\n\n### 6a — Static Analysis\n\n```bash\nflutter analyze 2>&1\n```\n\nIf errors: read each, attempt Edit fixes, re-run (up to 2 rounds).\nWarnings are acceptable — note them but do not block.\n\n### 6b — Tests\n\n```bash\nflutter test 2>&1\n```\n\nIf tests fail:\n- If failure is directly caused by a dependency API change (verified against changelog): read test file, update to new API, re-run once.\n- If failure is a genuine regression (unrelated to update): record as failed, do NOT silently fix test assertions.\n\n### 6c — Build Verification\n\nUse `$_TARGETS` from preamble. Pick the first available in order: `android` → `web` → `macos` → `linux` → `ios` → `windows`.\n\n| Target | Command |\n|--------|---------|\n| android | `flutter build apk --debug 2>&1 \\| tail -30` |\n| web | `flutter build web 2>&1 \\| tail -30` |\n| macos | `flutter build macos --debug 2>&1 \\| tail -30` |\n| linux | `flutter build linux --debug 2>&1 \\| tail -30` |\n| ios | `flutter build ios --debug --no-codesign 2>&1 \\| tail -30` |\n| windows | `flutter build windows --debug 2>&1 \\| tail -30` |\n| dart_only | `dart compile exe bin\u002Fmain.dart -o \u002Ftmp\u002Fflutter_updater_build_check 2>&1 \\| tail -10` |\n\nIf build fails: apply same fix-analyze loop as 6a (up to 2 rounds). If still failing: record in report.\n\n---\n\n## PHASE 7: Update State & Save Report\n\n```bash\n# Record this run in project state\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" set-last-check\n\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-state\" log-update '{\n  \"sdk_updated\": \"\u003CNEW_SDK_VERSION_OR_EMPTY>\",\n  \"updated\": [\"\u003Clist of successfully updated packages>\"],\n  \"skipped\": [\"\u003Clist of rolled-back packages>\"],\n  \"dart_fix_applied\": true_or_false,\n  \"qa_analyze\": \"pass|fail\",\n  \"qa_test\": \"pass|fail|N\u002FN\",\n  \"qa_build\": \"pass|fail|skipped\"\n}'\n```\n\n### 7a — Compose the Report\n\nCompose the full Markdown report (see template below) and write it to a temp file:\n\n```bash\ncat > \u002Ftmp\u002Fflutter_updater_report_$$.md \u003C\u003C 'REPORT'\n\u003Cfull markdown report content>\nREPORT\n```\n\n### 7b — Save Report to Project\n\nDetermine the current Flutter version (use the post-update version if SDK was upgraded).\n\n```bash\n_FLUTTER_VER=$(flutter --version --machine 2>\u002Fdev\u002Fnull | python3 -c \"import json,sys; print(json.load(sys.stdin).get('frameworkVersion','unknown'))\" 2>\u002Fdev\u002Fnull || echo \"unknown\")\n\n# Default save location: .flutter_updater\u002Freports\u002F inside the project\n# User can override by setting FLUTTER_UPDATER_REPORT_DIR in their shell\n_REPORT_DIR=\"${FLUTTER_UPDATER_REPORT_DIR:-.flutter_updater\u002Freports}\"\n\n\"$_SKILL_BASE\u002Fbin\u002Fflutter-updater-save-report\" \"$_FLUTTER_VER\" \"\u002Ftmp\u002Fflutter_updater_report_$$.md\" \"$_REPORT_DIR\"\n```\n\nAfter saving, tell the user the exact file path where the report was saved.\nAlso print the report contents to the conversation.\n\nClean up:\n```bash\nrm -f \u002Ftmp\u002Fflutter_updater_report_$$.md\n```\n\n### Report Template\n\nThe report file must follow this structure:\n\n```markdown\n# Flutter Update — v\u003CFLUTTER_VERSION> (\u003CYYYY-MM-DD>)\n\nProject: \u003Cproject name from pubspec.yaml>\nRun at: \u003CISO timestamp>\n\n---\n\n## Flutter SDK\n- Before: v\u003COLD>  →  After: v\u003CNEW>  (or: Already current \u002F Skipped)\n\n## Dependency Updates\n\n| Package | Before | After | Type | Result |\n|---------|--------|-------|------|--------|\n| http | 0.13.5 | 1.2.2 | Breaking | ✅ Updated + auto-fixed (3 files) |\n| provider | 6.1.2 | 6.1.4 | Safe | ✅ Updated |\n| dio | 4.0.6 | 5.4.0 | Breaking | ⚠️ Rolled back — see below |\n| path | 1.8.3 | 1.8.3 | — | ⏭ Up to date |\n\n## Code Changes Applied\n\n### Auto-fixed (dart fix)\n- N issues fixed  (or: No fixes needed \u002F Skipped)\n\n### Breaking Change Migrations\nFor each auto-fixed breaking package, list:\n- **\u003Cpackage_name>** v\u003Cold> → v\u003Cnew>\n  - Changed: `OldClass` → `NewClass` in lib\u002Ffoo.dart:42, lib\u002Fbar.dart:17\n  - Changed: `oldMethod()` → `newMethod()` in lib\u002Fservice.dart:88\n\n## QA Results\n\n| Check | Result | Details |\n|-------|--------|---------|\n| flutter analyze | ✅ Pass | 0 errors, 2 warnings |\n| flutter test | ✅ Pass | 47\u002F47 tests passed |\n| flutter build (android) | ✅ Pass | Build succeeded |\n\n## Manual Action Required\n\n### \u003Cpackage_name> — Could Not Auto-Migrate\n- **Version**: v\u003Cold> → v\u003Clatest> (rolled back to v\u003Cold>)\n- **Breaking change**: `Options` class removed; use `RequestOptions` instead\n- **Your affected files**:\n  - `lib\u002Fapi\u002Fclient.dart` lines 34, 89\n  - `test\u002Fapi_test.dart` line 12\n- **Migration guide**: \u003CURL if found in changelog>\n\n---\n*Generated by flutter-updater v1.0.0*\n```\n\n---\n\n## Error Recovery Rules\n\n- **Network failures** (GitHub, pub.dev): Retry once silently. If still failing, skip that step and note it in the report. Never abort the full run.\n- **`dart pub upgrade` resolution failure**: Do not touch pubspec.yaml. Report conflict and skip that package.\n- **Fix loop cap**: Max 3 rounds of analyze → fix per package. After 3, rollback.\n- **Flaky test**: Re-run `flutter test` once. If it fails again, record as failed.\n- **Unrelated build failure**: Report but do not attempt to fix issues not caused by the update.\n- **git**: Do NOT run any git commands (stash, commit, checkout). Use only file backup\u002Frestore strategy.\n",{"name":5,"version":24,"description":25,"allowed-tools":26},"1.0.0","Keep Flutter\u002FDart projects automatically up-to-date.\nDetects new Flutter\u002FDart SDK releases, updates pubspec.yaml dependencies with\nsafe breaking-change handling (reads changelogs, auto-fixes code, rolls back\nper-package if unfixable), runs dart fix, and performs full QA\n(flutter analyze → flutter test → flutter build).\nUse when asked to \"update flutter\", \"update dependencies\", \"upgrade packages\",\nor \"keep flutter up to date\". Flags: --sdk-only, --deps-only, --qa-only.\n",[27,28,29,30,31,32,33,34],"Bash","Read","Write","Edit","Grep","Glob","WebFetch","AskUserQuestion","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ff\u002Fflutter-updater",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill flutter-updater",{"tool":50,"command":51},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill flutter-updater",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill flutter-updater","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ff\u002Fflutter-updater\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]