opensrc

Fetch source code from npm, PyPI, crates.io, and GitHub/GitLab repositories.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/Khoiwall/be_vidify --skill opensrc-khoiwall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opensrc
Source: https://github.com/Khoiwall/be_vidify/tree/main/.opencode/skill/opensrc
Command: npx skills add https://github.com/Khoiwall/be_vidify --skill opensrc-khoiwall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI agents often need to inspect actual source code to understand libraries, dependencies, and implementations beyond docs. This Skill fetches source code for npm, PyPI, crates.io packages and GitHub/GitLab repositories to provide deeper implementation context.

Core Features & Use Cases

  • Multi-registry support: npm, PyPI, crates.io, and GitHub/GitLab repositories.
  • Monorepo & version handling: resolves repository URLs, supports monorepos, and clones to the appropriate tag or branch with shallow depth.
  • Code context delivery: stores sources in a structured local cache for agents to reference during analysis or code generation.

Quick Start

Fetch the latest source code for a package or repository using the opensrc CLI.

Frequently Asked Questions about opensrc

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

FAQPage Schema
How do I fetch source code for npm or PyPI packages for AI context?

To fetch source code for AI context, use a CLI that retrieves npm, PyPI, and crates.io packages, resolving repository URLs and storing sources locally. It supports monorepos and shallow clones to provide deep implementation context for dependency analysis.

Can I fetch GitHub and GitLab repository sources for dependency analysis?

Yes, you can fetch GitHub and GitLab repository sources for dependency analysis. The tool resolves repository URLs, clones to the appropriate tag or branch with shallow depth, and maintains an index of fetched sources for AI agents.

How does fetching package source code handle monorepos and specific versions?

Fetching package source code handles monorepos by resolving repository URLs and cloning to the appropriate tag or branch with shallow depth. This ensures AI agents receive the correct version context without downloading entire repository histories.

What's the best way to provide AI agents with deep implementation context from external libraries?

The best way to provide AI agents with deep implementation context is to fetch package and repository sources into a structured local cache. This allows agents to inspect actual source code beyond documentation for libraries, dependencies, and implementations.

Does fetching source code for crates.io packages support shallow clones?

Yes, fetching source code for crates.io packages supports shallow clones. The tool clones repositories to the appropriate tag or branch with shallow depth, maintaining an index of fetched sources in a structured local directory for agent reference.