pub-package-explorer
Installation
SKILL.md
Pub Package Explorer
Use this workflow to read package source code for Dart or Flutter, including packages not currently installed in the project.
Choose the Source Strategy
- Prefer
.dart_tool/package_config.jsonwhen the package is already in the project dependency graph. - Use
dart pub unpackwhen the package is missing frompackage_config.jsonor when source needs inspection before adding the dependency. - Prefer the installed package path when both are available to match the project-resolved version.
Resolve a Package Source Path
- Confirm the project contains
.dart_tool/package_config.json. - Read the package entry from
packages[]byname. - Extract:
rootUri(package root, usually in pub cache)packageUri(usuallylib/)
- Build source path as
rootUri + packageUri. - Convert
file://URI to a filesystem path before reading files.