Skip to content
Skill

Librarian

Audits an AI agent library for duplicates, stale items, orphan references and quality

Librarian is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
154
Last commit
License
MIT
Listing updated

Similar skills

About Librarian

Librarian reviews a collection of agents, skills and templates kept in a Forge library and produces a structured review report. It loads the library index and usage log, then runs checks for near-duplicate items based on tag overlap, items unused for a set period, candidates for a higher quality tier, templates that reference missing agents, and overlap with core skills. It also checks whether cited research and quantitative claims trace back to a source index, and flags instructions that ask agents to narrate their reasoning or that pile up long rule lists.

The skill is designed to wait for approval before changing anything. Once the user approves specific recommendations, it can remove or archive items, update quality tiers, fix template role lists and log each change to the usage log. Thresholds such as 90 or 180 days and tag-overlap cutoffs are built into its workflow, and critical domains like security and compliance get longer staleness windows.

It expects a Forge library laid out with an index.json, a usage-log.jsonl and item files under a library folder. It works on the filesystem directly in Claude Code, while in Cowork or Claude.ai it only produces a report with manual steps for the user to apply.

When your agent uses it

Reviews, curates, and maintains the Forge library of agents, skills, and templates. Performs deduplication analysis, staleness detection, quality promotion, and orphan reference checking. Produces structured review reports with actionable recommendations for merging, archiving, or promoting library items. Use this skill when the user wants to review the library, clean up agents or skills, check what's available, find duplicates, trim unused items, see library statistics, or says "what's in my library?" Also triggers on scheduled review intervals or when the library grows beyond 20 items. Do NOT use for creating new agents (use Agent Creator), creating skills (use Skill Creator), or planning teams (use Mission Planner).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (34 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the forge plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add jdforsythe/forge
/plugin install forge@forge

Or copy only this skill to ~/.claude/skills/librarian:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jdforsythe/forge.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/librarian &&
cp -R "$tmp/skills/librarian" ~/.claude/skills/librarian &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/librarian inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/librarian to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jdforsythe/forge.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/librarian &&
cp -R "$tmp/skills/librarian" ~/.agents/skills/librarian &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/librarian inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/librarian to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jdforsythe/forge.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/librarian &&
cp -R "$tmp/skills/librarian" ~/.cursor/skills/librarian &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/librarian inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/jdforsythe/forge.git --path skills/librarian

Or copy the folder to ~/.gemini/skills/librarian yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/librarian:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jdforsythe/forge.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/librarian &&
cp -R "$tmp/skills/librarian" ~/.copilot/skills/librarian &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/librarian inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/jdforsythe/forge.git

Then copy forge/skills/librarian into your agent's skills folder as librarian. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Duplicate detection
Compares items of the same type by tag overlap and description similarity to flag merge candidates.
Staleness review
Flags items with no recent activity, with longer windows for critical domains.
Quality tier promotion
Recommends moving items to higher quality tiers based on recorded load counts and edits.
Orphan reference checks
Finds template roles that point to agents missing from the library index.
Evidence currency checks
Traces citations and numeric claims to a research source index and flags outdated guidance.
Approval-gated changes
Presents a report first and only edits index and item files after the user approves.

Good for

  • Find duplicate agents or skills in my library and suggest which to keep
  • Show which library items have not been used in the last 90 days
  • Check whether any templates reference agents that no longer exist
  • Recommend which agents are ready to move up a quality tier
  • Review library statistics by domain and quality tier

Librarian FAQ

What does Librarian need to run?

It needs a Forge library with an index.json file, a usage-log.jsonl file and item files under a library folder. Without usage data, staleness and promotion checks are limited to metadata.

Does Librarian change files automatically?

No. It presents a review report and waits for explicit user approval before modifying any files.

When does Librarian trigger?

It activates when the user asks to review the library, clean up agents or skills, find duplicates, or see library statistics, and also on scheduled review intervals or when the library grows beyond 20 items.

Does Librarian create new agents or skills?

No. Creating agents, skills or teams is handled by other Forge skills, which the description names as Agent Creator, Skill Creator and Mission Planner.

How do I install Librarian in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/librarian to use it in all your projects, or to .claude/skills/librarian in one project. Or install the forge plugin, which includes it: /plugin marketplace add jdforsythe/forge, then /plugin install forge@forge.

Does Librarian run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Librarian?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Librarian?

The closest alternatives to Librarian are Retro, Library selection, Harness review, Agent sort and Agent architecture audit.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from jdforsythe/forge

  1. Drafts structured agent definitions with role identity, vocabulary, SOPs and failure

    • Open source
    • 154 GitHub stars
    • Developer tools
  2. Breaks a goal into a single-agent plan or a small coordinated team blueprint

    • Open source
    • 154 GitHub stars
    • Productivity
  3. Guides an agent to draft new Claude Code skills with structured SKILL.md files

    • Open source
    • 154 GitHub stars
    • Developer tools