/librarian:librarianfrom librarian
Manage planning documents (ADRs, FDPs, action plans, reports) and logs. Use when creating, archiving, or listing planning docs, or adding a log entry. Enforces proper numbering and structure.
Ships in librarian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Manage planning documents with proper structure, numbering, and lifecycle.
| Type | Purpose | ID Format | Default Directory |
|---|---|---|---|
| ADR | Architecture Decision Record | ADR-001 | decisions/ |
| FDP | Feature Design Proposal | FDP-001 | designs/ |
| AP | Action Plan | AP-001 | action-plans/ |
| Report | Reports and analysis | RPT-001 | reports/ |
| Log | Dated entries, one file per thread | N/A | logs/<thread>.md |
| Roadmap | Project goals and vision | N/A | roadmap.md |
A project can retire a type (planning.retired). Its documents can still be read, given addenda, related, given a status, archived and listed; new.py and supersede.py refuse to create one.
This workspace has planning documents in multiple locations. Infer the correct --project-dir from conversational context.
| Location | Contents | When to use |
|---|---|---|
docs/planning/ (workspace root) | Cross-cutting ADRs, FDPs, APs, RPTs | Library architecture, shared infrastructure, DSP widgets |
sbl-apps/docs/planning/ | App-level FDPs, APs, product briefs | Davis family, app-specific designs |
sbl-apps/davis-jr/docs/planning/ | Product-specific reports | Davis Jr. tuning, gain staging |
tools/plugins/vibe-hacker/docs/planning/ | Tool ADRs, FDPs, APs | vibe-hacker plugin development |
Heuristics:
sbl-apps/tools/plugins/vibe-hacker/Pass the target via --project-dir:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py fdp "Title" --project-dir /absolute/path/to/sbl-apps
All documents have YAML frontmatter for structured metadata:
---
type: adr
id: ADR-001
status: proposed
created: 2025-12-13
modified: 2025-12-13
supersedes: null
superseded_by: null
obsoleted_by: null
related: []
---
# ADR-001: Title Here
## Status
Proposed
...content...
---
## Addenda
| Field | Description |
|---|---|
type | Document type (adr, fdp, ap, report) |
id | Display ID (ADR-001, FDP-002, etc.) |
status | Current lifecycle status |
created | ISO date of creation |
modified | ISO date of last modification |
supersedes | ID of document this replaces |
superseded_by | ID of document that replaced this |
obsoleted_by | ID or reason for obsolescence |
related | List of related document IDs |
Documents have an append-only addenda section at the bottom. This allows adding notes, clarifications, and updates to locked documents without modifying the original content.
Configure planning in .claude/vibe-hacker.json:
{
"planning": {
"subdirs": {
"adr": "decisions",
"fdp": "designs",
"ap": "action-plans",
"report": "reports"
},
"retired": [],
"archive_note": "A historical record."
},
"protected_paths": {
"planning_root": "docs/planning"
}
}
| Setting | Default | Description |
|---|---|---|
planning.subdirs.adr | decisions | Subdirectory for ADRs |
planning.subdirs.fdp | designs | Subdirectory for FDPs |
planning.subdirs.ap | action-plans | Subdirectory for Action Plans |
planning.subdirs.report | reports | Subdirectory for Reports |
planning.retired | [] | Type keys (adr, fdp, ap, report) that can no longer be created |
planning.archive_note | A historical record. | Closing sentence of the note archive.py leaves under an archived document's title |
protected_paths.planning_root | docs/planning | Root directory for all planning docs |
Use the librarian scripts when:
Numbered documents are created and renumbered through the scripts, which keep IDs, filenames, and frontmatter consistent.
The librarian manages only the configured document types and their subdirectories. Other folders under the planning root (for example sketchbooks, drafts, or temp) are outside it, and their contents are not converted into numbered documents unless the user asks.
Planning documents record what the user decided or approved. Your own proposals go in a clearly labeled section, such as "Suggestions (assistant, not yet approved)", until the user approves them.
All scripts are in ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py <type> "<title>" [--project-dir PATH]
Types: adr, fdp, ap, report. A type listed in planning.retired is refused.
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py adr "Use PostgreSQL for persistence"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py fdp "User Authentication System"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py ap "Implement login flow"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py report "Q4 Performance Analysis"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/new.py fdp "Davis Mixer" --project-dir /path/to/sbl-apps
Add notes or updates to any document, even locked ones:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/append.py <doc-id> "<title>" [--body "<content>"]
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/append.py ADR-001 "Performance Clarification"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/append.py ADR-001 "Migration note" --body "Use pg_dump for best results"
Create a new document that supersedes an existing one:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/supersede.py <old-doc-id> "<new-title>"
This will:
Example:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/supersede.py ADR-001 "Revised Database Strategy"
Link documents together:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/relate.py <doc-id> <related-ids...> [--bidirectional]
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/relate.py ADR-001 FDP-003
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/relate.py ADR-001 FDP-003 ADR-002 --bidirectional
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/update-status.py <doc-id> <new-status>
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/update-status.py ADR-001 accepted
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/update-status.py FDP-002 "in progress"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/update-status.py RPT-001 published
Valid statuses by type:
The status is written to the frontmatter and under the first ## Status heading. A Status paragraph that is only a status is replaced. A paragraph of prose is kept whole, and the status goes on a line of its own above it.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/archive.py <doc-id> [--project-dir PATH]
Archiving moves the document to archive/ and generates an ARCHIVE.md index in the type directory listing all archived documents. The archived document's status becomes archived, and a note goes under its title: the date, the status it had, and the sentence in planning.archive_note.
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/archive.py ADR-001
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/archive.py FDP-002
To rebuild the archive index without archiving a document:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/archive.py --regenerate-index [--type TYPE] [--project-dir PATH]
A log is one append-only file per thread at <planning_root>/logs/<thread>.md. It has no number, status or frontmatter. Each entry is a dated heading and a body.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/log.py <thread> "<title>" [--body "<content>"] [--project-dir PATH]
The first entry for a thread creates its file. --body - reads the body from stdin.
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/log.py davis "Step 6 listening" --body "Build: main a5c4f3d ..."
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/log.py davis "Step 6 listening" --body - < notes.md
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/edit.py <doc-id> [--force] [--quiet]
Checks if a document can be edited based on its status. Outputs the file path if editable.
Locked statuses (require --force to edit):
Tip: Use append.py to add an addendum instead of force-editing locked documents.
Show the live planning documents that need attention, in two lists: documents not in a terminal state, with brief summaries, and finished documents that have not been archived (status implemented, completed, abandoned, superseded, deprecated or obsoleted). Use this to show the user what's still open so they can decide what to archive, advance, or abandon.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/review.py [--type TYPE] [--project-dir PATH]
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/review.py # Review all open documents
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/review.py --type fdp # Review open FDPs only
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/review.py --project-dir /path/to/sbl-apps # Review app-level plans
Terminal statuses (excluded from review):
Documents with non-standard statuses (e.g., "Complete" instead of "Implemented") will show up — that's intentional, as it surfaces docs that need status cleanup.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/list.py [--type TYPE] [--status STATUS] [--include-archived]
Examples:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/list.py
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/list.py --type adr
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/list.py --type report
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/list.py --status proposed
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/list.py --include-archived
Moving a document to a final status (accepted, implemented, completed, published, superseded, deprecated, abandoned, obsoleted) and archiving it are separate steps, and both happen when the user decides. When update-status.py suggests archiving, pass the suggestion on to the user rather than running archive.py.
Proposed → Accepted → [Superseded | Deprecated]
Proposed → In Progress → [Implemented | Abandoned]
Active → [Completed | Abandoned]
Draft → Published → [Superseded | Obsoleted]
The roadmap is a single markdown file that looks forward:
It carries a > Last updated: YYYY-MM-DD line.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/librarian/scripts/init-roadmap.py
A PreCompact hook reminds you to check the roadmap before context compaction, while its Last updated date is within 30 days.
Planning documents are configured with protection rules:
readonly tier): Cannot be editedremind tier): Editable with a warning suggesting skill scriptsThe edit.py script provides additional validation based on document status.
Templates are in ${CLAUDE_PLUGIN_ROOT}/skills/librarian/templates/:
adr.md - Architecture Decision Recordfdp.md - Feature Design Proposalaction-plan.md - Action Planreport.md - Reportroadmap.md - Project RoadmapA template of the same name in <planning_root>/templates/ of the project takes precedence over the one shipped here.
The document templates include frontmatter and an addenda section. The FDP template's sections are Status, Goal, Context, Options (with a labeled recommendation), Questions, Steps and Done when.
scripts/append.py (opens in a new tab)scripts/archive.py (opens in a new tab)scripts/config.py (opens in a new tab)scripts/edit.py (opens in a new tab)scripts/frontmatter.py (opens in a new tab)scripts/init-roadmap.py (opens in a new tab)scripts/list.py (opens in a new tab)scripts/log.py (opens in a new tab)scripts/new.py (opens in a new tab)scripts/relate.py (opens in a new tab)scripts/review.py (opens in a new tab)scripts/supersede.py (opens in a new tab)scripts/update-status.py (opens in a new tab)templates/action-plan.md (opens in a new tab)templates/adr.md (opens in a new tab)templates/fdp.md (opens in a new tab)templates/report.md (opens in a new tab)templates/roadmap.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mjrskiles/vibe-hacker --plugin librarian