Loading...
Loading...
Multi-repository codebase exploration. Research library internals, find code patterns, understand architecture, compare implementations across GitHub/npm/PyPI/crates. Use when needing deep understanding of how libraries work, finding implementations across open source, or exploring remote repository structure.
npx skill4agent add dmmulroy/.dotfiles librarian| File | Purpose | When to Read |
|---|---|---|
| Tool selection decision trees | Always read first |
| API reference, types | Writing opensrc code |
| JavaScript patterns, workflows | Implementation examples |
| GitHub URL patterns | Formatting responses |
| Mermaid patterns | Visualizing architecture |
tool-routing.mdopensrc-api.mdopensrc-examples.mdlinking.mddiagrams.md| Tool | Best For | Limitations |
|---|---|---|
| grep_app | Find patterns across ALL public GitHub | Literal search only |
| context7 | Library docs, API examples, usage | Known libraries only |
| opensrc | Fetch full source for deep exploration | Must fetch before read |
Known library?
├─ Yes → context7.resolve-library-id → context7.query-docs
│ └─ Need internals? → opensrc.fetch → read source
└─ No → grep_app search → opensrc.fetch top resultSpecific repo?
├─ Yes → opensrc.fetch → opensrc.grep → read matches
└─ No → grep_app (broad) → opensrc.fetch interesting repos1. opensrc.fetch(target)
2. opensrc.tree(source.name) → quick overview
3. opensrc.files(source.name, "**/*.ts") → detailed listing
4. Read: README, package.json, src/index.*
5. Create architecture diagram (see diagrams.md)1. opensrc.fetch(["X", "Y"])
2. Use source.name from results for subsequent calls
3. opensrc.grep(pattern, { sources: [nameX, nameY] })
4. Read comparable files, synthesize differencessource.nameconst [{ source }] = await opensrc.fetch("vercel/ai");
const files = await opensrc.files(source.name, "**/*.ts");| Type | Fetch Spec | Source Name |
|---|---|---|
| npm | | |
| npm scoped | | |
| pypi | | |
| crates | | |
| GitHub | | |
| GitLab | | |
| Scenario | Use Instead |
|---|---|
| Simple library API questions | context7 |
| Finding examples across many repos | grep_app |
| Very large monorepos (>10GB) | Clone locally |
| Private repositories | Direct access |
linking.mddiagrams.md