Skill

doc-review

Install
1
Install the plugin
$
npx claudepluginhub sd0xdev/sd0x-dev-flow --plugin sd0x-dev-flow

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Document review via Codex MCP. Use when: reviewing .md docs, tech spec audit, document quality check. Not for: code review (use codex-code-review), test review (use test-review). Output: 5-dimension rating table + gate.

Tool Access

This skill is limited to using the following tools:

mcp__codex__codexmcp__codex__codex-replyBash(git:*)ReadGrepGlob
Supporting Assets
View in Repository
references/codex-prompt-doc.md
references/review-loop-doc.md
Skill Content

Document Review Skill

Trigger

  • Keywords: review doc, document review, tech spec review, review-spec, doc-refactor, streamline doc

When NOT to Use

  • Code review (use codex-code-review)
  • Test coverage review (use test-review)
  • Just want to read a document (use Read directly)

Commands

CommandDescriptionUse Case
/codex-review-docCodex reviews .md docsDocument changes
/review-specReview tech specSpec confirmation
/doc-refactorStreamline documentsDoc too long
/update-docsResearch & update docsAfter code change

Workflow: /codex-review-doc

Determine target → Read content → Codex review (5 dimensions) → Rating table + Gate → Loop if Needs revision

Step 1: Determine Target File

ConditionAction
Path specifiedUse that path directly
No pathAuto-detect: git modified .md → staged .md → new .md
Multiple filesList and ask user which to review

Step 2: Read File Content

Read target file, save as FILE_CONTENT.

Step 3: Codex Review

First review: mcp__codex__codex with doc review prompt. See references/codex-prompt-doc.md.

Config: sandbox: 'read-only', approval-policy: 'never'

Save the returned threadId.

Loop review: mcp__codex__codex-reply with re-review template. See references/review-loop-doc.md.

Step 4: Consolidate Output

Organize results into rating table + severity-grouped findings + gate.

Review Dimensions

DimensionChecks
Architecture DesignSystem boundaries, responsibilities, dependencies, extensibility
PerformanceBottlenecks, concurrency, caching, resource usage
SecurityData leakage, access control, input validation, error handling
Documentation QualityStructure, completeness, accuracy, examples, docs-writing standards
Code ConsistencyPseudocode matches codebase, referenced files exist, technical accuracy

Review Loop

⚠️ @CLAUDE.md auto-loop: fix → re-review → ... → ✅ PASS ⚠️

⛔ Needs revision → fix 🔴 items → /codex-review-doc --continue <threadId> → repeat until ✅ Mergeable.

Max 3 rounds. Still failing → report blocker.

Verification

  • Each issue tagged with severity (🔴/🟡/⚪)
  • Gate is clear (✅ Mergeable / ⛔ Needs revision)
  • Codex verified code-documentation consistency independently

Required Actions

Change TypeMust Execute
.md docs/codex-review-doc or /review-spec
Tech spec/review-spec
README/codex-review-doc

References

  • Doc review prompt: references/codex-prompt-doc.md
  • Review loop: references/review-loop-doc.md
  • Standards: @rules/docs-writing.md

Examples

Input: /codex-review-doc docs/features/xxx/tech-spec.md
Action: Read file → Codex doc prompt → Rating table + Findings + Gate

Input: /codex-review-doc
Action: Auto-detect changed .md → Codex doc prompt → Rating table + Gate

Input: Review this tech spec for me
Action: /review-spec → Check completeness/feasibility/risks → Output Gate

Input: This document is too long, streamline it
Action: /doc-refactor → Tabularize + Mermaid → Output comparison
Stats
Stars90
Forks12
Last CommitMar 9, 2026
Actions

Similar Skills