documentation-best-practices

Applies Diátaxis-based patterns to write, structure, and maintain software documentation.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill documentation-best-practices-snoodleboot-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: documentation-best-practices
Source: https://github.com/snoodleboot-io/discrecontinual_equations/tree/main/.claude/skills/documentation-best-practices
Command: npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill documentation-best-practices-snoodleboot-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Most documentation fails because pages mix tutorials, how-tos, reference, and explanation into one, drift out of sync with code, or document confusing APIs instead of fixing them. This Skill provides concrete patterns and checklists to write documentation that stays accurate and serves each reader's actual need. ## Core Features & Use Cases - Diátaxis Framework Application: Separates content into tutorials, how-to guides, reference, and explanation, with examples of each kind and rules for splitting mixed pages. - Docs-as-Code Workflow: Enforces documentation living in the repo, changing in the same PR as code, reviewed by the same reviewer, and validated by CI (link checks, executed code samples, generated reference). - README and First-Five-Minutes Guidance: Structures READMEs for one-minute evaluation and hardens the install-to-first-success path against clean-machine failures. - Use Case: When asked to write or review a project's getting-started guide, apply the checklist to split mixed content, generate reference from docstrings, and ensure every code sample runs in CI. ## Quick Start Review my project's README and getting-started guide against the documentation best practices checklist and suggest specific improvements.

Frequently Asked Questions about documentation-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure software documentation with the Diátaxis framework?▼

Split content into four kinds along two axes: tutorials for learning by doing, how-to guides for accomplishing a specific task, reference for looking up facts, and explanation for understanding why. Each page should be exactly one kind, cross-linked to the others.

What is the difference between a tutorial and a how-to guide?▼

A tutorial is a lesson for a beginner with no context: one path, no choices, supplied sample data, and guaranteed success. A how-to guide serves a competent reader with a real goal: it states prerequisites, gives steps, and skips teaching.

How do I keep API documentation from going stale?▼

Generate reference docs from docstrings, type hints, or schemas rather than maintaining them by hand. Put code samples in the test suite or execute them in CI, and require doc changes in the same PR as the code change.

What should a good README include?▼

A README needs one line on what the project does and who it is for, a short why, an install block, and a real runnable example with its expected output above the fold. Architecture, changelogs, and full configuration belong on linked pages.

When should I fix the product instead of writing documentation?▼

Fix the product when confusion stems from unclear names, bad defaults, or unhelpful error messages. Prefer renaming, better defaults, and clearer errors over writing a page, since a page has the worst discovery rate and highest maintenance cost.