Writing documentation

From ratacat/claude-skills · View interactive version

Writing documentation is an AI agent skill from the GitHub repository ratacat/claude-skills. Produces concise, clear documentation by applying Elements of Style principles. Use when writing or improving any technical documentation (READMEs, guides, API docs, architecture docs). Not for code comments.

How to use this skill

Skill file

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:

Do NOT use this skill for:

Workflows

Workflow 1: Write New Documentation

Steps:

  1. Understand the purpose
  1. Load writing principles
  1. Determine documentation type
  1. Draft the documentation
  1. Validate quality

Workflow 2: Improve Existing Documentation

Steps:

  1. Read the current documentation
  1. Load writing principles
  1. Apply improvements
  1. Validate improvements

Workflow 3: Review Documentation

Steps:

  1. Load writing principles
  1. Assess against quality criteria
  1. Provide feedback

Decision Framework

When to Write vs Improve

Write new documentation when:

Improve existing documentation when:

Choosing Documentation Type

See reference/doc-types.md for detailed guidelines. Quick reference:

Prioritizing Conciseness vs Comprehensiveness

Prioritize conciseness when:

Prioritize comprehensiveness when:

Balance both:

Quality Checklist

Content

Writing (Core Principles)

Structure

Technical Documentation

Reference Files

When to Load Each Reference

Load reference/strunk-white-principles.md:

Load reference/doc-types.md:

Load reference/examples.md:

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.