doc-review

doc-review is a command for Claude Code, OpenCode from rianvdm/product-ai-public. It costs 14 tokens per session (1,957 once invoked), scanned A, original, MIT.

A file review command that uses several independent reviewers and a final validation pass to check a generated file. It can check accuracy, completeness, style, and an optional custom concern.

In plain words
What is it for?
Use it to review files produced by commands such as planning documents, product requirement documents, or objectives and key results.
Why use it?
Generated documents can contain missing information, incorrect details, or formatting problems. Independent checks help find issues before the file is used or shared.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: mentions subagents; mentions OpenCode.

Good fit Use it to review files produced by commands such as planning documents, product requirement documents, or objectives and key results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rianvdm/product-ai-public/doc-review
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/rianvdm/product-ai-public

Made for: Claude Code, OpenCode.

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-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/rianvdm/product-ai-public/doc-review/github.svg)](https://agentmods.dev/commands/rianvdm/product-ai-public/doc-review)
Your own site
<a href="https://agentmods.dev/commands/rianvdm/product-ai-public/doc-review"><img src="https://agentmods.dev/badge/commands/rianvdm/product-ai-public/doc-review/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 doc-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/rianvdm/product-ai-public/doc-review"><img src="https://agentmods.dev/badge/commands/rianvdm/product-ai-public/doc-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 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,957 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00014 $0.01957
Opus 5 $0.00007 $0.00979
Sonnet 5 $0.00003 $0.00391
Haiku 4.5 $0.00001 $0.00196

Measured yesterday against content hash e37d2b3c41e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

doc-review 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 yesterday.

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.

.opencode/command/doc-review.md · 160 lines

How it starts

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

Review Generated File

Review a file produced by another command (e.g., /ask-se, /prd, /okr) using parallel subagents with independent focus areas, followed by a validation pass that filters out false positives.

Input

$ARGUMENTS

The input should include a file path to review. Optionally, the user may append a --focus directive to add a custom lens (e.g., --focus "verify all Jira links are real").

Parse the arguments:

  • File path — everything before --focus (required)
  • Custom focus — everything after --focus (optional, passed to all three subagents as additional guidance)

If no file path is provided, ask the user which file to review.

Pre-Flight

  1. Read the target file using the Read tool. If it doesn't exist, stop and tell the user.

  2. Detect the source command from the file's location to determine which format spec to check against:

File location Source command Format reference
work/support/ /ask-se .opencode/command/ask-se.md (Summary → Structure → Sources → FAQ sections)
*/prds/ /prd 02-prompts/pm/draft-review-prd.md (Problem-first, POA, required sections)
*/okrs/ /okr 02-prompts/pm/review-okrs.md (Problem → End State → Objective → Key Results)
Other Unknown 01-context/writing-style-work.md (general style check only)
  1. Read the format reference file so the style/structure agent has the spec.

  2. Read the writing style file (01-context/writing-style-work.md for work files, 01-context/writing-style-personal.md for personal files).

Phase 1: Parallel Review (Three Subagents)

Launch THREE (3) subagents in parallel using the Task tool. Use @research agents for Subagents 1 and 2 (they need MCP access to verify facts and check coverage), and the @editor agent for Subagent 3 (dedicated style and AI-pattern editor).

Each subagent receives:

  • The full content of the target file
  • The file path
  • The format reference content (from Pre-Flight step 2)
  • The custom --focus directive, if provided
  • Their specific focus area (below)

Read the full file on GitHub · 160 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. yesterday First seen · 160 lines · 14 tokens per session scan A e37d2b3c41e5

Subscribe to this mod's changes

doc-review is a command published in the GitHub repository rianvdm/product-ai-public (15 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 1,957 once invoked, about $0.0001 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-09-09.