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
Install / Use
npx skills add amElnagdy/guard-skills --skill docs-guardInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Content & MediaSupported Platforms
Our assessment of docs-guard
docs-guard scores 84/100 on our quality scale, 872nd of 1,184 Content & Media skills we index.
Its SKILL.md is 8.1 KB long, well organised into 13 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 1,252 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
docs-guard compared with similar skills
All 4 of these similar skills score higher than docs-guard; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| docs-guard (this skill)by amElnagdy | 84 | 1.3k | 3mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 91.6k | 20d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.4k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 85.8k | 1d ago | MCP Server |
| crawl4aiby unclecode | 100 | 84.8k | today | MCP Server |
Frequently asked questions
- How do I install docs-guard?
- Run
npx skills add amElnagdy/guard-skills --skill docs-guard. The install tabs above show the steps for each supported agent. - Which AI agents does docs-guard work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is docs-guard safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is docs-guard still maintained?
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubname: docs-guard description: "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 filler and unverifiable claims. DO NOT USE for production code review (use clean-code-guard), test review (use test-guard), marketing copy or blog posts, prose style editing of non-technical writing, or documentation site theming."
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-check docs): walk references/review-checklist.md against the target docs and produce a findings report with file:line evidence. Do not rewrite in review mode unless asked.
Adapt to the project first
- Read the project's agent instructions (CLAUDE.md, AGENTS.md) and any docs style guide. Project conventions win on conflict.
- Identify the docs surfaces that must move together: README, reference docs, docstrings, changelog, examples, config samples. A change to one usually owes a change to others (Rule 6).
- Note the documented version policy: which versions does the project support, and where are features version-tagged?
The Rules
Accuracy β must fix
-
Every referenced symbol must exist. Every function, method, class, hook, CLI command, flag, endpoint, config key, env var, and file path mentioned in the docs gets verified against the actual source, CLI help output, route table, or schema β by reading it, not recalling it. The verification procedure is in references/verification.md. An unverifiable reference does not ship.
-
Every code sample must work. Imports resolve, APIs exist with the documented signatures (names, argument order, defaults, return shape), and the sample runs outside the author's machine β no hardcoded local paths, no real credentials, no implicit prior state. Sample rules: references/code-samples.md.
-
Document the code's actual behavior, not its intended behavior. Read the implementation before describing it. Where code and comments/specs disagree, the code is the truth β and flag the disagreement to the user instead of silently picking a side.
-
No unverifiable claims. Performance numbers, compatibility matrices, scale limits, and "production-ready" assertions require a source in the repository (benchmark script, CI matrix, changelog entry) or they come out. "Fast" is marketing; "O(n log n), benchmarked in bench/sort.md" is documentation.
Versioning and drift
-
Versions are explicit. Features, flags, and behaviors state the version that introduced them when the project tracks versions. Prerequisites are pinned or ranged, never "latest". Deprecated items say so, with the replacement.
-
A code change owes a docs change. When editing code whose behavior is documented β rename, signature change, new default, removed flag β update every doc surface that mentions it in the same change. Grep the docs for the old symbol before finishing.
Substance β should fix
-
No filler, no slop. Delete: docstrings that paraphrase the signature ("Gets the user by ID" above
get_user_by_id), sections that restate their heading, marketing adjectives in technical prose ("powerful", "seamless", "blazingly fast"), and intro padding ("In this section, we will exploreβ¦"). A docstring earns its place by adding contracts the signature cannot express: units, ranges, error conditions, side effects, threading/ordering guarantees. -
Don't paraphrase upstream docs. Link to external documentation instead of restating it β paraphrased upstream docs drift the moment upstream changes. Document only your project's relationship to the external thing (which subset you use, what you configure differently).
-
Examples cover the failure path too. A tutorial that only shows the happy path documents half the API. Show what the error looks like and what the caller should do β using the error types the code actually raises (verify per Rule 1).
Structure β worth noting
- Navigation tells the truth. Headings describe their sections, the table of contents matches the actual headings, internal links and anchors resolve, and there are no TODO stubs or "coming soon" sections in published docs β unwritten sections are removed, not promised.
Self-check before delivery
- List every symbol, flag, endpoint, config key, and path your docs mention. Did you verify each one against the source in this session β not from memory?
- Would every code sample run on a clean machine? Did you check each import and signature?
- Any number, compatibility claim, or superlative without a repo-verifiable source?
- If this change touched code: did you grep all docs surfaces for the old names?
- Any docstring that just restates the signature? Any section that restates its heading?
- Do all internal links and anchors resolve?
If any answer is wrong, fix it before showing the user.
Reporting format (review mode)
**Rule N violation** in `docs/path.md:<line or section>`
- Claim: <what the docs say>
- Reality: <what the code/CLI/schema actually has, with file:line>
- Fix: <one sentence>
Lead with Rule 1β4 findings (false claims), then drift, then substance. If a doc is clean, say so in one line β accuracy deserves credit.
Severity guide
- Must fix: Rules 1β4 β false documentation is worse than no documentation; readers act on it
- Should fix: Rules 5β9 β drift debt and noise that buries the signal
- Worth noting: Rule 10 β navigation and polish
References
- references/verification.md β the mechanical procedure: extracting claims, verifying symbols, signatures, CLI flags, endpoints, config keys, links
- references/code-samples.md β what makes a sample shippable: runnability, realistic data, secrets hygiene, error paths
- references/docstrings.md β docstring/PHPDoc/JSDoc-specific rules: when one is justified, what it must contain, paraphrase detection
- references/review-checklist.md β structured walk-through for review mode
- references/sources.md β research and style-guide URLs; read only when citing a source
What this skill does not do
- Review the code itself β clean-code-guard's jurisdiction. This skill reviews what the docs claim about the code.
- Generate documentation strategy or information architecture from scratch β it guards accuracy and substance, not scope decisions.
- Enforce a prose style guide β tone belongs to the project; truth belongs to this skill.
Related Skills
Agent-Reach
91.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
headroom
74.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
85.8kπ·οΈ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
84.8kOpen-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
