opensrc

Fetch dependency source code from npm, PyPI, crates.io, or GitHub repos.

10|2|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/canvascoding/canvas-notebook --skill opensrc-canvascoding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opensrc
Source: https://github.com/canvascoding/canvas-notebook/tree/main/.claude/skills
Command: npx skills add https://github.com/canvascoding/canvas-notebook --skill opensrc-canvascoding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fetches dependency source code to give AI agents deeper implementation context when understanding how libraries work, debugging, or learning internals.

Core Features & Use Cases

  • On-demand source fetching: cache and retrieve source code for npm, PyPI, crates.io, or GitHub repos.
  • Global cache: stores cached sources at ~/.opensrc/ to speed up repeated lookups.
  • Context-rich exploration: provide agents access to implementation details beyond public docs to aid debugging and comprehension.

Quick Start

Fetch the source for a library using opensrc path zod.

Frequently Asked Questions about opensrc

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

FAQPage Schema
How do I fetch dependency source code for AI context?

You can fetch dependency source code for AI context using on-demand retrieval and caching tools that pull implementation details from npm, PyPI, crates.io, or GitHub. This provides agents with deeper internal logic beyond public documentation.

Can I explore package internals and implementation details beyond documentation?

Yes, you can explore package internals by fetching the actual source code of dependencies. This allows you to inspect how libraries work internally, aiding in debugging and comprehension where public docs are insufficient.

Does opensrc support version pinning when fetching source code?

Yes, fetching dependency source code supports version pinning. This ensures you retrieve the exact implementation details matching your project's specific dependency version for accurate debugging and analysis.

How do I cache library source code to speed up repeated lookups?

You can cache library source code globally at ~/.opensrc/ to speed up repeated lookups. This local cache stores fetched sources on-demand, preventing redundant network requests during subsequent explorations.

What package registries can I retrieve source code from?

You can retrieve source code from npm, PyPI, crates.io, and GitHub repositories. This allows AI agents to gain implementation context across multiple software engineering ecosystems.

Are there limitations when using local cache for dependency source code?

The local cache is limited to storing sources at ~/.opensrc/ and emitting results on stdout. Progress is written to stderr, meaning you need local disk space and proper stream handling to manage the cached source code effectively.