By rafaelkallis
Injects concise doc summaries into Claude Code sessions. Scans docs/ for markdown files with YAML frontmatter descriptions and provides a skill for writing token-efficient descriptions.
This skill should be used proactively whenever a doc in docs/ is created, updated, or has its description written -- whether by the user or by the agent as part of another task. Also use when the user asks to "create a doc", "add a new doc", "write a design record", "add a design decision", "update a doc", "update doc description", "document a decision", "initialize microdoc", "set up microdoc", "set up docs", "initialize docs", "backfill descriptions", or needs guidance on writing concise frontmatter descriptions.
This skill should be used when the user asks to "audit docs", "audit descriptions", "review doc descriptions", "check descriptions", "find stale descriptions", "find missing descriptions", or "validate docs".
Claude Code plugin that injects concise doc summaries into every session.
Claude Code doesn't automatically know about your project's documentation. You could paste full docs into context, but that wastes tokens. microdoc is a super simple RAG pipeline: your markdown docs are the knowledge base, YAML frontmatter descriptions are the index, and Claude reads the full doc on demand when it's relevant.
At session start, the plugin scans your docs, extracts short descriptions from frontmatter, and injects them as structured context. Claude then knows what documentation exists and can retrieve the full content when needed.
microdoc works out of the box -- install it, and any markdown file under docs/ with a description in its YAML frontmatter gets picked up automatically.
Add a description to your docs:
---
description: Document parsing. Chose Docling for PDF/DOCX. Plain read for txt/md.
---
At session start, microdoc injects a summary of all your docs into the context:
<microdoc source="microdoc plugin by Rafael Kallis">
<instructions>...</instructions>
<docs>
<doc path="docs/architecture/parsing.md">Document parsing. Chose Docling for PDF/DOCX. Plain read for txt/md.</doc>
<doc path="docs/deployment/staging.md">Staging environment. Docker Compose on EC2. Auto-deploy from main branch.</doc>
</docs>
</microdoc>
Claude sees this index and reads the full doc whenever a task overlaps with a description.
/microdoc-author -- Guides you through writing and maintaining frontmatter descriptions. Covers style, length, and what makes a description effective. Use it when adding or updating a doc./microdoc-audit -- Bulk-reviews all docs for missing or stale descriptions. Reports a summary table of issues and applies fixes only after your confirmation. Run it periodically to keep descriptions in shape.Add the marketplace and install the plugin:
/plugin marketplace add rafaelkallis/microdoc
/plugin install microdoc@microdoc
hooks/microdoc.mjs when a Claude Code session begins.docs/**/*.{md,mdc}) under your project directory.description field from each file's YAML frontmatter.No dependencies -- the hook uses Node.js stdlib only.
Set environment variables in .claude/settings.json under the env field, or export them in your shell.
| Variable | Default | Description |
|---|---|---|
CLAUDE_MICRODOC_GLOB | docs/**/*.{md,mdc} | Comma-separated glob patterns for doc files. Supports **, *, ?, {a,b}. |
CLAUDE_MICRODOC_DISABLED | (unset) | Set to 1 to disable the plugin for a project. |
Example with a custom glob:
{
"env": {
"CLAUDE_MICRODOC_GLOB": "documentation/**/*.md,design-records/**/*.md"
}
}
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub rafaelkallis/microdoc --plugin microdocDocumentation and authoring workflow router: audit docs vs code drift, sync docs after changes, optimize prompts and SKILL.md files, validate GLFM and Markdown formatting, summarize files/URLs/images with fidelity enforcement. Use when: docs are out of date, CLAUDE.md needs improving, SKILL.md needs optimizing, checking if documentation matches code, summarizing files or URLs.
Lightweight documentation memory for AI coding agents: scaffold a docs tree, validate it, and auto-load recent context each session.
Use this agent when you need to analyze a service or codebase component and create comprehensive documentation in CLAUDE.md files. This agent should be invoked after implementing new services, major refactoring, or when documentation needs updating to reflect the current codebase structure. Examples: <example>Context: The user has just implemented a new authentication service and wants to document it properly. user: 'I just finished implementing the auth service, can you document how it works?' assistant: 'I'll use the codebase-documenter agent to analyze the authentication service and create detailed documentation in CLAUDE.md' <commentary>Since the user has completed a service implementation and needs documentation, use the Task tool to launch the codebase-documenter agent to create comprehensive CLAUDE.md documentation.</commentary></example> <example>Context: The user wants to ensure a newly added API module is properly documented for the team. user: 'We need documentation for the new payment processing API I just added' assistant: 'Let me use the codebase-documenter agent to analyze the payment processing API and create proper documentation' <commentary>The user needs documentation for a new API module, so use the codebase-documenter agent to create CLAUDE.md files with setup instructions and architectural notes.</commentary></example>
llmdoc Claude Code plugin with init, update modes, temporary investigation cache, and use
Documentation generation, API docs, and README maintenance
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.