librarian

Analyze and refactor prose in markdown documentation for semantic organization and consistency.

12|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/aidanmorgan/token-bonfire --skill librarian-aidanmorgan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: librarian
Source: https://github.com/aidanmorgan/token-bonfire/tree/main/.claude/skills/librarian
Command: npx skills add https://github.com/aidanmorgan/token-bonfire --skill librarian-aidanmorgan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill tackles the chaos of scattered, contradictory, or poorly organized documentation by analyzing the prose content to create a semantically coherent and logically structured knowledge base.

Core Features & Use Cases

  • Semantic Organization: Reorganizes documentation based on conceptual affinity, ensuring related ideas are grouped together.
  • Contradiction Elimination: Identifies and helps resolve conflicting explanations across different documents.
  • Fragmentation & Mixing Detection: Finds explanations split across multiple files or unrelated topics crammed into one.
  • Use Case: Imagine a large project with hundreds of markdown files. This Skill can identify that the explanation for "agent delegation" is spread across three files and suggest consolidating it into a single, authoritative document, while ensuring all other references are updated.

Quick Start

Run the librarian skill to refactor the documentation in the '.claude/docs/' directory.

Frequently Asked Questions about librarian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I consolidate scattered documentation into a single coherent knowledge base?

Documentation consolidation requires analyzing prose content to group related concepts together, resolving semantic contradictions, and ensuring referential integrity across all markdown files to create a logically organized knowledge base.

What is semantic organization for markdown documentation?

Semantic organization analyzes prose content to group related ideas by conceptual affinity rather than file location. It identifies explanations split across multiple files and unrelated topics crammed into one document, then refactors them into topically coherent markdown files.

How do I find and resolve contradictions across multiple markdown files?

Finding contradictions involves analyzing prose content across a specified documentation path to identify conflicting explanations. The process detects semantic inconsistencies between files and helps consolidate them into a single authoritative document while updating all related references.

Can I refactor documentation organization without breaking internal links?

Refactoring documentation organization maintains referential integrity by detecting and updating links when consolidating scattered explanations or separating mixed topics. It ensures all markdown file references remain valid after restructuring content by concept instead of file structure.

Does documentation refactoring work on large projects with hundreds of markdown files?

Documentation refactoring operates on any specified directory path, making it suitable for large projects with hundreds of markdown files. It analyzes prose content at scale to detect fragmentation, mixed topics, and semantic contradictions across the entire knowledge base.