Doc-Code Sync Check
fancyboi999/open-tag
Reconciles documentation with code at the end of a change or as a periodic audit, following a repo rule that code changes and doc changes land in one commit.
Checks generated or edited documentation against the source code, flagging invented symbols, outdated samples and unverifiable claims before publishing.
$ npx skills add amElnagdy/guard-skills --skill docs-guard -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install amElnagdy/guard-skills docs-guard --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/docs-guard .claude/skills/docs-guard && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "docs-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guard into .claude/skills/docs-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docs-guard", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guardType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add amElnagdy/guard-skills --skill docs-guard -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install amElnagdy/guard-skills docs-guard --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/docs-guard .agents/skills/docs-guard && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "docs-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guard into .agents/skills/docs-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docs-guard", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amElnagdy/guard-skills --skill docs-guard -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install amElnagdy/guard-skills docs-guard --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/docs-guard .cursor/skills/docs-guard && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "docs-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guard into .cursor/skills/docs-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docs-guard", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/amElnagdy/guard-skills.git --path skills/docs-guard--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add amElnagdy/guard-skills --skill docs-guard -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install amElnagdy/guard-skills docs-guard --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/docs-guard .gemini/skills/docs-guard && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "docs-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guard into .gemini/skills/docs-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docs-guard", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install amElnagdy/guard-skills docs-guardInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add amElnagdy/guard-skills --skill docs-guard -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/docs-guard .github/skills/docs-guard && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "docs-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guard into .github/skills/docs-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docs-guard", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amElnagdy/guard-skills --skill docs-guard -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install amElnagdy/guard-skills docs-guard --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amElnagdy/guard-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/docs-guard .opencode/skills/docs-guard && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "docs-guard" agent skill from https://github.com/amElnagdy/guard-skills/tree/master/skills/docs-guard into .opencode/skills/docs-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "docs-guard", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
docs-guardChecks generated or edited documentation against the source code, flagging invented symbols, outdated samples and unverifiable claims before publishing.
Treating documentation as a set of checkable claims, this skill has the agent verify every function, flag, endpoint, config key, environment variable, file path and code sample against the real source rather than from memory. A reference that cannot be verified does not ship.
It works in three modes. Guard-pass runs after docs or docstrings were written or changed. Live mode is invoked before writing, so the agent reads the implementation first. Review mode walks a checklist and returns findings with file and line evidence without rewriting anything. The agent first reads CLAUDE.md, AGENTS.md and any docs style guide, finds the doc surfaces that must change together, such as the README, reference docs, docstrings, changelog, examples and config samples, and notes the project's version policy.
Reference files cover the verification procedure, code samples, docstrings, sources and the review checklist, and the skill also trims filler. It is not meant for production code review, test review, marketing copy, non-technical prose editing or documentation site theming.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ffa2603. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Docs Guard loads about 2.1k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 209 tokens; SKILL.md has 1,013 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from amElnagdy/guard-skills at commit ffa2603, republished under its MIT licence (© amElnagdy). 1,013 words, ~2,068 tokens.
.claude/skills/docs-guard/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.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.
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.
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.
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.
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).
If any answer is wrong, fix it before showing the user.
**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.
© amElnagdy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (references) in skills/docs-guard of amElnagdy/guard-skills.
Open the folder on GitHubat commit ffa2603
Docs Guard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Docs Guard this skillamElnagdy/guard-skills | 1.3k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Doc-Code Sync Checkfancyboi999/open-tag | 203 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Opik Documentation Patternscomet-ml/opik | 22k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Content Modelguardana/guardana | 129 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Opik Docs Writercomet-ml/opik | 22k | — | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Tech Writerstacklok/mecatl | 241 | — | ~2.2k | Automated safety check: Pass | Apache-2.0 |
fancyboi999/open-tag
Reconciles documentation with code at the end of a change or as a periodic audit, following a repo rule that code changes and doc changes land in one commit.
comet-ml/opik
Rules for writing PR descriptions, changelog entries and feature documentation in the Opik repository, including the exact headings that CI requires.
guardana/guardana
Route wording work to GPT (codex CLI) or Gemini (agy CLI) instead of writing it with Claude — landing-page copy, a readability rewrite of a README or docs page, attack and judge prompts for a rule…
comet-ml/opik
Guides writing Fern MDX pages for the Opik documentation site, including frontmatter, structure, components, navigation entries and release-note routing.
stacklok/mecatl
A skill your agent uses when writing or substantively editing user-facing documentation: drafting a new page, rewriting or restructuring an existing one, adding a major section, or turning…
dotnet/core
Writes and maintains .NET preview, RC and GA release notes from a scored features.json, working with sibling skills for change data, API diffs, code sample checks and review.
amElnagdy/guard-skills
Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
amElnagdy/guard-skills
Reviews generated or changed WooCommerce code for HPOS safety, CRUD use, checkout validation and money handling before it ships.
amElnagdy/guard-skills
Reviews WordPress plugin, theme and block code after an agent writes or edits it, catching missing escaping, nonces, capability checks and unprepared queries.
Categories
Checks generated or edited documentation against the source code, flagging invented symbols, outdated samples and unverifiable claims before publishing. Treating documentation as a set of checkable claims, this skill has the agent verify every function, flag, endpoint, config key, environment variable, file path and code sample against the real source rather than from memory. A reference that cannot be verified does not ship.
Docs Guard fits situations like: reviewing a README or API reference an agent just wrote; checking docs after a code change altered documented behavior; adding a docstring or changelog entry that must match the code; running a final accuracy pass before publishing documentation.
Run `npx skills add amElnagdy/guard-skills --skill docs-guard -a claude-code`. Or copy the skill folder (skills/docs-guard in amElnagdy/guard-skills) into .claude/skills/docs-guard in your project. Claude Code loads it when a task matches its description.
Run `npx skills add amElnagdy/guard-skills --skill docs-guard -a codex`. Or copy the skill folder (skills/docs-guard in amElnagdy/guard-skills) into .agents/skills/docs-guard in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add amElnagdy/guard-skills --skill docs-guard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docs-guard, .gemini/skills/docs-guard, .github/skills/docs-guard and .opencode/skills/docs-guard in your project.
SKILL.md names no scripts, command-line tools or credentials: Docs Guard is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Docs Guard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Docs Guard: Doc-Code Sync Check (fancyboi999/open-tag, 203 stars), Opik Documentation Patterns (comet-ml/opik, 22k stars), Content Model (guardana/guardana, 129 stars) and Opik Docs Writer (comet-ml/opik, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
amElnagdy (a GitHub user) maintains it in amElnagdy/guard-skills, which has 1,260 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on July 4, 2026.
Source: amElnagdy/guard-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.