dep-source-ref

Copy pub package sources into docs/ref for AI analysis.

12|2|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/toly1994328/flash_im_by_ai --skill dep-source-ref
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dep-source-ref
Source: https://github.com/toly1994328/flash_im_by_ai/tree/main/.kiro/skills/dep-source-ref
Command: npx skills add https://github.com/toly1994328/flash_im_by_ai --skill dep-source-ref

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

将 pub 依赖库源码复制到 docs/ref 下作为参考。在需要阅读第三方/自有 pub 包源码时激活,确保 AI 能直接读取依赖库的实现。

Core Features & Use Cases

  • 将指定依赖包的源码复制到 docs/ref/,便于 AI 直接分析实现。
  • 支持从本地路径、或 pub cache 自动定位版本并复制。
  • 使用场景:在需要深入阅读某个 package 的实现细节时,激活此 Skill,将其源码纳入 AI 的可访问范围。

Quick Start

Use this Skill to copy a dependency's source code into docs/ref by specifying either a local project path or a package name to pull from pub cache.

Frequently Asked Questions about dep-source-ref

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

FAQPage Schema
How do I let AI read pub package source code for debugging?

To let AI read pub package source code for debugging, you can copy dependency sources into a local docs/ref directory. This makes the implementation files directly accessible to AI without external network calls.

What is the best way to explore third-party Dart dependency implementations locally?

The best way to explore Dart dependency locally is to copy the resolved package versions from your pub cache into a reference directory. This allows AI tools to directly analyze the source code implementation details.

How to copy dependency sources from pub cache for source reading?

You can copy dependency sources from pub cache by specifying the package name. The script automatically locates the resolved version in your local pub cache and copies the files into docs/ref for AI source reading.

Does this dependency source reading script require external network calls?

No, this dependency source reading script requires no external network calls. It operates entirely offline by targeting local project paths or already resolved versions found in your local pub cache.

Can I use a local project path instead of pub cache to copy Dart dependencies?

Yes, you can use a local project path instead of pub cache. The script supports specifying a local directory path to copy Dart dependency sources directly into the docs/ref folder for AI analysis.

Are irrelevant files filtered out when copying pub package sources to docs ref?

Yes, irrelevant files are safely filtered out when copying pub package sources to docs ref. The script enforces safe filtering rules to ensure only relevant implementation files are included for AI reference.