documentation

Generate Diátaxis documentation with Astro Starlight MDX components and frontmatter metadata.

4.9k|489|Updated Aug 12, 2025
One-click install
npx skills add https://github.com/githubnext/gh-aw --skill documentation-githubnext
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documentation
Source: https://github.com/githubnext/gh-aw/tree/main/skills/documentation
Command: npx skills add https://github.com/githubnext/gh-aw --skill documentation-githubnext

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide for creating high-quality, structured documentation using the Diátaxis framework and Astro Starlight, ensuring clarity and consistency for AI workflow users. It helps technical writers and developers produce effective and maintainable content.

Core Features & Use Cases

  • Diátaxis Framework: Organize documentation into four distinct types: Tutorials, How-to Guides, Reference, and Explanation, each serving a specific purpose.
  • Style & Content Guidelines: Follow general style rules, code sample best practices, and strategies to avoid documentation bloat.
  • Astro Starlight Syntax: Utilize specific Markdown and MDX components like frontmatter, callouts, code blocks, tabs, and cards for rich content.
  • Use Case: A developer needs to write a new "How-to Guide" for an AI workflow. This skill provides the exact structure, tone, and content to include, ensuring the guide is effective and consistent with other project documentation.

Quick Start

Consult the documentation skill to understand the Diátaxis framework and apply its principles to your new 'Getting Started' guide.

Frequently Asked Questions about documentation

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

FAQPage Schema
How do I structure documentation using the Diátaxis framework?

The Diátaxis framework organizes documentation into four types: Tutorials (learning-oriented), How-to Guides (task-oriented), Reference (information-oriented), and Explanations (understanding-oriented). Each type serves a specific user need and requires distinct structure, tone, and content depth to create clear, maintainable documentation.

Can I use Astro Starlight with MDX for technical documentation?

Yes. Astro Starlight supports MDX for building structured documentation with frontmatter metadata, code blocks with language tagging, and built-in components like callouts, tabs, and cards. This enables consistent formatting and rich content presentation across tutorials, guides, reference, and explanation pages.

What's the best way to write a how-to guide for an AI workflow?

Follow the Diátaxis how-to structure: start with a clear title and description in frontmatter, provide step-by-step instructions for accomplishing a specific task, use MDX-compatible code blocks with language tags, and apply callout components for notes and tips. Minimize narrative prose and focus on actionable content.

Do I need frontmatter metadata in Astro Starlight documentation?

Yes. Frontmatter is mandatory in Astro Starlight and must include at minimum a title and description. This metadata enables proper page organization, navigation, and content discovery while maintaining consistency across your documentation site.

How do I avoid documentation bloat when writing reference and explanation content?

Apply style guidelines that separate concerns: keep Reference entries concise and factual, reserve Explanations for conceptual depth, and use code samples strategically. Diátaxis framework principles help prevent redundancy by assigning each content type a single, focused purpose.

What content components does Astro Starlight provide for technical writing?

Astro Starlight includes callout components for notes, tips, and cautions, code blocks with syntax highlighting and language identification, tabs for tabbed content, and cards for structured layouts. These MDX components ensure consistent formatting and improve readability across documentation.