Documentation Style Guide
Overview
This skill provides standards and conventions for writing project documentation. Apply these guidelines to ensure consistent, professional, and maintainable documentation across the project.
When to Use This Skill
Activate this skill when:
- Writing new documentation (README, guides, architecture docs, etc.)
- Reviewing existing documentation for style consistency
- Improving documentation structure or readability
- Ensuring documentation follows project standards
- Users request "write documentation following style guide" or similar
Core Guidelines
Document Structure Principles
Follow these structural standards:
- Start with clear H1 title and one-line description
- Use H2 (
##) for main sections, H3 (###) for subsections
- Separate major sections with horizontal rules (
---)
- Keep section titles concise and action-oriented
Writing Style Standards
Apply these writing conventions:
- Use clear, direct language in present tense
- Prefer active voice over passive voice
- Keep content concise and focused
- Start bullet points with action verbs
- Use parallel structure in lists
Technical Formatting
Apply consistent formatting:
- Use backticks for code elements:
variable, function(), file.txt
- Use bold for important concepts
- Use italics sparingly for subtle emphasis
- Include language identifiers in fenced code blocks
- Keep examples short and focused
Content Organization
Structure content effectively:
- One main idea per section
- Limit lists to 5-7 items for readability
- Provide concrete examples over abstract concepts
- Link to other documents instead of repeating content
- Keep documents under 200 lines when possible
Usage Workflow
Creating New Documentation
When writing new documentation:
- Structure: Start with title, description, and main sections with horizontal rules
- Content: Write in present tense, active voice, with clear bullet points
- Formatting: Apply backticks for code, bold for emphasis, proper code blocks
- Examples: Include concrete, realistic examples with proper formatting
- Review: Check against style guide before finalizing
Reviewing Existing Documentation
When reviewing documentation:
- Load Reference: Read
references/DOCUMENTATION_STYLE.md for complete guidelines
- Structure Check: Verify proper heading hierarchy and section separation
- Style Check: Ensure consistent tone, voice, and formatting
- Content Check: Verify clarity, conciseness, and proper organization
- Provide Feedback: List specific improvements with examples
Common Review Patterns
Search for these common issues:
- Passive voice: "should be used" → "use"
- Inconsistent formatting: missing backticks on code elements
- Overly long sections: break into subsections
- Missing examples: add concrete illustrations
- Redundant content: consolidate or link to other docs
Resources
references/DOCUMENTATION_STYLE.md
Complete style guide documentation with detailed sections:
- Document structure templates and examples
- Writing style guidelines and tone standards
- Code formatting conventions
- List organization best practices
- Special sections (benefits, summaries)
- Formatting conventions (emphasis, links, code)
- Content guidelines (specificity, focus, updates)
- Document type patterns (reference, guide, overview)
When to read: Load this reference when reviewing documentation, answering detailed style questions, or when more comprehensive guidance is needed beyond the core guidelines in this skill.
Search patterns: Use grep to find specific guidance:
- "tone and voice" for writing style
- "code examples" for code formatting
- "list structure" for organizing lists
- "benefits sections" for special formatting
Examples
Example 1: Creating New Documentation
User: "Write a new architecture document for the CLI sync component"
Response:
- Apply document structure with H1 title, description, and
--- separator
- Organize with H2 main sections (Overview, Architecture, Components)
- Use backticks for technical terms:
CLISyncer, sync_config()
- Include concrete code examples with language identifiers
- Keep sections focused and under 200 lines total
Example 2: Reviewing Documentation
User: "Review this README for style compliance"
Response:
- Check structure: proper heading hierarchy, section separators
- Check style: present tense, active voice, clear bullets
- Check formatting: code elements in backticks, proper emphasis
- Provide specific feedback with before/after examples
- List improvements prioritized by impact
Example 3: Improving Documentation
User: "Improve the documentation style in this guide"
Response:
- Load
references/DOCUMENTATION_STYLE.md for comprehensive guidelines
- Identify style issues: passive voice, inconsistent formatting, structure
- Apply corrections following the complete style guide
- Maintain original meaning while improving clarity
- Explain changes made and rationale
Notes
- The complete style guide in
references/ contains comprehensive details
- For quick checks, use the core guidelines in this skill
- For thorough reviews or detailed questions, load the full reference
- Maintain consistency across all project documentation
- Update style guide when new patterns emerge
1---2name: documentation-style3description: Apply consistent documentation standards and style guidelines when creating, reviewing, or improving project documentation (README, architecture docs, guides, references). This skill should be used when writing new documentation, reviewing existing docs for style consistency, or when users request documentation improvements or style guide compliance checks.4---5
6# Documentation Style Guide
7
8## Overview
9
10This skill provides standards and conventions for writing project documentation. Apply these guidelines to ensure consistent, professional, and maintainable documentation across the project.
11
12## When to Use This Skill
13
14Activate this skill when:
15- Writing new documentation (README, guides, architecture docs, etc.)
16- Reviewing existing documentation for style consistency
17- Improving documentation structure or readability
18- Ensuring documentation follows project standards
19- Users request "write documentation following style guide" or similar
20
21## Core Guidelines
22
23### Document Structure Principles
24
25Follow these structural standards:
26- Start with clear H1 title and one-line description
27- Use H2 (`##`) for main sections, H3 (`###`) for subsections
28- Separate major sections with horizontal rules (`---`)
29- Keep section titles concise and action-oriented
30
31### Writing Style Standards
32
33Apply these writing conventions:
34- Use clear, direct language in present tense
35- Prefer active voice over passive voice
36- Keep content concise and focused
37- Start bullet points with action verbs
38- Use parallel structure in lists
39
40### Technical Formatting
41
42Apply consistent formatting:
43- Use backticks for code elements: `variable`, `function()`, `file.txt`
44- Use **bold** for important concepts
45- Use *italics* sparingly for subtle emphasis
46- Include language identifiers in fenced code blocks
47- Keep examples short and focused
48
49### Content Organization
50
51Structure content effectively:
52- One main idea per section
53- Limit lists to 5-7 items for readability
54- Provide concrete examples over abstract concepts
55- Link to other documents instead of repeating content
56- Keep documents under 200 lines when possible
57
58## Usage Workflow
59
60### Creating New Documentation
61
62When writing new documentation:
63
641. **Structure**: Start with title, description, and main sections with horizontal rules
652. **Content**: Write in present tense, active voice, with clear bullet points
663. **Formatting**: Apply backticks for code, bold for emphasis, proper code blocks
674. **Examples**: Include concrete, realistic examples with proper formatting
685. **Review**: Check against style guide before finalizing
69
70### Reviewing Existing Documentation
71
72When reviewing documentation:
73
741. **Load Reference**: Read `references/DOCUMENTATION_STYLE.md` for complete guidelines
752. **Structure Check**: Verify proper heading hierarchy and section separation
763. **Style Check**: Ensure consistent tone, voice, and formatting
774. **Content Check**: Verify clarity, conciseness, and proper organization
785. **Provide Feedback**: List specific improvements with examples
79
80### Common Review Patterns
81
82Search for these common issues:
83- Passive voice: "should be used" → "use"
84- Inconsistent formatting: missing backticks on code elements
85- Overly long sections: break into subsections
86- Missing examples: add concrete illustrations
87- Redundant content: consolidate or link to other docs
88
89## Resources
90
91### references/DOCUMENTATION_STYLE.md
92
93Complete style guide documentation with detailed sections:
94- Document structure templates and examples
95- Writing style guidelines and tone standards
96- Code formatting conventions
97- List organization best practices
98- Special sections (benefits, summaries)
99- Formatting conventions (emphasis, links, code)
100- Content guidelines (specificity, focus, updates)
101- Document type patterns (reference, guide, overview)
102
103**When to read**: Load this reference when reviewing documentation, answering detailed style questions, or when more comprehensive guidance is needed beyond the core guidelines in this skill.
104
105**Search patterns**: Use grep to find specific guidance:
106- "tone and voice" for writing style
107- "code examples" for code formatting
108- "list structure" for organizing lists
109- "benefits sections" for special formatting
110
111## Examples
112
113### Example 1: Creating New Documentation
114
115User: "Write a new architecture document for the CLI sync component"
116
117Response:
1181. Apply document structure with H1 title, description, and `---` separator
1192. Organize with H2 main sections (Overview, Architecture, Components)
1203. Use backticks for technical terms: `CLISyncer`, `sync_config()`
1214. Include concrete code examples with language identifiers
1225. Keep sections focused and under 200 lines total
123
124### Example 2: Reviewing Documentation
125
126User: "Review this README for style compliance"
127
128Response:
1291. Check structure: proper heading hierarchy, section separators
1302. Check style: present tense, active voice, clear bullets
1313. Check formatting: code elements in backticks, proper emphasis
1324. Provide specific feedback with before/after examples
1335. List improvements prioritized by impact
134
135### Example 3: Improving Documentation
136
137User: "Improve the documentation style in this guide"
138
139Response:
1401. Load `references/DOCUMENTATION_STYLE.md` for comprehensive guidelines
1412. Identify style issues: passive voice, inconsistent formatting, structure
1423. Apply corrections following the complete style guide
1434. Maintain original meaning while improving clarity
1445. Explain changes made and rationale
145
146## Notes
147
148- The complete style guide in `references/` contains comprehensive details
149- For quick checks, use the core guidelines in this skill
150- For thorough reviews or detailed questions, load the full reference
151- Maintain consistency across all project documentation
152- Update style guide when new patterns emerge