naming-conventions
Names files, routes, exports, hooks, booleans, kinds, testIDs, message keys, app ids and env vars. Use when adding or renaming anything or on a naming lint error. Not for placement (architecture-and-boundaries).
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- naming-conventions
- description
- Names files, routes, exports, hooks, booleans, kinds, testIDs, message keys, app ids and env vars. Use when adding or renaming anything or on a naming lint error. Not for placement (architecture-and-boundaries).
02 资源文件 88
- 资产文件assets/naming-contract.schema.json7.0 KB
- 资产文件assets/naming-rules.json2.9 KB
- 资产文件assets/shared.json235 B
- 资产文件assets/template-placeholders.json188 B
- 参考文档examples/01-add-task.yaml765 B
- 脚本examples/lights-out-types.ts857 B
- 其他examples/task-details-route.tsx777 B
- 其他examples/task-row.tsx1.0 KB
- 脚本examples/task-sync-types.ts1.5 KB
- 脚本examples/tasks-reducer.test.ts969 B
- 脚本examples/tasks-reducer.ts1.3 KB
- 参考文档references/code-identifiers.md15.5 KB
- 参考文档references/contract-and-checkers.md17.0 KB
- 参考文档references/files-and-folders.md18.6 KB
- 参考文档references/kinds-testids-and-keys.md15.0 KB
- 参考文档references/naming-rules.md17.4 KB
- 参考文档references/packages-scripts-env-and-tags.md19.5 KB
- 脚本scripts/check-code-names.mjs37.0 KB
- 脚本scripts/check-file-names.mjs40.0 KB
- 脚本scripts/check-lib.mjs117.1 KB
- 脚本scripts/lib/app-config-ids.mjs14.6 KB
- 脚本scripts/lib/names.mjs4.0 KB
- 脚本scripts/lib/naming-scope.mjs13.9 KB
- 脚本scripts/lib/source-scan.mjs35.1 KB
- 脚本scripts/lib/workspaces.mjs3.3 KB
- 脚本scripts/selftest.mjs594 B
- 参考文档templates/contracts/naming.json780 B
- 脚本templates/string-union.test.ts463 B
- 脚本templates/string-union.ts696 B
- 脚本tests/bases/app/__mocks__/expo-iap.ts202 B
- 参考文档tests/bases/app/.maestro/config.yaml46 B
- 参考文档tests/bases/app/.maestro/flows/journeys/02-complete-task.yaml251 B
- 参考文档tests/bases/app/.maestro/flows/smoke/01-add-task.yaml343 B
- 参考文档tests/bases/app/.maestro/subflows/grant-notifications.yaml300 B
- 参考文档tests/bases/app/.maestro/subflows/open-deep-link.yaml670 B
- 脚本tests/bases/app/app.config.ts762 B
- 脚本tests/bases/app/jest.setup.ts73 B
- 参考文档tests/bases/app/package.json574 B
- 脚本tests/bases/app/plugins/with-android-queries.ts226 B
- 脚本tests/bases/app/scripts/quality/check-env.ts185 B
- 其他tests/bases/app/src/app/_layout.tsx197 B
- 其他tests/bases/app/src/app/(tabs)/_layout.tsx146 B
- 其他tests/bases/app/src/app/(tabs)/index.tsx392 B
- 其他tests/bases/app/src/app/(tabs)/settings.tsx194 B
- 其他tests/bases/app/src/app/+not-found.tsx191 B
- 其他tests/bases/app/src/app/tasks/[taskId].tsx413 B
- 脚本tests/bases/app/src/config/app-variant.ts386 B
- 脚本tests/bases/app/src/core/dates/add-days.ts172 B
- 脚本tests/bases/app/src/core/dates/date-key.ts95 B
- 脚本tests/bases/app/src/data/expo-sqlite-sql-driver.ts195 B
- 参考文档tests/bases/app/src/data/fixtures/tasks-db-v1.full.json88 B
- 参考文档tests/bases/app/src/data/fixtures/tasks-db-v1.json36 B
- 脚本tests/bases/app/src/data/sql-driver.ts260 B
- 脚本tests/bases/app/src/env.d.ts200 B
- 其他tests/bases/app/src/features/not-found/not-found-screen.tsx286 B
- 其他tests/bases/app/src/features/settings/language/language-row.tsx599 B
- 其他tests/bases/app/src/features/settings/settings-screen.tsx531 B
- 其他tests/bases/app/src/features/tasks/components/task-row.tsx578 B
- 脚本tests/bases/app/src/features/tasks/priority-label-keys.ts346 B
- 其他tests/bases/app/src/features/tasks/task-details-screen.tsx314 B
- 脚本tests/bases/app/src/features/tasks/task-events.ts636 B
- 脚本tests/bases/app/src/features/tasks/task-list.test.ts542 B
- 脚本tests/bases/app/src/features/tasks/task-list.ts920 B
- 其他tests/bases/app/src/features/tasks/tasks-screen.tsx1020 B
- 脚本tests/bases/app/src/features/tasks/use-tasks-model.ts840 B
- 参考文档tests/bases/app/src/games/lights-out/levels/pack-1.json17 B
- 参考文档tests/bases/app/src/i18n/catalogs/ar.json334 B
- 参考文档tests/bases/app/src/i18n/catalogs/en.json569 B
- 脚本tests/bases/app/src/i18n/use-t.ts96 B
- 脚本tests/bases/app/src/services/clock/clock-port.ts137 B
- 脚本tests/bases/app/src/services/clock/fake-clock.ts305 B
- 脚本tests/bases/app/src/services/clock/system-clock-adapter.ts188 B
- 脚本tests/bases/app/src/stores/settings-reducer.test.ts355 B
- 脚本tests/bases/app/src/stores/settings-reducer.ts837 B
- 脚本tests/bases/app/src/stores/settings-store.ts468 B
- 其他tests/bases/app/src/ui/app-button.tsx541 B
- 其他tests/bases/app/src/ui/app-text.tsx346 B
- 其他tests/bases/app/src/ui/icon-path.tsx225 B
- 其他tests/bases/app/src/ui/list-row.tsx618 B
- 脚本tests/bases/app/test/integration/data/expo-sqlite-sql-driver.test.ts315 B
- 其他tests/bases/app/test/render-with-providers.tsx205 B
- 参考文档tests/bases/app/tsconfig.json123 B
- 参考文档tests/fixtures/check-code-names/CASES.json34.1 KB
- 参考文档tests/fixtures/check-code-names/good/EXPECT.txt13 B
- 参考文档tests/fixtures/check-code-names/SUITE.json787 B
- 参考文档tests/fixtures/check-file-names/CASES.json49.7 KB
- 参考文档tests/fixtures/check-file-names/good/EXPECT.txt13 B
- 参考文档tests/fixtures/check-file-names/SUITE.json787 B
03 SKILL.md 正文
Naming conventions
One naming scheme for an Expo app, so every name is predictable from the thing it names and every
thing is findable from its name: agents and reviewers find code by grep and by path, and names are
the search index. This skill holds the rules, a repo-owned contract for the app's own naming facts,
and two zero-dependency checkers that prove the repo follows them.
Rules that must hold
- Files and folders are kebab-case; route files follow the Expo Router grammar.
task-row.tsx,use-tasks-model.ts,task-details/; middle extensions (.test,.golden.test,.sim.test,.perf.test,.d,.config) and platform extensions (.ios,.android,.web) are fine. Insrc/app/: kebab URL segments,(group)folders,[camelCaseParam],[...rest],_layout,index,+not-found. Why: macOS (also EAS's iOS builders) ignores case, but Linux CI and EAS's Android (Linux) workers do not, and a param name becomes the key ofuseLocalSearchParams(). - The main export is named after its file.
task-row.tsx→TaskRow,use-tasks-model.ts→useTasksModel,tasks-screen.tsx→TasksScreen,system-clock-adapter.ts→createSystemClockAdapter,fake-clock.ts→createFakeClock,clock-port.ts→ClockPort,src/stores/tasks-store.ts→useTasksStore,tasks-reducer.ts→tasksReducer,plugins/with-x.ts→withX. A route file default-exports<Name>Route(<Name>Layoutin_layout.tsx), never anonymous and never<Name>Screen. Why: the file name alone tells what to import, and the screen name stays unique. - No grab-bag files or folders, no barrels. No
utils.ts,helpers.ts,common.ts,shared.ts,misc.ts,stuff.ts, nosrc/utils/; the onlyindexfiles are route files and files a tool requires (declared incontracts/naming.json). Why: grab-bags grow without limit and barrels create import cycles. - Line 1 of every
.ts/.tsx/.js/.mjs/.cjsfile names its path.// src/ui/app-text.tsx(a note may follow after:or a space; after a#!line, line 2; a directive comes after it). Why: snippets, diffs and tool output always show where code lives. This skill owns the rule; other skills cite it. On by default;"pathHeader": falsein the contract turns it off. - Case by kind. Values and functions camelCase; components and types PascalCase; module-level
fixed data (a literal, a regex, an
as consttable) UPPER_CASE; objects built by a call stay camelCase (styles,queryClient). Acronyms are words (SqlDriver,isRtl,ApiClient); no leading or trailing underscores except unused parameters. Why: word boundaries and mutability stay visible. - Booleans read as questions. Every boolean variable and parameter starts with
is,has,can,should,did,willorwas; destructured booleans are renamed ({ disabled: isDisabled }). Why:if (isDone)reads as a question at the call site. - Types are
type, neverinterface(outside*.d.tsmerging), neverI-prefixed, neverenum. A closed set is anas constarray plus a derived union. Suffixes say whose:<Component>Props,<Domain>State,<Domain>Action,<Operation>Error,<Function>Options,<Concern>Port; type parametersTorTName. Why: erasable syntax, exhaustive switches, and names that say what they belong to. - React names the React way. Handlers inside a component are
handleX, callback propsonX, hooksuseXinuse-x.ts(one per file; a second hook exported there is only a building blockuseXcalls, likeuseFontScalebesideuseTextStyle; a context's own hook stays beside its private context in<x>-context.tsx, which exportsXProvider), screens<Name>Screenin<name>-screen.tsx, a feature's model hookuse-<feature>-model.ts. Why: the React Compiler andreact-hooksrules rely onuse; readers rely on the rest. kindandtypevalues are kebab-case with a grammar. Commands imperative ('complete-task'), events past tense ('task-completed'), errors a noun phrase ('stale-revision'), reducer actions imperative ('set-filter'). A stored value is a data format: renaming it needs a migration. A value a format or library owns is not a kind: MIME types, react-hook-form'ssetErrortypes, an adapter's SDK options. Why: one grep finds every producer and consumer.- testIDs are
<screen>.<element>[.<key>]and flows select only by id.tasks.add-button,tasks.task-row.<task id>; repeated items append a stable data key as its own segment, never a list index; interactive elements end in their role (-button,-row,-switch,-input). OS-owned UI without a testID is tapped only under a# system-ui: <why>comment. Why: Maestro'sid:matchestestIDon iOS and Android, so one flow runs in every locale on both platforms. - Message keys are semantic literals with typed placeholders. 2-5 dot-separated kebab segments
(
tasks.add-button.label), the first a feature folder or a declared area (common,errors, ...), written as a literal or picked from a typed table, never built; placeholders camelCase and typed ({count, number},{taskCount, plural, ...}, free text{listName}). Why: a wording change never renames a key, and tools can check what they can see. - Tests and flows are named after what they cover.
<unit>.test.ts(x)next to the unit (.golden.test.ts,.sim.test.ts,.android.test.tsx, Node-API tests in roottest/);describe('<export>')→describe('when ...')→it('<third-person verb> ...'),itnevertest; flows.maestro/flows/<area>/<nn>-<name>.yaml, sub-flows.maestro/subflows/<name>.yaml; a folder of flows CI deliberately skips is declared incontracts/naming.jsonextraE2eFolders. Why: Jest projects select by suffix and Maestro runs only the top level of the folder it is given. - Ids outside the code have one shape. The iOS bundle id and Android package are one lowercase
reverse-DNS id with no Java keyword segment (
com.acme.tasks); product ids are<app id>.<product>(<last app-id segment>.<product>only when that passes the limit), valid on both stores, at most 40 characters; the slug is kebab-case; an id already live on a store or EAS keeps its shape and is recorded incontracts/naming.jsonpublished*. Env vars are UPPER_SNAKE_CASE; app code reads onlyEXPO_PUBLIC_*and Expo's ownEXPO_OS,EXPO_SERVER,EXPO_BASE_URL,NODE_ENV, by name with dot access (never destructured, copied, spread or bracketed), while server code (+api.ts,+middleware.ts,src/server/) reads secrets under plain names, never under anEXPO_PUBLIC_name; npm scripts<verb>or<area>:<verb>; one package scope when multi-package. Why: both stores, both native projects and Expo's inlining accept exactly these shapes (anything else read in app code isundefinedin a release build), and changing a live id ships a new app. - Canonical names are declared and never renamed silently. Port types, npm scripts and env vars
that other code, CI or docs depend on are listed in
contracts/naming.jsoncanonical; renaming one is a stop-and-ask decision. Why: lint exemptions, fakes, CI jobs and EAS config match them by name.
Workflow
- Name what you are about to create before writing it. Find the kind of name in the table below and read that reference section; for anything new, start with references/naming-rules.md (every rule with a good/bad table).
- First time in a repo: copy templates/contracts/naming.json to
contracts/naming.jsonand fill the app'slocales,keyAreas(drop template areas no key uses),canonicalnames andstoreProductIds. Product ids are permanent on both stores: stop and ask the developer before writing a new one. In an app that is already published, ask which bundle id, package, slug and products are live and record them inpublishedAppIds,publishedSlugs,publishedProductIds(each with itswhy) instead of "fixing" them. - For a closed set of values (filters, priorities, variants), copy
templates/string-union.ts and its test
templates/string-union.test.ts to
src/features/<feature>/<name>.tsand fill every__PLACEHOLDER__. - Imitate the examples: examples/task-row.tsx (component, props, boolean prop, handler, testID), examples/task-details-route.tsx (route file), examples/tasks-reducer.ts and its test (state, actions, test titles), examples/task-sync-types.ts (the kind grammar), examples/01-add-task.yaml (flow selectors), and for the games plugin examples/lights-out-types.ts.
- Renaming: change the file, its path header, its main export and every import in one commit. A
stored name (a
kindvalue, an analytics event, a catalog key) also needs a migration or a catalog update, and aGate-Change:trailer when a golden or frozen fixture changes (git-commits-and-reporting owns the trailer). A route file rename changes a URL: keep a redirect for deep links and app links. A canonical name (rule 14): stop and ask the reviewer, then update the contract in the same commit. Never rename a bundle id, package, slug or product id that is live: that ships a new app and breaks updates, purchases and links; stop, ask the developer, and record it as published. - Check (validation loop): when
node_modulesexist,npx eslint . --max-warnings 0(the naming-convention, check-file, testID and kind rules). Always:node ${CLAUDE_SKILL_DIR}/scripts/check-file-names.mjs .andnode ${CLAUDE_SKILL_DIR}/scripts/check-code-names.mjs .. Fix everyFAILline (file, rule, fix) and rerun until both printRESULT: PASS. A finding that looks wrong: references/contract-and-checkers.md, "Fixing a finding".
| Naming... | Read |
|---|---|
| a file, folder, route file, test file, fake, flow, catalog, fixture or plugin | references/files-and-folders.md |
| a variable, constant, type, component, hook, handler, prop, route component, store, reducer or action | references/code-identifiers.md |
| a command, event, error or action value, a testID, a Maestro selector, a message key or placeholder | references/kinds-testids-and-keys.md |
| an app id, product id, slug, variant, npm script, env variable, package, commit or tag | references/packages-scripts-env-and-tags.md |
| the contract, a checker rule, a SKIP line or a false positive | references/contract-and-checkers.md |
Definition of done
- [ ]
npx eslint . --max-warnings 0passes (naming-convention, check-file, testID and kind rules). - [ ]
contracts/naming.jsonexists (from the template) with the app's locales, key areas, canonical names and product ids. - [ ] Every new file is kebab-case (route files: the router grammar), its main export is named after
it, route files default-export
<Name>Route/<Name>Layout, and line 1 is its path. - [ ] No new
utils/helpers/commonfiles or folders and no barrelindexfiles. - [ ] New commands are imperative, events past tense, all
kind/typevalues kebab-case; renamed stored names have a migration. - [ ] Every tappable or asserted element has a
<screen>.<element>testID ending in its role, and flows select byid:only. - [ ] New message keys start with a feature or declared area, are literals, and their placeholders are typed; after a catalog change the i18n-strings-and-catalogs catalog verifier passes and every new key exists in every locale catalog.
- [ ] New ports, adapters and fakes follow
<concern>-port.ts,<library>-<concern>-adapter.tsandfake-<concern>.ts, and live ids stay as recorded inpublished*. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-code-names.mjs .printsRESULT: PASS. Expected SKIP lines while an Expo app has not created those folders yet:SKIP src/i18n/catalogs [i18n-key] not yet created (i18n-strings-and-catalogs creates it)andSKIP .maestro [maestro-selector] not yet created (e2e-maestro creates it); when multi-package, one pair per Expo app workspace, prefixed with its folder (SKIP apps/mobile/.maestro ...). - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-file-names.mjs .printsRESULT: PASS
Anti-patterns
- Naming after the implementation instead of the job.
sqlite-helpers.ts,utils.ts: name the file after what it does (read-task.ts), one job per file. - A second name for a canonical thing.
ClockService,IClock,DbDrivernext toSqlDriver: every fake, lint exemption and test expects the declared name. - A route component called
TasksScreen. The route isTasksRoute;TasksScreenis the view insrc/features/tasks/. Two symbols with one name make every grep ambiguous. - English text in keys.
tasks.add-a-new-taskbreaks when the wording changes; name the meaning (tasks.add-button.label). - Building keys or testIDs from strings.
t(`tasks.priority.${priority}`)andtestID={`row-${index}`}hide names from the tools; use a typed table of literal keys and a stable data key. - Imperative events or past-tense commands.
{ kind: 'complete-task' }as an event reads as a request; events say what happened ('task-completed'). - Renaming a stored
kind"for consistency". The outbox, backups and analytics still hold the old value; migrate them or keep the name. - Selecting by text in a flow.
tapOn: 'Add task'fails in Arabic; select by id. Only OS-owned UI without a testID (the iOS link alert, Android's permission dialog) may use text, under a# system-ui: <why>comment. - Two catalogs or files that differ only by case.
pt-BR.jsonnext topt-br.json,TaskRow.tsxnext totask-row.tsx: on a case-insensitive Mac they are one file; in CI they are two. - Silencing the rule instead of renaming. Inline disables are switched off and the checkers have no ignore comment; the rename (or a reviewed contract entry) is always the fix.
- Renaming a secret to
EXPO_PUBLIC_to quietenv-var. EveryEXPO_PUBLIC_value ships inside the app; server-only code moves to an+api.tsroute orsrc/server/, Node-only code goes innodeCode. - "Fixing" a live bundle id or slug.
com.Acme.Taskson the App Store stayscom.Acme.Tasks; record it inpublishedAppIdsinstead.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/naming-rules.md | Every rule with its reason and enforcement, and a good/bad table for every kind of name | Workflow step 1 |
| references/files-and-folders.md | File patterns by kind, route files, ports/adapters/fakes, tests, catalogs, flows, plugins, tool-owned names, the path header, multi-package | Naming a file, folder or route |
| references/code-identifiers.md | Identifiers, types, React parts, route components, stores and actions, the enforcing ESLint config, React Navigation appendix | Naming inside a file; a naming-convention error |
| references/kinds-testids-and-keys.md | The kind grammar, testIDs on iOS and Android, Maestro selectors, message keys and placeholders | Adding a command, event, action, testID or key |
| references/packages-scripts-env-and-tags.md | App ids, product ids, slug and scheme, variants, npm scripts, env variables, packages, commit and tag names | Adding an app id, product, script, variable, workspace or release |
| references/contract-and-checkers.md | contracts/naming.json keys, layout keys, every checker rule, SKIP lines, fixing a finding | Adopting the skill; an unexpected checker result |
| templates/contracts/naming.json | The repo-owned naming contract (copied to contracts/naming.json) |
Workflow step 2 |
| templates/string-union.ts | as const values + derived union + type guard (the enum replacement) |
Workflow step 3 |
| templates/string-union.test.ts | The guard's test, copied next to it | Workflow step 3 |
| examples/task-row.tsx | Component, props, boolean prop, handler, callback prop, testID with a data key and role | Workflow step 4 |
| examples/task-details-route.tsx | An Expo Router route file: camelCase param, <Name>Route default export |
Workflow step 4 |
| examples/tasks-reducer.ts | State, action union, default, reducer and an as const table |
Workflow step 4 |
| examples/tasks-reducer.test.ts | describe/when/it titles with third-person verbs | Workflow step 4 |
| examples/task-sync-types.ts | Commands, events, errors and a result union on a sync log | Workflow step 4 |
| examples/lights-out-types.ts | The kind grammar on a public-domain puzzle (games plugin) | Workflow step 4, games |
| examples/01-add-task.yaml | A Maestro flow that selects only by id | Workflow step 4 (E2E) |
scripts/check-file-names.mjs |
Checks file, folder and route names, path headers, export and route component names, one hook per use-*.ts, file patterns, package names, app and product ids, script names, canonical names |
Workflow step 6 |
scripts/check-code-names.mjs |
Checks testIDs, kind values, message keys and placeholders, env vars, test titles, type/boolean/handler/constant/acronym names, flow selectors | Workflow step 6 |
scripts/lib/names.mjs |
Case helpers, the route grammar and the grammar loader | Only when changing a checker |
scripts/lib/naming-scope.mjs |
The scan scope (layout, workspaces, server and Node code) and the contract reader (published ids and extra e2e folders included) | Only when changing a checker |
scripts/lib/app-config-ids.mjs |
Reads the slug, bundle id, package and id candidates from app.config.* and app.json, including Expo's variant shapes (ternary, ??, template start, getUniqueIdentifier()) |
Only when changing a checker |
scripts/lib/source-scan.mjs |
Dependency-free lexer for comments, strings, JSX tags and imports (synced; do not edit here) | Only when changing a checker |
scripts/lib/workspaces.mjs |
Reads package.json workspaces (synced; do not edit here) | Only when changing a checker |
scripts/check-lib.mjs |
Shared script helper: arguments, reporting, layout, repo walk, self-test assembly (synced; do not edit here) | Never by hand |
scripts/selftest.mjs |
Proves both checkers pass the assembled good app and catch every planted bug | After changing a checker or the grammar data |
assets/naming-rules.json |
The library's name grammars (testID, key, app id, product id, locale tag, script, env, MIME type), prefixes, role words, secret env words | When a grammar changes |
assets/naming-contract.schema.json |
JSON Schema of contracts/naming.json |
Editing the contract |
assets/template-placeholders.json |
Placeholder values used when the templates are verified in the reference app | When adding a template placeholder |
assets/shared.json |
Declares the shared files this skill copies in | When adding a shared file |
tests/bases/app/ |
The neutral Tasks app the self-test cases start from (with planted decoys in installed-skill folders) | When adding a self-test case |
tests/fixtures/ |
One overlay case per rule (mutation.json/DELETE.txt + EXPECT.txt) for each checker |
When adding a rule to a checker |
Related skills
typescript-and-lint-rules- the full ESLint and tsconfig set, size limits and forbidden patterns.architecture-and-boundaries- which folder and layer a file belongs in.navigation-and-routing- Expo Router layouts, typed routes, params and redirects.i18n-strings-and-catalogs- catalog format, ICU messages, polyfills and translations.e2e-maestro- writing the flows that use these testIDs.app-variants-and-environment- variants, ids per variant andEXPO_PUBLIC_*values.in-app-purchases- creating the store products behind the product ids.git-commits-and-reporting- commit bodies, trailers, tags and reports.game-rules-engine- (games plugin) the moves and events a game defines.expo-project-structure- (Expo's official skill) Expo's own folder conventions; where it differs on names (anindex.tsxcomponent root,HomeScreenroute exports,utils/), this skill wins.
04 同仓库更多 Skills
demo
Planted skill folder (never scanned).
demo
Planted installed skill (its files must never be scanned).
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).
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).
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).
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).