/ceh-documentation:write-concept-docsfrom ceh-documentation
Load this skill when writing user-facing concept pages: the mental model a user needs (core objects, lifecycle, data flow, error model) and why. Trigger on "explain how this works in the docs", "write a concepts section". Not for a maintainer architecture doc.
Ships in ceh-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Concept pages are where an experienced user goes to learn why: why the timeout is per chunk, why there is no sync client, why config files lose to env vars. They are also what keeps every other page short: a term explained once here is linked from guides and reference instead of being re-explained on each.
Work against <root>: the project path handed over by the caller, or the current working
directory. Write under <root>/docs/concepts/. Read
${CLAUDE_SKILL_DIR}/references/docs-standard.md ("the standard" below) before writing: it fixes
the file naming, page anatomy, Markdown and link rules, markers, and report format that every page
here follows.
A concept earns a page when at least two guide or reference pages would otherwise have to explain it, on the strength of its model and behavior alone. A concept with no recorded rationale still gets its page. Candidates, in the order to check:
Three to seven concepts is typical. More than ten means some are reference entries in disguise.
Collect the "why" before writing, ordered by how much to trust each source:
| Source | How |
|---|---|
| Design records | ADRs (docs/adr/, docs/decisions/), ARCHITECTURE.md Technical Design and Key Decisions, decision logs |
| Merge and commit bodies | git -C <root> log --grep='<term>' --format='%h %s%n%b'; git -C <root> log -S'<symbol>' --reverse for the commit that introduced a behavior |
| Code comments | Comments next to the behavior, especially NOTE, WHY, and "we do X because" prose |
| Changelog | CHANGELOG.md entries that changed the behavior, and the breaking-change notes |
| The code itself | A constraint the code makes visible (a lock, a bounded queue, a version check) — label it as inferred |
When ARCHITECTURE.yaml sits beside ARCHITECTURE.md, read its technical_design and
key_decisions from the YAML:
first run uv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py check ARCHITECTURE.yaml
(format in ${CLAUDE_SKILL_DIR}/references/architecture-schema.md). On exit 1, stop and report
its errors, unless the only error is a stale .md. On exit 2 or 3, or without uv, say in the
reply that the file went unchecked, and go on.
# CO-03 — Streaming
[← Concepts](index.md)
<One or two sentences: what this concept is and when a user runs into it.>
## The model
<How it works, in the user's terms. A Mermaid diagram when there is structure or a sequence.>
```mermaid
sequenceDiagram
Client->>Server: request
Server-->>Client: chunk (timeout resets)
```
## Terms
- **Chunk** — <definition, linking its reference entry>
## How it behaves
<Defaults, edge cases, limits — each linking the reference entry that holds the exact values.>
## Why it works this way
<The decision, the alternative that was rejected and why, the trade-off accepted.>
Source: <link to the ADR, commit, or changelog entry>.
## What this means for you
- <Practical consequence, linking the guide that handles it.>
---
[← CO-02 Sessions](CO-02-sessions.md) · [Concepts](index.md) · [CO-04 Errors and retries →](CO-04-errors.md)
docs/concepts/
├── index.md # hub: every page in reading order, "read this when…"
├── CO-01-<name>.md # foundational first; later pages may assume earlier ones
└── CO-02-<name>.md
concepts/ is a numbered section with prefix CO (standard §3). A single concept is
docs/concepts.md instead, with no hub. Breadcrumbs, footers, and the hub format follow standard
§4.
[VERIFY: …].${CLAUDE_SKILL_DIR}/references/docs-standard.md §3–§7: naming, anatomy,
Markdown, links, markers.[VERIFY: why <behavior>] in the "Why" section so the owner can fill it,
followed by Source: none found in the repository.[VERIFY: …]. A section explaining several
decisions gives each its own paragraph and its own Source: line.Pages under <root>/docs/concepts/. End the reply with the report of
${CLAUDE_SKILL_DIR}/references/docs-standard.md §10. When write-project-docs called this skill,
return only the rows and open items for it to merge. Append each concept page's "Why" source to its
Status (written — why: ADR 0001, written — why: none found).
assets/architecture.template.md (opens in a new tab)assets/architecture.template.yaml (opens in a new tab)references/architecture-model.py (opens in a new tab)references/architecture-schema.md (opens in a new tab)references/docs-standard.md (opens in a new tab)scripts/artifact.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cheneeheng/ceh-claude-code-library --plugin ceh-documentation5 skills in this plugin
/write-api-referenceLoad this skill when writing a project's user-facing reference docs: every public function, endpoint, CLI flag, config key, environment variable, and error. Trigger on "write the API reference", "document every endpoint", "document all the CLI flags"./write-examplesLoad this skill when writing runnable example programs under examples/: a feature tour and copy-paste recipes, each run before it is kept. Trigger on "write examples for this project", "add usage examples", "the examples are missing or broken"./write-guides-and-runbooks