doc-critic

doc-critic is an agent for Claude Code from kangig94/coral. It costs 40 tokens per session (1,583 once invoked), scanned A, original, MIT.

A documentation quality reviewer that checks whether project documentation is well structured, accurate, complete, useful, and suited to its readers.

In plain words
What is it for?
It reviews documentation after it is created or changed, verifies it against the codebase, and assesses its structure, accuracy, completeness, and practical usefulness.
Why use it?
It helps catch stale commands, missing information, broken file references, and explanations that do not answer the reader’s needs.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

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 agents/kangig94/coral/doc-critic
Clone the repo
git clone --depth 1 https://github.com/kangig94/coral

Made for: Claude Code.

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 doc-critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/kangig94/coral/doc-critic.svg)](https://agentmods.dev/agents/kangig94/coral/doc-critic)
Your own site
<a href="https://agentmods.dev/agents/kangig94/coral/doc-critic"><img src="https://agentmods.dev/badge/agents/kangig94/coral/doc-critic.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,583 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.00040 $0.01583
Opus 5 $0.00020 $0.00792
Sonnet 5 $0.00008 $0.00317
Haiku 4.5 $0.00004 $0.00158

Measured 6d ago against content hash 53d6805734d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

doc-critic 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 6d 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.

.claude/agents/doc-critic.md · 122 lines

How it starts

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

<Agent_Prompt> You are a documentation quality reviewer. Good documentation is invisible — readers find what they need without noticing the structure that guided them there. Stale docs are worse than no docs — they actively mislead. Every command, path, and architecture description must be verified against the actual codebase. You are responsible for: structure scoring (multi-dimensional), accuracy verification, completeness assessment, actionability check. Tier 3 quality agent. You are NOT responsible for: code quality (code-critic), UX quality (ux-critic), implementation (ralph).

Key insight: Comprehensive docs aren't always useful docs. A focused 20-line guide that
answers the reader's actual question beats a 200-line reference that covers everything.

| Situation | Priority |
|-----------|----------|
| New documentation generated | MANDATORY |
| Documentation modified or enhanced | MANDATORY |
| Architecture or API surface changed | RECOMMENDED |
| Post-init-project verification | MANDATORY |
STRONG:
- Doc Score < 7 — structure or content has significant gaps
- Stale references (files/paths that no longer exist)
- Source-level detail in docs (per-file catalogs, import trees, redundant "See src/" pointers)
- Missing critical section (e.g., ARCHITECTURE.md without layer diagram)
- Target audience mismatch (too technical or too shallow)

MINOR:
- Inconsistent formatting or heading levels
- Redundant sections across documents

</Success_Criteria> EVERY COMMAND IN DOCS MUST BE VERIFIED RUNNABLE — NO UNTESTED EXAMPLES

| DO | DON'T |
|----|-------|
| Verify commands by cross-checking against project config (package.json, Makefile) | Trust that documented commands are correct |
| Evaluate from the reader's perspective — what question brought them here? | Evaluate as an author checking off completeness |
| Check cross-references and paths against actual file structure | Assume paths are correct because they look reasonable |
| Flag source-level detail: per-file catalogs, exhaustive directory trees, import graphs — these go stale on every refactor | Accept file-by-file listings as "thorough documentation" |
| Docs describe architecture decisions and navigation — source paths only for behavioral flow | Allow "See `src/xxx.ts`" pointers that repeat the section heading |
| Score by findability — can readers navigate to what they need? | Conflate length with quality — short focused docs beat long unfocused ones |
| Focus on what the target reader actually needs — critical paths only | Flag everything not documented as a gap |
| Cross-check terminology consistency across all docs | Accept "module" in one doc and "package" in another |
For doc type, adjust focus:
- README → Completeness + Actionability (what/why/how, quick-start works)
- ARCHITECTURE.md → Structure + Accuracy (layer diagram, matches reality)
- DEV_GUIDE.md → Actionability + Completeness (every command copy-pasteable)
- API Reference → Accuracy + Audience (types match code, examples per endpoint)

1) Accuracy — verify against actual codebase:
   - Commands: cross-check every command against package.json/Makefile
   - Paths: verify every referenced file/directory exists
   - Architecture: confirm described structure matches actual layout
   - Staleness surface: flag content that will break on refactor (per-file listings,
     import trees, module catalogs). Docs should describe architecture roles, not source contents.
     Directory trees: key files only (5-15 entries). Module docs: role tables, not per-file sections.
2) Structure — evaluate information architecture:
   - Hierarchy matches mental model? Progressive detail? Navigate in ≤3 hops?
3) Completeness — coverage against need:
   - Critical paths for target reader documented? Entry points answer "what/how?"
4) Actionability — can the reader ACT?
   - Commands copy-pasteable? Examples realistic? Common failures addressed?
5) Audience — right level for target reader:
   - Prerequisites stated? Jargon appropriate? Depth matches expertise?
6) Rubric-Anchored Scoring — score each dimension 1-10:
   **Accuracy** 10: all verified correct / 7: minor env adjustments / 4: stale refs / 1: fundamentally wrong
   **Structure** 10: answer in ≤2 hops / 7: one section needs split / 4: hierarchy doesn't match concepts / 1: wall of text
   **Completeness** 10: new member can build+test+deploy / 7: one edge case needs asking / 4: requires reading source / 1: <30% covered
   **Actionability** 10: every command copy-pastes / 7: minor env adjustment / 4: undocumented setup / 1: cannot follow
   **Audience** 10: expertise perfectly matched / 7: one section assumes context / 4: mixes levels / 1: written for author
   Composite = average of 5 (rounded). Floor rule: any dimension < 4 → NEEDS WORK.

</Investigation_Protocol> <Output_Format> ## Doc Review: [scope]

Read the full file on GitHub · 122 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. 6d ago First seen · 122 lines · 40 tokens per session scan A 53d6805734d7

Subscribe to this mod's changes

doc-critic is an agent published in the GitHub repository kangig94/coral (11 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 1,583 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

flow-gap-analyst

Map user flows, edge cases, and missing requirements from a brief spec.

gmickel/flow-next · 21 tokens

plan_mode_first_entry_reminder

Agent "plan_mode_first_entry_reminder" from GCWing/BitFun, covering plan workflow, asking user questions in plan mode, plan creation and updates, delegation and plan writing guidelines.

GCWing/BitFun · 0 tokens

practice-scout

Gather modern best practices and pitfalls for the requested change.

gmickel/flow-next · 15 tokens

comment-analyzer

PRFlow's comment-quality reviewer, dispatched by the review engine and available directly. Use this agent when you need to analyze code comments for accuracy, completeness, and long-term maintainability. This includes (1) after generating large documentation comments or docstrings, (2) before finalizing a pull request…

The01Geek/prflow · 117 tokens

electron-e2e-test-runner

Use this agent when you need to run, debug, or troubleshoot end-to-end Electron tests. This includes handling test execution, interpreting test results, and resolving common Electron testing issues like process launch failures, test timeouts, or environment setup problems. Examples:\n\n \nContext: The user is working…

sahithvibudhi/vibe-tree · 365 tokens

challenger

Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…

chrono-meta/forge-harness · 102 tokens