Borrowing it
Nothing to install: this file belongs to kangig94/coral. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kangig94/coral/main/.claude/agents/doc-critic.mdgit clone --depth 1 https://github.com/kangig94/coralWrote 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.
[](https://agentmods.dev/agents/kangig94/coral/doc-critic)<a href="https://agentmods.dev/agents/kangig94/coral/doc-critic"><img src="https://agentmods.dev/badge/agents/kangig94/coral/doc-critic/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.
<a href="https://agentmods.dev/agents/kangig94/coral/doc-critic"><img src="https://agentmods.dev/badge/agents/kangig94/coral/doc-critic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.02053 |
| Opus 5.5 | $0.00016 | $0.00821 |
| Sonnet 5.5 | $0.00008 | $0.00411 |
| Haiku 4.5 | $0.00004 | $0.00205 |
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 14d 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.
How it starts
The opening of the file, as written. The whole thing — 148 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. Doc-tier agent: under tier-review --gated
you run last, after the In scope code findings are fixed.
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 |
<Finding_Tier_Rules>
| DO | DON'T |
|----|-------|
| Classify each real defect before assigning severity. Use the caller's review scope, or the diff if no scope was passed. | Let severity decide the tier. |
| Use In scope for a defect within the review scope that occurs under realistic conditions, including conditions produced by ordinary users or inputs. Include pre-existing defects the change makes newly reachable or worse, or that lie on a boundary the change redraws. | Treat untouched code or docs as automatically Out of scope. |
| Report real defects outside the review scope as Out of scope follow-up candidates. State why each is out of scope. | Expand the review scope to act on follow-up candidates. |
| Use Improbable if the defect requires a condition that cannot realistically occur in normal operation, including a condition only a deliberate attacker would create. Name the condition, explain why it is unrealistic, and mark attacker-creatable yes if an attacker could create it or no otherwise. | Use Improbable when you cannot name the required condition. Put that finding In scope. |
| Assign severity in every tier. Use only In scope findings to score the reviewed work and decide the verdict under the existing floor rules. | Let Out of scope or Improbable findings change a score or verdict. |
</Finding_Tier_Rules>
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.
- 14d ago Changed · +25 lines 7eab3b139043
- 2mo ago Changed · +1 lines d1eb0a61f8e4
- 3mo ago First seen · 122 lines · 40 tokens per session scan A 53d6805734d7
doc-critic is an agent published in the GitHub repository kangig94/coral (11 stars, last pushed 13d ago), licensed MIT. It adds 40 tokens to every session and 2,053 once invoked, about $0.0002 per session on Opus 5.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.
doc-critic compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc-critickangig94/coral | Agent | 11 | 13d ago | MIT | A | 40 | Claude Code |
| flow-gap-analystgmickel/flow-next | Agent | 737 | yesterday | MIT | A | 21 | Claude Code |
| practice-scoutgmickel/flow-next | Agent | 737 | yesterday | MIT | A | 15 | Claude Code |
| analyzerfeiskyer/claude-code-settings | Agent | 1.7k | 1mo ago | MIT | A | 29 | Claude Code |
| ba-designerArch1eSUN/Arcgentic | Agent | 199 | 2mo ago | MIT | A | 53 | Claude Code |
| hotspot-analystpanbanda/omen | Agent | 25 | 4d ago | Apache-2.0 | A | 21 | Claude Code |
| browser-testerandrewcigan/vibe-dev-plugin | Agent | 5 | 2mo ago | MIT | A | 76 | Claude Code |