new-feature
Scaffold a new feature module in apps/mobile/src/features/<name> following the project rules. Use when a ticket introduces a new feature folder.
SKILL.md.claude/skills/new-feature/SKILL.md
GitHubScaffold the feature module $ARGUMENTS in apps/mobile/src/features/$ARGUMENTS/.
Steps:
- Read
.claude/rules/01-architecture.mdand.claude/rules/02-text-and-types.md. - Identify which
docs/sections define this feature. State them before writing code. - Create the module skeleton:
index.ts— public barrel, export only what routes and other features needtypes.ts— domain types,readonly, noany, no enumstext.ts— feature-levelTEXTmap of i18n keys,as constlogic/— pure functions with sibling.test.ts, 100% branch coveragequeries/keys.ts— hierarchical key factoryqueries/use<Thing>.ts— one hook per filecomponents/— presentational onlyscreens/— composition only, under 200 lines
- Add the i18n keys to
src/i18n/nl.jsonandsrc/i18n/en.json. - Wire the route(s) in
app/as thin re-exports. - Run
pnpm check.
Do not write UI before the types, the TEXT map and the pure logic exist and pass their tests.