review-doc
3
总安装量
1
周安装量
#60812
全站排名
安装命令
npx skills add https://github.com/vamdawn/ai-forge --skill review-doc
Agent 安装分布
amp
1
opencode
1
cursor
1
kimi-cli
1
codex
1
github-copilot
1
Skill 文档
Document Review
Workflow
- Read target document â Read the ENTIRE file at
$ARGUMENTSin one pass. Note total line count. - Read referenced documents â Scan for mentions of PRDs, design docs, specs, or style guides. Read each one for context. If none found, proceed without.
- Choose review mode â Based on document size:
- â¤300 lines â Single-agent mode (Step 4a)
- >300 lines â Parallel multi-agent mode (Step 4b)
4a. Single-Agent Review
Spawn ONE review sub-agent via Task tool (subagent_type: “general-purpose”). Pass full document content and all referenced context. Instruct the sub-agent to:
- Check correctness, structure, completeness, clarity, and grammar
- Categorize each issue as Critical / Important / Minor
- Return a markdown table:
Severity | Line | Category | Issue | Fix - Sort by severity (Critical first), then line number
4b. Parallel Multi-Agent Review
For documents >300 lines, split and review concurrently:
- Partition the document â Divide by top-level headings (h1/h2) into logical sections. If no headings exist, split into chunks of ~300 lines with 20-line overlap to catch cross-boundary issues. Target 2â5 chunks; never exceed 5.
- Spawn parallel sub-agents â Launch ALL sub-agents in a single message using multiple Task tool calls (subagent_type: “general-purpose”). Each sub-agent receives:
- Its assigned section/chunk (with line number range clearly stated)
- The full list of referenced documents for context
- A brief summary of the rest of the document (surrounding section titles + first sentence) so it can assess cross-references
- Instructions to check: correctness, structure, completeness, clarity, grammar
- Instructions to return a markdown table:
Severity | Line | Category | Issue | Fix
- Spawn a structure sub-agent in parallel â In the same message as Step 2, launch one additional sub-agent that reviews the document holistically for:
- Overall structure and logical flow
- Missing sections or content gaps
- Inconsistencies between sections (terminology, style, tone)
- Duplicate or contradictory content
- Table of contents accuracy (if present)
- Merge results â Collect all sub-agent tables. Deduplicate issues that appear in overlapping regions (keep the more specific description). Combine into one unified table sorted by severity then line number.
5. Apply fixes
Apply ALL fixes in one pass using Edit tool.
6. Verify
Re-read the document. If new issues remain, do ONE more fix pass maximum.
7. Report
Output summary to the user using the format below.
Output Format
## Document Review: [filename]
### Review Mode
[Single-agent | Parallel (N section agents + 1 structure agent)]
### Issues Found
| Severity | Line | Category | Source | Issue | Fix Applied |
|----------|------|----------|--------|-------|-------------|
| Critical | 42 | Correctness | Section 2 | Wrong endpoint URL | â
|
| Important | 128 | Structure | Holistic | Missing error handling section | â
|
### Summary
- Critical: N found, N fixed
- Important: N found, N fixed
- Minor: N found, N fixed
- Passes: 1 | Status: â
Complete
Edge Cases
- >1000 lines: Read in 500-line chunks, complete full read before review.
- No clear section boundaries: Fall back to fixed-size ~300-line chunks with 20-line overlap.
- No issues found: Report clean result â do not invent issues.
- User specifies focus area: Prioritize that area but still do a full review pass.
- File not found or unreadable: Report error to user and terminate â do not proceed with review.
- Sub-agent failure: If one parallel sub-agent fails, merge results from successful ones and log a warning. If all fail, fall back to reviewing directly in main session.
- Referenced document unreadable: Log a warning in the report and continue review without that reference.
- Overlapping issues from parallel agents: During merge, deduplicate by line number proximity (±3 lines) and category match â keep the entry with the more actionable fix description.