Skip to main content

opensrc

Fetch npm package source code for implementation analysis. Use when types/docs aren't enough and you need to understand HOW a library works internally.

インストールへ移動

ソース情報

リポジトリ
andreasasprou/agent-skills
ソースの最終更新活動
2026年1月8日 10:15
検出された SKILL.md の言語
英語
スター
7
フォーク
3

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
opensrc
description
Fetch npm package source code for implementation analysis. Use when types/docs aren't enough and you need to understand HOW a library works internally.
allowed-tools
["Bash","Read","Glob","Grep"]
# opensrc Fetch npm package source code locally when you need to understand implementation details. ## When to Use - Debugging unexpected library behavior - Understanding internal patterns before extending a library - Types/docs are insufficient ## Commands ```bash # Fetch package(s) npx opensrc <package> npx opensrc ai zod @anthropic-ai/sdk # Check what's fetched cat opensrc/sources.json # Clean up when done rm -rf opensrc/<package> ``` ## Exploration Pattern ```bash # 1. Fetch npx opensrc ai # 2. Check structure (many are monorepos) ls opensrc/ai/packages/ # 3. Find what you need grep -r "functionName" opensrc/ai/src/ # 4. Read the implementation # (use Read tool) # 5. Clean up rm -rf opensrc/ai ``` ## Tips - **Check `sources.json` first** - don't re-fetch what's already there - **Target specific files** - don't read entire packages - **Monorepos**: Check `packages/` directory for subpackages - **Clean up** - source code takes disk space, remove when done ## Common Packages | Package | Structure | |---------|-----------| | `ai` | Monorepo: `packages/anthropic/`, `packages/openai/`, etc. | | `@anthropic-ai/sdk` | Single package: `src/` | | `zod` | Single package: `src/types/` |
GitHubで見る