documentation-writing

Create software documentation in docs/ with runnable examples and Diataxis structure.

2|22|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/rysweet/azlin --skill documentation-writing-rysweet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documentation-writing
Source: https://github.com/rysweet/azlin/tree/main/.claude/skills/documentation-writing
Command: npx skills add https://github.com/rysweet/azlin --skill documentation-writing-rysweet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps produce high-quality documentation that is discoverable, well-structured, and includes runnable examples, following the Eight Rules and Diataxis framework.

Core Features & Use Cases

  • Location in docs/ with proper wiring to references
  • Runnable examples and concrete structure
  • One Diataxis type per file (tutorial, how-to, reference, explanation)

Quick Start

Claude, write documentation for the new feature in docs/howto and provide runnable example.

Frequently Asked Questions about documentation-writing

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

FAQPage Schema
How do I structure software documentation following best practices?

Structure documentation using the Diataxis framework, which organizes content into four types: tutorials, how-to guides, references, and explanations. Each file contains one Diataxis type, resides in a docs/ directory, includes runnable examples, and links to related documents, ensuring discoverable and maintainable documentation.

What's the best way to organize README files and API documentation?

Organize all documentation in a docs/ directory with proper internal linking between files. Apply the Eight Rules and Diataxis framework to structure README files, API docs, tutorials, and how-to guides consistently. Include runnable examples and descriptive headings so users can find and understand content quickly.

How do I write documentation with runnable examples?

Create documentation files in docs/ with concrete, executable examples embedded directly in tutorials and how-to guides. Use descriptive headings, maintain Diataxis structure, and interlink related documents. This approach helps users understand features by seeing working code alongside explanations.

Can I use Diataxis for different types of documentation?

Yes, Diataxis applies to all documentation types: README files, API docs, tutorials, how-to guides, and reference materials. Assign one Diataxis type per file, place all docs in docs/, add runnable examples where applicable, and use cross-linking to create a cohesive, discoverable documentation system.

What happens when documentation doesn't follow a consistent structure?

Unstructured documentation becomes hard to find, understand, and maintain. The Eight Rules and Diataxis framework enforce consistent organization, placement in docs/, interlinked content, and runnable examples, eliminating gaps and ensuring users find answers efficiently.

Do I need to update metadata when I modify documentation?

Yes, tracking documentation updates is part of maintaining high-quality docs. The framework includes update metadata to help teams monitor when content changes, ensuring documentation stays current and reliable as projects evolve.