AGENT SKILL

opensrc

Fetch dependency source code to give AI agents deeper implementation context. Use when the agent needs to understand how a library works internally, read source code for a package, fetch implementation details for a dependency, or explore how an npm/PyPI/crates.io package is built.

License 许可
MIT
最近更新
2026-10-31
Stars
★ 0
Forks
0

01 前言 Front Matter

name
opensrc
description
Fetch dependency source code to give AI agents deeper implementation context. Use when the agent needs to understand how a library works internally, read source code for a package, fetch implementation details for a dependency, or explore how an npm/PyPI/crates.io package is built.
allowed-tools
Bash(vp exec opensrc:*)

03 SKILL.md 正文

Source Code Fetching with opensrc

Use the repo-local opensrc dev dependency through Vite+:

vp exec opensrc fetch <package-or-repo>
vp exec opensrc path <package-or-repo>
rg "pattern" "$(vp exec opensrc path <package-or-repo>)"

Prefer fetch when setting up context and path when reading or searching source.

Examples:

vp exec opensrc fetch @modelcontextprotocol/sdk @ai-sdk/mcp
vp exec opensrc fetch github:modelcontextprotocol/use-mcp github:modelcontextprotocol/inspector
rg "client_id_metadata_document_supported" "$(vp exec opensrc path @modelcontextprotocol/sdk)"

Cached source lives under ~/.opensrc/. Do not vendor whole upstream repos into this project. If a file is copied into docs/reference/prior-art/, treat it as a curated snapshot and record the authoritative opensrc source path in docs/reference/opensrc-sources.md.

04 同仓库更多 Skills

WebMCP-org
WebMCP-org/agent-skills-ts-sdk

pizza-maker

Interactive pizza builder

★ 0
WebMCP-org
WebMCP-org/agent-skills-ts-sdk

zoom-out

Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.

★ 0
WebMCP-org
WebMCP-org/agent-skills-ts-sdk

writing

Use when writing or rewriting prose such as documentation, landing-page copy, release notes, blog posts, emails, memos, proposals, prompts, or UI text. Produces direct, specific writing with clear structure. Avoids filler, hype, generic transitions, self-reference, and stock "AI" phrasing.

★ 0
WebMCP-org
WebMCP-org/agent-skills-ts-sdk

write-a-skill

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

★ 0
WebMCP-org
WebMCP-org/agent-skills-ts-sdk

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

★ 0
WebMCP-org
WebMCP-org/agent-skills-ts-sdk

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

★ 0