From opensrc
Fetches npm package source code locally for implementation analysis when types/docs are insufficient. Use to debug library behavior, explore monorepos, grep files, and read internals.
How this skill is triggered — by the user, by Claude, or both
Slash command
/opensrc:opensrcThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Fetch npm package source code locally when you need to understand implementation details.
Fetch npm package source code locally when you need to understand implementation details.
# 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>
# 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
sources.json first - don't re-fetch what's already therepackages/ directory for subpackages| Package | Structure |
|---|---|
ai | Monorepo: packages/anthropic/, packages/openai/, etc. |
@anthropic-ai/sdk | Single package: src/ |
zod | Single package: src/types/ |
npx claudepluginhub andreasasprou/agent-skills --plugin opensrcRetrieves code context summaries, API docs, and examples from GitHub repos, npm/pip libraries, code searches, and clones using isolated agents.
Uses GitHits CLI to search canonical open-source examples, indexed source code, documentation, and perform grep, file listing, and code navigation. Activates when verifying library behavior from source or examples.