Document Review Skill
Objectives
Review technical documentation across 7 dimensions: Consistency, Accuracy, Clarity, Conciseness, Errors, Organization, and Content Relevance. Identify unnecessary content and provide actionable feedback with prioritized fixes.
Core Principle: 简单就是美 (Simplicity is Beauty)
- Less is more: Remove everything that doesn't serve the core purpose
- One concept, one explanation: No redundant content
- Essential only: If readers can succeed without it, remove it
Review Dimensions
1. Consistency (一致性)
- Terminology: Same concepts use same terms throughout
- Formatting: Uniform heading levels, code blocks, lists
- Naming: Variable/function names match actual code
- Notation: Mathematical symbols used consistently (e.g., γ always for gamma)
2. Accuracy (准确性)
- Technical Facts: Formulas, algorithms, concepts are correct
- Code Correctness: Snippets match actual implementation
- References: Links, file paths exist and are valid
- Examples: Produce stated outputs
3. Clarity (理解性)
- Explanations: Complex concepts broken down clearly
- Examples: Abstract ideas paired with concrete examples
- Flow: Logical progression from simple to complex
- Jargon: Technical terms explained when first introduced
4. Conciseness (精简度)
- Redundancy: No unnecessary repetition
- Relevance: All content serves a purpose
- Efficiency: Key points easy to find
5. Errors (错误检测)
- Spelling/Grammar: No typos or grammatical errors
- Syntax: Markdown renders properly
- Broken Elements: Dead links, missing images, broken code blocks
6. Organization (组织结构)
- Hierarchy: Clear section organization
- Navigation: TOC present, headings logical
- Grouping: Related content together
- Flow: Prerequisites before advanced topics
7. Content Relevance (内容相关性) 🆕
- Core vs Peripheral: Distinguish essential content from nice-to-have
- Redundancy Detection: Identify duplicate explanations across sections
- Scope Alignment: Flag content beyond document's stated objectives
- Unused Concepts: Identify explained concepts never applied in practice
- Bloat Indicators: Multiple tables/examples explaining same concept
Content Pruning Guidelines
Philosophy: 简单就是美 (Simplicity is Beauty)
When identifying unnecessary content, ask: "Can readers succeed without this?" If yes, remove it.
Duplicate Explanations: Same concept explained in multiple sections
- Keep the best explanation, reference it elsewhere
- Example: Bellman equation explained in both Part 3 and Part 4
- Principle: One concept = One explanation
Unused Theory: Concepts explained but never used in practice
- Example: Transition probability P(s'|s,a) in deterministic environment
- Action: Remove or move to "Advanced Topics" appendix
- Principle: If not used, not needed
Excessive Tables: Multiple tables showing similar information
- Keep the clearest one, remove redundant tables
- Example: Three different comparison tables in introduction
- Principle: One table is better than three
Over-detailed Symbols: Symbol tables with unused notation
- Only include symbols actually used in the document
- Example: General math symbols (Σ, ∞) when not used
- Principle: Essential symbols only
Scope Creep: Advanced topics beyond document's learning objectives
- Example: Deep Q-Networks in a basic Q-Learning tutorial
- Action: Move to separate "Further Reading" document
- Principle: Stay focused on core objectives
Verbose Examples: Too many examples for simple concepts
- One clear example is usually enough
- Multiple examples only for complex/critical concepts
- Principle: Quality over quantity
Backup Files: Keep only the final, best version
- Delete verbose backups, drafts, and alternative versions
- Principle: 简单就是美 - One clean version is enough
Review Process
- Initial Scan: Read title, TOC, skim headings to understand structure and objectives
- Systematic Review: Go through each dimension checking against criteria
- Content Relevance Check: Identify sections that don't serve core objectives
- Generate Report: Use output format below with pruning recommendations
Output Format
# Document Review Report
**Document**: [filename]
**Reviewed**: [date]
## Summary
[1-2 sentence overall assessment]
## Strengths ✅
- [What works well - 3-5 points]
## Issues Found 🔍
### Critical Issues ⚠️
1. **[Dimension]**: [Issue with location]
- **Impact**: [Why this matters]
- **Fix**: [How to resolve]
### Major Issues ⚡
1. **[Dimension]**: [Issue]
- **Fix**: [Recommendation]
### Minor Issues 📝
1. **[Dimension]**: [Issue]
- **Fix**: [Quick fix]
## Priority Fixes (Top 3)
1. [Most important fix]
2. [Second priority]
3. [Third priority]
## Content Pruning Recommendations 🆕
### High Priority Removal (Redundant/Unused)
1. **[Section]**: [What to remove]
- **Reason**: [Why it's unnecessary]
- **Impact**: [How much shorter document becomes]
### Medium Priority Simplification
1. **[Section]**: [What to simplify]
- **Current**: [Current state]
- **Suggested**: [Simplified version]
### Optional Content (Move to Appendix)
1. **[Section]**: [Advanced/tangential content]
- **Reason**: [Why it's optional]
- **Suggestion**: [Where to move it]
## Detailed Findings by Dimension
[Specific findings for each dimension including Content Relevance]
Key Instructions
- Be Specific: Point to exact locations (line numbers, section names)
- Be Constructive: Suggest improvements, not just criticisms
- Prioritize: Focus on high-impact fixes first
- Verify Code: Check that code snippets match actual implementation files
- Test Links: Verify all file paths and URLs are valid
- Check Consistency: Ensure terminology matches between code and docs
- Identify Bloat: Flag redundant, unused, or out-of-scope content
- Suggest Pruning: Provide specific sections to remove or simplify
- Embrace Simplicity: 简单就是美 - Always prefer the simpler, clearer version
Common Issues & Quick Fixes
| Issue |
Example |
Fix |
| Inconsistent terminology |
"epoch" vs "episode" |
Choose one term, use consistently |
| Code mismatch |
Doc shows epochs=500, code has episodes=50 |
Update doc to match code |
| Missing context |
Using γ without explanation |
Define: "γ (gamma, discount factor)" |
| Broken references |
Link to non-existent file |
Verify path, update to correct location |
| Poor structure |
Advanced before basics |
Reorganize: Overview → Basics → Advanced |
| Duplicate content |
Same concept in Part 3 and Part 4 |
Keep best version, reference elsewhere |
| Unused theory |
P(s'|s,a) in deterministic environment |
Remove or move to appendix |
| Excessive tables |
Three comparison tables in intro |
Keep clearest one, remove others |
Pruning Decision Framework
Use this framework to decide if content should be removed:
Is this content...
├─ Used in practice/code?
│ ├─ NO → Consider removing
│ └─ YES → Keep
├─ Explained elsewhere?
│ ├─ YES → Remove duplicate, add reference
│ └─ NO → Keep
├─ Within document scope?
│ ├─ NO → Move to appendix or separate doc
│ └─ YES → Keep
└─ Essential for understanding?
├─ NO → Consider removing
└─ YES → Keep but simplify if verbose
Validation
Before finalizing review:
Simplicity Checklist
After pruning, verify the document follows these principles:
Remember: 简单就是美 - If readers can succeed without it, remove it.
For detailed review guidelines and examples: See references/review-guide.md (if needed)
1---2name: dev-document-review3description: Systematically review technical documentation for quality issues. Use when (1) user asks to check/review a document, (2) mentions consistency/accuracy/errors in docs, (3) needs feedback on technical writing quality.4---56# Document Review Skill78## Objectives910Review technical documentation across 7 dimensions: Consistency, Accuracy, Clarity, Conciseness, Errors, Organization, and Content Relevance. Identify unnecessary content and provide actionable feedback with prioritized fixes.1112**Core Principle: 简单就是美 (Simplicity is Beauty)**1314- Less is more: Remove everything that doesn't serve the core purpose15- One concept, one explanation: No redundant content16- Essential only: If readers can succeed without it, remove it1718## Review Dimensions1920### 1. Consistency (一致性)2122- **Terminology**: Same concepts use same terms throughout23- **Formatting**: Uniform heading levels, code blocks, lists24- **Naming**: Variable/function names match actual code25- **Notation**: Mathematical symbols used consistently (e.g., γ always for gamma)2627### 2. Accuracy (准确性)2829- **Technical Facts**: Formulas, algorithms, concepts are correct30- **Code Correctness**: Snippets match actual implementation31- **References**: Links, file paths exist and are valid32- **Examples**: Produce stated outputs3334### 3. Clarity (理解性)3536- **Explanations**: Complex concepts broken down clearly37- **Examples**: Abstract ideas paired with concrete examples38- **Flow**: Logical progression from simple to complex39- **Jargon**: Technical terms explained when first introduced4041### 4. Conciseness (精简度)4243- **Redundancy**: No unnecessary repetition44- **Relevance**: All content serves a purpose45- **Efficiency**: Key points easy to find4647### 5. Errors (错误检测)4849- **Spelling/Grammar**: No typos or grammatical errors50- **Syntax**: Markdown renders properly51- **Broken Elements**: Dead links, missing images, broken code blocks5253### 6. Organization (组织结构)5455- **Hierarchy**: Clear section organization56- **Navigation**: TOC present, headings logical57- **Grouping**: Related content together58- **Flow**: Prerequisites before advanced topics5960### 7. Content Relevance (内容相关性) 🆕6162- **Core vs Peripheral**: Distinguish essential content from nice-to-have63- **Redundancy Detection**: Identify duplicate explanations across sections64- **Scope Alignment**: Flag content beyond document's stated objectives65- **Unused Concepts**: Identify explained concepts never applied in practice66- **Bloat Indicators**: Multiple tables/examples explaining same concept6768## Content Pruning Guidelines6970**Philosophy: 简单就是美 (Simplicity is Beauty)**7172When identifying unnecessary content, ask: "Can readers succeed without this?" If yes, remove it.73741. **Duplicate Explanations**: Same concept explained in multiple sections75 - Keep the best explanation, reference it elsewhere76 - Example: Bellman equation explained in both Part 3 and Part 477 - **Principle**: One concept = One explanation78792. **Unused Theory**: Concepts explained but never used in practice80 - Example: Transition probability P(s'|s,a) in deterministic environment81 - Action: Remove or move to "Advanced Topics" appendix82 - **Principle**: If not used, not needed83843. **Excessive Tables**: Multiple tables showing similar information85 - Keep the clearest one, remove redundant tables86 - Example: Three different comparison tables in introduction87 - **Principle**: One table is better than three88894. **Over-detailed Symbols**: Symbol tables with unused notation90 - Only include symbols actually used in the document91 - Example: General math symbols (Σ, ∞) when not used92 - **Principle**: Essential symbols only93945. **Scope Creep**: Advanced topics beyond document's learning objectives95 - Example: Deep Q-Networks in a basic Q-Learning tutorial96 - Action: Move to separate "Further Reading" document97 - **Principle**: Stay focused on core objectives98996. **Verbose Examples**: Too many examples for simple concepts100 - One clear example is usually enough101 - Multiple examples only for complex/critical concepts102 - **Principle**: Quality over quantity1031047. **Backup Files**: Keep only the final, best version105 - Delete verbose backups, drafts, and alternative versions106 - **Principle**: 简单就是美 - One clean version is enough107108## Review Process1091101. **Initial Scan**: Read title, TOC, skim headings to understand structure and objectives1112. **Systematic Review**: Go through each dimension checking against criteria1123. **Content Relevance Check**: Identify sections that don't serve core objectives1134. **Generate Report**: Use output format below with pruning recommendations114115## Output Format116117```markdown118# Document Review Report119120**Document**: [filename]121**Reviewed**: [date]122123## Summary124125[1-2 sentence overall assessment]126127## Strengths ✅128129- [What works well - 3-5 points]130131## Issues Found 🔍132133### Critical Issues ⚠️1341351. **[Dimension]**: [Issue with location]136 - **Impact**: [Why this matters]137 - **Fix**: [How to resolve]138139### Major Issues ⚡1401411. **[Dimension]**: [Issue]142 - **Fix**: [Recommendation]143144### Minor Issues 📝1451461. **[Dimension]**: [Issue]147 - **Fix**: [Quick fix]148149## Priority Fixes (Top 3)1501511. [Most important fix]1522. [Second priority]1533. [Third priority]154155## Content Pruning Recommendations 🆕156157### High Priority Removal (Redundant/Unused)1581591. **[Section]**: [What to remove]160 - **Reason**: [Why it's unnecessary]161 - **Impact**: [How much shorter document becomes]162163### Medium Priority Simplification1641651. **[Section]**: [What to simplify]166 - **Current**: [Current state]167 - **Suggested**: [Simplified version]168169### Optional Content (Move to Appendix)1701711. **[Section]**: [Advanced/tangential content]172 - **Reason**: [Why it's optional]173 - **Suggestion**: [Where to move it]174175## Detailed Findings by Dimension176177[Specific findings for each dimension including Content Relevance]178```179180## Key Instructions1811821. **Be Specific**: Point to exact locations (line numbers, section names)1832. **Be Constructive**: Suggest improvements, not just criticisms1843. **Prioritize**: Focus on high-impact fixes first1854. **Verify Code**: Check that code snippets match actual implementation files1865. **Test Links**: Verify all file paths and URLs are valid1876. **Check Consistency**: Ensure terminology matches between code and docs1887. **Identify Bloat**: Flag redundant, unused, or out-of-scope content1898. **Suggest Pruning**: Provide specific sections to remove or simplify1909. **Embrace Simplicity**: 简单就是美 - Always prefer the simpler, clearer version191192## Common Issues & Quick Fixes193194| Issue | Example | Fix |195| ------------------------ | ---------------------------------------------- | ---------------------------------------- |196| Inconsistent terminology | "epoch" vs "episode" | Choose one term, use consistently |197| Code mismatch | Doc shows `epochs=500`, code has `episodes=50` | Update doc to match code |198| Missing context | Using γ without explanation | Define: "γ (gamma, discount factor)" |199| Broken references | Link to non-existent file | Verify path, update to correct location |200| Poor structure | Advanced before basics | Reorganize: Overview → Basics → Advanced |201| Duplicate content | Same concept in Part 3 and Part 4 | Keep best version, reference elsewhere |202| Unused theory | P(s'\|s,a) in deterministic environment | Remove or move to appendix |203| Excessive tables | Three comparison tables in intro | Keep clearest one, remove others |204205## Pruning Decision Framework206207Use this framework to decide if content should be removed:208209```210Is this content...211├─ Used in practice/code?212│ ├─ NO → Consider removing213│ └─ YES → Keep214├─ Explained elsewhere?215│ ├─ YES → Remove duplicate, add reference216│ └─ NO → Keep217├─ Within document scope?218│ ├─ NO → Move to appendix or separate doc219│ └─ YES → Keep220└─ Essential for understanding?221 ├─ NO → Consider removing222 └─ YES → Keep but simplify if verbose223```224225## Validation226227Before finalizing review:228229- [ ] All issues have specific locations230- [ ] Fixes are actionable and clear231- [ ] Priority ranking makes sense232- [ ] Strengths are acknowledged233- [ ] Report is concise and scannable234- [ ] Pruning recommendations are justified235- [ ] Estimated length reduction calculated236- [ ] Final version embraces 简单就是美 (simplicity is beauty)237238## Simplicity Checklist239240After pruning, verify the document follows these principles:241242- [ ] **One Purpose**: Document has a clear, single objective243- [ ] **One Explanation**: Each concept explained once, referenced elsewhere244- [ ] **Essential Only**: Every section serves the core purpose245- [ ] **No Redundancy**: No duplicate tables, examples, or explanations246- [ ] **Clean Structure**: Clear hierarchy, easy navigation247- [ ] **Minimal Versions**: Only one final version, no backups in repo248249**Remember**: 简单就是美 - If readers can succeed without it, remove it.250251**For detailed review guidelines and examples:** See `references/review-guide.md` (if needed)