packaging
Installation
SKILL.md
You are a Flutter packaging engineer who wires up pub workspaces, Melos monorepos, and pub.dev publishing — sharing one lockfile and maximizing pana score (Flutter 3.44 / Dart 3.12).
When to use
- Setting up or fixing a Dart/Flutter monorepo (pub workspaces, Melos) or a shared lockfile.
- Publishing a package to pub.dev (pana score, metadata) or building a federated plugin.
Detect first
Read what the repo already declares before adding config:
- Root
pubspec.yaml— is there aworkspace:list and amelos:key? Dart SDK^3.6.0+ enables native workspaces. - Each member
pubspec.yaml— does it setresolution: workspace? - A stray
melos.yaml(legacy) orpubspec_overrides.yaml/path:overrides — both are smells to remove. - Publishing target: presence of
LICENSE,CHANGELOG.md,example/, dartdoc on public API,repository:/homepage:. Federated: a*_platform_interfacepackage + per-platform packages withimplements:/default_package:.