This directory contains the authoritative rules for working in this repository.
Before making any decisions or writing code:
- Read
CURSOR_RULES.md - Read
/docs/ARCHITECTURE.md - Read
/docs/core/CORE_PUBLIC_API.md - When working on a specific layer (desktop, web, modules), read the docs for that layer (e.g.
docs/desktop/,docs/web/)
For agent role boundaries and execution order (which agent may do what in the dev repo), see .claude/governance/agents.md. Agent definitions and control plane: .claude/.
If a decision is unclear or undocumented:
- Update the relevant file in
/docsfirst (or add an ADR inadr/for significant arch/technical decisions, or a record indecisions/for other decisions). For when to use docs vs adr vs decisions, and where to put diagrams, see docs/meta/DOCUMENTATION.md. Significant arch/technical decisions →adr/. Other product/process/design decisions →decisions/. Diagrams →diagrams/, referenced from the doc or ADR. - Then implement the change
Do not introduce new dependencies, structure, or abstractions without updating documentation first.