New advertisers: 50% off your first month with code FIRSTMONTHSee slots
laurigates avatar

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
View on GitHub

What it does

  • Adds /docs:sync, /docs:generate, /docs:decommission, /docs:latex, /docs:reference-check, and /docs:fetch-fallbacks commands 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.sh on commits and gh writes 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-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install documentation-plugin@laurigates-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Claude Blog Sources

When to Use This Skill

Use this skill when...Use alternative when...
Researching Claude Code features and best practicesYou already know the answer from existing documentation
Need latest updates on CLAUDE.md, @imports, memory hierarchyImplementing known patterns without research needed
Staying current with Claude Code improvementsJust need to read local project documentation
Cross-referencing blog insights with official docsNeed 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/

TopicURLDescription
Memory management/docs/en/memoryCLAUDE.md, auto memory, @imports, rules hierarchy
Configuration/docs/en/configurationSettings, permissions, MCP servers
Hooks/docs/en/hooksPre/post tool use hooks
Claude Code overview/docs/en/overviewGetting 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

ArticleURLTopic
Using CLAUDE.md Files/blog/using-claude-md-filesCLAUDE.md structure and best practices
How Anthropic Teams Use Claude Code/blog/how-anthropic-teams-use-claude-codeInternal usage patterns and workflows
Claude Code on the Web/blog/claude-code-on-the-webWeb-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

  1. Check Recent Articles First

    WebSearch: site:claude.com/blog {feature_name} OR "Claude Code"
    
  2. Fetch Relevant Articles

    WebFetch: https://www.claude.com/blog/{article-slug}
    Prompt: Extract practical guidance, examples, and best practices for {topic}
    
  3. Cross-Reference with Documentation

Monthly Article Review Process

For staying current with Claude improvements:

  1. 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
    
  2. 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.)
  3. Extract Key Insights For high-relevance articles, extract:

    • New features or capabilities
    • Updated best practices
    • Example patterns and workflows
    • Configuration recommendations
  4. 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.md instead of duplicating content
  • Use CLAUDE.local.md: Personal preferences go here (auto-gitignored), not in shared CLAUDE.md
  • Use .claude/rules/: Path-specific rules with paths frontmatter for conditional loading

Memory Hierarchy

LayerPurposeManaged by
CLAUDE.mdTeam instructions (checked into git)Developers
CLAUDE.local.mdPersonal preferences (gitignored)Individual
.claude/rules/Path-specific and domain rulesDevelopers
~/.claude/rules/User-level rules (all projects)Individual
Auto memoryClaude's own learningsClaude (automatic)

Essential Sections (team-shared)

  1. Project Overview: Brief summary, key technologies, architectural patterns
  2. Directory Map: Visual hierarchy showing key directories
  3. Standards & Conventions: Type hints, code style, naming conventions
  4. Common Commands: Frequently-used commands with descriptions
  5. Workflows: Standard approaches for different task types
  6. 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 @import to 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

SkillDescription
/docs:syncSynchronize documentation with actual skills, commands, and agents in codebase
/docs:generateUpdate project documentation from code annotations
/docs:decommissionGenerate comprehensive service decommission documentation
/docs:latexConvert Markdown documents to professional LaTeX with TikZ visualizations and compile to PDF
/docs:reference-checkFlag markdown that names repo paths or relative links that no longer exist (check-doc-references.py); advisory or --strict, allowlist, chezmoi-aware
/docs:fetch-fallbacksRecover a failed or empty WebFetch: strip the query, raw.githubusercontent, gh api, docs source at a pinned tag, context7/WebSearch
claude-blog-sourcesAccess Claude Blog for latest features, patterns, and best practices
docs-single-sourceLink docs to the single source of truth instead of restating it
docs-claim-hygieneKeep 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-factsVerify machine-read values (scutil, route, ifconfig, local config) against the authoritative IaC before publishing
public-export-sanitizationScan an internal-to-public export for leaked identifiers and repo-escaping links (check-public-export.sh), then genericize

Hooks

HookEventBehaviour
public-repo-leak-gate.shPreToolUse (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

AgentDescription
documentationGenerate documentation from code annotations and API references
research-documentationPerform 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 drift
  • docs-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 summaries
  • docs-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

  1. Create documentation before implementation
  2. Use /docs:generate to extract API docs from code
  3. Keep docs in sync with /docs:sync after changes
  4. Research patterns with claude-blog-sources skill
  5. Link rather than duplicate (docs-single-source) and verify host-read facts (docs-verify-machine-facts) before publishing

Service Lifecycle

  1. Deployment: Create decommission plan with /docs:decommission
  2. Development: Generate docs with /docs:generate
  3. Maintenance: Sync docs with /docs:sync
  4. 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

Similar to documentation-plugin

More Technical Documentation