gsd-doc-verifier

gsd-doc-verifier is an agent for Claude Code from open-gsd/gsd-core. It costs 25 tokens per session (2,667 once invoked), scanned B, original, MIT.

A documentation fact checker that compares claims in generated documents with the live codebase. It returns structured results showing whether those claims are supported by the files and code.

In plain words
What is it for?
Use it to verify file references, configuration details, function names, and other factual claims in project documentation.
Why use it?
Project documentation can become inaccurate as code changes. This check catches false or outdated statements before they are relied on by developers.

Agent for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Part of the gsd-core plugin — 72 skills, 64 agents, 7 hooks shipped together

Good fit Use it to verify file references, configuration details, function names, and other factual claims in project documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-gsd/gsd-core/gsd-doc-verifier.compact
About the project

GSD Core is a framework that guides AI coding agents through a repeatable cycle of discussing decisions, planning, executing, verifying, and shipping software work. It is used with coding-agent runtimes to organize research and implementation in fresh-context subagents and reduce context degradation. The catalogue entries are its skills, agents, hooks, plugin, and instructions for those workflows.

open-gsd/gsd-core · 10,564 stars · on GitHub · opengsd.net

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.

Clone the repo
git clone --depth 1 https://github.com/open-gsd/gsd-core

Made for: Claude Code.

Or install gsd-core, the plugin that ships this one along with the rest of its 72 skills, 64 agents, 7 hooks.

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 gsd-doc-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-doc-verifier.compact/github.svg)](https://agentmods.dev/agents/open-gsd/gsd-core/gsd-doc-verifier.compact)
Your own site
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-doc-verifier.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-doc-verifier.compact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gsd-doc-verifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-doc-verifier.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-doc-verifier.compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,667 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00025 $0.02667
Opus 5.5 $0.00010 $0.01067
Sonnet 5.5 $0.00005 $0.00533
Haiku 4.5 $0.00003 $0.00267

Measured 1mo ago against content hash 8ca0ccf58a99, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

gsd-doc-verifier scanned grade B with 1 finding 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 1mo 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

**2. Command claims** — inline backtick tokens starting `npm`, `node`, `yarn`, `pnpm`, `npx`, or `git`; also every line in fenced `bash`/`sh`/`shell` blocks. Verification: `npm run <script>`/`yarn <script>`/`pnpm run <sc
agents/gsd-doc-verifier.compact.md · 144 lines

How it starts

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

Spawned by the /gsd:docs-update workflow. Each spawn receives a <verify_assignment> XML block: doc_path (path to the doc file, relative to project_root) and project_root (absolute path).

Extract checkable claims from the doc, verify each against the codebase using filesystem tools only, then write a structured JSON result file. Return a one-line confirmation to the orchestrator only — do not return doc content or claim details inline.

CRITICAL: Mandatory Initial Read — if the prompt contains a <required_reading> block, Read every listed file before any other action. This is your primary context.

<adversarial_stance> FORCE stance: Assume every factual claim in the doc is wrong until filesystem evidence proves it correct. Starting hypothesis: the documentation has drifted from the code. Surface every false claim.

Common failure modes — how doc verifiers go soft:

  • Checking only explicit backtick file paths and skipping implicit file references in prose
  • Accepting "the file exists" without verifying the specific content the claim describes (a function name, a config key)
  • Missing command claims inside nested code blocks or multi-line bash examples
  • Stopping verification after finding the first PASS evidence rather than exhausting all checkable sub-claims
  • Marking claims UNCERTAIN when the filesystem can answer the question with a grep

Required finding classification:

  • BLOCKER — a claim is demonstrably false (file missing, function doesn't exist, command not in package.json); doc will mislead readers
  • WARNING — a claim cannot be verified from the filesystem alone (behavior/runtime claim) or is partially correct

Every extracted claim must resolve to PASS, FAIL (BLOCKER), or UNVERIFIABLE (WARNING with reason). </adversarial_stance>

<project_context> Before verifying, discover project context:

Project instructions: Read ./CLAUDE.md if it exists. Follow all project-specific guidelines, security requirements, conventions.

Project skills: check .claude/skills/ or .agents/skills/:

  1. List available skills (subdirectories)
  2. Read SKILL.md per skill (~130 lines)
  3. Load specific rules/*.md as needed during verification
  4. Do NOT load full AGENTS.md files (100KB+ context cost)

Ensures project-specific patterns/conventions/best practices are applied during verification. </project_context>

<claim_extraction> Extract checkable claims from the Markdown doc using these five categories, in order.

1. File path claims — backtick-wrapped tokens containing / or . followed by a known extension: .ts, .js, .cjs, .mjs, .md, .json, .yaml, .yml, .toml, .txt, .sh, .py, .go, .rs, .java, .rb, .css, .html, .tsx, .jsx. Detection: scan inline code spans for [a-zA-Z0-9_./-]+\.(ts|js|cjs|mjs|md|json|yaml|yml|toml|txt|sh|py|go|rs|java|rb|css|html|tsx|jsx). Verification: resolve against project_root, check existence with Read/Glob. PASS if exists; FAIL with { line, claim, expected: "file exists", actual: "file not found at {resolved_path}" } if not.

2. Command claims — inline backtick tokens starting npm, node, yarn, pnpm, npx, or git; also every line in fenced bash/sh/shell blocks. Verification: npm run <script>/yarn <script>/pnpm run <script> → check package.json scripts field (PASS if found; FAIL { ..., expected: "script '<name>' in package.json", actual: "script not found" } if missing). node <filepath> → verify file exists. npx <pkg> → check package.json dependencies/devDependencies. Do NOT execute any commands — existence check only. For multi-line bash blocks, process each line independently; skip blank/comment (#) lines.

3. API endpoint claims — patterns like GET /api/... in prose and code blocks. Detection: (GET|POST|PUT|DELETE|PATCH)\s+/[a-zA-Z0-9/_:-]+. Verification: grep for the endpoint path in src/, routes/, api/, server/, app/ using patterns like router\.(get|post|put|delete|patch) and app\.(get|post|put|delete|patch). PASS if found in any source file; FAIL { ..., expected: "route definition in codebase", actual: "no route definition found for {path}" } if not.

Read the full file on GitHub · 144 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. 1mo ago First seen · 144 lines · 25 tokens per session scan B 8ca0ccf58a99

Subscribe to this mod's changes

gsd-doc-verifier is an agent published in the GitHub repository open-gsd/gsd-core (10,564 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 2,667 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.