Agent skill

Diataxis

by WebMCP-org in WebMCP-org/npm-packages

Write technical documentation following the Diataxis framework by Daniele Procida.

MITAuto-check passedWriting & Content

Install Diataxis

skills CLI
$ npx skills add WebMCP-org/npm-packages --skill diataxis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WebMCP-org/npm-packages diataxis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/WebMCP-org/npm-packages.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/diataxis .claude/skills/diataxis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
diataxis
GitHub stars
103
Token cost
~1.7k tokens
SKILL.md length
720 words
Files
18 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Write technical documentation following the Diataxis framework by Daniele Procida.

  • Works in 2 steps: Action or cognition? Is this about doing… → Acquisition or application? Is the user…
  • Restructuring documentation to ensure correct separation of tutorials
  • SKILL.md covers When to Use This Skill, The Diataxis Compass, The Four Documentation Types and Critical Distinctions, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Diataxis is an agent skill from WebMCP-org/npm-packages. Write technical documentation following the Diataxis framework by Daniele Procida. Use when writing, reviewing, or restructuring documentation to ensure correct separation of tutorials, how-to guides, reference, and explanation.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including reference files (for example `references/application.md`, `references/colophon.md` and `references/compass.md`).

It sits in Writing & Content, covering Technical writing and Technical documentation. The repository describes itself as: NPM packages for MCP-B: Transport layers, React hooks, and browser tools for the Model Context Protocol. The licence is MIT.

When your agent uses it

  • Restructuring documentation to ensure correct separation of tutorials
  • Tasks that involve Technical writing
  • Tasks that involve Technical documentation

Example prompts

  • “/diataxis”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Action or cognition? Is this about doing something or knowing something?
  2. Acquisition or application? Is the user learning or working?

What it can do on your machine

Read from SKILL.md and the folder at commit 5f32a72. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • diataxis.fr

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Diataxis loads about 1.7k tokens when it runs, and up to ~31k if it reads all its reference files. Until then it costs about 59 tokens; SKILL.md has 720 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~31k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WebMCP-org/npm-packages at commit 5f32a72, republished under its MIT licence (© WebMCP-org). 720 words, ~1,687 tokens.

