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
所属仓库
javimosch/supercli
最近更新
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 source
  • opensrc 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