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.
npx claudepluginhub andreasasprou/agent-skills --plugin opensrcThis skill is limited to using the following tools:
Fetch npm package source code locally when you need to understand implementation details.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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/ |