Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Write concise Diataxis docs for gh-aw with Starlight markdown conventions.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 118% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 91% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 109% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 69% | 0% |
Documentation lives in docs/, uses GitHub-flavored Markdown, renders with Astro Starlight, and follows Diátaxis.
Organize documentation into four Diátaxis types:
Purpose: Guide beginners through achieving a specific outcome to build confidence.
Avoid: Explaining concepts in depth, multiple options, troubleshooting
Purpose: Show how to solve a specific real-world problem or accomplish a particular task.
Avoid: Teaching fundamentals, explaining every detail, being exhaustive
Purpose: Provide accurate, complete technical descriptions of the system.
Avoid: Instructions, tutorials, opinions on usage
Purpose: Clarify and illuminate topics to deepen understanding.
Avoid: Step-by-step instructions, exhaustive reference material
aw for agentic workflow snippets with YAML frontmatterExample workflow code block:
aw wrapon: push # Your workflow steps here
Documentation files use GitHub-flavored markdown with Astro Starlight for rendering. Key syntax elements:
Every documentation page must have frontmatter:
markdowntitle: Page Title description: Brief description for SEO and navigation
Use GitHub's alert syntax for notes, tips, warnings, and cautions:
markdown> [!NOTE] > Important information the reader should notice. > [!TIP] > Helpful advice for the reader. > [!WARNING] > Warning about potential issues or pitfalls. > [!CAUTION] > Critical warning about dangerous operations. > [!IMPORTANT] > Key information users need to know.
title attribute for file names: yaml title=".github/workflows/example.yml" aw language for agentic workflow files with YAML frontmatterwrap for line wrapping: aw wrap Use tabs for showing alternatives (e.g., different languages, platforms):
markdownimport { Tabs, TabItem } from '@astrojs/starlight/components'; <Tabs> <TabItem label="npm"> ```bash npm install package ``` </TabItem> <TabItem label="yarn"> ```bash yarn add package ``` </TabItem> </Tabs>
Use cards for navigation or highlighting multiple options:
markdownimport { Card, CardGrid } from '@astrojs/starlight/components'; <CardGrid> <Card title="Getting Started" icon="rocket"> Quick introduction to the basics. </Card> <Card title="Advanced Usage" icon="setting"> Deep dive into advanced features. </Card> </CardGrid>
Remember: Keep components minimal. Prefer standard markdown when possible.
Documentation bloat reduces clarity and makes content harder to navigate. Common types of bloat include:
When editing documentation, focus on:
Consolidate bullet points:
Eliminate duplicates:
Condense verbose text:
Standardize structure:
Simplify code samples:
Before (Bloated):
markdown### Tool Name Description of the tool. - **What it does**: This tool does X, Y, and Z - **Why it's valuable**: It's valuable because A, B, and C - **How to use**: You use it by doing steps 1, 2, 3, 4, 5 - **When to use**: Use it when you need X - **Benefits**: Gets you benefit A, benefit B, benefit C - **Learn more**: [Link](url)
After (Concise):
markdown### Tool Name Description of the tool that does X, Y, and Z to achieve A, B, and C. Use it when you need X by following steps 1-5. [Learn more](url)
Other measured skills in the registry, with their headline benchmark lift.