Command Palette

Search for a command to run...

Назад к скиллам
скилл № 21175

flutter-dependency-audit

Safely audit, analyze, and migrate dependencies one-by-one in a Flutter/Dart Melos monorepo.

БесплатноБез исполняемых скриптов
7spanот 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

  1. Inspect Git status and preserve all user changes.
  2. Identify the Flutter and Dart SDK versions.
  3. Inspect the root pubspec.yaml, Melos configuration, workspace packages, application manifests, lockfiles, analysis options, and existing scripts.
  4. Identify shared packages, application dependencies, code generators, platform plugins, and build flavors.
  5. Identify the workspace mechanism:
    • Check if root pubspec.yaml defines workspace: [...] (Dart/Pub Workspaces standard in Melos 7+ / Dart 3.5+).
    • Or if packages are managed via standalone configs requiring Melos bootstrapping.
  6. 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 root pubspec.yaml, run:
    • flutter pub outdated (or dart pub outdated) directly from the workspace root to assess all member packages within a unified resolution graph.
    • flutter pub deps / dart pub deps from the workspace root.
  • Package-specific & Legacy Melos execution: When inspecting an isolated package or running package-scoped checks:
    • Run flutter pub outdated for Flutter packages and dart pub outdated for pure Dart packages inside that package directory, or use melos exec -- flutter pub outdated.
  • Static Analysis & Diagnostics:
    • melos run analyze or flutter analyze / dart analyze.
    • dart fix --dry-run to 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

  1. Recheck Git status.
  2. Review the package's changelog and migration guide.
  3. Update only the approved dependency in the relevant pubspec.yaml (root or specific package).
  4. Change only the source code and configuration strictly required for that migration.
  5. Run flutter pub get or dart pub get in the appropriate workspace context (at the root for Pub Workspaces, or via melos bootstrap / package dir).
  6. Investigate dependency conflicts rather than hiding them with dependency overrides.
  7. 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-outputs or melos run build-runner).
  8. Review all manifest, lockfile, and source changes.
  9. Stop and request approval if another dependency must change beyond the approved scope.

Never run a bulk upgrade or discard unrel

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить flutter-dependency-audit с