# Librarian

> Librarian is an open-source agent skill for developer tools. Audits an AI agent library for duplicates, stale items, orphan references and quality. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/jdforsythe/forge/tree/master/skills/librarian
- **Repository:** https://github.com/jdforsythe/forge
- **GitHub stars:** 154
- **License:** MIT
- **Skill name:** librarian
- **Collection:** https://github.com/jdforsythe/forge
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-12-01

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/jdforsythe/forge/tree/HEAD/skills/librarian)
- [License: MIT](https://github.com/jdforsythe/forge/tree/HEAD/skills/librarian)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Retro](https://ai-powered.com/skills/retro-mattpocock): Retro is an open-source agent skill for developer tools.
- [Library selection](https://ai-powered.com/skills/library-selection): Library selection is an open-source agent skill for developer tools.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.
- [Agent sort](https://ai-powered.com/skills/agent-sort): Agent sort is an open-source agent skill for developer tools.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review): Code review is an open-source agent skill for developer tools.
- [Thermo nuclear code quality review](https://ai-powered.com/skills/thermo-nuclear-code-quality-review-michael-denyer): Thermo nuclear code quality review is an open-source agent skill for developer tools.
- [Deslop](https://ai-powered.com/skills/deslop): Deslop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/librarian-jdforsythe
