agent-sources
Installation
SKILL.md
Agent sources
Types and docs say what an API accepts. The source and its tests say what it does. Read the source at the installed version.
A source that AGENTS.md already names for a library comes first; this skill covers everything else and whatever those leave open.
1. Pin the version
Read the version the importing workspace resolves:
jq -r .version <workspace>/node_modules/<pkg>/package.json
Read it from the workspace, not the root: a package manager store (Bun's, pnpm's) can hold several versions of one package. Done when you hold one exact version string.
2. Open the matching source
Upstream clones live in .agent-sources/<name>. .git/info/exclude keeps that folder out of git; it is local reference, and the app imports only from node_modules.