librarian

librarian is a skill for Claude Code, Codex from JetBrains/thinkrail. It costs 71 tokens per session (1,925 once invoked), scanned A, original, Apache-2.0.

A research procedure for answering questions about open-source libraries with evidence from their source code and links to the relevant GitHub lines. It chooses different search methods for usage questions, implementation details, and project history.

In plain words
What is it for?
Use it to explain how a library works, find why a change happened, show implementation details, or provide authoritative references.
Why use it?
It reduces unsupported explanations by tying claims to actual code, documentation, commits, or issues. It also helps investigate large libraries systematically.

Skill for Claude CodeCodex ✓ vendor

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

Good fit Use it to explain how a library works, find why a change happened, show implementation details, or provide authoritative references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jetbrains/thinkrail/librarian
About the project

JetBrains/thinkrail is a desktop and mobile client that embeds the pi coding agent inside an interface for editing code and managing development workspaces. Developers use it to work on Git repositories through separate worktrees, a Monaco editor, terminals, Git views, specifications, and concurrent agent sessions. The catalogue entries are skills and instructions for its agent-based development workflow.

JetBrains/thinkrail · 8,500 stars · on GitHub · thinkrail.ai

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 JetBrains/thinkrail --skill librarian
Clone the repo
git clone --depth 1 https://github.com/JetBrains/thinkrail

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/jetbrains/thinkrail/librarian/github.svg)](https://agentmods.dev/skills/jetbrains/thinkrail/librarian)
Your own site
<a href="https://agentmods.dev/skills/jetbrains/thinkrail/librarian"><img src="https://agentmods.dev/badge/skills/jetbrains/thinkrail/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/jetbrains/thinkrail/librarian"><img src="https://agentmods.dev/badge/skills/jetbrains/thinkrail/librarian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,925 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.00071 $0.01925
Opus 5.5 $0.00028 $0.00770
Sonnet 5.5 $0.00014 $0.00385
Haiku 4.5 $0.00007 $0.00193

Measured 17d ago against content hash 43d88c8d11d4, 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 17d 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.

thinkrail-extensions/web-access/skills/librarian/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Librarian

Answer questions about open-source libraries by finding evidence with GitHub permalinks. Every claim backed by actual code.

Execution Model

Pi runs the independent tool calls of one turn concurrently, and batching them saves LLM round-trips (~5-10s each). Use these patterns:

Pattern When Actually parallel?
Batch tool calls in one turn Independent ops (web_search + fetch_content + read) Yes, and saves round-trips
fetch_content({ urls: [...] }) Multiple URLs to fetch Yes (3 concurrent)
Bash with & + wait Multiple git/gh commands Yes (OS-level)

Step 1: Classify the Request

Before doing anything, classify the request to pick the right research strategy.

Type Trigger Primary Approach
Conceptual "How do I use X?", "Best practice for Y?" web_search + fetch_content (README/docs)
Implementation "How does X implement Y?", "Show me the source" fetch_content (clone) + code search
Context/History "Why was this changed?", "History of X?" git log + git blame + issue/PR search
Comprehensive Complex or ambiguous requests, "deep dive" All of the above

Step 2: Research by Type

Conceptual Questions

Batch these in one turn:

  1. web_search: "library-name topic" for recent articles and discussions
  2. fetch_content: the library's GitHub repo URL to clone and check README, docs, or examples

Synthesize web results + repo docs. Cite official documentation and link to relevant source files.

Implementation Questions

The core workflow -- clone, find, permalink:

  1. fetch_content the GitHub repo URL -- this clones it locally and returns the file tree after Repository cloned to: <path>; that path is the clone, use it for every step below
  2. Use bash to search the cloned repo: grep -rn "function_name", find . -name "*.ts"
  3. Use read to examine specific files once you've located them
  4. Get the commit SHA: cd <clone path> && git rev-parse HEAD
  5. Construct permalink: https://github.com/owner/repo/blob/<sha>/path/to/file#L10-L20

Read the full file on GitHub · 196 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 17d ago First seen · 196 lines · 71 tokens per session scan A 43d88c8d11d4

Subscribe to this mod's changes

librarian is a skill published in the GitHub repository JetBrains/thinkrail (8,500 stars, last pushed yesterday), licensed Apache-2.0. It adds 71 tokens to every session and 1,925 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-11-13.

Related

librarian compared with skills from other repositories

librarian next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
librarianJetBrains/thinkrailSkill8.5kyesterdayApache-2.0A71Claude Code, Codex
nexent-daily-testModelEngine-Group/nexentSkill6.3kyesterdayMITA78Claude Code, Codex
bello-config-advisorMakson179/BelloSkill4512d agoMITA76Claude Code, Codex
skillpack-creatorCreminiAI/skillpackSkill1.2k2mo agoMITA67Codex
skill-creatorCreminiAI/skillpackSkill1.2k2mo agoMITA64Claude Code, Codex
vigilante-create-issuealiengiraffe/vigilanteSkill4212d agoApache-2.0A25Codex
bmad-specalvin-reyes/better-agentic-ideSkill3811d agoMITA76Claude Code