docguard-guard

docguard-guard is a skill for Claude Code, Codex from raccioly/docguard. It costs 53 tokens per session (1,590 once invoked), scanned A, original, MIT.

A project-checking tool for DocGuard, a system that checks whether project documentation follows Canonical-Driven Development standards.

In plain words
What is it for?
Use it to run documentation checks, review their severity, and optionally pass issues to an automated fix step.
Why use it?
It turns raw validation results into prioritized issues and suggested fixes before a commit or implementation phase.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/raccioly/docguard/docguard-guard
Any agent
npx skills add raccioly/docguard --skill docguard-guard
Clone the repo
git clone --depth 1 https://github.com/raccioly/docguard

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docguard-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/raccioly/docguard/docguard-guard.svg)](https://agentmods.dev/skills/raccioly/docguard/docguard-guard)
Your own site
<a href="https://agentmods.dev/skills/raccioly/docguard/docguard-guard"><img src="https://agentmods.dev/badge/skills/raccioly/docguard/docguard-guard.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01590
Opus 5 $0.00026 $0.00795
Sonnet 5 $0.00011 $0.00318
Haiku 4.5 $0.00005 $0.00159

Measured 5d ago against content hash 2a226f0305f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

docguard-guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/docguard-guard/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DocGuard Guard Skill

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Goal

Execute DocGuard's full guard validator suite against the current project, parse structured results, triage findings by severity and impact, and produce an actionable remediation plan. This skill transforms raw CLI output into an AI-digestible quality assessment.

Pre-Execution Checks

  1. Verify DocGuard is available:

    • Check if npx docguard-cli --version succeeds
    • If not available, check if node cli/docguard.mjs --help exists (local dev mode)
    • If neither works: ERROR "DocGuard CLI not found. Install with: npm i -g docguard-cli"
  2. Detect project root:

    • Look for .docguard.json, docs-canonical/, or CHANGELOG.md as project markers
    • If none found: ERROR "No CDD project detected. Run docguard init first."

Execution Flow

Step 1: Run Guard with Machine-Readable Output

Execute the guard command and capture full output:

npx docguard-cli guard 2>&1

If in a DocGuard development environment (cli/docguard.mjs exists), use:

node cli/docguard.mjs guard 2>&1

Step 2: Parse Validator Results

Extract from guard output each validator's status. Build an internal results table:

Validator Priority Checks Passed Total Checks Status
Structure HIGH N M ✅/⚠️/❌
Doc Sections HIGH N M ✅/⚠️/❌
... ... ... ... ...

Status mapping:

  • = All checks passed
  • ⚠️ = Warning (non-blocking, but should fix)
  • = Failure (blocking — must fix before commit)

Step 3: Severity Triage

Classify every non-passing check using this priority matrix:

CRITICAL (fix immediately):

  • Structure failures (missing canonical docs)
  • Security failures (hardcoded secrets, missing SECURITY.md)
  • Test-Spec failures (tests don't match spec)

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 174 lines · 53 tokens per session scan A 2a226f0305f2

Subscribe to this mod's changes

docguard-guard is a skill published in the GitHub repository raccioly/docguard (27 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 1,590 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.