Mobile — iOS

The Rulebook

The files Claude reads before your first message — starting with CLAUDE.md, which loads on its own and points at the rest.

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, so a session never has to start by re-explaining the stack. The habit this asks of you is small: when you explain a constraint, put the sentence in a file, not just in the chat.

On a new project, these files arrive four ways

  • Copied in already finished — the rules that don't depend on your answers: colours and fonts, UI conventions, permissions, coding style, git habits.
  • Written out by /start — these ship describing every pattern and every project shape, and setup deletes the ones you didn't pick. So your docs describe one architecture, not five, and no half-filled placeholder survives.
  • Written by you — docs/product/. This kit knows how an app here is built and nothing about what your app is for. Requirements arrive later and keep changing, so they're read fresh each time rather than summarised into CLAUDE.md.
  • Grown as you work — created at setup, then added to automatically by the commands that change what they describe.
FileWhat it settles
CLAUDE.mdStack, pattern, project shape, module list — read automatically every session
ios-skeleton.config.jsonAll eleven setup answers in a form scripts can read — how a command works out "which module, which app" without asking you again
docs/ai/architecture.mdThe one pattern you chose, and nothing else, so features don't drift into different shapes
docs/ai/modularization.mdWhich modules exist, who may depend on whom, who owns text/images/colours
docs/ai/*_rules.mdCopied as-is: every screen ships a preview, no user-facing text typed straight into a screen, a framework never looks in Bundle.main, real accessibility labels, no permission without an explanation string, when a force-unwrap is allowed
docs/CODING_STANDARDS.md, GIT_CONVENTIONS.mdColours/fonts only through Theme/, no text typed straight into a screen, a suggested commit style your team is free to replace
docs/product/Requirements and specs — yours, never rewritten or summarised by the kit
PROJECT_MAP.md, TODO.mdSeeded at setup, then grown automatically by the commands that change what they describe
Secrets.xcconfig, Secrets.xcconfig.exampleEverything that differs between environments — the .example is committed and records which settings exist; the real file is gitignored

PROJECT_MAP.md and TODO.md are grown by the commands themselves rather than left for someone to update by hand later, for one reason: a stale doc is worse than a missing one. A missing file is a gap Claude can ask about; a stale one reads as true, and the next feature gets built on whatever it says — wrong module list, finished TODO, outdated map — with nothing to flag the mismatch.

Four recurring Swift-level arguments — where data goes, GCD vs. async/await, when [weak self] is needed, struct vs. class — are decided once in these docs, precisely because an assistant left to itself answers them by habit, differently every time. You don't have to remember the answers; you just need to know they're written down. One of the four is a hard security rule, not just a style call: never a credential in UserDefaults or the local database — Keychain only, since it's the only encrypted store and the only one kept out of unencrypted backups.