librarian
Skill29 starsChanged 7 months agoMITView on GitHub
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.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- lonlydwolf/skillstheir own version, first seen Oct 3, 2026
- Seanathon/vault-startertheir own version, first seen Sep 28, 2026
- therealtinhtute/mono-harnesstheir own version, first seen Sep 27, 2026
- jpeakai/skillstheir own version, first seen Sep 8, 2026
- iancleary/skillstheir own version, first seen Sep 7, 2026
- ivanrvpereira/.agentstheir own version, first seen Aug 27, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- TechNickAI/openclaw-config★ 76same name
- ngmeyer/librarian-mcp★ 32same name
- ivanrvpereira/.agents★ 18same name
- ajshedivy/ibmi-agent-skills★ 4same name
- therealtinhtute/mono-harness★ 4same name
- iancleary/skills★ 1same name
- Lynricsy/Oh-My-ClaudeCode★ 1same name
- skills-agents-co/skills-and-agents-library★ 1same name
- SVerITG/Metis_PH★ 1same name
- aithos-rr/aithos-selection★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- broSkill
- build-skillSkill
- cloudflareSkill
- cold-emailSkill
- composio-cliSkill
- copywritingSkill
- diff-walkthroughSkill
- emailsSkill
- frontend-designSkill
- grill-meSkill
- grill-with-docsSkill
- howSkill
- improve-codebase-architectureSkill
- index-knowledgeSkill
- install-skillSkill
- jira-toolSkill
- prospectingSkill
- repo-walkthroughSkill
- spec-plannerSkill
- teachSkill
- timesharingSkill
- tmuxSkill
- unslopSkill
- using-git-worktreesSkill
- whySkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Read opensrc-api.md for API details
- Very specific: line 33
Read opensrc-examples.md for patterns
- Distinctive: line 111
Comprehensive final message: - only last message returns to main agent
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Librarian Skill
Deep codebase exploration across remote repositories.
How to Use This Skill
Reference Structure
| File | Purpose | When to Read |
tool-routing.md | Tool selection decision trees | Always read first |
opensrc-api.md | API reference, types | Writing opensrc code |
opensrc-examples.md | JavaScript patterns, workflows | Implementation examples |
linking.md | GitHub URL patterns | Formatting responses |
diagrams.md | Mermaid patterns | Visualizing architecture |
Reading Order
- Start with
tool-routing.md→ choose tool strategy - If using opensrc:
- Read
opensrc-api.mdfor API details - Read
opensrc-examples.mdfor patterns
- Read
- Before responding:
linking.md+diagrams.mdfor output formatting
Tool Arsenal
| 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 |
Quick Decision Trees
"How does X work?"
Known library?
├─ Yes → context7.resolve-library-id → context7.query-docs
│ └─ Need internals? → opensrc.fetch → read source
└─ No → grep_app search → opensrc.fetch top result"Find pattern X"
Specific repo?
├─ Yes → opensrc.fetch → opensrc.grep → read matches
└─ No → grep_app (broad) → opensrc.fetch interesting repos"Explore repo structure"
1. 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)"Compare X vs Y"
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 differencesCritical: Source Naming Convention
After fetching, always use source.name for subsequent calls:
const [{ source }] = await opensrc.fetch("vercel/ai");
const files = await opensrc.files(source.name, "**/*.ts");| Type | Fetch Spec | Source Name |
| npm | "zod" | "zod" |
| npm scoped | "@tanstack/react-query" | "@tanstack/react-query" |
| pypi | "pypi:requests" | "requests" |
| crates | "crates:serde" | "serde" |
| GitHub | "vercel/ai" | "github.com/vercel/ai" |
| GitLab | "gitlab:org/repo" | "gitlab.com/org/repo" |
When NOT to Use opensrc
| 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 |
Output Guidelines
- Comprehensive final message - only last message returns to main agent
- Parallel tool calls - maximize efficiency
- Link every file reference - see
linking.md - Diagram complex relationships - see
diagrams.md - Never mention tool names - say "I'll search" not "I'll use opensrc"
References
- Tool Routing Decision Trees
- opensrc API Reference
- opensrc Code Examples
- GitHub Linking Patterns
- Mermaid Diagram Patterns
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

