Project Instructions
Problems with a kendex-owned skill go through kendex report; check ownership in the file first.
Docs Writing
A repository's markdown holds what the code cannot show: invariants, layer boundaries, decisions with their reason, conventions that differ from tool defaults, and pointers to canonical code and to the test that proves a claim. Everything else lives in the code, the tests, and git history.
This skill governs repository markdown and documentation HTML. It states one writing standard, then what each file type is for and what it must not carry.
Two exclusions hold in every file: a list a declaration file or a checker already holds is not copied into prose, and a claim that a checker enforces something names the checker.
The standard
- Write short sentences. Put one idea in each sentence.
- Use active voice and name the actor. Say what the code does, not what is done.
- Use plain words. Basic technical terms are fine: CLI, API, repo, PR, hook, lock, glob.
- Use one term per thing, the same term every time.
- State each fact once. Point at the first statement instead of repeating it.
- Write a heading that names the subject. A heading never makes a claim.
- Write in the present tense. A rule states what holds.
- Delete sales language, quips, metaphors, and hedges.
- Delete a sentence nothing acts on.
| Instead of |
Write |
| A value you set is never overwritten and one you deleted is never put back. |
kendex does not overwrite a value you set, and does not restore a value you removed. |
| ## What you can count on |
## Features |
| Simply run the apply command and you are good to go. |
Run kendex apply. |
| One place your whole setup finally lives, in harmony across every tool. |
kendex installs packages into the directories each tool reads. |
| It is generally recommended that callers should probably check the result. |
Check the result. |
Per file type
Each list says who reads the file, what it holds, and what it excludes. A file carries only what its list permits.
README.md
Read by a person choosing or using the package or repo.
- What it is and who it is for, in two or three sentences.
- Install: the one command, or a bullet or table row per platform or method where more than one exists.
- One section named Features, with one plain feature per bullet. No Guarantees or What you can count on section. Use plain noun headings throughout, such as Install, Features, How it works, Supported tools, and Settings.
- How it works: three to six plain sentences or bullets naming the parts the user meets and what happens in order. Every sentence must make sense without reading the code.
- Where to customise: the settings a reader sets, and the file each is set in.
- Excluded: internal vocabulary, coined phrases, metaphors, product voice, invariants, detailed internals, rationale, history, and a command listing
--help already gives.
DEVELOPMENT.md
Read by a maintainer, human or agent, working on the package itself.
- The mechanics a maintainer needs and the layout of the code.
- Ordering and compatibility constraints the code cannot show.
- How to run, test, and debug the package.
- The test strategy: what each suite proves.
- Excluded: anything the code, the tests,
--help, or the README already states, and any architecture narration.
- A file left with nothing load-bearing is deleted, and any surviving line moves to the README.
docs/architecture/overview.md
Read by an agent or maintainer before structural work. One per repository.
- The one idea every part projects, in one paragraph.
- Vocabulary: one line per term the code uses with a meaning a reader could get wrong.
- Layer boundaries: what each layer may depend on and what it may never contain.
- Invariants, one line each, with the test or check that enforces it.
- An index of the topic files, each with the condition that sends a reader there.
- Excluded: directory layouts, file-by-file descriptions, behaviour walkthroughs, command listings, CI topology, and step-by-step flows.
docs/architecture/<topic>.md
Read on demand for one subsystem. The doc-drift-check hook names it when covered code changes.
- A
Covers: line naming the paths it describes. A plain repo-relative path covers that file or directory. A shell glob matches the full path, with * crossing /.
- The same content kinds as the overview, for one subsystem.
- A topic file exists only where a subsystem has invariants or boundaries of its own. A subsystem with none is a line in the overview.
Reference docs
Read by an agent or maintainer looking up one value. Any lookup document: references/, schemas/, patterns/, a named file such as CHECKS.md, or one under docs/.
- Tables and lists. One row per item.
- The value or the shape the contract fixes, its meaning, and its default.
- The semantics a reader needs to produce or consume that shape, and no more.
- Excluded: rationale, and narrative that defines nothing.
- A file under
references/ exists only where a named workflow loads it on demand.
Documentation HTML
Read by an agent or maintainer who needs repository documentation in a browser-native format.
- An offline page under
docs/ that opens directly without a build step.
- The standard and the content rules of the equivalent Markdown file type.
- Local styles that the document needs. No framework or external asset.
- Inline SVG is available when a diagram explains a relationship more clearly than prose.
- A
title attribute is available when a short hover definition helps the reader.
- Excluded: pages served from a web root or built by an application bundler. Those are product files, not repository documentation.
SKILL.md, workflows/*.md, agents/*.md
Read by an agent on every load.
- The shortest unambiguous rule, and the commands.
- Excluded: mechanics, rationale, history, and worked examples.
- A rule another file owns is cited, never restated.
- Rationale moves to
DEVELOPMENT.md or a decision record.
AGENTS.md
Read by every harness at the start of every session, at the repository root.
- A map, not a manual: what the repo is in two or three sentences.
- Everything a Codex session must know, because Codex reads only the root-to-cwd chain of
AGENTS.md files, at launch, under a 32 KiB combined cap.
- The commands that are not discoverable from the tooling itself.
- The conventions that differ from a tool default or a language norm.
- One line per deeper doc, saying when to read it.
- A nested
AGENTS.md holds the conventions and invariants local to its directory, and stays small.
- Excluded: anything derivable from the code.
CLAUDE.md
The harness shim. kendex writes it, and its whole content is one import line.
- Never hand-write it, a
.claude/rules file, or any other harness-specific instruction file.
kendex apply, kendex refresh and kendex verify write and check it, and it is committed.
Decision records
Read when opened. The format, templates, and workflows are the decider skill's.
- Follow
../decider/SKILL.md. This skill ships no second template and states no second format.
- Architecture docs cite a decision by ID and never restate it.
CHANGELOG.md and changelog.d/
The changelog-entries lane owns the shape. Follow the repository's changelog.d/README.md.
Format
- Docs change in the same commit as the code they describe. The
doc-drift-check hook names the unchanged covering docs to the agent and blocks that stop once per set.
- One paragraph per line, one list item per line, no hard wraps inside either. Blank lines separate paragraphs, list blocks, headings, and fences. Tables and fenced code stay as written. The commit-guards
md-format lane enforces it and md-reflow converts a file once.
- Relative links in Markdown must resolve. commit-guards
CHECKS.md § md-refs owns the checked forms.
- Agent-loaded markdown carries no history. The
prose lane checks it.
- Document byte limits and exceptions follow doc-limits policy.
- A rule a shipped kendex package states is never restated in the repo's own markdown. The repo installs the package and customises through
kendex.toml.
Writing
Rewrite from a blank page, never by editing the old text: workflows/rewrite.md.
Templates: README.md, DEVELOPMENT.md, overview.md, topic.md, reference.md, document.html, agent-SKILL.md, root-AGENTS.md, nested-AGENTS.md.
1---2name: docs-writing-23description: Load to write, rewrite, or review repository markdown or documentation HTML: README, DEVELOPMENT, architecture docs, reference docs, SKILL.md and AGENTS.md.4license: MIT5---67<!-- kendex:project-instructions:start -->8## Project Instructions910<!-- kendex:shared-instructions:start -->11Problems with a kendex-owned skill go through `kendex report`; check ownership in the file first.12<!-- kendex:shared-instructions:end -->13<!-- kendex:project-instructions:end -->1415# Docs Writing1617A repository's markdown holds what the code cannot show: invariants, layer boundaries, decisions with their reason, conventions that differ from tool defaults, and pointers to canonical code and to the test that proves a claim. Everything else lives in the code, the tests, and git history.1819This skill governs repository markdown and documentation HTML. It states one writing standard, then what each file type is for and what it must not carry.2021Two exclusions hold in every file: a list a declaration file or a checker already holds is not copied into prose, and a claim that a checker enforces something names the checker.2223## The standard2425- Write short sentences. Put one idea in each sentence.26- Use active voice and name the actor. Say what the code does, not what is done.27- Use plain words. Basic technical terms are fine: CLI, API, repo, PR, hook, lock, glob.28- Use one term per thing, the same term every time.29- State each fact once. Point at the first statement instead of repeating it.30- Write a heading that names the subject. A heading never makes a claim.31- Write in the present tense. A rule states what holds.32- Delete sales language, quips, metaphors, and hedges.33- Delete a sentence nothing acts on.3435| Instead of | Write |36|---|---|37| A value you set is never overwritten and one you deleted is never put back. | kendex does not overwrite a value you set, and does not restore a value you removed. |38| ## What you can count on | ## Features |39| Simply run the apply command and you are good to go. | Run `kendex apply`. |40| One place your whole setup finally lives, in harmony across every tool. | kendex installs packages into the directories each tool reads. |41| It is generally recommended that callers should probably check the result. | Check the result. |4243## Per file type4445Each list says who reads the file, what it holds, and what it excludes. A file carries only what its list permits.4647### `README.md`4849Read by a person choosing or using the package or repo.5051- What it is and who it is for, in two or three sentences.52- Install: the one command, or a bullet or table row per platform or method where more than one exists.53- One section named Features, with one plain feature per bullet. No Guarantees or What you can count on section. Use plain noun headings throughout, such as Install, Features, How it works, Supported tools, and Settings.54- How it works: three to six plain sentences or bullets naming the parts the user meets and what happens in order. Every sentence must make sense without reading the code.55- Where to customise: the settings a reader sets, and the file each is set in.56- Excluded: internal vocabulary, coined phrases, metaphors, product voice, invariants, detailed internals, rationale, history, and a command listing `--help` already gives.5758### `DEVELOPMENT.md`5960Read by a maintainer, human or agent, working on the package itself.6162- The mechanics a maintainer needs and the layout of the code.63- Ordering and compatibility constraints the code cannot show.64- How to run, test, and debug the package.65- The test strategy: what each suite proves.66- Excluded: anything the code, the tests, `--help`, or the README already states, and any architecture narration.67- A file left with nothing load-bearing is deleted, and any surviving line moves to the README.6869### `docs/architecture/overview.md`7071Read by an agent or maintainer before structural work. One per repository.7273- The one idea every part projects, in one paragraph.74- Vocabulary: one line per term the code uses with a meaning a reader could get wrong.75- Layer boundaries: what each layer may depend on and what it may never contain.76- Invariants, one line each, with the test or check that enforces it.77- An index of the topic files, each with the condition that sends a reader there.78- Excluded: directory layouts, file-by-file descriptions, behaviour walkthroughs, command listings, CI topology, and step-by-step flows.7980### `docs/architecture/<topic>.md`8182Read on demand for one subsystem. The `doc-drift-check` hook names it when covered code changes.8384- A `Covers:` line naming the paths it describes. A plain repo-relative path covers that file or directory. A shell glob matches the full path, with `*` crossing `/`.85- The same content kinds as the overview, for one subsystem.86- A topic file exists only where a subsystem has invariants or boundaries of its own. A subsystem with none is a line in the overview.8788### Reference docs8990Read by an agent or maintainer looking up one value. Any lookup document: `references/`, `schemas/`, `patterns/`, a named file such as `CHECKS.md`, or one under `docs/`.9192- Tables and lists. One row per item.93- The value or the shape the contract fixes, its meaning, and its default.94- The semantics a reader needs to produce or consume that shape, and no more.95- Excluded: rationale, and narrative that defines nothing.96- A file under `references/` exists only where a named workflow loads it on demand.9798### Documentation HTML99100Read by an agent or maintainer who needs repository documentation in a browser-native format.101102- An offline page under `docs/` that opens directly without a build step.103- The standard and the content rules of the equivalent Markdown file type.104- Local styles that the document needs. No framework or external asset.105- Inline SVG is available when a diagram explains a relationship more clearly than prose.106- A `title` attribute is available when a short hover definition helps the reader.107- Excluded: pages served from a web root or built by an application bundler. Those are product files, not repository documentation.108109### `SKILL.md`, `workflows/*.md`, `agents/*.md`110111Read by an agent on every load.112113- The shortest unambiguous rule, and the commands.114- Excluded: mechanics, rationale, history, and worked examples.115- A rule another file owns is cited, never restated.116- Rationale moves to `DEVELOPMENT.md` or a decision record.117118### `AGENTS.md`119120Read by every harness at the start of every session, at the repository root.121122- A map, not a manual: what the repo is in two or three sentences.123- Everything a Codex session must know, because Codex reads only the root-to-cwd chain of `AGENTS.md` files, at launch, under a 32 KiB combined cap.124- The commands that are not discoverable from the tooling itself.125- The conventions that differ from a tool default or a language norm.126- One line per deeper doc, saying when to read it.127- A nested `AGENTS.md` holds the conventions and invariants local to its directory, and stays small.128- Excluded: anything derivable from the code.129130### `CLAUDE.md`131132The harness shim. kendex writes it, and its whole content is one import line.133134- Never hand-write it, a `.claude/rules` file, or any other harness-specific instruction file.135- `kendex apply`, `kendex refresh` and `kendex verify` write and check it, and it is committed.136137### Decision records138139Read when opened. The format, templates, and workflows are the `decider` skill's.140141- Follow [`../decider/SKILL.md`](../decider/SKILL.md). This skill ships no second template and states no second format.142- Architecture docs cite a decision by ID and never restate it.143144### `CHANGELOG.md` and `changelog.d/`145146The `changelog-entries` lane owns the shape. Follow the repository's `changelog.d/README.md`.147148## Format149150- Docs change in the same commit as the code they describe. The `doc-drift-check` hook names the unchanged covering docs to the agent and blocks that stop once per set.151- One paragraph per line, one list item per line, no hard wraps inside either. Blank lines separate paragraphs, list blocks, headings, and fences. Tables and fenced code stay as written. The commit-guards `md-format` lane enforces it and `md-reflow` converts a file once.152- Relative links in Markdown must resolve. [commit-guards `CHECKS.md` § md-refs](../commit-guards/CHECKS.md#md-refs) owns the checked forms.153- Agent-loaded markdown carries no history. The `prose` lane checks it.154- Document byte limits and exceptions follow [doc-limits policy](../doc-limits/references/policy.md).155- A rule a shipped kendex package states is never restated in the repo's own markdown. The repo installs the package and customises through `kendex.toml`.156157## Writing158159Rewrite from a blank page, never by editing the old text: [workflows/rewrite.md](workflows/rewrite.md).160161Templates: [README.md](templates/README.md), [DEVELOPMENT.md](templates/DEVELOPMENT.md), [overview.md](templates/overview.md), [topic.md](templates/topic.md), [reference.md](templates/reference.md), [document.html](templates/document.html), [agent-SKILL.md](templates/agent-SKILL.md), [root-AGENTS.md](templates/root-AGENTS.md), [nested-AGENTS.md](templates/nested-AGENTS.md).