writing-documentation
Writing Documentation Skill
Apply Strunk & White's Elements of Style principles to produce concise, clear technical documentation.
When to Use This Skill
Use this skill when:
- Writing new documentation (README, API docs, guides, tutorials, architecture docs)
- Improving existing documentation
- Reviewing documentation for quality
- User asks to "make this more concise" or "improve clarity"
- User mentions: documentation, docs, README, guide, tutorial, API docs
Do NOT use this skill for:
- Code comments (different context, separate skill needed)
- Marketing copy (requires persuasive voice, not neutral clarity)
- Personal blog posts (requires individual voice)
Workflows
Workflow 1: Write New Documentation
Steps:
-
Understand the purpose
- What is the primary goal of this documentation?
- Who is the target audience?
- What do readers need to accomplish after reading?
-
Load writing principles
- Read
reference/strunk-white-principles.mdto internalize core principles
- Read
-
Determine documentation type
- Read
reference/doc-types.mdto select appropriate type - Identify essential sections based on guidelines
- Read
-
Draft the documentation
- Apply Strunk & White principles while writing
-
Validate quality
- Run through Quality Checklist (below)
- Verify all essential information is present
- Confirm document achieves its purpose
Workflow 2: Improve Existing Documentation
Steps:
-
Read the current documentation
- Understand its purpose and audience
- Note specific problems (verbosity, unclear sections, missing info)
-
Load writing principles
- Read
reference/strunk-white-principles.md - Review
reference/examples.mdfor before/after patterns
- Read
-
Apply improvements
- Remove needless words
- Convert passive to active voice
- Strengthen vague statements
- Eliminate redundancy
- Improve organization if needed
-
Validate improvements
- Run through Quality Checklist
- Verify no information was lost
- Confirm clarity improved
Workflow 3: Review Documentation
Steps:
-
Load writing principles
- Read
reference/strunk-white-principles.md - Review relevant guidelines in
reference/doc-types.md
- Read
-
Assess against quality criteria
- Run through Quality Checklist (below)
- Note specific violations with examples
-
Provide feedback
- List specific issues found
- Reference violated principles
- Suggest concrete improvements
Decision Framework
When to Write vs Improve
Write new documentation when:
- No documentation exists
- Existing documentation is fundamentally wrong or outdated
- Complete restructuring needed (cheaper to rewrite)
Improve existing documentation when:
- Core structure and information are sound
- Style or clarity issues can be fixed incrementally
- Specific sections need enhancement
Choosing Documentation Type
See reference/doc-types.md for detailed guidelines. Quick reference:
- README: Project overview, quick start, primary entry point
- API Documentation: Reference for function/endpoint signatures and behavior
- Tutorial/Guide: Step-by-step learning path for accomplishing specific goals
- Architecture/Design Doc: Explain system structure, decisions, and tradeoffs
- CLI Tool Documentation: Command reference with options and examples
Prioritizing Conciseness vs Comprehensiveness
Prioritize conciseness when:
- Documentation type is reference (README, API docs, CLI docs)
- Readers need to scan quickly
- Getting started / quick start sections
Prioritize comprehensiveness when:
- Documentation type is learning-focused (tutorials, guides)
- Complex concepts require detailed explanation
- Architecture decisions need thorough justification
Balance both:
- Use concise overview sections with detailed subsections
- Link to comprehensive resources rather than embedding everything
- Apply progressive disclosure pattern
Quality Checklist
Content
- Purpose is clear
- Essential information is present
- No unnecessary information
- Correct and accurate
Writing (Core Principles)
- Active voice predominates
- Definite statements (not hedging)
- Positive form
- Specific, concrete language
- Concise (no needless words)
Structure
- Logical organization
- Clear headings
- Scannable
- Examples where helpful
Technical Documentation
- Code examples are executable
- Commands include full context
- Prerequisites are stated
- Error cases are covered
Reference Files
When to Load Each Reference
Load reference/strunk-white-principles.md:
- At the start of EVERY documentation writing/improvement task
- When reviewing documentation
Load reference/doc-types.md:
- When choosing what type of documentation to write
- When unsure about essential sections for a doc type
- When reviewing documentation structure
Load reference/examples.md:
- When improving existing documentation (see patterns)
- When you want concrete before/after examples
Common Pitfalls
Skipping Principle Loading: ALWAYS load reference/strunk-white-principles.md before writing.
Following Guidelines Rigidly: Adapt to the specific project's needs. Some projects don't need all sections; some need additional ones.
Over-Editing: "Omit needless words" means remove words that add no value. Keep all information that serves the reader's purpose.
Sacrificing Accuracy for Brevity: Accuracy always wins. Express explanations concisely, but never misleadingly.
Inconsistent Terminology: Choose one term for each concept and use it consistently.
Notes
- This skill works iteratively - you can run it multiple times on the same document without degrading quality (idempotent)
- Quality over quantity - a short, clear document is better than a comprehensive, confusing one
More from nilecui/skillsbase
drawio-diagrams-enhanced
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
107using-shadcn-ui
Use when building React UI components, implementing design systems, or needing pre-built accessible components - leverages shadcn/ui primitives and shadcnblocks.com (829 production-ready blocks) for rapid interface development
22documentation-writing
Writing clear, discoverable software documentation following the Eight Rules and Diataxis framework. Use when creating README files, API docs, tutorials, how-to guides, or any project documentation. Automatically enforces docs/ location, linking requirements, and runnable examples.
21architecture-diagrams
Create system architecture diagrams using Mermaid, PlantUML, C4 model, flowcharts, and sequence diagrams. Use when documenting architecture, system design, data flows, or technical workflows.
19llm-docs-optimizer
Optimize documentation for AI coding assistants and LLMs. Improves docs for Claude, Copilot, and other AI tools through c7score optimization, llms.txt generation, question-driven restructuring, and automated quality scoring. Use when asked to improve, optimize, or enhance documentation for AI assistants, LLMs, c7score, Context7, or when creating llms.txt files. Also use for documentation quality analysis, README optimization, or ensuring docs follow best practices for LLM retrieval systems.
14ui-designer
Extract design systems from reference UI images and generate implementation-ready UI design prompts. Use when users provide UI screenshots/mockups and want to create consistent designs, generate design systems, or build MVP UIs matching reference aesthetics.
13