Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By xiaolai
Run full documentation audits to detect staleness, check coverage, and verify accuracy against code. Automatically generate or update docs for Python, TypeScript, Go, and Rust projects using frameworks like MkDocs, Sphinx, Docusaurus, or VitePress.
npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin docs-guardianFull documentation audit — launch staleness, accuracy, coverage, and quality agents in parallel, then synthesize a report with a fixing plan
Check documentation coverage — find undocumented public APIs and report coverage percentage
Auto-generate missing documentation — scan for coverage gaps, then write docs in the project's framework format
Initialize docs-guardian for this project — auto-detect language and doc framework, propose code-to-doc mappings, configure hook strictness
Shared config validation step — reads and validates docs-guardian config, stops with init instructions if missing.
You are the accuracy checker. Your job is to find places where documentation says something different from what the code actually does.
You are the coverage scanner. Your job is to find every public API symbol and determine whether it has documentation.
You are the doc writer. Your job is to read source code and produce high-quality documentation in the project's documentation framework format.
You are the quality rater. Your job is to evaluate the quality of existing documentation files.
You are the staleness detector. Your job is to find documentation that has fallen behind the code it describes.
Use when detecting a project's programming language and documentation framework from filesystem markers — package.json, Cargo.toml, pyproject.toml, mkdocs.yml, etc.
Use when mapping source code files to their documentation counterparts — find which docs cover which code, detect gaps, and resolve doc-to-code relationships.
Use when evaluating documentation quality — check completeness, accuracy, freshness, and adherence to project documentation standards.
Use when generating or auditing documentation in Docusaurus format — covers config, directory structure, frontmatter conventions, and build commands.
Use when generating or auditing documentation in MkDocs format — covers config, directory structure, frontmatter conventions, and build commands.
Executes bash commands
Hook triggers when Bash tool is used
Uses power tools
Uses Bash, Write, or Edit tools
Has parse errors
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Documentation quality, generation, and improvement using Diataxis principles. Pairs with beagle-core for full workflow.
Generate and maintain documentation from code with drift detection. Validates docs against source, auto-generates from code patterns, syncs outdated content, and provides reusable templates for consistent documentation.
Audit codebase documentation for accuracy, completeness, and freshness against actual code. Auto-fixes small discrepancies, reports structural changes. Companion to agent-ready.
Documentation generation, API docs, and README maintenance
Documentation generation, code explanation, and technical writing with automated doc generation and tutorial creation
Documentation agents — technical writer, documentation architect
Natural-Language Programming Manager — scan, lint, and write NL artifacts with Claude-native quality scoring
A 260-token system prompt that overrides three structural presumptions every RLHF-trained LLM inherits from training: that you want confirmation, that old scarcity still applies, that best practices are ceilings.
English language coach for non-native speakers — auto-corrects prompts, translates non-English, refines with :: prefix, tracks improvement over time
Initialize a multi-agent workspace with shared configuration for Claude Code, Codex CLI, and Gemini CLI
Recursive governance for Executable Operating Units (EOUs). Faceted classification, generating-EOU constraints, ECP-governed change, no-self-approval. Install in any project that needs to turn messy workflows into auditable, retirable operating units.
Some configuration could not be fully parsed
Some configuration could not be fully parsed
Share bugs, ideas, or general feedback.
Documentation quality and freshness enforcer — detect staleness, check accuracy, measure coverage, and auto-generate docs across any language and doc framework.
Docs-guardian treats documentation like code: it drifts, goes stale, and needs continuous maintenance. This plugin detects when docs fall behind, measures how much of your API is actually documented, checks whether docs match the current code, and can auto-generate missing documentation in your project's chosen framework format.
Part of the xiaolai plugin marketplace.
Add the marketplace (once):
/plugin marketplace add xiaolai/claude-plugin-marketplace
Then install:
/plugin install docs-guardian@xiaolai
Install fails with "Plugin not found in marketplace 'xiaolai'"? Your local marketplace clone is stale. Run
claude plugin marketplace update xiaolaiand retry —plugin installdoes not auto-refresh.
| Scope | Command | Effect |
|---|---|---|
| User (default) | /plugin install docs-guardian@xiaolai | Available in all your projects |
| Project | /plugin install docs-guardian@xiaolai --scope project | Shared with team via .claude/settings.json |
| Local | /plugin install docs-guardian@xiaolai --scope local | Only you, only this repo |
# 1. Initialize — detects your language, doc framework, proposes mappings
/docs-guardian:init
# 2. Check how much of your API is documented
/docs-guardian:coverage
# 3. Full audit — staleness, accuracy, coverage, quality in parallel
/docs-guardian:audit
# 4. Auto-generate docs for undocumented code
/docs-guardian:generate
| Command | Description |
|---|---|
/docs-guardian:init | Auto-detect language and doc framework, propose code-to-doc mappings, configure hook strictness |
/docs-guardian:audit | Full audit — launch 4 agents in parallel, synthesize a report with prioritized fixing plan |
/docs-guardian:coverage | Lightweight coverage check — find undocumented public APIs and report coverage % |
/docs-guardian:generate | Auto-generate missing docs — scan for gaps, then write docs in framework format |
detection skill scans for marker files (tsconfig.json, go.mod, mkdocs.yml, etc.) to identify your language and doc framework. The mapping skill resolves which source files map to which doc files.doc-writer agent reads undocumented code, understands its API, and writes docs using the correct framework template.| Agent | Model | Focus |
|---|---|---|
staleness-detector | haiku | Git timestamp comparison between code and doc files |
accuracy-checker | opus | Deep code-vs-doc mismatch analysis (signatures, examples, behavior) |
coverage-scanner | sonnet | Find every undocumented public symbol, calculate coverage % |
quality-rater | haiku | Empty sections, TODOs, broken links, formatting, readability |
doc-writer | opus | Read code, generate/update docs in the project's framework format |
Three-layer design:
Detection Layer (skills) → auto-detect language + doc framework
↓
Adapter Layer (skills) → stack-specific knowledge (5 languages × 5 frameworks)
↓
Agent Layer (agents) → stack-agnostic analysis and generation
Adding a new language = one skill file under languages/. Adding a new framework = one skill file under frameworks/. Zero agent or command changes needed.
After /docs-guardian:init, config lives at .claude/docs-guardian/config.json: