Keep docs source-first and easy to scan.
Docs should explain:
- Where the source of truth lives
- Which rules to follow
- Which workflows to run
Project maintenance split:
miseowns named project workflows and low-level tool commands (prepare, tests, builds, codegen, Fallow, deployment artifacts, etc.).hkowns file-scoped quality orchestration for hooks and fast local format/lint/typecheck (hk check,hk fix).- Project quality docs should point agents and contributors to
hk checkfor validation andhk fixfor auto-fixable issues. Use lower-levelmise,nub,vp, or tool-specific commands only when a doc is about that specific subsystem or a narrower task.
Docs should avoid duplicating large code blocks that are already clear in source files.
See docs/tooling.md for the current Vite+ / mise / hk split, known Vite+ alias warnings, hk builtin usage, and Fallow integration details.
Use this structure for new docs and refactors:
Overview: short problem and scope.Read Source First: table of key files and why each one matters.Rules: concise policy bullets.Workflows: step-by-step tasks for common changes.Edge Cases: rare exceptions and anti-patterns.
- Prefer file pointers over long snippets.
- Keep snippets short and only for API shape or tricky details.
- If a snippet exceeds ~10 lines, replace it with source references.
- Use exact paths so contributors can open files quickly.
- Keep guidance actionable and tied to existing project conventions.
- Docs reflect current state only. No version history, migration narratives, "not yet wired in," or speculative "could replace…" remarks. If code changed, rewrite the doc to match — don't annotate the delta.
When code changes, update docs by:
- Updating file pointers first.
- Updating rules second.
- Adding examples only when source files are not enough.
If a doc drifts from source, source wins. Update the doc to match code.