flutter-dependency-audit
Safely audit, analyze, and migrate dependencies one-by-one in a Flutter/Dart Melos monorepo.
от 7span★ 43 звезды на GitHub
Установить flutter-dependency-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Flutter Dependency Audit Skill
Objective
Safely maintain a Flutter/Dart Melos monorepo by identifying deprecated packages and APIs, recommending compatible stable versions, and upgrading one dependency at a time.
Phase 1: Read-only discovery
- Inspect Git status and preserve all user changes.
- Identify the Flutter and Dart SDK versions.
- Inspect the root
pubspec.yaml, Melos configuration, workspace packages, application manifests, lockfiles, analysis options, and existing scripts. - Identify shared packages, application dependencies, code generators, platform plugins, and build flavors.
- Identify the workspace mechanism:
- Check if root
pubspec.yamldefinesworkspace: [...](Dart/Pub Workspaces standard in Melos 7+ / Dart 3.5+). - Or if packages are managed via standalone configs requiring Melos bootstrapping.
- Check if root
- Never assume every package uses the same SDK constraints or build commands.
Do not modify project files during the initial audit.
Phase 2: Dependency and API audit
Use the relevant commands suited to the repository's workspace architecture:
- Pub Workspaces (Root-level execution):
When
workspace:is declared in the rootpubspec.yaml, run:flutter pub outdated(ordart pub outdated) directly from the workspace root to assess all member packages within a unified resolution graph.flutter pub deps/dart pub depsfrom the workspace root.
- Package-specific & Legacy Melos execution:
When inspecting an isolated package or running package-scoped checks:
- Run
flutter pub outdatedfor Flutter packages anddart pub outdatedfor pure Dart packages inside that package directory, or usemelos exec -- flutter pub outdated.
- Run
- Static Analysis & Diagnostics:
melos run analyzeorflutter analyze/dart analyze.dart fix --dry-runto detect automated deprecation remedies without applying them.
Choose Flutter commands for Flutter packages and Dart commands for pure Dart packages. Use existing Melos scripts where available (melos.yaml or root pubspec.yaml scripts block). Do not blindly run every command in every directory.
Inspect package changelogs, pub.dev metadata, official documentation, repository maintenance notices, and migration guides.
Distinguish:
- Outdated but supported packages.
- Deprecated packages or APIs.
- Discontinued or unmaintained packages.
- Major upgrades with breaking changes.
- SDK or transitive dependency conflicts.
- Existing analyzer errors unrelated to upgrades.
Never label a package deprecated solely because a newer version exists.
Phase 3: Report findings
Write docs/dependency-audit/REPORT.md (creating the directory if it does not already exist) after verifying it will not unintentionally overwrite unsaved user work.
Include:
- Audit date and SDK versions.
- Workspace packages and applications inspected.
- Baseline analysis and test results.
- Current, upgradable, resolvable, and latest versions when reported by Pub.
- Deprecation evidence, maintenance status, and official source links.
- Recommended target version.
- Breaking changes and affected packages/apps.
- Priority, risk, and verification status.
Priorities:
- P0: Confirmed critical security or compatibility issue.
- P1: Release-blocking or urgent maintenance issue.
- P2: Important deprecation or migration.
- P3: Routine compatible maintenance.
Do not invent version numbers, deprecation claims, vulnerabilities, or compatibility guarantees.
Phase 4: Select and approve one dependency
Present the prioritized report and recommend exactly one first dependency to migrate.
Explain:
- Why it is the best first candidate (e.g., low-risk leaf dependency vs. prerequisite core package).
- Current and proposed versions.
- SDK compatibility.
- Migration steps and official references.
- Affected apps and shared packages.
- Required tests, code generators, and platform builds.
Wait for explicit approval before changing dependencies or source code.
Phase 5: Migrate one dependency
- Recheck Git status.
- Review the package's changelog and migration guide.
- Update only the approved dependency in the relevant
pubspec.yaml(root or specific package). - Change only the source code and configuration strictly required for that migration.
- Run
flutter pub getordart pub getin the appropriate workspace context (at the root for Pub Workspaces, or viamelos bootstrap/ package dir). - Investigate dependency conflicts rather than hiding them with dependency overrides.
- If the dependency involves code generation (
build_runner,freezed,json_serializable,auto_route_generator, etc.):- Run the appropriate generator script (e.g.
dart run build_runner build --delete-conflicting-outputsormelos run build-runner).
- Run the appropriate generator script (e.g.
- Review all manifest, lockfile, and source changes.
- Stop and request approval if another dependency must change beyond the approved scope.
Never run a bulk upgrade or discard unrel
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл flutter-dependency-audit?
Safely audit, analyze, and migrate dependencies one-by-one in a Flutter/Dart Melos monorepo.
Как установить скилл flutter-dependency-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flutter-dependency-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…