MDK docs style guide (router)
The rules live in docs/reference/maintainers/style.md. Read it before authoring or editing:
docs/**/*.md(the root docs tree)- Any
README.md - Any
backend/**/docs/**/*.mdorui/**/docs/**/*.md
Don't store style rules here.
Read in addition, by task
- Adding or editing a reference-style link definition (
[slug]: …), or an admonition on a page that might be ported totether.io: single-source-of-truth.md, the routing-comment vocabulary the port pipeline reads - Editing
AGENT_READY.mdorUSAGE.mdin a package'sdocs/:style.mdgoverns the prose, butagent-ready-sdk.mdgoverns the required contract structure; read both - Editing a
README.mdwith a marked generated region (for examplebackend/core/plugins/README.md's<!-- BEGIN GENERATED: … -->/<!-- END GENERATED -->block): never hand-edit inside the markers; regenerate with the documented script instead (that file:npm run generate:plugin-referenceinbackend/core/plugins)
Note on existing content
Existing READMEs and package docs predate this scope apply style.md going forward on pages you touch; don't mass-rewrite existing files unprompted.
Hard constraints
- Don't touch historical files e.g.
CHANGELOG.md, release notes, orpackage.json,node_modules, or lock files without explicit approval - "Hands off by default" is not "exempt from style". When you do edit
CHANGELOG.mdor release notes with approval (e.g. cutting a release via thechangelogskill),style.md's prose rules still apply — including the 150–180 char line length (tables and fenced code exempt)