Use this skill when capturing learnings from our work together, or when starting work that might benefit from past knowledge. Triggers on: memory, remember, what did we learn, library, save this, before planning, decisions.
View on GitHubskills/librarian/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/telvokdev/librarian/blob/main/skills/librarian/SKILL.md -a claude-code --skill librarianInstallation paths:
.claude/skills/librarian/# Librarian
We build a library together. Every insight worth remembering goes here.
## Tools
- `brief(query)` - Search our library with semantic search. Use before planning or when something feels familiar.
- `record(insight, ...)` - Save knowledge immediately when we learn something. One insight per call.
- `adopt(path)` - Copy imported entry to local (make it ours)
- `mark_hit(path)` - Track when an entry helps. Higher hits = higher ranking.
- `import_memories(format, path)` - Import from other AI tools (jsonl, markdown, cursor, json, sqlite)
- `rebuild_index()` - Rebuild semantic search index for legacy entries
## Workflow
### Before Thinking
Call `brief({ query: "relevant topic" })` to check what we already know. Also use when an issue comes up again or feels like something we solved before.
### During Work
Call `record()` immediately when we:
- Solve a problem (before moving to the next thing)
- Make a decision (capture the reasoning NOW)
- Hit a gotcha or mistake (it WILL come up again)
- Learn something non-obvious (context dies fast)
Don't wait. Don't batch. One insight = one record call. Multiple recordings in one response is fine.
### After Brief Helps
Call `mark_hit({ path: "..." })` when an entry from brief actually helped. This makes it rank higher next time.
## What to Record
**Yes:**
- Hard-won solutions (the "aha" moments)
- Gotchas, mistakes, and workarounds
- Patterns that worked
- Decisions and their reasoning
- Non-obvious learnings
**No:**
- Generic docs (search exists)
- Temporary fixes
- Things likely to change next week
## Entry Format
```markdown
# Title
Brief description of what this captures.
## Context
When/why this matters.
## The Insight
The actual knowledge.
## Example (optional)
Code or concrete illustration.
```
## Quality Bar
**"I wish we knew this yesterday"**
Good: "Stripe retries webhooks but doesn't dedupe - always check idempotency key"
Not for Librarian: "Redis is a key-value store." (Just a fact, not wisd