Mobile — iOS

Guardrails & Limitations

What one git hook checks at commit time, and the deliberate gaps this kit leaves for you to fill in by hand.

Guardrails

What's checked for you at commit time

One git hook blocks three things at commit time, then only the tests related to what changed get run:

CheckBlocks
Hardcoded coloursUIColor(red:, Color(red:, hex values outside Theme/
Translation consistencyText present in the main language but missing elsewhere, or the same key defined in two modules
swiftlint --stricttry! is an error; a stray print( or text typed straight into a *View.swift is a warning

Then the tests run, but only the ones related to what you changed. That's deliberate: a commit check that runs every test in the project is a commit check the team eventually turns off.

One deliberate departure from iOS convention: colours never go in the Asset Catalog — every colour and font is a Swift value under Theme/ instead. The compiler catches a typo as a build error instead of an invisible runtime fallback, it works identically from SwiftUI and UIKit, the hardcoded-colour check above can actually be enforced mechanically, and light/dark mode stays a one-file change.

One safeguard isn't a check at all but the way things are arranged: the .gitignore that /start puts in place already excludes Secrets.xcconfig, build output and personal Xcode settings. A written rule saying "don't commit secrets," in a repo that doesn't actually ignore them, is worse than no rule — because people believe it.

Limitations

What it won't do

Deliberate limits and known gaps, listed honestly — not bugs, and not a to-do list about to be finished:

  • Only four combinations are fully templated; everything else is assisted — and even those four are shaped for T1 and T2, so at T3, where files should go is a best guess.
  • Keeping to the layer boundaries is a review job, not a tool. Nothing detects a shared module that has grown an app-specific branch inside it, or a service protocol that has crept from three methods to twenty.
  • /start resolves conflicts by judgment, not by rule. It's safe to re-run, refuses to restructure things as a side effect, and recreates what's missing — but it's reasoning about your folder, not running a mechanical comparison.
  • An offline app's data layer is one method you or the assistant must write. Answer None to networking and almost everything about a feature is still generated — folder, data types, local store, wiring, navigation entry, translations. What's left is the actual read from local storage and its test, marked TODO(agent), because the templated tests check network-versus-cache behaviour an offline feature doesn't have. Answering None to networking and persistence is refused with an explanation rather than scaffolded — there'd be no data layer left at all.
  • Core Data gets the wiring but not the implementation. SwiftData is generated end to end — record type, store, registration, wiring. Core Data gets the same wiring but leaves its two storage methods as TODO(agent), because a Core Data entity lives in a visual model file that can't be generated from text.
  • Bundle and theme correctness isn't guarded. A framework reaching for Bundle.main compiles fine and returns nothing at runtime — and only inside the app using it. Nothing stops app code redefining a colour a shared module already owns.
  • No check for text typed straight into a screen beyond Text("… in a view file, and only as a warning — a blanket search for quoted text flags far too much (log messages, format strings, internal identifiers).
  • No login, deep links, or tests beyond unit tests. Nothing generates token refresh, Keychain storage or retry-after-401; nothing turns an incoming link into a screen; there's no UI or screenshot test target. Not ruled out — just not done yet. The rule that credentials belong in the Keychain is written down; the code implementing it is yours to write.
  • Deliberately left out. No commit-message enforcement — docs/GIT_CONVENTIONS.md suggests a format, but nothing checks it, since commit conventions differ from team to team and from client to client, so that's your project's call to make, not this kit's; add your own commit-msg hook if you want it enforced. Also no CI pipeline, no paging in the base data contract, and no image-caching library. Generated project files are committed, so a fresh clone opens in Xcode without needing XcodeGen installed — at the cost of a noisy project-file diff each time it's regenerated.
  • The recommendations come from one codebase, not a survey — and a UIKit-heavy, partly-hybrid one at that. A game, an offline-first app or something built mostly of extensions would reasonably land on different answers.
  • Skip the recommended defaults, and more of the generated code is assistant-written rather than templated, so read it before you build on it.