smithery.ai

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.

First seen Mar 24, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Glob, Grep

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,454 B
  • docs SUMMARY.md 166 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

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

# 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

# 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/