agentleFS
Sign inSign up

write-documentation

Yassimba/loom/skills/write-documentation/SKILL.md

Write software documentation structured by Diátaxis. Use when the user wants a tutorial, how-to guide, reference page, explanation doc, or user guide — "write docs", "document this", "we need a guide for X". Not for READMEs (write-readme) or docstrings (update-docstrings).

Skill9 starsChanged 31 days ago
---
name: write-documentation
description: 'Write software documentation structured by Diátaxis. Use when the user wants a tutorial, how-to guide, reference page, explanation doc, or user guide — "write docs", "document this", "we need a guide for X". Not for READMEs (write-readme) or docstrings (update-docstrings).'
---

# Write Documentation (Diátaxis)

Produce one document per run, typed by the Diátaxis quadrant it serves: a **tutorial** (a lesson), a **how-to guide** (a recipe), **reference** (a dictionary), or an **explanation** (a discussion).

## Workflow

1. **Classify.** Place the request on the Diátaxis compass:
   - Does the document serve the reader's _action_ (they are doing something) or _cognition_ (they are understanding something)?
   - Does it serve _acquisition_ (they are studying) or _application_ (they are working)?

   |               | acquisition (study) | application (work) |
   | ------------- | ------------------- | ------------------ |
   | **action**    | tutorial            | how-to guide       |
   | **cognition** | explanation         | reference          |

   A request that spans quadrants is more than one document — say so and pick the primary one for this run.

2. **Confirm the brief.** State your classification and ask about whatever is still unknown of:
   - **Audience** — who reads this, and what do they already know?
   - **Reader's goal** — what can they do or understand after reading?
   - **Scope** — what is in, and what is explicitly out?

   Done when document type, audience, goal, and scope are each either answered by the user or proposed by you and accepted.

3. **Load the applicable rules.** Read the matching quadrant file before outlining:
   - Tutorial → [references/tutorial.md](references/tutorial.md)
   - How-to guide → [references/how-to.md](references/how-to.md)
   - Reference → [references/reference.md](references/reference.md)
   - Explanation → [references/explanation.md](references/explanation.md)

   When classification remains uncertain or existing material needs diagnosis, read [the compass](references/compass.md). When improving existing documentation or deciding how to reorganise a set, read [the workflow](references/workflow.md), then select one document for this run.

4. **Propose an outline.** A table of contents, one line per section, shaped by the applicable rules. Await approval before writing.

5. **Write.** Done when every section of the approved outline is fully written — none stubbed, summarized, or deferred.

## Sources

Work only from material the user provides and the codebase at hand. Provided markdown files calibrate tone and terminology; quote them only on request. Verify every product claim, command, signature, and snippet against the actual code before including it.

Discussion

Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.

Posts are public.Sign in to post

No one has posted yet. Be the first.