Speckit.Docguard.Guard
Run 19-validator quality gate with severity triage and actionable remediation
Claude CodeGeneric
---
description: Run 19-validator quality gate with severity triage and actionable remediation
handoffs:
- label: Fix All Issues
agent: docguard.fix
prompt: Fix all documentation issues found by guard
- label: Deep Review
agent: docguard.review
prompt: Perform semantic cross-document consistency analysis
- label: Check Score
agent: docguard.score
prompt: Show CDD maturity score and improvement roadmap
---
<!-- Extension: docguard -->
<!-- Config: .specify/extensions/docguard/ -->
# DocGuard Guard
Validate your project against its canonical documentation. Runs 160+ automated checks across 19 validators.
## User Input
```text
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Execution
- Run DocGuard guard validation:
npx --yes docguard-cli@latest guard $ARGUMENTS
Parse each validator's result and build a severity-ranked findings table.
Triage by severity:
- CRITICAL: Structure, Security, Test-Spec failures → fix immediately
- HIGH: Doc Sections, Drift, Changelog, Traceability → fix before commit
- MEDIUM: Freshness, Docs-Coverage, Doc-Quality, Metrics → fix this sprint
- LOW: TODO-Tracking, Schema-Sync, Spec-Kit, Metadata → fix when convenient
For each failing check, provide an exact fix — specific file, section, and content.
Re-run guard after fixes. Iterate until all checks pass (max 3 iterations).
Validators (19 total)
| Validator | What It Checks |
|---|---|
| Structure | Required CDD files exist |
| Doc Sections | Canonical docs have required sections |
| Docs-Sync | External doc references are valid |
| Drift | // DRIFT: comments have DRIFT-LOG entries |
| Changelog | CHANGELOG.md is maintained |
| Test-Spec | TEST-SPEC.md matches actual test files |
| Environment | Environment docs and .env.example exist |
| Security | No hardcoded secrets, .gitignore configured |
| Architecture | Layer boundaries and diagrams present |
| Freshness | Docs updated after recent code changes |
| Traceability | Canonical docs linked to source code |
| Docs-Diff | Entity/route/field drift between code and docs |
| Metadata-Sync | Metadata headers are consistent |
| Docs-Coverage | All config files documented |
| Doc-Quality | Readability, IEEE 830 compliance |
| TODO-Tracking | TODOs are tracked |
| Schema-Sync | Schema documentation matches code |
| Spec-Kit | Spec quality (FR-IDs, sections) |
| Metrics-Consistency | Internal counts are accurate |
Flags
--format json— Output results as JSON--dir <path>— Run on a different directory
Maintain Speckit.Docguard.Guard?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Speckit.Docguard.Guard on getagentictools](https://getagentictools.com/loops/kamijeong-docguard-guard?ref=badge) npx agentictools info loops/kamijeong-docguard-guard The second line is the CLI lookup for this page — handy in READMEs and docs.