with one click
docs
Reconcile and validate all documents in the project's docs/ directory
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Reconcile and validate all documents in the project's docs/ directory
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
| name | docs |
| description | Reconcile and validate all documents in the project's docs/ directory |
/docs [mode] [scope] - Reconcile all documents in the project's docs/ directory. Discovers structure from disk (no hardcoded shape), validates cross-references, flags drift between documents, and produces a prioritized action list.
mode (optional): quick (default) or full. Quick = inline checks, fast pass. Full = delegated sub-agent reconciliation with phases.scope (optional): subpath under docs/ to narrow reconciliation. Defaults to the whole docs/ tree.🔴 High - broken cross-refs, missing required docs, contradictory status | 🟠 Medium - stale references, inconsistent naming, partial coverage | 🔵 Low - style drift, optional metadata
Adopt all that apply to the project. Missing recommended docs are flagged as 🟠 Medium (not 🔴), since absence is a judgment call. Stale or inconsistent content in an adopted baseline doc is 🔴.
| Doc | Purpose | When to adopt |
|---|---|---|
glossary.md (or terminology.md) | Domain terms, project jargon, abbreviations, ambiguous words with project-specific meaning. Prevents the agent from inventing or misinterpreting terms mid-task. | Any project with 2+ people, or 1+ week of work, or a non-trivial domain. |
code-map.md | Semantic index of the codebase: what each module/folder is for, key entry points, public surface, where X kind of change usually lives. Maps intent → location. | Any codebase the agent navigates repeatedly. |
architecture.md | Current system shape only. Decisions/why live in ADRs. | Any project beyond a single module. |
requirements.md (or spec.md) | Product scope, what the product is (not what each release did). | Any product with a defined scope that outlives a single release. |
docs/adr/ (MADR or Nygard format) | One file per non-obvious decision: context, decision, consequences. | Any project with 3+ decisions worth recording. |
docs/runbooks/ | Operational procedures: deploy, rollback, incident response. | Any project with on-call, deploys, or external dependencies. |
Discovery: scan for any of these filenames or directory names (case-insensitive, with common aliases: terminology, domain.md, codebase-map.md, nav.md, system-design.md, spec.md, decisions/). Report which baseline docs are present, missing, or stale.
prds/, audits/, hotfixes/, features.md are discovered categories (not baseline) — flag them when present, ignore when absent.
Do not assume a fixed docs/ shape. Discover it from disk before running checks:
docs/ from CWD; if absent, report ✅ HEALTHY (no docs/ to reconcile) and stop.docs/ (recursively). Skip node_modules/, .git/, lockfiles, generated artifacts.features.md / features/ - feature inventory with status (planned/active/deprecated/removed)audits/ / audit*.md - audit reportsprds/ / prd*.md - product requirement documentsarchitecture.md / adr/ / decisions/ - architecture / decision recordsrequirements.md / specs/ - specificationshotfixes/ - incident/fix recordsname:, status:, feature:, date:, owner:) and leading headings to extract identity.{doc_id -> {path, type, status, refs_to[], refs_from[]}} for the whole docs/ tree.Invocation of /docs is treated as explicit approval for read-only git operations in the current repo (git log, git status, git diff). Do not run write/destructive git operations without separate user confirmation.
docs/ tree.scope argument narrows to a subpath..git/, node_modules/, lockfile caches, build outputs.✅ HEALTHY and stop.README, AGENTS.md) for naming conventions; read-only git log for recent doc churn.README.md, features.md) and adopted baseline docs (which are inherently entry points).[text](path.md) or path.md mention in any doc that does not resolve to an existing file. Resolve paths relative to the referencing doc.code-map.md paths resolve - every file/directory path it references must exist in the repo.glossary.md terms consistent - each defined term, when used in other docs, refers to the defined sense (spot-check high-traffic terms).architecture.md vs ADRs - if an ADR contradicts current architecture.md, flag both directions.requirements.md coverage - every feature in features.md traces back to a requirement, or is explicitly marked unscoped.status: value in feature docs that contradicts supporting evidence in the doc body (e.g. status: removed but a PRD still references it as active).Apply fixes now? (recommended: yes for 🔴; no for 🟠/🔵) [Y/n]./docs full)Delegated reconciliation with phases. Spawn sub-agents per phase; consolidate in main context.
docs/, classify documents, and emit the full doc map. Sub-agent contract: no user prompts, no escalation, assume-and-proceed.Applies to all Task-spawned sub-agents.
🔄 CHANGES_NEEDED and a concrete action list of missing context to supply before re-running.# Doc Reconciliation
Mode: {quick|full} | Scope: {path or "full docs/"} | Date: {date}
Docs discovered: {count} | Categories: {list}
## Summary
🔴 High: {n} | 🟠 Medium: {n} | 🔵 Low: {n}
## Findings
### 🔴 {finding}
- Doc: {path:line}
- Evidence: {quote or pattern}
- Impact: {concrete consequence}
- Fix: {minimal action}
### 🟠 {finding}
...
### 🔵 {finding} (max 5)
...
## Doc Map
| ID | Path | Type | Status | Refs Out | Refs In |
|----|------|------|--------|----------|---------|
## Action Items
Immediate: [ ] ...
Short-term: [ ] ...
Optional: [ ] ...
## Status
🔴 NEEDS ATTENTION (3+ 🔴) | 🟡 MINOR (1-2 🔴 or any 🟠) | 🟢 HEALTHY
Based on SOC occupation classification
Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.
Surface deepening opportunities in a codebase — shallow modules, seam leaks, missing locality — and grill through whichever one you pick. Architecture-pattern aware (monolith / distributed / serverless).
Full-project code audit workflow: audit then fix
Systematic root cause analysis. No fixes without investigation
Principal Engineer persona. Production-first technical judgment
Standalone QA investigation and fix workflow