[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2M3M0664A78VZ9P7NXD0T":3,"skill-same:01M7F2M3M0664A78VZ9P7NXD0T":268},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F2M3M0664A78VZ9P7NXD0T","scaffold-feature-screen",null,"Scaffolds one Expo Router feature - thin route, pure view, model hook, tests, message keys, typed params - and proves it. Use when adding a screen, page or feature folder, or checking one is done. Not for screen contents (screen-contracts).","zakariaf\u002FReactNative-Skills","zakariaf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2259803?v=4","01M7DEF0YMPS6Y6RQ4WGA0JH9R","Zakaria Fatahi","01M7F1VKYEK96M7SYJE1EPGD0A",13,"MIT","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: scaffold-feature-screen\ndescription: Scaffolds one Expo Router feature - thin route, pure view, model hook, tests, message keys, typed params - and proves it. Use when adding a screen, page or feature folder, or checking one is done. Not for screen contents (screen-contracts).\n---\n\n# Scaffold a feature screen\n\nEvery screen of an Expo Router app starts the same way: a script writes one feature folder\n(`src\u002Ffeatures\u002F\u003Cfeature>\u002F`) with a pure view, its model hook, a test for each, a thin route file and\nits route test, the message keys in every catalog, and, for a dynamic route, a valibot params parser\nwith an invalid-link state; it registers the route and the screen in the app's contracts. A second\nscript proves the feature is complete, on iOS and Android alike, before anything grows on it.\n\n## Rules that must hold\n\n1. **Generate the feature with `scaffold-feature.mjs`; never copy a neighbour.** The script fills\n   every placeholder in paths and contents, writes all files of the unit together, and never\n   overwrites a file that differs (`conflict`). Why: a copied feature keeps the old testIDs, keys,\n   titles and wiring in corners no test reads, and a hand-copied template leaves `__FEATURE__`\n   behind. (`placeholder-left`)\n2. **One feature is one kebab-case folder, and that name is everything's name.** `note-detail` is\n   the folder, the testID scope (`note-detail.screen`), the message-key prefix (`note-detail.title`),\n   the screen-contract id and the file prefix; the types are `NoteDetail…`. Why: one grep finds the\n   whole feature, and E2E flows, translators and reviewers see the same word. (`feature-names`)\n3. **Four files exist from the first commit, named after the folder:** `\u003Cf>-screen.tsx` exporting\n   `\u003CF>Screen`, `use-\u003Cf>-model.ts` exporting `use\u003CF>Model` and `type \u003CF>Model`, and\n   `\u003Cf>-screen.test.tsx` and `use-\u003Cf>-model.test.tsx` beside them. Why: the view is tested with plain\n   values and the hook with providers and fakes; a screen without both tests is the one that ships\n   broken. (`feature-files`, `feature-names`)\n4. **The route is two lines of work.** `src\u002Fapp\u002F\u003Croute id>.tsx` default-exports `\u003CF>Route`, calls\n   `use\u003CF>Model()` once, hands the translated title to the header with `\u003CStack.Screen options>` and\n   renders `\u003CF>Screen model={model}`; nothing else. Why: Expo Router bundles every file in `src\u002Fapp`,\n   and logic there can be neither reused nor tested alone (architecture-and-boundaries' `route-thin`).\n   (`route-wiring`)\n5. **Every route has its route test in the feature.** `\u003Cf>-navigation.test.tsx` imports the route's\n   default export from `@\u002Fapp\u002F\u003Croute id>` and opens it at its URL with `renderRouterWithProviders`;\n   only a route an E2E flow covers may carry `\u002F\u002F device-only:` instead. Why: tests cannot live in\n   `src\u002Fapp`, and only this test proves URL → route → model → view runs once as on a device.\n   (`route-test`)\n6. **The view is pure and the model hook is the only reader.** The screen and every `components\u002F`\n   file import no router, store, service, `src\u002Fdata`, `src\u002Fapi` or `t()`, and call none of their\n   hooks; the model hook reads them and hands texts translated and handlers ready. The view's root is\n   react-components-and-hooks' `\u003CScreenFrame edges={BELOW_HEADER_EDGES}>` when the app has\n   `src\u002Fui\u002Fscreen-frame.tsx` (the generator writes it), a plain `View` until then. Why: the view then\n   renders every state from plain values, the reads live in one tested place, and the Android 15+\n   edge-to-edge and iPhone insets are handled once. (`view-pure`)\n7. **Components live in `components\u002F`, a dialog with its own model in its own subfolder.** The feature\n   root holds the screen, the model hook (and its split parts), pure logic and the tests. Why: the\n   reviewer finds the screen at a glance, and a component that a second feature needs moves to\n   `src\u002Fui` without untangling. (`component-placement`)\n8. **A dynamic route parses its params at the edge, in the model hook.** `\u003Cf>-params.ts` is a valibot\n   schema whose keys equal the route's `[param]` names, returns a `Result`, and has its test; the\n   model hook calls `parse\u003CF>Params(useLocalSearchParams())`; the route and the view never read\n   params. A failed parse is the invalid-link state, whose one way out is `router.dismissTo('\u002F')`.\n   Why: any link opens the route with any text, repeated keys arrive as arrays, and the type argument\n   of `useLocalSearchParams\u003CT>()` is a cast. (`params-parser`, `params-in-model`)\n9. **Every text is a key under `\u003Cf>.` in every catalog, in the same change.** `--title` and `--body`\n   are source-language text (the app's `SOURCE_LANGUAGE`): the source catalog gets them, every other\n   catalog gets them as drafts. The fixed texts come from the skill's translation for a language, else\n   English as a draft. The generator lists the drafts per language; each drafted language belongs in\n   `contracts\u002Fi18n.json` `reviewLanguages`, the translation queue. Why: a missing key fails a person on\n   a phone in another language, not a test, and a draft nobody queues ships as English.\n   (`message-key-missing`; after a rename, `--orphans`: `message-key-orphan`)\n10. **The feature is registered where the app keeps its contracts.** Its route id is in\n    `contracts\u002Fnavigation.json` `routes` (a dynamic route also in `paramParsers`), and\n    `contracts\u002Fscreens.json` has its entry (route, model, view, states, elements). Why: a route change\n    starts in the contract, and the screen's ids and keys are agreed there before code grows.\n    (`nav-contract`, `screen-contract`)\n11. **The scaffold is a skeleton; everything after it is test-first.** Reading data, a handler or a\n    state starts as a failing test in the matching test file; a model past about 40 lines splits into\n    `use-\u003Cf>-actions.ts` and a pure `\u003Cf>-model-of.ts`. Why: the scaffold proves the wiring once; only\n    tests keep it true while the screen grows.\n12. **Prove the feature complete before handing it over.** `check-feature.mjs` passes for it, and so\n    do the neighbours that own the deeper rules (navigation, screen contract, catalogs). Why: a feature\n    \"done\" by eye is the one missing its route test or its Arabic keys.\n\n## Workflow\n\n1. **Name it.** Pick the feature name, route id and title in the source language\n   ([references\u002Ffeature-anatomy.md](references\u002Ffeature-anatomy.md) \"Naming the feature\",\n   [references\u002Froutes-and-params.md](references\u002Froutes-and-params.md) \"Route ids and hrefs\"). A list\n   and its detail are two features (`notes`, `note-detail`). Confirm the prerequisites listed in\n   feature-anatomy \"What the scaffold needs\" exist; each names the skill that creates it.\n   - **An app fresh from expo-project-bootstrap** still has its starter screen (`src\u002Fapp\u002Findex.tsx`\n     rendering `src\u002Ffeatures\u002Fhome\u002F`, whose header says this skill replaces it). It holds no work:\n     delete both, and generate the first feature at its route (`--route index`, or `\"(app)\u002Findex\"`\n     in an app with an `(app)` group). The generator names the starter instead of overwriting it\n     (`starter`), and `check-feature.mjs` reports it as one `starter-screen` line until it is gone.\n2. **Plan.** From the repo root run\n   `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fscaffold-feature.mjs . --feature \u003Cname> --route \"\u003Croute id>\" --title \"\u003CTitle>\"`.\n   Read the plan: `new`, `same`, `edit` lines, the `drafts \u003Clang>:` lines and the `note` lines (the\n   view's frame, a drafted language missing from `reviewLanguages`, a Tabs parent, a `home` other\n   than `\u002F`); a `conflict` means the name, the route or its URL is taken (another route file already\n   serves it, perhaps in another group: pick another, or finish the existing feature by hand), or a\n   contract holds `\u002F\u002F` comments the edit would drop. Compare with [examples\u002Fscaffold-plan.txt](examples\u002Fscaffold-plan.txt).\n3. **Write.** Rerun with `--write`. It formats the written files with the app's Prettier when\n   installed. The generator and its options: [references\u002Fgenerator-and-checker.md](references\u002Fgenerator-and-checker.md).\n4. **Run the feature's tests and gates:** `npx jest src\u002Ffeatures\u002F\u003Cname> --ci --maxWorkers=2`, then\n   `npm run typecheck` and `npx eslint src\u002Ffeatures\u002F\u003Cname> src\u002Fapp --max-warnings 0`.\n5. **Check it:** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-feature.mjs . --feature \u003Cname>`. Fix every\n   `FAIL` line (file, rule, fix; each rule is explained in generator-and-checker \"check-feature\n   rules\") and rerun until `RESULT: PASS`.\n6. **Finish what a person decides:** translate the draft keys the plan listed (add each drafted\n   language to `contracts\u002Fi18n.json` `reviewLanguages` when the plan says it is missing; then\n   i18n-strings-and-catalogs' review queue carries them), adjust the screen entry's states and elements as the design says (screen-contracts), and\n   pick the header and presentation (navigation-and-routing).\n7. **Grow it test-first** with [references\u002Ftest-recipes.md](references\u002Ftest-recipes.md): a failing\n   test, then the code, for each behaviour (data through a repository or query, handlers, the states\n   the screen contract lists). Imitate [examples\u002Flist-detail\u002F](examples\u002Flist-detail\u002F) for a detail\n   screen that reads data by a numeric id.\n8. **Run the neighbours' checkers:** navigation-and-routing's `check-navigation.mjs`, screen-contracts'\n   `check-screens.mjs . --screen \u003Cname>`, i18n-strings-and-catalogs' `check-catalogs.mjs`.\n9. **Rerun `check-feature.mjs`** (add `--orphans` after renaming or deleting part of a feature) until\n   `RESULT: PASS`, and report: the route, the keys still to translate, the states still to build.\n\n## Definition of done\n\n- [ ] The feature was written by `scaffold-feature.mjs` (no copied folder), and its folder name is its\n      testID scope, key prefix and screen id.\n- [ ] `\u003Cf>-screen.tsx`, `use-\u003Cf>-model.ts`, both tests and `\u003Cf>-navigation.test.tsx` exist; the route\n      calls the model hook once and renders the view.\n- [ ] A dynamic route has `\u003Cf>-params.ts` with its test, read only by the model hook, and an\n      invalid-link state with one way out.\n- [ ] The view and `components\u002F` read nothing; every text arrives translated from the model.\n- [ ] The view's root is `\u003CScreenFrame testID edges={BELOW_HEADER_EDGES}>` when the app has\n      `src\u002Fui\u002Fscreen-frame.tsx` (a plain `View` only while it does not).\n- [ ] No starter screen of expo-project-bootstrap is left (`src\u002Fapp\u002Findex.tsx` + `src\u002Ffeatures\u002Fhome\u002F`).\n- [ ] Every key is in every catalog; every language the plan listed drafts for is in\n      `contracts\u002Fi18n.json` `reviewLanguages` (or, before that contract exists, the drafts are in the\n      report).\n- [ ] The route is in `contracts\u002Fnavigation.json` (and `paramParsers`), the screen in\n      `contracts\u002Fscreens.json`.\n- [ ] `npx jest src\u002Ffeatures\u002F\u003Cf>`, `npm run typecheck` and ESLint pass.\n- [ ] The only SKIP lines allowed are, while the app has none: `SKIP contracts\u002Fnavigation.json\n      [nav-contract] not yet created (navigation-and-routing creates it)`, `SKIP contracts\u002Fscreens.json\n      [screen-contract] not yet created (screen-contracts creates it)`, `SKIP src\u002Fi18n\u002Fcatalogs\n      [message-key-missing] not yet created (i18n-strings-and-catalogs creates it)`, or for an empty\n      catalogs folder `SKIP src\u002Fi18n\u002Fcatalogs [message-key-missing] holds no catalog\n      (i18n-strings-and-catalogs creates them)`.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-feature.mjs . --feature \u003Cf>` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **`cp -R src\u002Ffeatures\u002Ftasks src\u002Ffeatures\u002Fnotes` and search-and-replace.** Old ids, keys and titles\n  survive; run the generator.\n- **Copying the templates by hand.** `__FEATURE__` ends up in a path or a key; the generator fills\n  them and `placeholder-left` catches what is left.\n- **Logic in the route file** (`useState`, a query, `useLocalSearchParams`). Move it to the model hook.\n- **Calling `useT()` or `useRouter()` in the view \"just for one label\".** Translate and build the\n  handler in the model; the view stays a function of its props.\n- **A route test under `src\u002Fapp\u002F`.** Expo Router bundles it as a route; it lives in the feature.\n- **Trusting `useLocalSearchParams\u003C{ noteId: string }>()`.** A cast; parse with the feature's parser.\n- **A parser key that differs from the bracket** (`[noteId].tsx`, schema `id`). Every link then opens\n  the invalid-link state; `params-parser` names it.\n- **Going home with `router.navigate('\u002F')` from the invalid-link state.** It stacks a second home;\n  `dismissTo('\u002F')`.\n- **Adding keys to `en.json` only.** The other languages fail on the phone; every catalog gets them.\n- **Overwriting the bootstrap starter by hand-editing `home-screen.tsx` into a feature.** It has no\n  model, tests or contract entry; delete it and generate the first feature at `--route index`.\n- **One feature folder for a list and its detail.** Two screens, two features, two models.\n- **Writing the data reads into the scaffold before a test asks for them.** Grow it test-first.\n- **Calling the scaffold done because the generator passed.** The feature is done at\n  `check-feature.mjs` and the neighbours' checks.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Ffeature-anatomy.md](references\u002Ffeature-anatomy.md) | The unit: naming, each file's job and imports, the model's shape and splits, components and dialogs, iOS and Android behaviour, prerequisites, pitfalls | Workflow steps 1 and 7 |\n| [references\u002Froutes-and-params.md](references\u002Froutes-and-params.md) | Route ids, hrefs, the header title, dynamic params and their parser, the invalid-link state, contracts, verified router facts | Workflow steps 1 and 7 |\n| [references\u002Fgenerator-and-checker.md](references\u002Fgenerator-and-checker.md) | `scaffold-feature.mjs` options and plan lines; every `check-feature.mjs` rule with its fix; config keys; multi-package | Workflow steps 2, 3, 5 and 9 |\n| [references\u002Ftest-recipes.md](references\u002Ftest-recipes.md) | The view, model, route and params tests, growing test-first, Jest commands | Workflow steps 4 and 7 |\n| `templates\u002Fsrc\u002Fapp\u002F__ROUTE_ID__.tsx` | The thin route of a static screen | The generator writes it |\n| `templates\u002Fsrc\u002Fapp\u002F__DETAIL_ROUTE_ID__.tsx` | The thin route of a dynamic screen | The generator writes it |\n| `templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F` | Static screen: view, model hook, view test, model test, route test | The generator writes it |\n| `templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F` | Dynamic screen: the same plus the params parser and its test and the invalid-link component | The generator writes it |\n| `templates\u002Fsrc\u002Fi18n\u002Fcatalogs\u002F` | The scaffold's keys in `en` and `ar`, merged into every catalog | The generator merges them |\n| [examples\u002Fscaffold-plan.txt](examples\u002Fscaffold-plan.txt) | A dry run and a write for a dynamic route in the reference app | Workflow step 2 |\n| [examples\u002Flist-detail\u002F](examples\u002Flist-detail\u002F) | A grown detail feature: numeric id parser, pure state chooser, model reading a repository | Workflow step 7 |\n| `scripts\u002Fscaffold-feature.mjs` | Generator: plan (default) or `--write`; never overwrites | Workflow steps 2 and 3 |\n| `scripts\u002Fcheck-feature.mjs` | Checker: every rule above, one feature or all | Workflow steps 5 and 9 |\n| `scripts\u002Flib\u002Fjson-format.mjs` | Prints JSON in Prettier's layout for the catalog and contract edits | When changing the generator |\n| `scripts\u002Flib\u002Ffeature-app.mjs` | App facts both scripts read: the bootstrap starter screen and the source language | When changing either script |\n| `scripts\u002Fselftest.mjs` | Proves both scripts: planted bugs, plans, conflicts, and the generator's output passing the checker | After changing a script, template or fixture |\n| `scripts\u002Fcheck-lib.mjs` | Shared script library (synced; do not edit here) | Never by hand |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared import-resolution helpers (synced; do not edit here) | Never by hand |\n| `assets\u002Fshared.json` | Declares the synced files | When adding a shared file |\n| `assets\u002Ftemplate-placeholders.json` | The placeholder values that prove the templates in the reference app | When adding a placeholder |\n| `tests\u002Fbases\u002F` | Fixture apps: `app\u002F` (contracts, planted skill decoys), `empty-app\u002F` (for the generator) | When adding a case |\n| `tests\u002Ffixtures\u002F` | The self-test cases per script | When adding a rule |\n\n## Related skills\n\n- `screen-contracts` - what the screen shows: states, testIDs, copy keys, the view test per state.\n- `navigation-and-routing` - the route contract, layouts, guards, modals and the not-found route.\n- `architecture-and-boundaries` - where files live and the thin-route rule.\n- `react-components-and-hooks` - the model hook, effects, `ScreenFrame` edges, components.\n- `i18n-strings-and-catalogs` - catalogs, key names, translating the drafts.\n- `naming-conventions` - file, export, testID and key shapes.\n- `expo-project-bootstrap` - the new app whose starter screen the first feature replaces.\n- `unit-and-component-tests` - the render helpers and Jest projects.\n- `ui-states-and-feedback` - loading, empty, error and offline states as the screen grows.\n- `forms-and-input` - a screen that edits data.\n- `state-management-zustand` and `networking-and-server-state` - what the model hook reads.\n- `deep-links-and-universal-links` - links from outside the app into the new route.\n- `e2e-maestro` - the device flow for the new screen.\n","# Scaffold a feature screen\n\nEvery screen of an Expo Router app starts the same way: a script writes one feature folder\n(`src\u002Ffeatures\u002F\u003Cfeature>\u002F`) with a pure view, its model hook, a test for each, a thin route file and\nits route test, the message keys in every catalog, and, for a dynamic route, a valibot params parser\nwith an invalid-link state; it registers the route and the screen in the app's contracts. A second\nscript proves the feature is complete, on iOS and Android alike, before anything grows on it.\n\n## Rules that must hold\n\n1. **Generate the feature with `scaffold-feature.mjs`; never copy a neighbour.** The script fills\n   every placeholder in paths and contents, writes all files of the unit together, and never\n   overwrites a file that differs (`conflict`). Why: a copied feature keeps the old testIDs, keys,\n   titles and wiring in corners no test reads, and a hand-copied template leaves `__FEATURE__`\n   behind. (`placeholder-left`)\n2. **One feature is one kebab-case folder, and that name is everything's name.** `note-detail` is\n   the folder, the testID scope (`note-detail.screen`), the message-key prefix (`note-detail.title`),\n   the screen-contract id and the file prefix; the types are `NoteDetail…`. Why: one grep finds the\n   whole feature, and E2E flows, translators and reviewers see the same word. (`feature-names`)\n3. **Four files exist from the first commit, named after the folder:** `\u003Cf>-screen.tsx` exporting\n   `\u003CF>Screen`, `use-\u003Cf>-model.ts` exporting `use\u003CF>Model` and `type \u003CF>Model`, and\n   `\u003Cf>-screen.test.tsx` and `use-\u003Cf>-model.test.tsx` beside them. Why: the view is tested with plain\n   values and the hook with providers and fakes; a screen without both tests is the one that ships\n   broken. (`feature-files`, `feature-names`)\n4. **The route is two lines of work.** `src\u002Fapp\u002F\u003Croute id>.tsx` default-exports `\u003CF>Route`, calls\n   `use\u003CF>Model()` once, hands the translated title to the header with `\u003CStack.Screen options>` and\n   renders `\u003CF>Screen model={model}`; nothing else. Why: Expo Router bundles every file in `src\u002Fapp`,\n   and logic there can be neither reused nor tested alone (architecture-and-boundaries' `route-thin`).\n   (`route-wiring`)\n5. **Every route has its route test in the feature.** `\u003Cf>-navigation.test.tsx` imports the route's\n   default export from `@\u002Fapp\u002F\u003Croute id>` and opens it at its URL with `renderRouterWithProviders`;\n   only a route an E2E flow covers may carry `\u002F\u002F device-only:` instead. Why: tests cannot live in\n   `src\u002Fapp`, and only this test proves URL → route → model → view runs once as on a device.\n   (`route-test`)\n6. **The view is pure and the model hook is the only reader.** The screen and every `components\u002F`\n   file import no router, store, service, `src\u002Fdata`, `src\u002Fapi` or `t()`, and call none of their\n   hooks; the model hook reads them and hands texts translated and handlers ready. The view's root is\n   react-components-and-hooks' `\u003CScreenFrame edges={BELOW_HEADER_EDGES}>` when the app has\n   `src\u002Fui\u002Fscreen-frame.tsx` (the generator writes it), a plain `View` until then. Why: the view then\n   renders every state from plain values, the reads live in one tested place, and the Android 15+\n   edge-to-edge and iPhone insets are handled once. (`view-pure`)\n7. **Components live in `components\u002F`, a dialog with its own model in its own subfolder.** The feature\n   root holds the screen, the model hook (and its split parts), pure logic and the tests. Why: the\n   reviewer finds the screen at a glance, and a component that a second feature needs moves to\n   `src\u002Fui` without untangling. (`component-placement`)\n8. **A dynamic route parses its params at the edge, in the model hook.** `\u003Cf>-params.ts` is a valibot\n   schema whose keys equal the route's `[param]` names, returns a `Result`, and has its test; the\n   model hook calls `parse\u003CF>Params(useLocalSearchParams())`; the route and the view never read\n   params. A failed parse is the invalid-link state, whose one way out is `router.dismissTo('\u002F')`.\n   Why: any link opens the route with any text, repeated keys arrive as arrays, and the type argument\n   of `useLocalSearchParams\u003CT>()` is a cast. (`params-parser`, `params-in-model`)\n9. **Every text is a key under `\u003Cf>.` in every catalog, in the same change.** `--title` and `--body`\n   are source-language text (the app's `SOURCE_LANGUAGE`): the source catalog gets them, every other\n   catalog gets them as drafts. The fixed texts come from the skill's translation for a language, else\n   English as a draft. The generator lists the drafts per language; each drafted language belongs in\n   `contracts\u002Fi18n.json` `reviewLanguages`, the translation queue. Why: a missing key fails a person on\n   a phone in another language, not a test, and a draft nobody queues ships as English.\n   (`message-key-missing`; after a rename, `--orphans`: `message-key-orphan`)\n10. **The feature is registered where the app keeps its contracts.** Its route id is in\n    `contracts\u002Fnavigation.json` `routes` (a dynamic route also in `paramParsers`), and\n    `contracts\u002Fscreens.json` has its entry (route, model, view, states, elements). Why: a route change\n    starts in the contract, and the screen's ids and keys are agreed there before code grows.\n    (`nav-contract`, `screen-contract`)\n11. **The scaffold is a skeleton; everything after it is test-first.** Reading data, a handler or a\n    state starts as a failing test in the matching test file; a model past about 40 lines splits into\n    `use-\u003Cf>-actions.ts` and a pure `\u003Cf>-model-of.ts`. Why: the scaffold proves the wiring once; only\n    tests keep it true while the screen grows.\n12. **Prove the feature complete before handing it over.** `check-feature.mjs` passes for it, and so\n    do the neighbours that own the deeper rules (navigation, screen contract, catalogs). Why: a feature\n    \"done\" by eye is the one missing its route test or its Arabic keys.\n\n## Workflow\n\n1. **Name it.** Pick the feature name, route id and title in the source language\n   ([references\u002Ffeature-anatomy.md](references\u002Ffeature-anatomy.md) \"Naming the feature\",\n   [references\u002Froutes-and-params.md](references\u002Froutes-and-params.md) \"Route ids and hrefs\"). A list\n   and its detail are two features (`notes`, `note-detail`). Confirm the prerequisites listed in\n   feature-anatomy \"What the scaffold needs\" exist; each names the skill that creates it.\n   - **An app fresh from expo-project-bootstrap** still has its starter screen (`src\u002Fapp\u002Findex.tsx`\n     rendering `src\u002Ffeatures\u002Fhome\u002F`, whose header says this skill replaces it). It holds no work:\n     delete both, and generate the first feature at its route (`--route index`, or `\"(app)\u002Findex\"`\n     in an app with an `(app)` group). The generator names the starter instead of overwriting it\n     (`starter`), and `check-feature.mjs` reports it as one `starter-screen` line until it is gone.\n2. **Plan.** From the repo root run\n   `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fscaffold-feature.mjs . --feature \u003Cname> --route \"\u003Croute id>\" --title \"\u003CTitle>\"`.\n   Read the plan: `new`, `same`, `edit` lines, the `drafts \u003Clang>:` lines and the `note` lines (the\n   view's frame, a drafted language missing from `reviewLanguages`, a Tabs parent, a `home` other\n   than `\u002F`); a `conflict` means the name, the route or its URL is taken (another route file already\n   serves it, perhaps in another group: pick another, or finish the existing feature by hand), or a\n   contract holds `\u002F\u002F` comments the edit would drop. Compare with [examples\u002Fscaffold-plan.txt](examples\u002Fscaffold-plan.txt).\n3. **Write.** Rerun with `--write`. It formats the written files with the app's Prettier when\n   installed. The generator and its options: [references\u002Fgenerator-and-checker.md](references\u002Fgenerator-and-checker.md).\n4. **Run the feature's tests and gates:** `npx jest src\u002Ffeatures\u002F\u003Cname> --ci --maxWorkers=2`, then\n   `npm run typecheck` and `npx eslint src\u002Ffeatures\u002F\u003Cname> src\u002Fapp --max-warnings 0`.\n5. **Check it:** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-feature.mjs . --feature \u003Cname>`. Fix every\n   `FAIL` line (file, rule, fix; each rule is explained in generator-and-checker \"check-feature\n   rules\") and rerun until `RESULT: PASS`.\n6. **Finish what a person decides:** translate the draft keys the plan listed (add each drafted\n   language to `contracts\u002Fi18n.json` `reviewLanguages` when the plan says it is missing; then\n   i18n-strings-and-catalogs' review queue carries them), adjust the screen entry's states and elements as the design says (screen-contracts), and\n   pick the header and presentation (navigation-and-routing).\n7. **Grow it test-first** with [references\u002Ftest-recipes.md](references\u002Ftest-recipes.md): a failing\n   test, then the code, for each behaviour (data through a repository or query, handlers, the states\n   the screen contract lists). Imitate [examples\u002Flist-detail\u002F](examples\u002Flist-detail\u002F) for a detail\n   screen that reads data by a numeric id.\n8. **Run the neighbours' checkers:** navigation-and-routing's `check-navigation.mjs`, screen-contracts'\n   `check-screens.mjs . --screen \u003Cname>`, i18n-strings-and-catalogs' `check-catalogs.mjs`.\n9. **Rerun `check-feature.mjs`** (add `--orphans` after renaming or deleting part of a feature) until\n   `RESULT: PASS`, and report: the route, the keys still to translate, the states still to build.\n\n## Definition of done\n\n- [ ] The feature was written by `scaffold-feature.mjs` (no copied folder), and its folder name is its\n      testID scope, key prefix and screen id.\n- [ ] `\u003Cf>-screen.tsx`, `use-\u003Cf>-model.ts`, both tests and `\u003Cf>-navigation.test.tsx` exist; the route\n      calls the model hook once and renders the view.\n- [ ] A dynamic route has `\u003Cf>-params.ts` with its test, read only by the model hook, and an\n      invalid-link state with one way out.\n- [ ] The view and `components\u002F` read nothing; every text arrives translated from the model.\n- [ ] The view's root is `\u003CScreenFrame testID edges={BELOW_HEADER_EDGES}>` when the app has\n      `src\u002Fui\u002Fscreen-frame.tsx` (a plain `View` only while it does not).\n- [ ] No starter screen of expo-project-bootstrap is left (`src\u002Fapp\u002Findex.tsx` + `src\u002Ffeatures\u002Fhome\u002F`).\n- [ ] Every key is in every catalog; every language the plan listed drafts for is in\n      `contracts\u002Fi18n.json` `reviewLanguages` (or, before that contract exists, the drafts are in the\n      report).\n- [ ] The route is in `contracts\u002Fnavigation.json` (and `paramParsers`), the screen in\n      `contracts\u002Fscreens.json`.\n- [ ] `npx jest src\u002Ffeatures\u002F\u003Cf>`, `npm run typecheck` and ESLint pass.\n- [ ] The only SKIP lines allowed are, while the app has none: `SKIP contracts\u002Fnavigation.json\n      [nav-contract] not yet created (navigation-and-routing creates it)`, `SKIP contracts\u002Fscreens.json\n      [screen-contract] not yet created (screen-contracts creates it)`, `SKIP src\u002Fi18n\u002Fcatalogs\n      [message-key-missing] not yet created (i18n-strings-and-catalogs creates it)`, or for an empty\n      catalogs folder `SKIP src\u002Fi18n\u002Fcatalogs [message-key-missing] holds no catalog\n      (i18n-strings-and-catalogs creates them)`.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-feature.mjs . --feature \u003Cf>` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **`cp -R src\u002Ffeatures\u002Ftasks src\u002Ffeatures\u002Fnotes` and search-and-replace.** Old ids, keys and titles\n  survive; run the generator.\n- **Copying the templates by hand.** `__FEATURE__` ends up in a path or a key; the generator fills\n  them and `placeholder-left` catches what is left.\n- **Logic in the route file** (`useState`, a query, `useLocalSearchParams`). Move it to the model hook.\n- **Calling `useT()` or `useRouter()` in the view \"just for one label\".** Translate and build the\n  handler in the model; the view stays a function of its props.\n- **A route test under `src\u002Fapp\u002F`.** Expo Router bundles it as a route; it lives in the feature.\n- **Trusting `useLocalSearchParams\u003C{ noteId: string }>()`.** A cast; parse with the feature's parser.\n- **A parser key that differs from the bracket** (`[noteId].tsx`, schema `id`). Every link then opens\n  the invalid-link state; `params-parser` names it.\n- **Going home with `router.navigate('\u002F')` from the invalid-link state.** It stacks a second home;\n  `dismissTo('\u002F')`.\n- **Adding keys to `en.json` only.** The other languages fail on the phone; every catalog gets them.\n- **Overwriting the bootstrap starter by hand-editing `home-screen.tsx` into a feature.** It has no\n  model, tests or contract entry; delete it and generate the first feature at `--route index`.\n- **One feature folder for a list and its detail.** Two screens, two features, two models.\n- **Writing the data reads into the scaffold before a test asks for them.** Grow it test-first.\n- **Calling the scaffold done because the generator passed.** The feature is done at\n  `check-feature.mjs` and the neighbours' checks.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Ffeature-anatomy.md](references\u002Ffeature-anatomy.md) | The unit: naming, each file's job and imports, the model's shape and splits, components and dialogs, iOS and Android behaviour, prerequisites, pitfalls | Workflow steps 1 and 7 |\n| [references\u002Froutes-and-params.md](references\u002Froutes-and-params.md) | Route ids, hrefs, the header title, dynamic params and their parser, the invalid-link state, contracts, verified router facts | Workflow steps 1 and 7 |\n| [references\u002Fgenerator-and-checker.md](references\u002Fgenerator-and-checker.md) | `scaffold-feature.mjs` options and plan lines; every `check-feature.mjs` rule with its fix; config keys; multi-package | Workflow steps 2, 3, 5 and 9 |\n| [references\u002Ftest-recipes.md](references\u002Ftest-recipes.md) | The view, model, route and params tests, growing test-first, Jest commands | Workflow steps 4 and 7 |\n| `templates\u002Fsrc\u002Fapp\u002F__ROUTE_ID__.tsx` | The thin route of a static screen | The generator writes it |\n| `templates\u002Fsrc\u002Fapp\u002F__DETAIL_ROUTE_ID__.tsx` | The thin route of a dynamic screen | The generator writes it |\n| `templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F` | Static screen: view, model hook, view test, model test, route test | The generator writes it |\n| `templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F` | Dynamic screen: the same plus the params parser and its test and the invalid-link component | The generator writes it |\n| `templates\u002Fsrc\u002Fi18n\u002Fcatalogs\u002F` | The scaffold's keys in `en` and `ar`, merged into every catalog | The generator merges them |\n| [examples\u002Fscaffold-plan.txt](examples\u002Fscaffold-plan.txt) | A dry run and a write for a dynamic route in the reference app | Workflow step 2 |\n| [examples\u002Flist-detail\u002F](examples\u002Flist-detail\u002F) | A grown detail feature: numeric id parser, pure state chooser, model reading a repository | Workflow step 7 |\n| `scripts\u002Fscaffold-feature.mjs` | Generator: plan (default) or `--write`; never overwrites | Workflow steps 2 and 3 |\n| `scripts\u002Fcheck-feature.mjs` | Checker: every rule above, one feature or all | Workflow steps 5 and 9 |\n| `scripts\u002Flib\u002Fjson-format.mjs` | Prints JSON in Prettier's layout for the catalog and contract edits | When changing the generator |\n| `scripts\u002Flib\u002Ffeature-app.mjs` | App facts both scripts read: the bootstrap starter screen and the source language | When changing either script |\n| `scripts\u002Fselftest.mjs` | Proves both scripts: planted bugs, plans, conflicts, and the generator's output passing the checker | After changing a script, template or fixture |\n| `scripts\u002Fcheck-lib.mjs` | Shared script library (synced; do not edit here) | Never by hand |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared import-resolution helpers (synced; do not edit here) | Never by hand |\n| `assets\u002Fshared.json` | Declares the synced files | When adding a shared file |\n| `assets\u002Ftemplate-placeholders.json` | The placeholder values that prove the templates in the reference app | When adding a placeholder |\n| `tests\u002Fbases\u002F` | Fixture apps: `app\u002F` (contracts, planted skill decoys), `empty-app\u002F` (for the generator) | When adding a case |\n| `tests\u002Ffixtures\u002F` | The self-test cases per script | When adding a rule |\n\n## Related skills\n\n- `screen-contracts` - what the screen shows: states, testIDs, copy keys, the view test per state.\n- `navigation-and-routing` - the route contract, layouts, guards, modals and the not-found route.\n- `architecture-and-boundaries` - where files live and the thin-route rule.\n- `react-components-and-hooks` - the model hook, effects, `ScreenFrame` edges, components.\n- `i18n-strings-and-catalogs` - catalogs, key names, translating the drafts.\n- `naming-conventions` - file, export, testID and key shapes.\n- `expo-project-bootstrap` - the new app whose starter screen the first feature replaces.\n- `unit-and-component-tests` - the render helpers and Jest projects.\n- `ui-states-and-feedback` - loading, empty, error and offline states as the screen grows.\n- `forms-and-input` - a screen that edits data.\n- `state-management-zustand` and `networking-and-server-state` - what the model hook reads.\n- `deep-links-and-universal-links` - links from outside the app into the new route.\n- `e2e-maestro` - the device flow for the new screen.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Fscaffold-feature-screen",2,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills","https:\u002F\u002Fzakaria.dev\u002FReactNative-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fzakariaf","https:\u002F\u002Fzakaria.dev","Seniore Software Engineer","2026-10-22 07:05:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zakariaf\u002FReactNative-Skills --skill scaffold-feature-screen",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill scaffold-feature-screen",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill scaffold-feature-screen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002FSKILL.md",true,[48,54,58,64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,223,227,231,235,238,242,246,250,253,257,261,265],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fshared.json","ASSET","资产文件",155,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fassets\u002Fshared.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Ftemplate-placeholders.json",730,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fassets\u002Ftemplate-placeholders.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Flist-detail\u002Fcatalog-keys.json","REFERENCE","参考文档",620,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fexamples\u002Flist-detail\u002Fcatalog-keys.json",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Flist-detail\u002Flist-detail-params.ts","SCRIPT","脚本",1277,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fexamples\u002Flist-detail\u002Flist-detail-params.ts",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"examples\u002Flist-detail\u002Flist-detail-state.ts",1206,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fexamples\u002Flist-detail\u002Flist-detail-state.ts",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"examples\u002Flist-detail\u002Fuse-list-detail-model.ts",2553,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fexamples\u002Flist-detail\u002Fuse-list-detail-model.ts",{"path":79,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":80,"sourceHtmlUrl":81},"examples\u002Fscaffold-plan.txt",3382,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fexamples\u002Fscaffold-plan.txt",{"path":83,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Ffeature-anatomy.md",14223,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Freferences\u002Ffeature-anatomy.md",{"path":87,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fgenerator-and-checker.md",16433,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Freferences\u002Fgenerator-and-checker.md",{"path":91,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Froutes-and-params.md",9360,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Freferences\u002Froutes-and-params.md",{"path":95,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Ftest-recipes.md",6747,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Freferences\u002Ftest-recipes.md",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fcheck-feature.mjs",33563,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Fcheck-feature.mjs",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Fcheck-lib.mjs",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Flib\u002Ffeature-app.mjs",3490,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Flib\u002Ffeature-app.mjs",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Flib\u002Fjson-format.mjs",2042,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Flib\u002Fjson-format.mjs",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fscaffold-feature.mjs",34856,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Fscaffold-feature.mjs",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fselftest.mjs",2524,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Fscripts\u002Fselftest.mjs",{"path":127,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":130,"sourceHtmlUrl":131},"templates\u002Fsrc\u002Fapp\u002F__DETAIL_ROUTE_ID__.tsx","OTHER","其他",815,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Fapp\u002F__DETAIL_ROUTE_ID__.tsx",{"path":133,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":134,"sourceHtmlUrl":135},"templates\u002Fsrc\u002Fapp\u002F__ROUTE_ID__.tsx",800,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Fapp\u002F__ROUTE_ID__.tsx",{"path":137,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":138,"sourceHtmlUrl":139},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-navigation.test.tsx",2044,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-navigation.test.tsx",{"path":141,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":142,"sourceHtmlUrl":143},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-params.test.ts",1315,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-params.test.ts",{"path":145,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":146,"sourceHtmlUrl":147},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-params.ts",1595,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-params.ts",{"path":149,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":150,"sourceHtmlUrl":151},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-screen.test.tsx",2616,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-screen.test.tsx",{"path":153,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-screen.tsx",2215,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002F__DETAIL__-screen.tsx",{"path":157,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":158,"sourceHtmlUrl":159},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002Fcomponents\u002F__DETAIL__-invalid-link.tsx",1867,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002Fcomponents\u002F__DETAIL__-invalid-link.tsx",{"path":161,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":162,"sourceHtmlUrl":163},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002Fuse-__DETAIL__-model.test.tsx",3021,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002Fuse-__DETAIL__-model.test.tsx",{"path":165,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":166,"sourceHtmlUrl":167},"templates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002Fuse-__DETAIL__-model.ts",2036,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__DETAIL__\u002Fuse-__DETAIL__-model.ts",{"path":169,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":170,"sourceHtmlUrl":171},"templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F__FEATURE__-navigation.test.tsx",1393,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F__FEATURE__-navigation.test.tsx",{"path":173,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F__FEATURE__-screen.test.tsx",1131,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F__FEATURE__-screen.test.tsx",{"path":177,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F__FEATURE__-screen.tsx",1700,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002F__FEATURE__-screen.tsx",{"path":181,"resourceType":128,"resourceTypeDesc":129,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002Fuse-__FEATURE__-model.test.tsx",1551,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002Fuse-__FEATURE__-model.test.tsx",{"path":185,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002Fuse-__FEATURE__-model.ts",865,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Ffeatures\u002F__FEATURE__\u002Fuse-__FEATURE__-model.ts",{"path":189,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Far.json",419,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Far.json",{"path":193,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fen.json",328,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftemplates\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fen.json",{"path":197,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":198,"sourceHtmlUrl":199},"tests\u002Fbases\u002Fapp\u002Fcontracts\u002Fnavigation.json",295,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fapp\u002Fcontracts\u002Fnavigation.json",{"path":201,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":202,"sourceHtmlUrl":203},"tests\u002Fbases\u002Fapp\u002Fcontracts\u002Fscreens.json",1001,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fapp\u002Fcontracts\u002Fscreens.json",{"path":205,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":206,"sourceHtmlUrl":207},"tests\u002Fbases\u002Fapp\u002Fpackage.json",210,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":209,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":210,"sourceHtmlUrl":211},"tests\u002Fbases\u002Fapp\u002Ftsconfig.json",128,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.json",{"path":213,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":214,"sourceHtmlUrl":215},"tests\u002Fbases\u002Fempty-app\u002Fcontracts\u002Fnavigation.json",205,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Fcontracts\u002Fnavigation.json",{"path":217,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":218,"sourceHtmlUrl":219},"tests\u002Fbases\u002Fempty-app\u002Fcontracts\u002Fscreens.json",483,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Fcontracts\u002Fscreens.json",{"path":221,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":206,"sourceHtmlUrl":222},"tests\u002Fbases\u002Fempty-app\u002Fpackage.json","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Fpackage.json",{"path":224,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":225,"sourceHtmlUrl":226},"tests\u002Fbases\u002Fempty-app\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Far.json",39,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Far.json",{"path":228,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":229,"sourceHtmlUrl":230},"tests\u002Fbases\u002Fempty-app\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fde.json",28,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fde.json",{"path":232,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":233,"sourceHtmlUrl":234},"tests\u002Fbases\u002Fempty-app\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fen.json",27,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fen.json",{"path":236,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":210,"sourceHtmlUrl":237},"tests\u002Fbases\u002Fempty-app\u002Ftsconfig.json","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Fbases\u002Fempty-app\u002Ftsconfig.json",{"path":239,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":240,"sourceHtmlUrl":241},"tests\u002Ffixtures\u002Fcheck-feature-generated\u002FCASES.json",756,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fcheck-feature-generated\u002FCASES.json",{"path":243,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":244,"sourceHtmlUrl":245},"tests\u002Ffixtures\u002Fcheck-feature-generated\u002Fgood\u002FEXPECT.txt",46,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fcheck-feature-generated\u002Fgood\u002FEXPECT.txt",{"path":247,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":248,"sourceHtmlUrl":249},"tests\u002Ffixtures\u002Fcheck-feature\u002FCASES.json",13252,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fcheck-feature\u002FCASES.json",{"path":251,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":244,"sourceHtmlUrl":252},"tests\u002Ffixtures\u002Fcheck-feature\u002Fgood\u002FEXPECT.txt","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fcheck-feature\u002Fgood\u002FEXPECT.txt",{"path":254,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":255,"sourceHtmlUrl":256},"tests\u002Ffixtures\u002Fcheck-feature\u002FSUITE.json",642,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fcheck-feature\u002FSUITE.json",{"path":258,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":259,"sourceHtmlUrl":260},"tests\u002Ffixtures\u002Fscaffold-feature\u002FCASES.json",13182,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fscaffold-feature\u002FCASES.json",{"path":262,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":263,"sourceHtmlUrl":264},"tests\u002Ffixtures\u002Fscaffold-feature\u002Fgood\u002FEXPECT.txt",937,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fscaffold-feature\u002Fgood\u002FEXPECT.txt",{"path":266,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":225,"sourceHtmlUrl":267},"tests\u002Ffixtures\u002Fscaffold-feature\u002FSUITE.json","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fscaffold-feature-screen\u002Ftests\u002Ffixtures\u002Fscaffold-feature\u002FSUITE.json",[269,276,282,289,296,303],{"skillNo":270,"name":271,"nameZh":6,"description":272,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":273,"categories":274,"keywords":275,"publishedAt":19},"01M7F2S4KZG97D21GEJ2GKKYK1","demo","Planted skill folder (never scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":277,"name":271,"nameZh":6,"description":278,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":279,"categories":280,"keywords":281,"publishedAt":19},"01M7F2S1F4ATZ49909EDKWA9E6","Planted installed skill (its files must never be scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002F.agents\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":283,"name":284,"nameZh":6,"description":285,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":286,"categories":287,"keywords":288,"publishedAt":19},"01M7F2RXGPZJ5Q1FV2HQ1PJ6AX","web-support","Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002FSKILL.md",[],[],{"skillNo":290,"name":291,"nameZh":6,"description":292,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":293,"categories":294,"keywords":295,"publishedAt":19},"01M7F2RQ43JFA4QFWQEHBET08G","value-objects-money-and-units","Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalue-objects-money-and-units\u002FSKILL.md",[],[],{"skillNo":297,"name":298,"nameZh":6,"description":299,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":300,"categories":301,"keywords":302,"publishedAt":19},"01M7F2RHR7H8VVZDP16FJNJV11","unit-and-component-tests","Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",[],[],{"skillNo":304,"name":305,"nameZh":6,"description":306,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":307,"categories":308,"keywords":309,"publishedAt":19},"01M7F2RAEDWQ6H4514HFRWJAE6","ui-states-and-feedback","Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-states-and-feedback\u002FSKILL.md",[],[]]