Brewdoc Overview
Brewdoc is a documentation toolkit plugin (a set of utilities for working with documents) for Claude Code. It keeps documentation in sync with the codebase, optimizes content for LLM consumption, and exports documents to ready-made formats.
Installation
Install prompt
Execute these commands in this Claude Code session, one by one, show full output for each, do not skip any, do not summarize:
1. claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode
2. claude plugin install brewdoc@claude-brewcode
After all commands succeed, run `/reload-plugins`. If `/reload-plugins` is unavailable, tell me to type `exit` and run `claude` again. Run the commands now. Install the entire suite:
Install prompt
Execute these commands in this Claude Code session, one by one, show full output for each, do not skip any, do not summarize:
1. claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode
2. claude plugin install brewcode@claude-brewcode
3. claude plugin install brewdoc@claude-brewcode
4. claude plugin install brewtools@claude-brewcode
5. claude plugin install brewui@claude-brewcode
After all commands succeed, run `/reload-plugins`. If `/reload-plugins` is unavailable, tell me to type `exit` and run `claude` again. Run the commands now. Skills (recipes)
Brewdoc contains 6 skills, each handling a separate documentation task.
Auto-Sync
Synchronize documentation (labels) with code. Detects outdated files through INDEX, launches parallel agents for updates. Supports project, global, file, and folder modes.
My-Claude
Generate documentation about your Claude Code installation. Three modes: internal (local configuration), external (hooks and context architecture), research (search across forums, GitHub, marketplaces).
Memory
Interactive optimization of memory files (CLAUDE.md and MEMORY.md). 4 steps: remove duplicates, migrate to rules, compress, validate.
md-to-pdf
Convert Markdown to professional PDF. Two engines: reportlab (lightweight) and weasyprint (full CSS support). Style customization, test mode, LLM preprocessing.
Publish
Publish text, markdown, JSON, or files to brewpage.app. Interactive namespace and password selection. Owner token saved locally for later delete.
Guide
Interactive tutorial for the full plugin suite. 9 topics across 3 domains, progress tracking, multilingual support.
Commands
| Command | Purpose | Model | Arguments |
|---|---|---|---|
/brewdoc:auto-sync | Synchronize documentation with code | opus | [status] | [init <path>] | [global] | [path] |
/brewdoc:my-claude | Generate documentation about Claude Code installation | opus | [ext [context]] | [r <query>] |
/brewdoc:memory | Optimize memory files in 4 steps | opus | β |
/brewdoc:md-to-pdf | Convert Markdown to PDF | sonnet | <file.md> [--engine name] ["prompt"] | styles | test |
/brewdoc:publish | Publish to brewpage.app β returns public URL | haiku | <text|file|json> [--ttl N] |
/brewdoc:guide | Interactive tutorial for the plugin suite | haiku | [topic] |
My-Claude
The /brewdoc:my-claude skill now has a dedicated page with full documentation.
Architecture
Brewdoc has a minimal architecture compared to Brewcode:
brewdoc/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest
βββ hooks/
β βββ hooks.json # 1 hook (Pre-Task)
β βββ pre-task.mjs # BD_PLUGIN_ROOT injection
β βββ lib/utils.mjs # I/O utilities
βββ skills/
β βββ auto-sync/ # Documentation sync
β βββ my-claude/ # Installation documentation
β βββ memory/ # Memory optimization
β βββ md-to-pdf/ # PDF conversion
β βββ publish/ # brewpage.app publishing
β βββ guide/ # Interactive tutorial
βββ agents/
βββ bd-auto-sync-processor # File processing agent
The single hook pre-task.mjs injects the BD_PLUGIN_ROOT variable into subagent prompts
so they can locate the pluginβs instruction files. Skills in the main conversation use
${CLAUDE_SKILL_DIR} to access their own files.
Brewdoc vs Brewcode
Brewdoc is a set of documentation utilities: sync, memory optimization, PDF export. Each skill is self-contained and independent of the others.
Brewcode is a task execution engine with infinite context, 9 lifecycle hooks, KNOWLEDGE.jsonl, and a session handoff mechanism.
Both plugins install from the same claude-brewcode marketplace but operate independently.
Latest Release
Download, changelog, and installation instructions.
Installation Guide
Full setup, update, and troubleshooting instructions.
View on GitHub
Source code, README, and configuration files.