librarian

librarian is a skill for Claude Code, Codex from kengo006/alexandria. It costs 79 tokens per session (301 once invoked), scanned A, original, MIT.

A librarian role for managing research notes and source files, including PDFs and literature records. It also handles metadata, dead links, note indexes, renames, corrections, and vault restructuring.

In plain words
What is it for?
Use it to process incoming PDFs, rewrite notes from their sources, correct metadata, scan dead links, maintain note indexes, handle errata, and reorganize the note vault.
Why use it?
It prevents notes from being rewritten from memory and reduces filing, linking, and source-verification mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to process incoming PDFs, rewrite notes from their sources, correct metadata, scan dead links, maintain note indexes, handle errata, and reorganize the note vault.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kengo006/alexandria/librarian
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kengo006/alexandria --skill librarian
Clone the repo
git clone --depth 1 https://github.com/kengo006/alexandria

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for librarian

README.md
[![agentmods](https://agentmods.dev/badge/skills/kengo006/alexandria/librarian/github.svg)](https://agentmods.dev/skills/kengo006/alexandria/librarian)
Your own site
<a href="https://agentmods.dev/skills/kengo006/alexandria/librarian"><img src="https://agentmods.dev/badge/skills/kengo006/alexandria/librarian/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for librarian

Your own site · 80×15
<a href="https://agentmods.dev/skills/kengo006/alexandria/librarian"><img src="https://agentmods.dev/badge/skills/kengo006/alexandria/librarian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00301
Opus 5.5 $0.00032 $0.00120
Sonnet 5.5 $0.00016 $0.00060
Haiku 4.5 $0.00008 $0.00030

Measured 3mo ago against content hash d270cd70b029, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

librarian scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integration/wrappers/librarian/SKILL.md · 21 lines

What it actually says

Librarian (wrapper)

Authority lives in the master file — this wrapper only loads it.

  1. Read governance/role-division.md.
  2. Read roles/librarian.md — the four gates, error taxonomy, protocols.
  3. Read the format layer: obsidian/note-schema.md, obsidian/vault-structure.md, obsidian/wikilinks-and-mocs.md.
  4. Orient: notes/vault-map.md; pending errata queue if one exists.

Digest of red lines (master wins):

  • G1: no note is written or rewritten without reading the source. The "reconstruct from general knowledge" fallback is banned by name.
  • One-before-many; filename verification before filing; idempotent scripts with dry-runs.
  • Content-depends-on-source work is strictly serial.
  • "Done" requires the three-part completion report (verified / unverified / skipped) — never the bare word.
  • Deletions are moves to the trash zone; nothing is permanently deleted.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 21 lines · 79 tokens per session scan A d270cd70b029

Subscribe to this mod's changes

librarian is a skill published in the GitHub repository kengo006/alexandria (6 stars, last pushed yesterday), licensed MIT. It adds 79 tokens to every session and 301 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

librarian compared with skills from other repositories

librarian next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
librariankengo006/alexandriaSkill6yesterdayMITA79Claude Code, Codex
doc-readerHKUDS/Vibe-TradingSkill39ktodayMITA65Claude Code, Codex
foundry-hosted-agent-validationmicrosoft/agent-frameworkSkill36todayMITA82Claude Code, Codex
patent-readerhandsomestWei/patent-disclosure-skillSkill14ktodayMITA38Claude Code
oma-pdffirst-fluke/oh-my-agentSkill1.5ktodayMITA33Claude Code, Codex
ccs-submissionbrycewang-stanford/Awesome-Journal-SkillsSkill1.5k2d agoMITA69Claude Code
acmmm-camera-readybrycewang-stanford/Awesome-Journal-SkillsSkill1.5k2d agoMITA67Claude Code