AGENT SKILL
opensrc
Use this skill when the user wants to fetch or access source code for npm, PyPI, or crates.io packages for AI coding agent context.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- opensrc
- description
- Use this skill when the user wants to fetch or access source code for npm, PyPI, or crates.io packages for AI coding agent context.
03 SKILL.md 正文
Opensrc Plugin
Fetch source code for npm packages to give AI coding agents deeper context.
Commands
Package Operations
opensrc package path— Get cached path to package sourceopensrc package fetch— Fetch package source to cache
Usage Examples
Get path to package source:
opensrc path zod
rg "parse" $(opensrc path zod)
cat $(opensrc path zod)/src/types.ts
Fetch from different registries:
opensrc path pypi:requests
opensrc path crates:tokio
Search package source:
find $(opensrc path zod) -name "*.ts"
rg "function" $(opensrc path lodash)
Installation
npm install -g opensrc
Or via Rust:
cargo install opensrc-cli
Supported Registries
- npm (default)
- PyPI (prefix:
pypi:) - crates.io (prefix:
crates:) - GitHub (any public repo)
Key Features
- Fetches and caches package source code
- Works with any registry (npm, PyPI, crates.io, GitHub)
- CLI tool for AI coding agents
- Fast path lookup after first fetch
- Open source (Apache-2.0)
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57