Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xiaolaiv0.3.0ISCIn 2 marketplaces
Finds docs that have drifted from code and flags undocumented public APIs, then generates the missing ones. Its commit hook warns by default when code changes ship without doc updates, and can be set to block them.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
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 |
The same repository ships a Codex layout (.codex-plugin/ and codex/):
codex plugin marketplace add xiaolai/claude-plugin-marketplace
codex plugin add docs-guardian@xiaolai
In a Codex session, run $docs-guardian-init, then $docs-guardian-audit, $docs-guardian-coverage or $docs-guardian-generate. Both tools share .claude/docs-guardian/config.json and the scripts in scripts/docs-guardian/. Codex runs the commit hook only after you approve it in its hook trust review (/hooks). See codex/AGENTS.md for the differences.
# 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:
7-day copy clicks
npx claudepluginhub xiaolai/docs-guardian-for-claude --plugin docs-guardianBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground