Mobile — Android
The Rulebook
The files Claude Code reads automatically before you say anything, and the one manual step it can't do for you.
The Rulebook
Files Claude reads before you say anything
CLAUDE.md loads automatically at the start of every session and points at the rest of the rulebook. The habit this asks of you: when you explain a constraint, put the sentence in a file, not only in the chat — chat is forgotten tomorrow, the file is read every time.
| File | Where it comes from | What it settles |
|---|---|---|
CLAUDE.md | generated | Tech stack and pointers to the deeper rule files — read automatically every session |
docs/ai/architecture.md | generated | MVI + feature-first Clean Architecture, plus the module layout — the only pattern that exists here |
docs/ai/compose_rules.md | generated | No hardcoded text or colours, mandatory @Preview, real accessibility labels, and rule 7: a Composable dispatches a UiEvent, never calls a ViewModel method directly |
docs/ai/ui_synthesis_rules.md | generated | Map every screenshot to MaterialTheme — never invent a hex colour or raw font size |
docs/PROJECT_MAP.md | generated, then added to | Where every file not covered by the feature convention lives, including the Gradle module table |
TODO.md | seeded by new_feature.sh | The two manual steps every generated feature leaves: wire the route into navigation, set the real endpoint |
A stale doc is worse than a missing one. A file describing a pattern you've since moved away from doesn't announce itself — it quietly steers Claude wrong for months. scripts/check_embedded_sync.sh exists precisely because init_skeleton.sh carries its own embedded copy of every one of these files, and the two can drift — see Guardrails.