- Comment only when it adds something the code doesn't already say — explain why, not what. Skip comments that just restate the next line.
- When a comment is needed, keep it to a single line and concise. Do not write multi-line comment blocks of prose.
- The single-line rule does not apply to structural section banners (
// ===/title/// ===) or to license/file headers.
- When amending or adding code, prefer
autoover an explicit type wherever the type is still clear from the initializer (e.g.const auto x = TIMER_INIT();).
- The docs site (
site/) servesllms.txtandllms-full.txtfor LLM ingestion, generated from the docs collection viasite/src/pages/llms*.txt.tsandsite/src/lib/llms.ts. When you add, remove, or amend a page undersite/src/content/docs/, check these: they pick pages up automatically (no manual list to edit), but a new page only appears inllms.txt's nav-ordered index if it's registered insite/src/lib/nav.ts, and its one-line entry there comes from the page'sdescription:frontmatter — so give every page adescription. Runnpm --prefix site run buildand confirm the change is reflected insite/dist/llms.txt/llms-full.txt.