skills/opensrc/SKILL.md
Inspect dependency/upstream source with opensrc CLI. Trigger for implementation beyond docs/types, package internals, source paths, version diffs, upgrade audits, npm/PyPI/crates/repo source. Avoid general web or release-note-only tasks.
npx skillsauth add bjornmelin/dev-skills opensrcInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
AGENTS.md and inspect relevant manifests and lockfiles.opensrc binary. Fall back to bunx opensrc only if the
binary is unavailable.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>
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>)"
opensrc for implementation internals and source
diffs.opensrc 0.7.x caches globally at ~/.opensrc/; OPENSRC_HOME overrides it.node_modules, then
package-lock.json, pnpm-lock.yaml, yarn.lock, then package.json.--cwd by default. If
node_modules may be stale, pin versions explicitly.opensrc path pkg@current_version
opensrc path pkg@target_version
zod, npm:zodpypi:requests, pip:requests, python:requestscrates:serde, cargo:serde, rust:serdeowner/repo, github:owner/repo, gitlab:owner/repo,
bitbucket:owner/repo, or full URLspkg@version, owner/repo@tag, owner/repo#branchGITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKENCompare 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/opensrc-cli-reference.md for exact CLI surface, cache model,
supported spec forms, auth env vars, and release deltas.references/dependency-upgrade-audit.md for package upgrade, migration,
current-versus-target, or hard-cut audits.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.
development
Pre-PR multi-model review, parallel opus and codex exec adversarial lanes, then adversarial verification of merged findings. Read-only. Use before shipping nontrivial diffs.
tools
Independent gpt-5.6 diff review via the Codex CLI, normal or steerable adversarial with JSON findings. Use before shipping nontrivial changes.
development
Delegate implementation, investigation, or bulk work to gpt-5.6 codex via pinned codex exec. Use for clear-spec builds, migrations, debugging, or any task MODELS.md routes to codex.
development
Adversarial pre-mortem: imagine the plan failed, work backwards to surface risky assumptions + irreversible bets, then harden them. Proactively offer it (after the current request; confirm first) before a hard-to-reverse or one-way-door call (API, schema, framework, a hire), an all-upside plan, or unvalidated assumptions. Also on request.