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 $0.00039 $0.00151
Sonnet 5 $0.00016 $0.00060
Haiku 4.5 $0.00008 $0.00030

Measured 10d ago against content hash d270cd70b029, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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. 10d 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 (5 stars, last pushed 17d ago), licensed MIT. It adds 79 tokens to every session and 301 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

doc-reader

Read any common document/data file — PDF, Word (.docx), Excel (.xlsx/.xls), PowerPoint (.pptx), images (OCR), CSV/TSV, plain text, JSON/YAML/TOML, HTML/XML, and most source-code files. Use the readdocument tool.

HKUDS/Vibe-Trading · 65 tokens

patent-reader

A plain-language reader for Chinese patents that turns a publication number or PDF into notes, diagrams, and an Obsidian entry. Obsidian is a note-taking app that stores linked Markdown files.

handsomestWei/patent-disclosure-skill · 31 tokens

oma-pdf

Convert PDF files to Markdown using opendataloader-pdf. Extracts text, tables, headings, lists, and images with correct reading order. Use for PDF parsing, PDF to Markdown conversion, document extraction, and AI-ready data preparation.

first-fluke/oh-my-agent · 52 tokens

pandic-office

Convert Markdown to PDF (or DOCX/EPUB/HTML) using the pandoc CLI. Use when asked to produce a PDF report, brief, summary, or any document where the input is Markdown and the output should be a polished, paginated file.

Team-Commonly/commonly · 59 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

mateaix/mateclaw · 92 tokens