pub-package-explorer

Locate and read Dart or Flutter package source code from local dependencies or pub.dev.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/Hexsis-LLC/skills --skill pub-package-explorer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pub-package-explorer
Source: https://github.com/Hexsis-LLC/skills/tree/main/skills/pub-package-explorer
Command: npx skills add https://github.com/Hexsis-LLC/skills --skill pub-package-explorer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers quickly find and read the source code of Dart and Flutter packages, whether they are project dependencies or need to be downloaded from pub.dev.

Core Features & Use Cases

  • Dependency Inspection: Examine the implementation details of packages already in your project.
  • Code Tracing: Follow the flow of code across different packages in your dependency graph.
  • Unpacking Missing Packages: Download and inspect the source code of packages not currently installed using dart pub unpack.
  • Use Case: You need to understand how a specific function in the analyzer package works. This Skill can locate its source file within your project's dependencies or unpack it from pub.dev for inspection.

Quick Start

Use the pub-package-explorer skill to find the source code for the 'analyzer' package.

Frequently Asked Questions about pub-package-explorer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read the source code of a Flutter package dependency?

To read Flutter package source code, resolve dependency paths via `.dart_tool/package_config.json` to locate installed package files, or unpack missing packages directly from pub.dev for direct source code inspection.

What is the best way to trace Dart code across my project's dependency graph?

Tracing Dart code across dependencies requires locating source files in local project dependencies. This approach resolves package paths to follow code flow across different libraries in your dependency graph.

Can I inspect pub.dev packages that are not currently installed in my project?

Yes, you can inspect uninstalled pub.dev packages by downloading their source code. Executing `dart pub unpack` fetches missing packages so you can read their implementation details locally.

Does resolving Dart package source files require a specific configuration file?

Resolving Dart package source files requires `.dart_tool/package_config.json`. This configuration file maps package names to local directory paths, enabling accurate location of dependency source code.

Why do I need to unpack a Dart package to debug external library internals?

Unpacking a Dart package provides direct access to external library internals. Downloading source code from pub.dev allows you to inspect implementation details and debug issues not visible in documentation.

How do I locate a specific function implementation inside the analyzer package?

To locate a specific function in the analyzer package, resolve its source file path through local dependencies. If the package is missing, unpack it from pub.dev to read the implementation details.