Download SKILL.mdSave it as .claude/skills/diataxis/SKILL.md (or your agent's skills folder). This skill also uses 17 other files; get the full folder from GitHub.
name
diataxis
description
Write technical documentation following the Diataxis framework by Daniele Procida. Use when writing, reviewing, or restructuring documentation to ensure correct separation of tutorials, how-to guides, reference, and explanation.

Diataxis Documentation Framework

Complete reference for the Diataxis framework — a systematic approach to technical documentation authoring by Daniele Procida. All content sourced verbatim from diataxis.fr.

When to Use This Skill

This skill should be triggered when:

  • Writing documentation: Creating new docs pages of any type
  • Reviewing documentation: Checking if content is in the right place and follows the right form
  • Restructuring documentation: Reorganizing existing docs into proper Diataxis categories
  • Deciding content type: Determining whether something should be a tutorial, how-to, reference, or explanation
  • Resolving confusion: Distinguishing tutorials from how-to guides, or reference from explanation

The Diataxis Compass

Use this decision table when you need to classify content:

If the content......and serves the user's......then it belongs in...
informs actionacquisition of skilla tutorial
informs actionapplication of skilla how-to guide
informs cognitionapplication of skillreference
informs cognitionacquisition of skillexplanation

Two questions to ask:

  1. Action or cognition? Is this about doing something or knowing something?
  2. Acquisition or application? Is the user learning or working?

Full compass guidance: references/compass.md

The Four Documentation Types

Tutorials (learning-oriented)
  • An experience guided by a tutor, where the learner acquires skills by doing
  • Teacher holds nearly all responsibility — learner just follows directions
  • Concrete steps, no choices, no branching, ruthlessly minimal explanation
  • Language: "We will...", "First, do X. Now, do Y.", "Notice that...", "You have built..."

Full reference: references/tutorials.md

How-to Guides (goal-oriented)
  • Directions that guide a competent user through a real-world problem
  • Assumes the user already knows the basics and has a specific goal
  • Can branch ("If this, do that"), addresses real-world conditions
  • Language: "If you want X, do Y." Conditional imperatives.

Full reference: references/how-to-guides.md

Reference (information-oriented)
  • Technical description of the machinery — austere, factual, structured like the code
  • Consulted while working, not read cover-to-cover
  • Neutral, objective. Describe and only describe. No teaching, no opinions.
  • Language: "X does Y.", "You must use X.", lists, tables, warnings.

Full reference: references/reference.md

Explanation (understanding-oriented)
  • Discursive treatment that permits reflection and deepens understanding
  • Read after stepping away from work. Discusses why, provides context, weighs alternatives.
  • Admits opinion and perspective. Makes connections across topics.
  • Language: "The reason for X is...", "Consider...", analogies, history, alternatives.

Full reference: references/explanation.md

Critical Distinctions

The most common mistake in documentation is mixing types. Read these when boundaries are unclear:

  • Tutorials vs How-to Guides: references/tutorials-how-to.md — The single most common conflation in software documentation. Tutorials are safe, contrived, teacher-led. How-to guides are real-world, user-led, assume competence.
  • Reference vs Explanation: references/reference-explanation.md — Key test: would you consult this while working (reference) or after stepping away (explanation)?

Reference Files

All files in references/ contain the complete, unabridged content from diataxis.fr:

Show full SKILL.md (286 more words)Show less
Getting Started
  • references/index.md — Overview and introduction to Diataxis
  • references/start-here.md — Getting started primer
  • references/application.md — Applying Diataxis in practice
The Four Types (read before writing any documentation)
  • references/tutorials.md (16K) — Complete tutorial guidance with all principles
  • references/how-to-guides.md (11K) — Complete how-to guide guidance
  • references/reference.md (6K) — Complete reference documentation guidance
  • references/explanation.md (7K) — Complete explanation guidance
Practical Tools
  • references/compass.md — The decision compass for classifying content
  • references/how-to-use-diataxis.md — Workflow guidance for applying the framework
Theory & Principles
  • references/theory.md — Theoretical foundations overview
  • references/foundations.md — Foundational concepts underpinning Diataxis
  • references/map.md — The Diataxis map and its relationships
  • references/quality.md (11K) — Theory of functional vs deep quality in documentation
Boundaries & Edge Cases
  • references/tutorials-how-to.md (14K) — Tutorials vs how-to guides (the most important distinction)
  • references/reference-explanation.md — Reference vs explanation
  • references/complex-hierarchies.md (8K) — Handling complex documentation structures
Meta
  • references/colophon.md — About Diataxis itself

Working with This Skill

Before Writing a Page
  1. Determine which Diataxis type it is using the compass above
  2. Read the full reference file for that type (e.g., references/tutorials.md)
  3. Follow the language patterns and structural rules for that type
  4. Never mix types on a single page
When Reviewing Documentation
  1. For each page, use the compass to verify its type
  2. Flag any content that mixes types (e.g., explanation inside a how-to guide)
  3. Check references/tutorials-how-to.md if tutorials and how-tos seem conflated
  4. Check references/reference-explanation.md if reference and explanation seem blurred
When Restructuring
  1. Read references/how-to-use-diataxis.md for the overall workflow
  2. Read references/complex-hierarchies.md for handling large documentation sites
  3. Classify every existing page using the compass
  4. Move misplaced content to its correct type

Notes

  • All reference content is Daniele Procida's original writing from diataxis.fr — do not paraphrase when the original words apply
  • The reference files are the authority. When in doubt, re-read the relevant file.
  • Source: https://diataxis.fr/ — Copyright Daniele Procida

© WebMCP-org, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 17 other files (references) in .agents/skills/diataxis of WebMCP-org/npm-packages.

  • SKILL.md
  • references/application.md
  • references/colophon.md
  • references/compass.md
  • references/complex-hierarchies.md
  • references/explanation.md
  • references/foundations.md
  • references/how-to-guides.md
  • references/how-to-use-diataxis.md
  • references/index.md
  • references/map.md
  • references/quality.md
  • references/reference-explanation.md
  • references/reference.md
  • references/start-here.md
  • references/theory.md
  • references/tutorials-how-to.md
  • references/tutorials.md

Open the folder on GitHubat commit 5f32a72

Compare with similar skills

Diataxis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Diataxis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diataxis this skillWebMCP-org/npm-packages103—~1.7kAutomated safety check: PassMIT
Beads Documentation Style Guidegastownhall/beads28k—~3.2kAutomated safety check: PassMIT
Technical Writing Standardcursor/plugins10k10 repos~2.4kAutomated safety check: PassNone
Heym Documentation Articlesheymrun/heym1.4k—~780Automated safety check: PassCustom licence
Developer Docs Technical Writervercel-labs/github-tools131—~3.9kAutomated safety check: PassMIT
Aholo Viewer Docsmanycoretech/aholo-viewer1.1k—~341Automated safety check: PassMIT

Similar skills

  • Sets the house style for the beads user docs: the canonical concept model, required terminology, prose and diagram conventions, and checks before docs work is done.

    28k GitHub stars~3.2k tokensUpdated today
    Writing & ContentAuto-check passed
  • Official

    Applies four layers of technical-writing rules to docs, RFCs, readmes, PR descriptions and commit messages so a tired engineer follows them on the first read.

    10k GitHub starsUsed in 10 repos~2.4k tokens
    Writing & ContentAuto-check passed
  • Creates and updates documentation articles for the Heym platform: category choice, manifest entry, markdown file and cross-links from existing pages.

    1.4k GitHub stars~780 tokensUpdated today
    Writing & ContentAuto-check passed
  • Developer Docs Technical Writer

    vercel-labs/github-tools

    Official

    Writes, reviews and edits developer documentation for SDKs, libraries and frameworks, from getting-started guides and API references to migration guides.

    131 GitHub stars~3.9k tokensUpdated 8 days ago
    Writing & ContentAuto-check passed
  • Aholo Viewer Docs

    manycoretech/aholo-viewer

    Guides writing and maintaining Aholo Viewer documentation: README, AGENTS.md, architecture notes, bilingual manual pages and AI collaboration guides.

    1.1k GitHub stars~341 tokensUpdated 13 days ago
    Writing & ContentAuto-check passed
  • Lildocs

    alloc/drizzle-plus

    A skill your agent uses when authoring, reviewing, or restructuring Markdown documentation, especially docs architecture, page purpose, examples, technical-writing quality, and docs-change review.

    174 GitHub stars~3.1k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed

More from WebMCP-org/npm-packages

  • Docs Authoring

    WebMCP-org/npm-packages

    Author and review the WebMCP documentation site using its Diataxis structure, Mintlify conventions, writing rules, design system, and source-of-truth boundaries.

    103 GitHub stars~6.1k tokensUpdated 3 days ago
    Auto-check passed
  • Release

    WebMCP-org/npm-packages

    Release the @mcp-b monorepo with Changesets and pnpm, using npm trusted publishing in GitHub Actions.

    103 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check: notes

Questions about Diataxis

What does Diataxis do?

Write technical documentation following the Diataxis framework by Daniele Procida. Diataxis is an agent skill from WebMCP-org/npm-packages. Write technical documentation following the Diataxis framework by Daniele Procida.

When should I use Diataxis?

Diataxis fits situations like: restructuring documentation to ensure correct separation of tutorials; tasks that involve Technical writing; tasks that involve Technical documentation.

How do I install Diataxis in Claude Code?

Run `npx skills add WebMCP-org/npm-packages --skill diataxis -a claude-code`. Or copy the skill folder (.agents/skills/diataxis in WebMCP-org/npm-packages) into .claude/skills/diataxis in your project. Claude Code loads it when a task matches its description.

How do I install Diataxis in Codex?

Run `npx skills add WebMCP-org/npm-packages --skill diataxis -a codex`. Or copy the skill folder (.agents/skills/diataxis in WebMCP-org/npm-packages) into .agents/skills/diataxis in your project. Codex loads it when a task matches its description.

Can I use Diataxis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WebMCP-org/npm-packages --skill diataxis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diataxis, .gemini/skills/diataxis, .github/skills/diataxis and .opencode/skills/diataxis in your project.

What does Diataxis need to run?

SKILL.md names no scripts, command-line tools or credentials: Diataxis is instructions for the agent only.

Does Diataxis access the network?

SKILL.md names 1 domain. As links in the text: diataxis.fr. This is read from the text; nothing was executed.

Is Diataxis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Diataxis use?

Diataxis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Diataxis use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 29k tokens, read only when the agent opens those files.

What are the alternatives to Diataxis?

Skills that share tags, products or a category with Diataxis: Beads Documentation Style Guide (gastownhall/beads, 28k stars), Technical Writing Standard (cursor/plugins, 10k stars), Heym Documentation Articles (heymrun/heym, 1.4k stars) and Developer Docs Technical Writer (vercel-labs/github-tools, 131 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diataxis?

WebMCP-org (a GitHub organization) maintains it in WebMCP-org/npm-packages, which has 103 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 4, 2026.

Source: WebMCP-org/npm-packages on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.