diataxis-explanation
Write, expand, or audit explanation — understanding-oriented documentation in the Diátaxis sense: discursive discussion that deepens the reader's grasp of a topic, read away from the work itself. Use whenever the user wants an architecture overview, design-rationale or "why did we build it this way" doc, concept guide, background or theory piece, ADR-style context, a "philosophy of X" or "about X" article, or asks to capture the reasoning behind a decision — even if they never say "explanation". Also loaded by the `diataxis` router when the compass points to cognition + acquisition: the reader wants to *understand*, as *study*. If the content is facts to consult mid-work, that's `diataxis-reference`; if it directs a task, that's `diataxis-how-to`. When the type is in doubt or mixed, consult the `diataxis` skill first.
- License 许可
- MIT
- 所属仓库
- esond/skills
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- diataxis-explanation
- description
- Write, expand, or audit explanation — understanding-oriented documentation in the Diátaxis sense: discursive discussion that deepens the reader's grasp of a topic, read away from the work itself. Use whenever the user wants an architecture overview, design-rationale or "why did we build it this way" doc, concept guide, background or theory piece, ADR-style context, a "philosophy of X" or "about X" article, or asks to capture the reasoning behind a decision — even if they never say "explanation". Also loaded by the `diataxis` router when the compass points to cognition + acquisition: the reader wants to *understand*, as *study*. If the content is facts to consult mid-work, that's `diataxis-reference`; if it directs a task, that's `diataxis-how-to`. When the type is in doubt or mixed, consult the `diataxis` skill first.
02 资源文件 1
- 参考文档agents/openai.yaml123 B
03 SKILL.md 正文
diataxis-explanation
Explanation is discussion that permits reflection — the documentation a practitioner reads away from the keyboard, the way a cook reads On Food and Cooking: not to follow a recipe, but to understand the craft in a way that changes their practice. It answers the question "can you tell me about…?" Diátaxis places explanation at cognition + acquisition: propositional knowledge, in service of study.
Its characteristic problem isn't being written badly — it's not being written at all. The why of a system ends up scattered through commit messages, review threads, and hallway conversations, because explanation has no obvious owner. Writing it down as a first-class document is most of the battle.
Check you're writing the right thing
- The content is facts consulted while working — options, parameters, structures →
diataxis-reference. The boundary test: reference serves the reader mid-work; explanation serves the reader who has stepped back. Lists and tables usually mean reference; "tell me more about…" means explanation. - The content directs a task →
diataxis-how-to. - The content teaches a beginner by doing →
diataxis-tutorial. - Mixed or unclear → step back to the
diataxisrouter and run the compass.
Step 1 — Frame the "about"
An explanation's title carries an implicit about: "About user authentication," "On caching strategy," "Why the scheduler is cooperative." Fix the topic and its altitude first:
- Name the subject as a topic, not a task.
- Choose the bounds. Explanation may range — history, alternatives, tradeoffs — but around a bounded subject. If the scope is "everything," it's several articles.
- Know the reader's question. What understanding are they missing that this article supplies? Design decisions, constraints, and history the code can't show are the highest-value material.
Step 2 — Gather the why
Explanation is the one type whose raw material is mostly not in the artifact. Mine where the reasoning actually lives: design docs, ADRs, commit messages, PR discussions, issue threads, the user's own memory. Interview the user for what nothing else records — "why not the obvious alternative?" is usually the most productive question. Then verify any claims about the current system against the current system.
Step 3 — Write it
Explanation has permissions the other three types deny — use them:
- Make connections. Link the subject to related topics, to the rest of the system, to things outside it entirely. Weaving fragments into a coherent web is the job.
- Provide context. Design decisions, historical reasons, technical constraints, with concrete examples: "The reason for x is because historically, y…"
- Approach from multiple directions. Explanation may circle its subject; analogy is a legitimate tool: "An x in system y is analogous to a w in system z. However…"
- Have opinions. All human knowledge is invested with opinion, and explanation is where it's admitted: "W is better than z, because…" Weigh alternatives honestly: "Some users prefer w (because z). This can be a good approach, but…"
- Stay off the tools. The reader is reflecting, not executing. The moment the prose says "now run…", it has drifted.
Step 4 — The drift checklist
Use this on your own draft, and as the audit lens when the diataxis router sends an existing explanation here. An audit invocation runs only this step — skip Steps 1–3 and report findings without editing; edits wait for explicit confirmation — the router's gate, or the user's when invoked directly. The repair move is usually relocation — or consolidation.
- Instruction or procedure creeping in → relocate to a how-to guide or tutorial; link.
- Dry enumerations of options, parameters, structures → relocate to reference; link.
- The inverse problem — explanatory fragments scattered across tutorials, how-tos, and reference entries elsewhere in the doc set → gather them into this article and leave links behind. Consolidation is explanation's distinctive audit move.
- Opinion presented as neutral fact without the reasoning → either supply the why or mark the perspective.
- Unbounded scope, three subjects in one article → split along topic lines.
- Claims about the system that no longer match the system → verify and update; rationale docs go stale silently.
Things not to do
- Don't instruct. No steps, no commands to run.
- Don't turn into a catalog. Exhaustive facts belong in reference.
- Don't feign neutrality. Reference must be neutral; explanation earns trust by showing its reasoning, alternatives and all.
- Don't leave the why unwritten because it feels "obvious to the team." That's exactly the knowledge that leaves when people do.
04 同仓库更多 Skills
work-item-voice
Write or edit the user's issues in their own voice, in any work tracker — Jira, Linear, GitHub Issues, Azure DevOps. Covers features (new behavior), tasks (work that needs doing), and bugs (behavior that does not match expectation). Load this whenever the deliverable is an issue body, whether they say "file a bug", "write a ticket", "draft a story", "create an issue for this", "turn this into a Jira", "write this up in Linear", or paste a thread and ask for an issue out of it. Load it too whenever text goes into an issue that already exists — "record this in the issue", "add what we found to the ticket", "note this on the card", "update the one about refunds", or naming an issue by its key and asking for a fact to go in it — and when writing or updating one is a step inside a larger task. Features get behavior-driven framing with no implementation prescribed, and bugs get expected versus actual. Not for a comment on an issue, which is a conversation turn.
conversational-voice
Write the user's side of a conversation with another person, in the user's own voice: Slack messages and replies, DMs, email, PR and code-review comments, Linear or Jira comments, and any other turn in an exchange that goes out under the user's name. Load this whenever the deliverable is a message a human will read as written by the user, whether they say "draft a Slack message", "reply to this", "how should I word this", "tell the team", "ask them about X", "send a note to", or just paste a thread and ask what to say back. Load it too when tightening, shortening, or sanity-checking a message they already wrote, and when a message is one step of a larger task. The register is direct and informal, the way they'd talk to a friend or acquaintance, with the answer up front for a reader who skims. Not for something the user authors rather than sends — an issue body, a PR description, a commit message — even though a person reads those too.
sync-core-repo-docs
Create or audit a repo's three core doc files — README.md, the agent instructions file (AGENTS.md or CLAUDE.md), and REVIEW.md — in that dependency order. If a file is missing, generate it from the codebase; if it exists, audit it against the current code and apply targeted fixes after confirmation. README.md gets a developer from clone to running the project; AGENTS.md captures coding guidance for the agent (delegating to /init or claude-md-improver); REVIEW.md holds guidance for code reviewers, human or automated, without duplicating AGENTS.md. Target files with --readme, --claude, and --review, or run all three. Use whenever the user wants to set up, bootstrap, scaffold, refresh, audit, update, or sync a repo's docs, or says things like "create a README", "is my README still accurate", "write a CLAUDE.md", "write an AGENTS.md", "audit our docs", or "get this repo ready for contributors" — even when only one file is named. Prefer it over claude-md-improver when README or REVIEW are also in scope.
sync-core-docs
Create or audit a repo's README.md, AGENTS.md/CLAUDE.md, and REVIEW.md docs.
righting-software-system-design
Opt-in, collaborative system-design workflow based on Juval Löwy's iDesign methodology in *Righting Software*. Conducts a multi-phase interview (framing → use cases → volatility analysis → components → call-chain validation → report) that surfaces unknown-unknowns and produces a written recommendation at `decompositions/{system-name}/report.md`. **Run only when the user explicitly invites this workflow** — not for general architecture questions, lightweight design conversations, or quick "where should X live?" questions. Valid triggers: the user names the skill directly, references *Righting Software* / Juval Löwy / iDesign / "The Method" / volatility-based decomposition and asks to run a full session, asks for a "deep" or "structured" or "Löwy-style" system design session, or accepts a prior suggestion to run it. Wait for an explicit yes before entering Phase 0. The skill is interrogative — a back-and-forth interview that challenges each volatility candidate and proposes ones the user hasn't considered.
reorganize-branch-commits
Reorganize the commits on a non-default git branch into a clean, logical history by rewriting the branch — `git reset` + re-commit by default, `git rebase -i` when commit boundaries already align. Propose groupings based on the actual work done (features, refactors, tests, fixes, docs), get explicit user approval, back the branch up, then rewrite history. Use this skill whenever the user wants to tidy up, clean up, reorganize, restructure, squash, or curate commits on a feature branch — even if they phrase it as "my branch is a mess", "squash this down", "combine these commits", "fix up the commit log before I open a PR", or "make the commits presentable for review". Trigger proactively when the user is about to open or push a PR and the branch has scrappy/WIP/"fix" commits to collapse. Refuses to operate on default or release-shaped branches (main, master, develop, trunk, production, release, or the repo default) — a feature-branch-only tool.