Diataxis

From inngest/website · View interactive version

Diataxis is an AI agent skill from the GitHub repository inngest/website. Apply the Diataxis documentation framework to Inngest docs. Use this when authoring new content, reviewing draft PRs, or deciding whether a proposed page fits the Explanation quadrant (especially for pattern pages like "Flash sales and bursty workflows").

How to use this skill

Skill file

Diataxis for Inngest

Diataxis is a documentation framework that splits user-facing writing into four modes. Every piece of documentation serves exactly one of these four needs. The first job of an author or reviewer is to identify which mode a given page belongs to, then write to that mode's standards.

This skill encodes the framework and adapts it to Inngest's style. It is intentionally opinionated about which mode a given piece of content belongs to so that PR reviews are fast and consistent.

The four modes

| Mode | Question it answers | User state |

|------|---------------------|------------|

| Tutorial | "Show me how to learn this from zero." | Brand new, needs to be guided. |

| How-to guide | "I have a specific job to do. How?" | Knows the goal, needs a recipe. |

| Reference | "What does this function/field/event do?" | Knows the system, needs facts. |

| Explanation | "Why is this the way it is?" | Capable, wants to understand. |

The mistake every set of docs makes: mixing two modes on one page. A reference page that drifts into "and here's a real-world story." A tutorial that explains the underlying philosophy in the middle of step 3. A pattern page that turns into a how-to. Each mix-up degrades both modes.

Pick the mode before you write

Use this decision tree on every page or draft PR:

Is the reader doing something for the first time, end to end?
├── Yes → TUTORIAL
└── No → Does the reader know the specific task they're trying to accomplish?
        ├── Yes → HOW-TO GUIDE
        └── No → Is the reader looking up the exact signature/parameters/events?
                ├── Yes → REFERENCE
                └── No → EXPLANATION

A faster heuristic in plain words:

When in doubt, ask: "Could this page work as a search result for a Google query starting with 'how to'?" If yes → how-to. If the query would be "why does Inngest..." or "when should I use..." → explanation.

Mode-by-mode standards

Tutorial

Goal: A reader new to Inngest follows the page and ends with something working.

Required elements:

Forbidden:

Inngest examples: the Quickstart, the Next.js guide, the platform-specific getting-started pages.

How-to guide

Goal: A capable reader accomplishes one specific task quickly.

Required elements:

Forbidden:

Inngest examples: "How to retry a step with custom backoff," "How to wait for an event in a workflow," "How to configure failure handlers."

Reference

Goal: Authoritative, complete, accurate description of an API surface.

Required elements:

Forbidden:

Inngest examples: the step.run reference, the inngest.createFunction reference, the event payload reference.

Explanation

Goal: The reader understands a concept, pattern, or design decision well enough to apply it elsewhere.

Required elements:

Forbidden:

Inngest examples: "Flash sales and bursty workflows," concept docs like "What are steps?", architectural overviews like "How concurrency works."

Inngest style rules (apply to all modes)

These rules are enforced regardless of mode:

The pattern-page diagnostic

Ben's primary use of this skill is checking whether a proposed pattern page fits the Explanation quadrant. Pattern pages are almost always explanation, but the test is concrete.

A pattern page is Explanation when:

  1. The title is a problem-shape or system-shape, not a task ("Flash sales and bursty workflows," "Long-running approval workflows," "Taking HTTP off the hot path with realtime").
  2. The page opens with the problem context, not setup instructions.
  3. The page discusses tradeoffs and alternatives, not a single recipe.
  4. The worked example is one composed example near the end used to illustrate the concept, not the main path.
  5. The reader leaves with a vocabulary they can apply to other problems in their own system.

A pattern page is not Explanation (and should be split) when:

When you find a candidate that's mixed-mode, split it. Andy Lawrence's experimentation docs were a single page until they were split into reference (DEV-298) and how-to (DEV-299) in April 2026. Lauren's "Flash sales and bursty workflows" is a clean Explanation page because the four criteria above all hold.

Confirmed pattern candidates

Pages that fit Explanation cleanly and should be written or maintained as such:

Patterns that look like Explanation but might be hybrid — review carefully before writing:

Workflow for reviewing a draft PR

  1. Identify the mode the page is targeting (look at the title and the first paragraph)
  2. Check the page against that mode's required elements
  3. Check it against that mode's forbidden elements
  4. If the page mixes modes, propose a split rather than try to fix it in place
  5. Check the Inngest style rules
  6. Confirm cross-links to sibling-mode pages are in place

Common failures and the fix

| Failure | Fix |

|---------|-----|

| Tutorial that branches and explains | Pull the branches into separate how-to guides; pull the explanation into an explanation page |

| Reference that includes narrative recommendations | Move the recommendations into an explanation page; link from the reference |

| How-to that re-teaches the basics | Cut the intro; add a "prerequisites" callout with links to the relevant tutorial |

| Explanation that walks through a specific build | Either pull the build into a how-to, or keep it as one composed example at the end of the explanation |

| Page with marketing tone or vague verbs | Rewrite in direct second person; cut "simply," "just," "easily" |

Further reading

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.