
documentation-plugin
Documentation plugin that generates, syncs, and PDF-converts docs while guarding against stale or leaked content.
- version
- 1.16.1
- GitHub stars
- 60
What it does
- Adds
/docs:sync,/docs:generate,/docs:decommission,/docs:latex,/docs:reference-check, and/docs:fetch-fallbackscommands for keeping project docs current - Covers API references, README and CHANGELOG generation, decommission checklists, and Markdown-to-LaTeX PDF conversion with TikZ diagrams
- Runs
public-repo-leak-gate.shon commits andghwrites to public repos, asking before publishing internal identifiers - Designed for teams maintaining shared or public docs that need links to a single source of truth and verified machine-read facts
Documentation generation - API docs, README, LaTeX PDF conversion
Add marketplace
/plugin marketplace add laurigates/claude-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install documentation-plugin@laurigates-claude-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceClaude Blog Sources
When to Use This Skill
| Use this skill when... | Use alternative when... |
|---|---|
| Researching Claude Code features and best practices | You already know the answer from existing documentation |
| Need latest updates on CLAUDE.md, @imports, memory hierarchy | Implementing known patterns without research needed |
| Staying current with Claude Code improvements | Just need to read local project documentation |
| Cross-referencing blog insights with official docs | Need general programming help unrelated to Claude |
Overview
The Anthropic Claude Blog (https://www.claude.com/blog/) publishes official guidance on Claude Code features, usage patterns, and best practices. This skill provides structured access to blog content for staying current with Claude capabilities.
Primary Sources
Official Documentation (preferred for technical details)
Claude Code Docs: https://code.claude.com/docs/en/
| Topic | URL | Description |
|---|---|---|
| Memory management | /docs/en/memory | CLAUDE.md, auto memory, @imports, rules hierarchy |
| Configuration | /docs/en/configuration | Settings, permissions, MCP servers |
| Hooks | /docs/en/hooks | Pre/post tool use hooks |
| Claude Code overview | /docs/en/overview | Getting started, features |
Use official docs as the authoritative reference. Blog posts supplement with patterns and examples.
Blog
Main Blog: https://www.claude.com/blog/
Note: May redirect to https://website.claude.com/blog - follow redirects automatically.
Key Articles for Claude Code
Essential Reading
| Article | URL | Topic |
|---|---|---|
| Using CLAUDE.md Files | /blog/using-claude-md-files | CLAUDE.md structure and best practices |
| How Anthropic Teams Use Claude Code | /blog/how-anthropic-teams-use-claude-code | Internal usage patterns and workflows |
| Claude Code on the Web | /blog/claude-code-on-the-web | Web-based features and capabilities |
Article Relevance Categories
High Relevance (always check):
- Articles mentioning "CLAUDE.md", "Claude Code", "Skills", "Agents"
- Articles about coding workflows, development practices
- Product announcements for Claude Code features
Medium Relevance (check if applicable):
- Articles about prompt engineering, context management
- Enterprise AI deployment patterns
- Integration guides (Slack, GitHub, etc.)
Research Workflow
When User Asks About Claude Code Features
-
Check Recent Articles First
WebSearch: site:claude.com/blog {feature_name} OR "Claude Code" -
Fetch Relevant Articles
WebFetch: https://www.claude.com/blog/{article-slug} Prompt: Extract practical guidance, examples, and best practices for {topic} -
Cross-Reference with Documentation
- Official docs: https://docs.claude.com/en/docs/claude-code/
- Compare blog insights with documentation
Monthly Article Review Process
For staying current with Claude improvements:
-
Fetch Blog Index
WebFetch: https://www.claude.com/blog/ Prompt: List all articles from the past month with titles, dates, and relevance to Claude Code -
Triage by Relevance
- High: Directly mentions Claude Code, CLAUDE.md, Skills, or Agents
- Medium: General AI coding patterns, prompt engineering
- Low: Unrelated topics (enterprise, safety research, etc.)
-
Extract Key Insights For high-relevance articles, extract:
- New features or capabilities
- Updated best practices
- Example patterns and workflows
- Configuration recommendations
-
Update Local Knowledge
- Consider updating relevant Skills with new patterns
- Update CLAUDE.md files with new best practices
- Create new Skills for newly documented features
CLAUDE.md Best Practices (from Blog + Official Docs)
Based on official documentation and blog posts:
Structure Guidelines
- Keep concise: Treat as documentation both humans and Claude need to understand quickly
- Strategic placement: Root for team-wide, parent dirs for monorepos, home folder for universal
- Use
@import: Reference existing docs with@path/to/file.mdinstead of duplicating content - Use
CLAUDE.local.md: Personal preferences go here (auto-gitignored), not in shared CLAUDE.md - Use
.claude/rules/: Path-specific rules withpathsfrontmatter for conditional loading
Memory Hierarchy
| Layer | Purpose | Managed by |
|---|---|---|
| CLAUDE.md | Team instructions (checked into git) | Developers |
| CLAUDE.local.md | Personal preferences (gitignored) | Individual |
| .claude/rules/ | Path-specific and domain rules | Developers |
| ~/.claude/rules/ | User-level rules (all projects) | Individual |
| Auto memory | Claude's own learnings | Claude (automatic) |
Essential Sections (team-shared)
- Project Overview: Brief summary, key technologies, architectural patterns
- Directory Map: Visual hierarchy showing key directories
- Standards & Conventions: Type hints, code style, naming conventions
- Common Commands: Frequently-used commands with descriptions
- Workflows: Standard approaches for different task types
- Tool Integration: MCP servers, custom tools with usage examples
What Auto Memory Handles (omit from CLAUDE.md)
- Current focus and work-in-progress context
- Key file relationships and navigation patterns
- Debugging insights and workarounds
- Personal preferences and habits
What to Avoid
- Sensitive information (API keys, credentials, connection strings)
- Excessive length (keep concise from context engineering perspective)
- Theoretical content not matching actual development reality
- Content that duplicates auto memory concerns
Evolution Strategy
- Start simple, expand deliberately
- Add sections based on real friction points
- Maintain as living document that evolves with codebase
- Use
@importto keep CLAUDE.md lean as the project grows
Delegation Pattern
When research requires deep investigation:
Use research-documentation agent for:
- Comprehensive blog article analysis
- Cross-referencing multiple sources
- Building knowledge summaries
Example delegation prompt:
"Research the Claude blog for articles about {topic} from the past 3 months.
Extract practical patterns and update recommendations. Focus on:
- New features or capabilities
- Changed best practices
- Concrete examples we can apply"
Recent Articles Checklist
Last reviewed: February 2026. Update this list monthly when reviewing new articles.
Official documentation worth checking (authoritative reference):
- /docs/en/memory - Memory management, CLAUDE.md, @imports, auto memory, rules hierarchy
- /docs/en/configuration - Settings, permissions, MCP servers
- /docs/en/hooks - Hook system for tool use events
Articles worth checking (sorted by relevance to Claude Code):
- /blog/using-claude-md-files - CLAUDE.md best practices
- /blog/how-anthropic-teams-use-claude-code - Internal usage patterns
- /blog/improving-frontend-design-through-skills - Skills feature
- /blog/claude-code-on-the-web - Web-based features
Integration with Other Skills
This skill complements:
- project-discovery: Use blog patterns for new codebase orientation
- blueprint-development: Apply latest CLAUDE.md best practices to PRDs
- multi-agent-workflows: Incorporate blog-recommended delegation patterns
Readme
Documentation Plugin
Documentation generation, synchronization, and knowledge management for Claude Code projects.
Overview
Comprehensive documentation tooling for generating API references, maintaining README files, synchronizing docs with codebase, creating decommission plans, converting Markdown to LaTeX PDFs, and keeping published docs honest — link to the single source of truth, verify machine-read facts, and recover failed doc fetches.
Skills
| Skill | Description |
|---|---|
/docs:sync | Synchronize documentation with actual skills, commands, and agents in codebase |
/docs:generate | Update project documentation from code annotations |
/docs:decommission | Generate comprehensive service decommission documentation |
/docs:latex | Convert Markdown documents to professional LaTeX with TikZ visualizations and compile to PDF |
/docs:reference-check | Flag markdown that names repo paths or relative links that no longer exist (check-doc-references.py); advisory or --strict, allowlist, chezmoi-aware |
/docs:fetch-fallbacks | Recover a failed or empty WebFetch: strip the query, raw.githubusercontent, gh api, docs source at a pinned tag, context7/WebSearch |
claude-blog-sources | Access Claude Blog for latest features, patterns, and best practices |
docs-single-source | Link docs to the single source of truth instead of restating it |
docs-claim-hygiene | Keep doc claims honest — write the command, not a moving reading; scope every measurement; a correction must reach the summaries, not only the argument |
docs-verify-machine-facts | Verify machine-read values (scutil, route, ifconfig, local config) against the authoritative IaC before publishing |
public-export-sanitization | Scan an internal-to-public export for leaked identifiers and repo-escaping links (check-public-export.sh), then genericize |
Hooks
| Hook | Event | Behaviour |
|---|---|---|
public-repo-leak-gate.sh | PreToolUse (Bash, GitHub MCP writes) | On git commit, gh pr/gh issue writes and GitHub MCP writes whose destination repo is public (or of unreadable visibility), scans the outbound text with check-public-export.sh and asks before publishing anything that matches an internal-identifier pattern. Silent for private, internal and local-only repos and for clean text. Opt out: CLAUDE_HOOKS_DISABLE_PUBLIC_LEAK_GATE=1. Design: ADR-0025 |
repo-visibility.sh resolves a repo's visibility through gh api with a 24 h cache (CLAUDE_REPO_VISIBILITY_TTL); the gate is its only caller.
Agents
| Agent | Description |
|---|---|
documentation | Generate documentation from code annotations and API references |
research-documentation | Perform documentation lookup and technical research |
Usage Examples
Sync Documentation
Keep your documentation in sync with the actual codebase:
# Sync all documentation
/docs:sync
# Sync only skills documentation
/docs:sync --scope skills
# Preview changes without modifying
/docs:sync --dry-run
Generate Project Documentation
Create comprehensive documentation from your code:
# Generate all documentation
/docs:generate
# Generate API reference only
/docs:generate --api
# Update README from code analysis
/docs:generate --readme
# Generate changelog from git history
/docs:generate --changelog
Create Decommission Plan
Generate a decommission checklist for a service:
/docs:decommission my-service-name
Creates DECOMMISSION-my-service-name.md with comprehensive checklists for:
- Infrastructure resources
- Data management
- Access and security
- DNS and networking
- Integration dependencies
- Monitoring cleanup
- Documentation archival
Convert Markdown to LaTeX PDF
Convert Markdown documents to professional, print-ready LaTeX PDFs with visualizations:
# Convert a roadmap document with visualizations
/docs:latex docs/ROADMAP.md --visualizations --report-type=roadmap
# Convert a project lifecycle report
/docs:latex docs/PROJECT_REPORT.md --report-type=lifecycle
# Generate LaTeX source only (no PDF compilation)
/docs:latex docs/DOCUMENT.md --no-compile
Produces professional documents with:
- TikZ timeline diagrams and charts
- Color-coded priority indicators
- Styled callout boxes (info, warning, success)
- Professional tables with booktabs
- Hyperlinked table of contents
Recover a Failed Doc Fetch
When a WebFetch returns 404/403 or times out, walk the fallback ladder instead of retrying the same URL:
/docs:fetch-fallbacks
Reads the failure signature and applies the matching fallback — strip the query string, rewrite to raw.githubusercontent.com, fall back to gh api repos/<owner>/<repo>/contents/<path>, then context7 or WebSearch. Stops at two attempts.
Catch Dangling Doc References
After a refactor moves or deletes files, find every doc still pointing at the old paths:
/docs:reference-check # advisory: STATUS=WARN, exit 0
/docs:reference-check --strict # CI gate: STATUS=ERROR, exit 1
Docs that describe another repo's layout, or immutable records such as ADRs, go in .doc-reference-allow. The skill also covers copying the script into a repo and wiring it as a pre-commit hook and a lint task.
Keep Published Docs Honest
Three reference skills load automatically while you write:
docs-single-source— link to the single source of truth rather than restating it, so the copy cannot driftdocs-claim-hygiene— write the command that takes a moving reading instead of the reading, scope every recorded measurement, and grep for a corrected claim across its summariesdocs-verify-machine-facts— check values read off your own host (ifconfig,scutil --dns,route get, local config) against the authoritative IaC before they reach shared docs
Workflow Integration
Documentation-First Development
- Create documentation before implementation
- Use
/docs:generateto extract API docs from code - Keep docs in sync with
/docs:syncafter changes - Research patterns with
claude-blog-sourcesskill - Link rather than duplicate (
docs-single-source) and verify host-read facts (docs-verify-machine-facts) before publishing
Service Lifecycle
- Deployment: Create decommission plan with
/docs:decommission - Development: Generate docs with
/docs:generate - Maintenance: Sync docs with
/docs:sync - Decommissioning: Follow the decommission checklist
Research Workflow
Use the research-documentation agent for:
- Finding up-to-date library documentation
- Searching implementation guides
- Retrieving technical specifications
- Comparing technologies
Companion Plugins
Works well with:
- project-plugin - For project initialization and structure
- git-plugin - For committing documentation changes
- testing-plugin - For documenting test strategies
- blog-plugin - For technical write-ups that can be converted to LaTeX
Installation
/plugin install documentation-plugin@laurigates-claude-plugins
License
MIT
Details
- Marketplace
- laurigates/claude-plugins
- Source
- documentation-plugin
- Author
- Lauri Gates
- Category
- Documentation
- License
- MIT
- Keywords
- documentation, docs, api-docs, readme
- Listed since
- Apr 7, 2026
More from laurigates/claude-plugins
All 52- evaluate-pluginv1.21.1
- feedback-pluginv1.16.3
- finops-pluginv1.4.7
- foundryvtt-pluginv1.6.4
- git-pluginv2.74.4
- github-actions-pluginv1.13.8
- health-pluginv1.24.9
- home-assistant-pluginv1.4.1
- hooks-pluginv2.22.3
- kernel-pluginv1.1.1
- kitty-pluginv2.0.0
- kubernetes-pluginv1.10.4
- langchain-pluginv1.5.10
- linux-pluginv1.1.1
- macos-pluginv2.0.1
- migration-patterns-pluginv1.7.1
- networking-pluginv1.4.3
- obsidian-pluginv1.3.8
- project-pluginv1.21.17
- prompt-engineering-pluginv1.1.4
- prose-pluginv1.4.5
- python-pluginv1.5.10
- reverse-engineering-pluginv1.1.0
- rust-pluginv1.9.1
Similar to documentation-plugin
More Technical Documentation
documentation-generatordavila7/claude-code-templates24.2K starsAutomated documentation generation with API docs, technical writing, and content management
doc-forgerohitg00/awesome-claude-code-toolkit2.8K starsDocumentation generation, API docs, and README maintenance
documentation-toolkitarmanzeroeight/fastagent-plugins29 starsComprehensive documentation toolkit for README generation, API documentation, and changelog management. Includes docs architect agent for strategic documentatio
code-documentationwshobson/agents42.8K starsDocumentation generation, code explanation, and technical writing with automated doc generation and tutorial creation
documentation-generationHermeticOrmus/LibreUIUX-Claude-Code126 starsOpenAPI specification generation, Mermaid diagram creation, tutorial writing, API reference documentation