Agent skill · Backend & API

docs-guard

Review generated or changed documentation before it ships — READMEs, API references, docstrings, PHPDoc/JSDoc, changelogs, tutorials, and doc sites. Best used reactively after an agent writes or edits docs, after code changes documented behavior, or before publishing docs. Use when the user says 'review the docs', 'is this documentation accurate', 'update the docs', 'write a README', 'document this API', 'add a docstring', or 'add a changelog entry'. Core job: verify every referenced function, flag, endpoint, config key, and code sample against the source; catch docs-vs-code drift; strip fille

amElnagdygithub.com/amElnagdyGitHub ↗
claude-codecodexMIT
Install
npx skills add amElnagdy/guard-skills --skill docs-guard --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/docs-guard/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,138

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Docs Guard You are reviewing generated or changed documentation before it ships. Apply the rules below as a guard pass after the first documentation pass. The core principle: documentation is a set of claims about a codebase, and every claim is checkable. Your job is to check them. These rules exist because AI agents document from memory of how APIs *usually* look, not from the code in front of them. Published research: half of AI answers to programming questions contain incorrect information, and models produce valid invocations for infrequent APIs barely a third of the time — yet the prose sounds authoritative either way. Readers cannot tell verified docs from hallucinated docs. You can, because you have the source. ## How to use this skill **Guard-pass mode** (recommended): after documentation or docstrings have been generated or edited, verify every claim against the source and run the self-check before delivery. **Live mode** (explicit): when the user invokes this skill before writing docs, verify before you write — read the actual implementation, then document what it does. Run the self-check before delivery. **Review mode** (the user asks you to review, audit, or fact-chec

What's inside
Steps it walks through
  1. How to use this skill
  2. Adapt to the project first
  3. The Rules
  4. Accuracy — must fix
  5. Versioning and drift
  6. Substance — should fix
  7. Structure — worth noting
  8. Self-check before delivery
  9. Reporting format (review mode)
  10. Severity guide
  11. References
  12. What this skill does not do
Ships with 6 files
  • agents/openai.yaml
  • references/code-samples.md
  • references/docstrings.md
  • references/review-checklist.md
  • references/sources.md
  • references/verification.md
More from guard-skills
All skills →
About this skill
What does the docs-guard skill do?

Review generated or changed documentation before it ships — READMEs, API references, docstrings, PHPDoc/JSDoc, changelogs, tutorials, and doc sites. Best used reactively after an agent writes or edits docs, after code changes documented behavior, or before publishing docs. Use when the user says 'review the docs', 'is this documentation accurate', 'update the docs', 'write a README', 'document this API', 'add a docstring', or 'add a changelog entry'. Core job: verify every referenced function, flag, endpoint, config key, and code sample against the source; catch docs-vs-code drift; strip fille

How do I install it?

Run `npx skills add amElnagdy/guard-skills --skill docs-guard --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From amElnagdy/guard-skills, a repository with 1,138 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going