[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2QKE0TF424AKW7NJKFX2Z":3,"skill-same:01M7F2QKE0TF424AKW7NJKFX2Z":250},{"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},"01M7F2QKE0TF424AKW7NJKFX2Z","tdd-workflow",null,"Drives changes test-first (TDD, red-green-refactor) - one behaviour per commit, test names, layer order, no test edited to pass. Use when writing or changing product code or deciding what to test. Not for Jest setup (unit-and-component-tests).","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\u002Ftdd-workflow\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: tdd-workflow\ndescription: Drives changes test-first (TDD, red-green-refactor) - one behaviour per commit, test names, layer order, no test edited to pass. Use when writing or changing product code or deciding what to test. Not for Jest setup (unit-and-component-tests).\n---\n\n# Test-driven workflow\n\nEvery behaviour of an Expo app (iOS and Android) is built red-green-refactor: a failing test that\nquotes the requirement, the least code that turns it green, a refactor, the fast gate, and one commit\nholding test and code together. When an agent writes most of the code, the reviewer reads the report\nfirst, so the tests are both the specification and the evidence; two scripts prove the tree and the\ngit history follow the rules.\n\n## Rules that must hold\n\n1. **No product code without a red test seen failing for the right reason.** Run it and read the\n   failure: an assertion diff (`Expected ... Received ...`), never `Cannot find module`, a type or a\n   syntax error. Why: a test that was never red proves nothing, and one written after the code asserts\n   what the code does.\n2. **Red and green in the same commit, one behaviour per commit.** Never commit a failing test. Why:\n   the pre-commit hook reruns related tests, and only a history where test and code arrive together\n   shows each behaviour was test-first (`code-without-test`).\n3. **Never edit an existing assertion to make it pass.** Fix the code. Only a changed requirement may\n   change an expectation, and that commit carries `Spec-Change: \u003Crequirement ID or issue> \u003Cwhat\n   changed>` (git-commits-and-reporting owns the trailer format); a trailer that names no requirement\n   reference (`TASKS-12`, `#41`, `issue 41`) does not count. \"The test was wrong\", \"fix test\" or\n   \"update snapshot\" is never a Spec-Change. A rename refactor in its own `refactor` commit (the same\n   literals and matchers, one consistent rename) is not an edit. Why: it is the likeliest way an\n   unsupervised agent turns red into green (`assertion-changed`, `test-deleted`, `spec-change-reason`).\n4. **Never skip, focus, retry or weaken:** no `.skip`, `.only`, `.failing`, `.todo`, `xit`, `fit`,\n   `jest.retryTimes`, component snapshots, lowered thresholds, `eslint-disable` or `--no-verify`. If a\n   gate looks wrong, stop and ask the developer. Why: a parked test rots, a retry hides a real bug, and\n   nothing else would notice (`disabled-test`, `disabled-test-added`, `test-retry`).\n5. **Quote the requirement in the first test** (title or comment above it:\n   `it('returns today for a task due today (TASKS-12)')`), printed from the spec or the issue, never\n   from memory; with no written requirement, write the one sentence in the plan and have the developer\n   confirm it. Why: the quote ties the test to what was asked, and with `requirementIdPattern` in\n   `contracts\u002Ftdd.json` check-test-edits fails a new feat\u002Ffix test that quotes none\n   (`requirement-not-quoted`).\n6. **Build in layer order:** pure logic -> persistence and migrations -> services behind ports with\n   fakes -> stores and the model hook -> components and screens -> the route and its route test ->\n   end-to-end flows -> screenshot matrix. Each layer is tested before anything depends on it. Why: a\n   screen test that fails because a rule is wrong wastes the slice; a rule proven by properties never\n   needs debugging through the UI.\n7. **Pure logic gets examples, fast-check properties and at least one pinned exact value** in the same\n   file, every limit at exactly its value and one past it. Why: on a seeded random-number generator,\n   properties alone left 3 of 8 mutants alive; the pinned value killed them.\n8. **Tests are deterministic:** no `Math.random`, `Date.now`, `new Date()`, `performance.now()`, real\n   timers, network, locale or time zone; inject the fake clock and the seeded random-number generator.\n   The one exception is a perf budget test (`test\u002F**\u002F\u003Cname>.perf.test.ts`) timing real work with\n   `performance` from `node:perf_hooks`. Why: jest-expo mocks the global `performance.now`, and a test\n   that reads the real world passes today and fails tomorrow (`test-nondeterminism`).\n9. **Tests live where they run, named so they read as the requirement:** `\u003Cunit>.test.ts(x)` next to the\n   unit under `src\u002F`, `\u003Cunit>.android.test.ts(x)` for Android-only behaviour, `*.golden.test.ts` for\n   goldens, Node-API tests under `test\u002F`, never a test in the routes folder `src\u002Fapp\u002F`, never\n   `__tests__\u002F` or `.spec.ts`; `describe('\u003Cexported name>')`, `it('\u003Cthird-person verb> ...')`, never\n   `test(`. Why: the Jest projects select by suffix, so a stray name never runs; Expo Router bundles\n   every file in `src\u002Fapp\u002F` as a route; the app program has no Node types (`test-file-name`,\n   `test-in-routes`, `node-api-in-app-test`, `use-it`, `test-title-verb`, `describe-generic`).\n10. **Every logic module ships with its test**, fakes included; only a thin native wrapper Jest cannot\n    load starts with `\u002F\u002F device-only: covered by \u003Cthe e2e flow or device check>` in its first 6 lines.\n    Why: an untested module is code no test can defend, and the same marker drives the coverage\n    exclusion of unit-and-component-tests (`untested-module`, `device-only-reason`,\n    `test-without-assertion`).\n11. **Each kind of change carries its evidence** (`references\u002Fdefinition-of-done.md`): UI changes add\n    component tests plus screenshots of each changed screen on the iOS simulator and the Android\n    emulator, light and dark, LTR and RTL when the app ships an RTL locale, compared with the approved\n    design baseline. Why: Jest has no layout engine, and a platform nobody looked at ships broken.\n\n## Workflow\n\n0. **Start from green** (once per session, from the repo root): `git status` and\n   `git log --oneline -10` (never discard work you did not make; ask about it), note\n   `git rev-parse --short HEAD` as the session's `\u003Cbase>`, then `npm run -s check:fast`. If it is red,\n   getting back to green is the first slice, and the report says what was broken.\n1. **Find the requirement** the task serves (spec-traceability prints a spec entry exactly; otherwise\n   the issue or acceptance criterion) and fill [assets\u002Fslice-plan.md](assets\u002Fslice-plan.md): behaviour\n   in one sentence, first test title, files, evidence.\n2. **Place the slice in the layer order** ([references\u002Fbuild-order.md](references\u002Fbuild-order.md)). If\n   a lower layer it needs is untested, build that slice first.\n3. **Write one failing test.** Copy [templates\u002Flogic.test.ts](templates\u002Flogic.test.ts) (pure logic) or\n   [templates\u002Fcomponent.test.tsx](templates\u002Fcomponent.test.tsx) (a component, through\n   unit-and-component-tests' `renderWithProviders`) next to the unit and replace every\n   `__PLACEHOLDER__`, then run `npx prettier --write \u003Ctest-file>` (filled placeholders make long lines,\n   and `check:fast` starts with `prettier --check`). Names and places follow\n   [references\u002Ftest-conventions.md](references\u002Ftest-conventions.md).\n4. **Run it and read the failure:** `npx jest --ci \u003Ctest-file>` (`--selectProjects android` after the\n   path for an `.android.test.tsx`). If it fails on an import or a type, add a typed stub that returns\n   a wrong value and rerun until the failure is an assertion diff\n   ([references\u002Ftdd-loop.md](references\u002Ftdd-loop.md), \"Red for the right reason\"). Keep the red lines\n   for the report.\n5. **Write the minimum code** to turn that test green, rerun. Add the next example, see it red, make it\n   green. For pure logic add the properties and the pinned value; turn any fast-check counterexample\n   into an example test first.\n6. **Refactor by responsibility** (split a module, extract a pure function with its own test); tests\n   stay green.\n7. **Run the fast gate and the tree check** from the repo root: `npm run -s check:fast`, then\n   `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-tests.mjs .`. Fix every `FAIL` line and rerun until both\n   pass. Where the app keeps logic outside the default folders, or has requirement IDs, copy\n   [templates\u002Fcontracts\u002Ftdd.json](templates\u002Fcontracts\u002Ftdd.json) to `contracts\u002Ftdd.json` and edit it.\n8. **Commit the slice** (test and code together, the requirement in the body; git-commits-and-reporting\n   has the message format). Before committing,\n   `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-edits.mjs . --staged --message \u003Cfile>` checks the staged\n   slice; after, `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-edits.mjs . --range \u003Cbase>..HEAD` checks\n   the history (`\u003Cbase>` from step 0).\n9. **Collect the evidence** the change kind needs from\n   [references\u002Fdefinition-of-done.md](references\u002Fdefinition-of-done.md) and report it. Read\n   [examples\u002Fslice-walkthrough.md](examples\u002Fslice-walkthrough.md) once to see a complete slice.\n\n## Definition of done\n\n- [ ] Every new behaviour has a test that was seen failing on an assertion before its code existed; the\n      red lines are in the report.\n- [ ] Each commit holds one behaviour with its tests and code together; no existing assertion changed\n      without a valid `Spec-Change:` trailer naming the requirement.\n- [ ] Pure logic has examples, properties and a pinned exact value; UI has component tests plus\n      screenshots on both platforms (light\u002Fdark, LTR\u002FRTL when shipped) compared with the approved\n      baseline.\n- [ ] `npm run -s check:fast` is green (and `npm run verify` before any push).\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-edits.mjs . --range \u003Cbase>..HEAD` prints\n      `RESULT: PASS`\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-tests.mjs .` prints `RESULT: PASS` (neither checker\n      prints a SKIP line; both exit 2 when there is nothing to check)\n\n## Anti-patterns\n\n- **Writing the code, then a test that passes first time.** It asserts what the code does, not what\n  the requirement says. Delete the code, watch the test fail, rewrite.\n- **\"Red\" from a missing file.** `Cannot find module` is not a failing behaviour; stub the export with a\n  wrong value and get an assertion diff.\n- **Changing `toBe('today')` to `toBe('soon')` (or a row of an `it.each` table) because the code\n  returns `'soon'`.** That is editing the test to pass; `check-test-edits.mjs` reports it as\n  `assertion-changed`, and a `Spec-Change: the test was wrong` trailer adds `spec-change-reason`.\n- **Parking a test with `.skip` \"for later\".** Finish the behaviour in the slice or delete the test.\n- **A 40-line object literal in every test.** Use a `make\u003CThing>(overrides)` builder.\n- **Snapshotting a component tree.** Assert roles, accessible names and visible text; snapshots belong\n  only in `*.golden.test.ts`.\n- **A test next to the route file in `src\u002Fapp\u002F`.** Expo Router bundles it as a route and `expo export`\n  breaks; the route test lives in `src\u002Ffeatures\u002F\u003Cfeature>\u002F\u003Cfeature>-navigation.test.tsx`.\n- **`Platform.OS = 'android'` inside an iOS test.** It leaks into later tests; write\n  `\u003Cunit>.android.test.tsx`.\n- **Testing through the UI what a property already proves.** One level per behaviour; the flow proves\n  the wiring, not the rule.\n- **Several behaviours in one commit** (\"add reminders, snooze and repeat\"). The history can no longer\n  show that each was test-first.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Ftdd-loop.md](references\u002Ftdd-loop.md) | The loop, where the requirement comes from, red for the right reason, commands, discipline rules, examples + properties + pinned value, determinism, Android-only tests, counterexamples | Before the first slice of a session, and whenever a red run looks wrong |\n| [references\u002Ftest-conventions.md](references\u002Ftest-conventions.md) | File names and places, titles, builders, banned test code, what not to test, snapshots, flaky-test policy, when multi-package | Workflow step 3, and when `check-tests.mjs` fails |\n| [references\u002Fbuild-order.md](references\u002Fbuild-order.md) | The layer order, a feature slice by slice, first tests per layer, appendices for React Navigation 7 and the games plugin | Workflow step 2 |\n| [references\u002Fdefinition-of-done.md](references\u002Fdefinition-of-done.md) | Always-true items, evidence by kind of change (both platforms), the test pyramid, coverage and mutation gates, where evidence files are | Workflow step 9, before calling work done |\n| [templates\u002Flogic.test.ts](templates\u002Flogic.test.ts) | Test file for a pure unit: pinned example, rule table, determinism and invariant properties | Workflow step 3 for logic |\n| [templates\u002Fcomponent.test.tsx](templates\u002Fcomponent.test.tsx) | Component test through `renderWithProviders`, by role and name, awaited presses, the accessibility audit line | Workflow step 3 for a component |\n| [templates\u002Fcontracts\u002Ftdd.json](templates\u002Fcontracts\u002Ftdd.json) | The optional contract: logic globs, source globs, ignores, the requirement-ID pattern (filled with the defaults) | Workflow step 7, when the app's facts differ from the defaults |\n| [templates\u002Fcontracts\u002Ftdd.schema.json](templates\u002Fcontracts\u002Ftdd.schema.json) | JSON Schema of the contract | With the contract |\n| [assets\u002Fslice-plan.md](assets\u002Fslice-plan.md) | The plan for one slice (requirement, first test, files, layer, evidence, red run) | Workflow step 1 |\n| `assets\u002Ftemplate-placeholders.json` | The values the template check fills in (the Tasks app's digest planner and task row) | When changing a template |\n| [examples\u002Fslice-walkthrough.md](examples\u002Fslice-walkthrough.md) | One complete slice (TASKS-12, task urgency) with the real red and green runs, the commit and both checkers | Once, to see the whole loop |\n| `scripts\u002Fcheck-tests.mjs` | Checks the tree: disabled or retried tests, titles, snapshots, clock and randomness in tests, Node APIs in app tests, file names, tests in the routes folder, assertion-free files, untested logic modules, device-only reasons | Workflow step 7 and the definition of done |\n| `scripts\u002Fcheck-test-edits.mjs` | Checks commits (`--range`, `--log`) or the staged slice (`--staged`): changed assertions or deleted tests without a valid Spec-Change, feat\u002Ffix code without a test (device-only, generated and types-only files exempt), newly disabled tests, Spec-Change reasons, unquoted requirements | Workflow step 8 and the definition of done |\n| `scripts\u002Flib\u002Ftdd-contract.mjs` | Shared by both checkers: the contract, its layout-derived defaults (single app or workspaces), test-file and source patterns | When changing a checker |\n| `scripts\u002Flib\u002Fgit-fixture.mjs` | Builds throwaway git repositories with fixed dates for the self-test's `--range` and `--staged` cases | When changing the git suite |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared import resolver (tsconfig aliases, workspace packages, platform files), synced from the library (do not edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves both checkers pass good fixtures and catch each planted bug | After changing a checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared script helper, synced from the library (do not edit here) | Never by hand |\n| `assets\u002Frequirement-ref.json` | The default requirement-reference pattern (`TASKS-12`, `#41`, `issue 41`, `spec 4.2`), synced from git-commits-and-reporting's `scripts\u002Fgit\u002Frequirement-ref.json` so a Spec-Change its hook accepts passes here | Never by hand (synced) |\n| `assets\u002Fshared.json` | Declares the shared files this skill copies in | When adding a shared file |\n| `tests\u002Ffixtures\u002F` | Good, pass, bad and error cases: the tree checker's overlay suite, history logs captured from real git, and the git-backed suite | When adding a rule to a checker |\n\n## Related skills\n\n- `unit-and-component-tests` - Jest projects, `renderWithProviders`, mocks, fakes, fast-check, coverage and Stryker set-up.\n- `spec-traceability` - the requirement IDs each first test quotes.\n- `golden-and-snapshot-tests` - data and pixel goldens and when `jest -u` is allowed.\n- `e2e-maestro` - end-to-end flows on the simulator and the emulator.\n- `design-visual-parity` - matching each changed screen to its approved baseline.\n- `quality-gates` - what `check:fast` and `verify` run and how to fix a failing gate.\n- `git-commits-and-reporting` - the commit message, the Spec-Change trailer and the evidence report.\n- `react-native-conventions-index` - the order in which a whole app is built.\n- `architecture-and-boundaries` - where a unit, a port and its fake live.\n","# Test-driven workflow\n\nEvery behaviour of an Expo app (iOS and Android) is built red-green-refactor: a failing test that\nquotes the requirement, the least code that turns it green, a refactor, the fast gate, and one commit\nholding test and code together. When an agent writes most of the code, the reviewer reads the report\nfirst, so the tests are both the specification and the evidence; two scripts prove the tree and the\ngit history follow the rules.\n\n## Rules that must hold\n\n1. **No product code without a red test seen failing for the right reason.** Run it and read the\n   failure: an assertion diff (`Expected ... Received ...`), never `Cannot find module`, a type or a\n   syntax error. Why: a test that was never red proves nothing, and one written after the code asserts\n   what the code does.\n2. **Red and green in the same commit, one behaviour per commit.** Never commit a failing test. Why:\n   the pre-commit hook reruns related tests, and only a history where test and code arrive together\n   shows each behaviour was test-first (`code-without-test`).\n3. **Never edit an existing assertion to make it pass.** Fix the code. Only a changed requirement may\n   change an expectation, and that commit carries `Spec-Change: \u003Crequirement ID or issue> \u003Cwhat\n   changed>` (git-commits-and-reporting owns the trailer format); a trailer that names no requirement\n   reference (`TASKS-12`, `#41`, `issue 41`) does not count. \"The test was wrong\", \"fix test\" or\n   \"update snapshot\" is never a Spec-Change. A rename refactor in its own `refactor` commit (the same\n   literals and matchers, one consistent rename) is not an edit. Why: it is the likeliest way an\n   unsupervised agent turns red into green (`assertion-changed`, `test-deleted`, `spec-change-reason`).\n4. **Never skip, focus, retry or weaken:** no `.skip`, `.only`, `.failing`, `.todo`, `xit`, `fit`,\n   `jest.retryTimes`, component snapshots, lowered thresholds, `eslint-disable` or `--no-verify`. If a\n   gate looks wrong, stop and ask the developer. Why: a parked test rots, a retry hides a real bug, and\n   nothing else would notice (`disabled-test`, `disabled-test-added`, `test-retry`).\n5. **Quote the requirement in the first test** (title or comment above it:\n   `it('returns today for a task due today (TASKS-12)')`), printed from the spec or the issue, never\n   from memory; with no written requirement, write the one sentence in the plan and have the developer\n   confirm it. Why: the quote ties the test to what was asked, and with `requirementIdPattern` in\n   `contracts\u002Ftdd.json` check-test-edits fails a new feat\u002Ffix test that quotes none\n   (`requirement-not-quoted`).\n6. **Build in layer order:** pure logic -> persistence and migrations -> services behind ports with\n   fakes -> stores and the model hook -> components and screens -> the route and its route test ->\n   end-to-end flows -> screenshot matrix. Each layer is tested before anything depends on it. Why: a\n   screen test that fails because a rule is wrong wastes the slice; a rule proven by properties never\n   needs debugging through the UI.\n7. **Pure logic gets examples, fast-check properties and at least one pinned exact value** in the same\n   file, every limit at exactly its value and one past it. Why: on a seeded random-number generator,\n   properties alone left 3 of 8 mutants alive; the pinned value killed them.\n8. **Tests are deterministic:** no `Math.random`, `Date.now`, `new Date()`, `performance.now()`, real\n   timers, network, locale or time zone; inject the fake clock and the seeded random-number generator.\n   The one exception is a perf budget test (`test\u002F**\u002F\u003Cname>.perf.test.ts`) timing real work with\n   `performance` from `node:perf_hooks`. Why: jest-expo mocks the global `performance.now`, and a test\n   that reads the real world passes today and fails tomorrow (`test-nondeterminism`).\n9. **Tests live where they run, named so they read as the requirement:** `\u003Cunit>.test.ts(x)` next to the\n   unit under `src\u002F`, `\u003Cunit>.android.test.ts(x)` for Android-only behaviour, `*.golden.test.ts` for\n   goldens, Node-API tests under `test\u002F`, never a test in the routes folder `src\u002Fapp\u002F`, never\n   `__tests__\u002F` or `.spec.ts`; `describe('\u003Cexported name>')`, `it('\u003Cthird-person verb> ...')`, never\n   `test(`. Why: the Jest projects select by suffix, so a stray name never runs; Expo Router bundles\n   every file in `src\u002Fapp\u002F` as a route; the app program has no Node types (`test-file-name`,\n   `test-in-routes`, `node-api-in-app-test`, `use-it`, `test-title-verb`, `describe-generic`).\n10. **Every logic module ships with its test**, fakes included; only a thin native wrapper Jest cannot\n    load starts with `\u002F\u002F device-only: covered by \u003Cthe e2e flow or device check>` in its first 6 lines.\n    Why: an untested module is code no test can defend, and the same marker drives the coverage\n    exclusion of unit-and-component-tests (`untested-module`, `device-only-reason`,\n    `test-without-assertion`).\n11. **Each kind of change carries its evidence** (`references\u002Fdefinition-of-done.md`): UI changes add\n    component tests plus screenshots of each changed screen on the iOS simulator and the Android\n    emulator, light and dark, LTR and RTL when the app ships an RTL locale, compared with the approved\n    design baseline. Why: Jest has no layout engine, and a platform nobody looked at ships broken.\n\n## Workflow\n\n0. **Start from green** (once per session, from the repo root): `git status` and\n   `git log --oneline -10` (never discard work you did not make; ask about it), note\n   `git rev-parse --short HEAD` as the session's `\u003Cbase>`, then `npm run -s check:fast`. If it is red,\n   getting back to green is the first slice, and the report says what was broken.\n1. **Find the requirement** the task serves (spec-traceability prints a spec entry exactly; otherwise\n   the issue or acceptance criterion) and fill [assets\u002Fslice-plan.md](assets\u002Fslice-plan.md): behaviour\n   in one sentence, first test title, files, evidence.\n2. **Place the slice in the layer order** ([references\u002Fbuild-order.md](references\u002Fbuild-order.md)). If\n   a lower layer it needs is untested, build that slice first.\n3. **Write one failing test.** Copy [templates\u002Flogic.test.ts](templates\u002Flogic.test.ts) (pure logic) or\n   [templates\u002Fcomponent.test.tsx](templates\u002Fcomponent.test.tsx) (a component, through\n   unit-and-component-tests' `renderWithProviders`) next to the unit and replace every\n   `__PLACEHOLDER__`, then run `npx prettier --write \u003Ctest-file>` (filled placeholders make long lines,\n   and `check:fast` starts with `prettier --check`). Names and places follow\n   [references\u002Ftest-conventions.md](references\u002Ftest-conventions.md).\n4. **Run it and read the failure:** `npx jest --ci \u003Ctest-file>` (`--selectProjects android` after the\n   path for an `.android.test.tsx`). If it fails on an import or a type, add a typed stub that returns\n   a wrong value and rerun until the failure is an assertion diff\n   ([references\u002Ftdd-loop.md](references\u002Ftdd-loop.md), \"Red for the right reason\"). Keep the red lines\n   for the report.\n5. **Write the minimum code** to turn that test green, rerun. Add the next example, see it red, make it\n   green. For pure logic add the properties and the pinned value; turn any fast-check counterexample\n   into an example test first.\n6. **Refactor by responsibility** (split a module, extract a pure function with its own test); tests\n   stay green.\n7. **Run the fast gate and the tree check** from the repo root: `npm run -s check:fast`, then\n   `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-tests.mjs .`. Fix every `FAIL` line and rerun until both\n   pass. Where the app keeps logic outside the default folders, or has requirement IDs, copy\n   [templates\u002Fcontracts\u002Ftdd.json](templates\u002Fcontracts\u002Ftdd.json) to `contracts\u002Ftdd.json` and edit it.\n8. **Commit the slice** (test and code together, the requirement in the body; git-commits-and-reporting\n   has the message format). Before committing,\n   `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-edits.mjs . --staged --message \u003Cfile>` checks the staged\n   slice; after, `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-edits.mjs . --range \u003Cbase>..HEAD` checks\n   the history (`\u003Cbase>` from step 0).\n9. **Collect the evidence** the change kind needs from\n   [references\u002Fdefinition-of-done.md](references\u002Fdefinition-of-done.md) and report it. Read\n   [examples\u002Fslice-walkthrough.md](examples\u002Fslice-walkthrough.md) once to see a complete slice.\n\n## Definition of done\n\n- [ ] Every new behaviour has a test that was seen failing on an assertion before its code existed; the\n      red lines are in the report.\n- [ ] Each commit holds one behaviour with its tests and code together; no existing assertion changed\n      without a valid `Spec-Change:` trailer naming the requirement.\n- [ ] Pure logic has examples, properties and a pinned exact value; UI has component tests plus\n      screenshots on both platforms (light\u002Fdark, LTR\u002FRTL when shipped) compared with the approved\n      baseline.\n- [ ] `npm run -s check:fast` is green (and `npm run verify` before any push).\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-edits.mjs . --range \u003Cbase>..HEAD` prints\n      `RESULT: PASS`\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-tests.mjs .` prints `RESULT: PASS` (neither checker\n      prints a SKIP line; both exit 2 when there is nothing to check)\n\n## Anti-patterns\n\n- **Writing the code, then a test that passes first time.** It asserts what the code does, not what\n  the requirement says. Delete the code, watch the test fail, rewrite.\n- **\"Red\" from a missing file.** `Cannot find module` is not a failing behaviour; stub the export with a\n  wrong value and get an assertion diff.\n- **Changing `toBe('today')` to `toBe('soon')` (or a row of an `it.each` table) because the code\n  returns `'soon'`.** That is editing the test to pass; `check-test-edits.mjs` reports it as\n  `assertion-changed`, and a `Spec-Change: the test was wrong` trailer adds `spec-change-reason`.\n- **Parking a test with `.skip` \"for later\".** Finish the behaviour in the slice or delete the test.\n- **A 40-line object literal in every test.** Use a `make\u003CThing>(overrides)` builder.\n- **Snapshotting a component tree.** Assert roles, accessible names and visible text; snapshots belong\n  only in `*.golden.test.ts`.\n- **A test next to the route file in `src\u002Fapp\u002F`.** Expo Router bundles it as a route and `expo export`\n  breaks; the route test lives in `src\u002Ffeatures\u002F\u003Cfeature>\u002F\u003Cfeature>-navigation.test.tsx`.\n- **`Platform.OS = 'android'` inside an iOS test.** It leaks into later tests; write\n  `\u003Cunit>.android.test.tsx`.\n- **Testing through the UI what a property already proves.** One level per behaviour; the flow proves\n  the wiring, not the rule.\n- **Several behaviours in one commit** (\"add reminders, snooze and repeat\"). The history can no longer\n  show that each was test-first.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Ftdd-loop.md](references\u002Ftdd-loop.md) | The loop, where the requirement comes from, red for the right reason, commands, discipline rules, examples + properties + pinned value, determinism, Android-only tests, counterexamples | Before the first slice of a session, and whenever a red run looks wrong |\n| [references\u002Ftest-conventions.md](references\u002Ftest-conventions.md) | File names and places, titles, builders, banned test code, what not to test, snapshots, flaky-test policy, when multi-package | Workflow step 3, and when `check-tests.mjs` fails |\n| [references\u002Fbuild-order.md](references\u002Fbuild-order.md) | The layer order, a feature slice by slice, first tests per layer, appendices for React Navigation 7 and the games plugin | Workflow step 2 |\n| [references\u002Fdefinition-of-done.md](references\u002Fdefinition-of-done.md) | Always-true items, evidence by kind of change (both platforms), the test pyramid, coverage and mutation gates, where evidence files are | Workflow step 9, before calling work done |\n| [templates\u002Flogic.test.ts](templates\u002Flogic.test.ts) | Test file for a pure unit: pinned example, rule table, determinism and invariant properties | Workflow step 3 for logic |\n| [templates\u002Fcomponent.test.tsx](templates\u002Fcomponent.test.tsx) | Component test through `renderWithProviders`, by role and name, awaited presses, the accessibility audit line | Workflow step 3 for a component |\n| [templates\u002Fcontracts\u002Ftdd.json](templates\u002Fcontracts\u002Ftdd.json) | The optional contract: logic globs, source globs, ignores, the requirement-ID pattern (filled with the defaults) | Workflow step 7, when the app's facts differ from the defaults |\n| [templates\u002Fcontracts\u002Ftdd.schema.json](templates\u002Fcontracts\u002Ftdd.schema.json) | JSON Schema of the contract | With the contract |\n| [assets\u002Fslice-plan.md](assets\u002Fslice-plan.md) | The plan for one slice (requirement, first test, files, layer, evidence, red run) | Workflow step 1 |\n| `assets\u002Ftemplate-placeholders.json` | The values the template check fills in (the Tasks app's digest planner and task row) | When changing a template |\n| [examples\u002Fslice-walkthrough.md](examples\u002Fslice-walkthrough.md) | One complete slice (TASKS-12, task urgency) with the real red and green runs, the commit and both checkers | Once, to see the whole loop |\n| `scripts\u002Fcheck-tests.mjs` | Checks the tree: disabled or retried tests, titles, snapshots, clock and randomness in tests, Node APIs in app tests, file names, tests in the routes folder, assertion-free files, untested logic modules, device-only reasons | Workflow step 7 and the definition of done |\n| `scripts\u002Fcheck-test-edits.mjs` | Checks commits (`--range`, `--log`) or the staged slice (`--staged`): changed assertions or deleted tests without a valid Spec-Change, feat\u002Ffix code without a test (device-only, generated and types-only files exempt), newly disabled tests, Spec-Change reasons, unquoted requirements | Workflow step 8 and the definition of done |\n| `scripts\u002Flib\u002Ftdd-contract.mjs` | Shared by both checkers: the contract, its layout-derived defaults (single app or workspaces), test-file and source patterns | When changing a checker |\n| `scripts\u002Flib\u002Fgit-fixture.mjs` | Builds throwaway git repositories with fixed dates for the self-test's `--range` and `--staged` cases | When changing the git suite |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared import resolver (tsconfig aliases, workspace packages, platform files), synced from the library (do not edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves both checkers pass good fixtures and catch each planted bug | After changing a checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared script helper, synced from the library (do not edit here) | Never by hand |\n| `assets\u002Frequirement-ref.json` | The default requirement-reference pattern (`TASKS-12`, `#41`, `issue 41`, `spec 4.2`), synced from git-commits-and-reporting's `scripts\u002Fgit\u002Frequirement-ref.json` so a Spec-Change its hook accepts passes here | Never by hand (synced) |\n| `assets\u002Fshared.json` | Declares the shared files this skill copies in | When adding a shared file |\n| `tests\u002Ffixtures\u002F` | Good, pass, bad and error cases: the tree checker's overlay suite, history logs captured from real git, and the git-backed suite | When adding a rule to a checker |\n\n## Related skills\n\n- `unit-and-component-tests` - Jest projects, `renderWithProviders`, mocks, fakes, fast-check, coverage and Stryker set-up.\n- `spec-traceability` - the requirement IDs each first test quotes.\n- `golden-and-snapshot-tests` - data and pixel goldens and when `jest -u` is allowed.\n- `e2e-maestro` - end-to-end flows on the simulator and the emulator.\n- `design-visual-parity` - matching each changed screen to its approved baseline.\n- `quality-gates` - what `check:fast` and `verify` run and how to fix a failing gate.\n- `git-commits-and-reporting` - the commit message, the Spec-Change trailer and the evidence report.\n- `react-native-conventions-index` - the order in which a whole app is built.\n- `architecture-and-boundaries` - where a unit, a port and its fake live.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Ftdd-workflow",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 tdd-workflow",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill tdd-workflow",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill tdd-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",true,[48,54,58,62,66,72,76,80,84,88,94,98,102,106,110,114,118,124,128,132,136,140,144,148,152,156,160,164,167,171,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Frequirement-ref.json","ASSET","资产文件",624,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fassets\u002Frequirement-ref.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fshared.json",257,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fassets\u002Fshared.json",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002Fslice-plan.md",1700,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fassets\u002Fslice-plan.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"assets\u002Ftemplate-placeholders.json",2553,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fassets\u002Ftemplate-placeholders.json",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"examples\u002Fslice-walkthrough.md","REFERENCE","参考文档",9138,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fexamples\u002Fslice-walkthrough.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fbuild-order.md",6212,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Freferences\u002Fbuild-order.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fdefinition-of-done.md",7365,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Freferences\u002Fdefinition-of-done.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Ftdd-loop.md",11617,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Freferences\u002Ftdd-loop.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Ftest-conventions.md",13719,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Freferences\u002Ftest-conventions.md",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fcheck-lib.mjs","SCRIPT","脚本",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Fcheck-lib.mjs",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fcheck-test-edits.mjs",35462,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Fcheck-test-edits.mjs",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fcheck-tests.mjs",17541,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Fcheck-tests.mjs",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Flib\u002Fgit-fixture.mjs",2699,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Flib\u002Fgit-fixture.mjs",{"path":107,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":111,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Flib\u002Ftdd-contract.mjs",6703,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Flib\u002Ftdd-contract.mjs",{"path":115,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fselftest.mjs",12225,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fscripts\u002Fselftest.mjs",{"path":119,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":122,"sourceHtmlUrl":123},"templates\u002Fcomponent.test.tsx","OTHER","其他",1185,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftemplates\u002Fcomponent.test.tsx",{"path":125,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":126,"sourceHtmlUrl":127},"templates\u002Fcontracts\u002Ftdd.json",622,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftemplates\u002Fcontracts\u002Ftdd.json",{"path":129,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":130,"sourceHtmlUrl":131},"templates\u002Fcontracts\u002Ftdd.schema.json",2361,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftemplates\u002Fcontracts\u002Ftdd.schema.json",{"path":133,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":134,"sourceHtmlUrl":135},"templates\u002Flogic.test.ts",2003,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftemplates\u002Flogic.test.ts",{"path":137,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":138,"sourceHtmlUrl":139},"tests\u002Ffixtures\u002Fcheck-test-edits-git\u002FCASES.json",3439,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-test-edits-git\u002FCASES.json",{"path":141,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":142,"sourceHtmlUrl":143},"tests\u002Ffixtures\u002Fcheck-test-edits-git\u002Fgood\u002FEXPECT.txt",61,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-test-edits-git\u002Fgood\u002FEXPECT.txt",{"path":145,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":146,"sourceHtmlUrl":147},"tests\u002Ffixtures\u002Fcheck-test-edits\u002FCASES.json",51876,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-test-edits\u002FCASES.json",{"path":149,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":150,"sourceHtmlUrl":151},"tests\u002Ffixtures\u002Fcheck-test-edits\u002Fgood\u002Fhistory.log",6705,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-test-edits\u002Fgood\u002Fhistory.log",{"path":153,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":154,"sourceHtmlUrl":155},"tests\u002Ffixtures\u002Fcheck-test-edits\u002FSUITE.json",45,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-test-edits\u002FSUITE.json",{"path":157,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Ffixtures\u002Fcheck-tests\u002FCASES.json",12554,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002FCASES.json",{"path":161,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":162,"sourceHtmlUrl":163},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002F.agents\u002Fskills\u002Fdemo\u002Fb.test.ts",108,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002F.agents\u002Fskills\u002Fdemo\u002Fb.test.ts",{"path":165,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":162,"sourceHtmlUrl":166},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fios\u002FPods\u002Fx.test.ts","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fios\u002FPods\u002Fx.test.ts",{"path":168,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":169,"sourceHtmlUrl":170},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fpackage.json",87,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fpackage.json",{"path":172,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":162,"sourceHtmlUrl":173},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fbad-disabled-test\u002Fa.test.ts","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fbad-disabled-test\u002Fa.test.ts",{"path":175,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":176,"sourceHtmlUrl":177},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fapp\u002F(app)\u002Findex.tsx",152,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fapp\u002F(app)\u002Findex.tsx",{"path":179,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":180,"sourceHtmlUrl":181},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fcore\u002Fdates\u002Fday-number.ts",116,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fcore\u002Fdates\u002Fday-number.ts",{"path":183,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":184,"sourceHtmlUrl":185},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fdata\u002Fexpo-sqlite-sql-driver.ts",374,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fdata\u002Fexpo-sqlite-sql-driver.ts",{"path":187,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":188,"sourceHtmlUrl":189},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fdata\u002Ftasks\u002Fsqlite-task-repository.ts",207,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fdata\u002Ftasks\u002Fsqlite-task-repository.ts",{"path":191,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":192,"sourceHtmlUrl":193},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.android.test.tsx",248,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.android.test.tsx",{"path":195,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":196,"sourceHtmlUrl":197},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.test.tsx",283,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.test.tsx",{"path":199,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":200,"sourceHtmlUrl":201},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-types.ts",159,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-types.ts",{"path":203,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":204,"sourceHtmlUrl":205},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-urgency.test.ts",813,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-urgency.test.ts",{"path":207,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":208,"sourceHtmlUrl":209},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-urgency.ts",299,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-urgency.ts",{"path":211,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":212,"sourceHtmlUrl":213},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-digest.golden.test.ts",352,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-digest.golden.test.ts",{"path":215,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":216,"sourceHtmlUrl":217},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-digest.ts",150,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-digest.ts",{"path":219,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":220,"sourceHtmlUrl":221},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftesting\u002Fmake-task.ts",161,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftesting\u002Fmake-task.ts",{"path":223,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":224,"sourceHtmlUrl":225},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Furgency-labels.ts",237,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Furgency-labels.ts",{"path":227,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":228,"sourceHtmlUrl":229},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.test.ts",230,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.test.ts",{"path":231,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":232,"sourceHtmlUrl":233},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.ts",197,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.ts",{"path":235,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":236,"sourceHtmlUrl":237},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Ftest\u002Fintegration\u002Ftasks\u002Ftask-write.perf.test.ts",651,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Ftest\u002Fintegration\u002Ftasks\u002Ftask-write.perf.test.ts",{"path":239,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":240,"sourceHtmlUrl":241},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Ftest\u002Fsqlite\u002Fsqlite-task-repository.test.ts",449,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Ftest\u002Fsqlite\u002Fsqlite-task-repository.test.ts",{"path":243,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":244,"sourceHtmlUrl":245},"tests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Ftsconfig.json",112,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002Fgood\u002Ftsconfig.json",{"path":247,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":248,"sourceHtmlUrl":249},"tests\u002Ffixtures\u002Fcheck-tests\u002FSUITE.json",19,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Ftests\u002Ffixtures\u002Fcheck-tests\u002FSUITE.json",[251,258,264,271,278,285],{"skillNo":252,"name":253,"nameZh":6,"description":254,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":255,"categories":256,"keywords":257,"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":259,"name":253,"nameZh":6,"description":260,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":261,"categories":262,"keywords":263,"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":265,"name":266,"nameZh":6,"description":267,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":268,"categories":269,"keywords":270,"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":272,"name":273,"nameZh":6,"description":274,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":275,"categories":276,"keywords":277,"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":279,"name":280,"nameZh":6,"description":281,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":282,"categories":283,"keywords":284,"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":286,"name":287,"nameZh":6,"description":288,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":289,"categories":290,"keywords":291,"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",[],[]]