diataxis-docs

A documentation guide based on Diataxis, a method that separates tutorials, task instructions, factual references, and explanations. It also uses frontmatter so a knowledge-base index can classify documents.

In plain words
What is it for?
Use it when creating or reviewing Markdown documentation, choosing its document type, splitting mixed-content files, or marking outdated material as archived.
Why use it?
It prevents one document from serving several conflicting purposes and makes documentation easier to find and maintain.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/eslider/2dph/diataxis-docs
Any agent
npx skills add eSlider/2dph --skill diataxis-docs
Clone the repo
git clone --depth 1 https://github.com/eSlider/2dph

Made for: Claude Code, Codex.

Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.00415
Opus 5 $0.00030 $0.00208
Sonnet 5 $0.00012 $0.00083
Haiku 4.5 $0.00006 $0.00042

Measured 2d ago against content hash dea8895dabd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

diataxis-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/diataxis-docs/SKILL.md · 54 lines

What it actually says

diataxis-docs

Every markdown file answers exactly one of four questions. A file that answers two should be split; that is the whole method.

Type Answers Reader is
tutorial "teach me by doing" learning
howto "help me do this task" working
reference "tell me the facts" looking up
explanation "help me understand why" studying

Frontmatter

---
type: reference          # one of the four above
status: current          # current | archive  (PARA)
related:
  - docs/OPS.md
---

bin/brain/index.go reads this. type becomes a searchable column. related: is frontmatter for humans; graph hops from it are not implemented yet.

bin/brain/search.go "deploy"

Audit checklist

  1. Does the title match the type? A reference that starts "first, open..." is a howto wearing a disguise.
  2. More than one H2 topic that a reader would search separately? Split the file. The indexer chunks on H2, so split files also search better.
  3. Is status: archive set on anything superseded? Archived files stay indexed but stop competing with current ones for a reader's attention.
  4. Does every explanation link the reference it explains, and vice versa?

Rule

Do not invent a fifth type. If a document does not fit, it is usually two documents.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 54 lines · 61 tokens per session scan A dea8895dabd5

Subscribe to this mod's changes

diataxis-docs is a skill published in the GitHub repository eSlider/2dph (2 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 415 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

engrama-onboard

Build a personalized Engrama memory graph for any user through a conversational interview. Use this skill whenever someone says "set up Engrama", "create my graph", "onboard", "build my profile", "configure Engrama for me", or asks how to start using Engrama. Also use when the user mentions they have a different role…

scops/engrama · 104 tokens

life-memory-mcp-connect

Set up an external AI agent to connect to the Life Memory System through MCP, including verified installation, retrieval, RawEvent writes, sync, diagnostics, and Working-Agent governance. Use when an agent needs to install or verify the Life Memory MCP bridge, onboard Codex/Claude/Cursor/Windsurf style clients, or…

234194027-cpu/aion-memory-nexus · 75 tokens

life-memory-media-ingestion

Teach an external agent how to send links, files, images, tables, audio, and video into the Life Memory System as reviewable media note artifacts through MCP.

234194027-cpu/aion-memory-nexus · 39 tokens

fortemi-roadmap-skill

Advance the Fortemi delivery roadmap by one concrete increment and document the progress. Reads .aiwg/planning/roadmap.md, picks the next actionable item respecting phase gating, does or dispatches the work, then records progress back into the roadmap. Built for fresh sessions and simple loops.

Fortemi/fortemi · 65 tokens

fortemi-monthly-report

Author a Fortémi monthly report as a docsite blog post — gather what shipped that month from git history, CHANGELOG, and release announcements, then write it up FOR USERS in plain language and publish it to the Pagenary blog collection.

Fortemi/fortemi · 56 tokens

potpie-source-ingestion

Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when available, builds evidence-backed…

potpie-ai/potpie · 82 tokens