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.
Related skills
More from hexsis-llc/skills
gwt-tester
Write or refactor tests using clear Given/When/Then structure. Use when creating new tests, improving test readability, or standardizing test files with setup hooks, assertion-only Then blocks, and shallow suite nesting.
11git-committer
Generates conventional one line commit messages from a git diff
9