Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bjornmelin avatar

Opensrc

  • 5 installs
  • 5 repo stars
  • Updated August 5, 2026
  • bjornmelin/dev-skills

Opensrc is a Claude Code skill that fetches and inspects a dependency's local source via the opensrc CLI when docs and types are not enough.

About

Opensrc is a Claude Code skill that inspects the actual source code of a dependency using the opensrc CLI instead of relying only on docs and types. A developer invokes it when behavior, migration risk, or implementation internals matter, using commands like opensrc path and git diff between pinned versions. It supports npm, PyPI, crates.io, and Git repo sources and includes a dependency upgrade-audit workflow.

  • Pulls dependency and upstream source locally via the opensrc CLI for implementation-level inspection
  • Supports npm, PyPI, crates.io, and repo specs with pinned version diffs
  • Adds an upgrade-audit workflow that compares current vs target package versions

Opensrc by the numbers

  • 5 all-time installs (skills.sh)
  • Ranked #441 of 596 Debugging skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

opensrc capabilities & compatibility

Free; only needs the opensrc CLI, with optional GITHUB_TOKEN/GITLAB_TOKEN/BITBUCKET_TOKEN for private repos.

Capabilities
dependency audit · source inspection · version diff
Works with
github · gitlab · bitbucket
Use cases
refactoring · debugging · research
Pricing
Free
From the docs

What opensrc says it does

Use this skill when source-level dependency inspection materially changes the answer. Prefer docs and types first; pull source when behavior, migration risk, or implementation details matter.
SKILL.md
Use `opensrc path` when the next command needs a filesystem path:
SKILL.md
For npm/Bun dependency upgrades, if this helper exists, use it as the fast inventory layer before deeper source reasoning:
SKILL.md
npx skills add https://github.com/bjornmelin/dev-skills --skill opensrc

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs5
repo stars5
Last updatedAugust 5, 2026
Repositorybjornmelin/dev-skills

What it does

Inspect a dependency's real source when docs and types cannot answer a behavior or migration question.

Who is it for?

Source-level dependency inspection, migration-risk analysis, and package upgrade audits across npm, PyPI, and crates.

Skip if: Broad web research, release-note summaries, or simple API usage that official docs already resolve.

When should I use this skill?

Source-level dependency inspection materially changes the answer about behavior or migration.

What you get

Resolved current and target versions, exact local source paths used, and whether source inspection changed the conclusion.

  • resolved current and target versions
  • exact local source paths
  • hard-cut migration brief and verification checklist

By the numbers

  • 4 package spec ecosystems supported (npm, PyPI, crates.io, repos)
  • 3 private-repo auth tokens (GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN)

Files

SKILL.mdMarkdownGitHub ↗

Opensrc

Use this skill when source-level dependency inspection materially changes the answer. Prefer docs and types first; pull source when behavior, migration risk, or implementation details matter.

Core Workflow

1. Read the repo AGENTS.md and inspect relevant manifests and lockfiles. 2. Use the global opensrc binary. Fall back to bunx opensrc only if the binary is unavailable. 3. Use opensrc fetch when the goal is cache-only prep:

   opensrc fetch --cwd <repo-root> zod react next
   opensrc fetch <pkg>@<current_version> <pkg>@<target_version>

4. Use opensrc path when the next command needs a filesystem path:

   rg "pattern" "$(opensrc path zod)"
   cat "$(opensrc path zod)"/src/types.ts
   find "$(opensrc path pypi:requests)" -name "*.py"
   git diff --no-index "$(opensrc path <pkg>@<current>)" "$(opensrc path <pkg>@<target>)"

5. Cite exact versions and local source paths when source evidence affects the recommendation. 6. Use web/docs sources for release notes, API references, changelogs, and migration guides; use opensrc for implementation internals and source diffs.

Version Guardrails

  • opensrc 0.7.x caches globally at ~/.opensrc/; OPENSRC_HOME overrides it.
  • The cache key includes the resolved package version or repo ref. The main risk

is incorrect version resolution before fetch, not the global cache itself.

  • For npm packages, current upstream resolution checks node_modules, then

package-lock.json, pnpm-lock.yaml, yarn.lock, then package.json.

  • In Bun or workspace repos, use the workspace root as --cwd by default. If

node_modules may be stale, pin versions explicitly.

  • For upgrade work or ambiguity, inspect pinned versions:
  opensrc path pkg@current_version
  opensrc path pkg@target_version

Supported Specs

  • npm: zod, npm:zod
  • PyPI: pypi:requests, pip:requests, python:requests
  • crates.io: crates:serde, cargo:serde, rust:serde
  • repos: owner/repo, github:owner/repo, gitlab:owner/repo,

bitbucket:owner/repo, or full URLs

  • pinned refs: pkg@version, owner/repo@tag, owner/repo#branch
  • private repo auth: GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN

Upgrade Audits

For npm/Bun dependency upgrades, if this helper exists, use it as the fast inventory layer before deeper source reasoning:

deps-workbench upgrade-prep --cwd <repo-root> --package <pkg> --out <tmp.json>
deps-workbench report --input <tmp.json> --format md

Then compare current and target with official docs plus pinned source paths. Prefer package-native capabilities, delete obsolete wrappers/shims/adapters, and avoid dual-shape compatibility unless a real boundary requires it.

References

  • Read references/opensrc-cli-reference.md for exact CLI surface, cache model,

supported spec forms, auth env vars, and release deltas.

  • Read references/dependency-upgrade-audit.md for package upgrade, migration,

current-versus-target, or hard-cut audits.

Do Not Use For

  • broad web research that does not require source inspection
  • release-note summaries where docs alone answer the question
  • simple API usage questions that types and official docs already resolve

Output

Include the resolved current and target versions, exact local source paths used, and whether source inspection changed the conclusion. For upgrade work, include a concise hard-cut migration brief and verification checklist.

Related skills

FAQ

When should I use opensrc instead of reading docs?

Use it when behavior, migration risk, or implementation internals matter; prefer docs and types first and pull source only when it changes the answer.

Which package ecosystems does opensrc support?

npm, PyPI, crates.io, and Git repos (GitHub, GitLab, Bitbucket), including pinned versions, tags, and branches.

Debuggingbackendintegrationsdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.