[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CQSXE776M0Y5859427BQ31":3,"skill-same:01M6CQSXE776M0Y5859427BQ31":83},{"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":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M6CQSXE776M0Y5859427BQ31","verify-changes",null,"How to test and verify work in the dev-3.0 repo — which vitest config covers what, how to write a test that fits the house style, mocking Electrobun RPC and i18n providers, what coverage is actually expected, and the browser QA hand-off. Use when writing or fixing tests, deciding what a change needs covered, hitting a failing or flaky suite, or preparing a change for review. Triggers — \"write tests for this\", \"which config runs this\", \"how do I mock the RPC\", \"is this covered enough\", \"the suite is failing\".","h0x91b\u002Fdev-3.0","h0x91b","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F810011?v=4","01M6CQSGSQ8YHX4HK590XGFBT3","Arseniy Pavlenko","01M6CQSGX8XJ89FP1QDR33W302",333,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fh0x91b\u002Fdev-3.0\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverify-changes\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"Verify Changes","changes","verify","work","failing","when","hand","which","how to","electrobun","i18n","do","coverage","write","repo","writing","vitest","how","Providers","rpc","browser","qa","config","write tests","change","review","2026-11-10 10:12:30",false,"---\nname: verify-changes\ndescription: How to test and verify work in the dev-3.0 repo — which vitest config covers what, how to write a test that fits the house style, mocking Electrobun RPC and i18n providers, what coverage is actually expected, and the browser QA hand-off. Use when writing or fixing tests, deciding what a change needs covered, hitting a failing or flaky suite, or preparing a change for review. Triggers — \"write tests for this\", \"which config runs this\", \"how do I mock the RPC\", \"is this covered enough\", \"the suite is failing\".\n---\n\n# verify-changes — testing and verification in dev-3.0\n\nThe two hard gates (lint + touched tests before push, full suite before a PR) live in\n`AGENTS.md` and apply whether or not you read this file. Everything here is the detail\nbehind them: which runner covers what, how to write a test that fits, and what \"enough\"\nmeans.\n\n## Which config runs what\n\n**Vitest** with `happy-dom` and React Testing Library. Three configs, three independent\nprocesses:\n\n| Config | Covers | Script |\n|---|---|---|\n| `vitest.config.ts` | renderer (`src\u002Fmainview\u002F`) | part of `bun run test` |\n| `vitest.config.bun.ts` | backend (`src\u002Fbun\u002F`) | `bun run test:bun` |\n| `vitest.config.cli.ts` | CLI (`src\u002Fcli\u002F`) | `bun run test:cli` |\n\n```bash\nbun run test          # mainview + bun + cli in parallel, minus 8 slow e2e files (~6s)\nbun run test:full     # everything incl. slow e2e (~42s) — CI\u002FPR only\nbun run test:watch    # watch mode\n```\n\nRunning vitest directly (outside `bun run`): `bunx vitest run`, never `npx`.\n\nNarrowing while iterating: `bunx vitest run \u003Cpath>`, `-t \"\u003Ctest name>\"`, `--repeat \u003Cn>` for\nsuspected flakes. Because the three configs are separate processes, a failure in one says\nnothing about the others — read which prefix (`[mainview]` \u002F `[bun]` \u002F `[cli]`) failed.\n\n**Local E2E policy:** do not run the full E2E suite locally — `bun run test:full` and any\nequivalent unfiltered command are reserved for CI\u002FPR validation. Investigating a specific\nbehavior means running that one E2E file or test case.\n\n## What to test\n\n- **Unit (mandatory)** — state reducer actions and their edge cases, all pure\n  functions\u002Futils\u002Fparsers, every RPC handler (happy path plus 2-3 error cases), CLI commands\n  (parsing, validation, output), data-layer CRUD plus corrupt-data handling, git operations\n  with mocked spawn, i18n interpolation and pluralization for every locale.\n- **Component (mandatory)** — every major interactive component: board views, task cards,\n  modals, settings panels.\n- **E2E (CLI-based)** — full lifecycle through the CLI plus Unix socket against a real app\n  process in a tmpdir: task lifecycle (create → move statuses → complete), project CRUD,\n  worktree creation and cleanup, notes CRUD, CLI context auto-detection, concurrent writes\n  with no data corruption.\n\n## House style\n\n- One logical assertion per test; no dependencies between tests.\n- Always `userEvent`, never `fireEvent`. Test behavior, not implementation.\n- Mock only external boundaries — git, tmux, fs, Electrobun. Never mock internal modules.\n- No `sleep` and no timer juggling; use proper `async`\u002F`await`.\n- Tests live in `__tests__\u002F` next to their module, e.g.\n  `src\u002Fmainview\u002Fcomponents\u002F__tests__\u002FDashboard.test.tsx`.\n- Avoid the patterns that make a suite flake under CI load: index-based queries\n  (`getAllBy…[0]`), structural traversal (`.parentElement`, `.closest(…)`), and assertions\n  wedged between two `userEvent` interactions without an intervening `waitFor`.\n\n### Mocking Electrobun RPC and providers\n\nComponents importing `api` from `rpc.ts` need the Electrobun native module mocked:\n\n```ts\nvi.mock(\"..\u002F..\u002Frpc\", () => ({\n\tapi: { request: { listDirectory: vi.fn(), addProject: vi.fn() \u002F* … *\u002F } },\n}));\n```\n\nComponents calling `useT()` must render inside `\u003CI18nProvider>` (import from `..\u002F..\u002Fi18n`).\n\nHandler tests mock the `tmux` singleton the same way they mock `rpc.ts`; the tmux client's\nown tests inject a fake spawn instead.\n\n### A test that reads a file as data is an untyped interface\n\nSome tests consume something as **data** rather than importing it as code: workflow YAML parsed\nline by line, a fixture matched by a regex, a log line asserted on, a JSON shape read by string\nmatching. Nothing type-checks that link, so reshaping the source breaks the test with the\ncompiler silent.\n\nThe failure is worse than silent — it is misleading. When the test finally fails it describes the\n**invariant** (\"every Bun-pinning workflow would ship an unproven pin\"), not the missing source,\nso it reads as a real regression and someone spends an hour proving it is not.\n\nTwo rules:\n\n- **Before deleting or reshaping anything, grep who reads it** — not just who imports it. A YAML\n  key, a fixture line shape, a log string.\n- **If you write one of these, make its failure message name the cause and the fix** — \"the\n  pinned string moved; update it in this test\" — never just restate the invariant.\n\n## Bug fixing — reproduce first\n\nWrite the failing test that reproduces the bug (red), then fix until it passes (green), and\ncommit test and fix together. The rare exception is a bug that genuinely cannot be\nreproduced in a test (OS-specific timing, hardware, unmockable third-party behavior) —\ndefault to writing the test.\n\nFor a suspected flake, reproduce **under load** before theorising: `--repeat`, several\nconcurrent vitest processes, and the file run together with its neighbours rather than\nalone (cross-test leakage vanishes in isolation). Never \"fix\" a flake with `retry`, `skip`,\nor a bumped timeout on its own.\n\n## Coverage — expectations, not a gate\n\nTwo numbers, no per-metric split: **~70% for normal code, ~85% for critical modules.**\n\n- **Critical modules** (a silent regression here is expensive): `state.ts`,\n  `src\u002Fshared\u002Ftypes.ts` helpers, `src\u002Fmainview\u002Fi18n\u002F`, `src\u002Fcli\u002F`, `src\u002Fbun\u002Fdata.ts`,\n  `src\u002Fbun\u002Fgit.ts`, `src\u002Fbun\u002Ftmux\u002F`, `src\u002Fmainview\u002Futils\u002F`.\n- **Not expected to be covered** (bootstrap\u002Fwrappers that only make sense in e2e):\n  `src\u002Fbun\u002Findex.ts`, `updater.ts`, `shell-env.ts`, `spawn.ts`, `src\u002Fmainview\u002Frpc.ts`,\n  `main.tsx`.\n\n**No coverage provider is wired up** — no `coverage` block in any vitest config, nothing\ninstalled, no CI gate. These are review-time expectations, so never cite a percentage as if\na tool measured it. What gets rejected in review is a change that leaves its area, or a\ncritical module, visibly less tested than before.\n\n## Visual surfaces\n\nA change to anything the user sees is not verified by a green suite. Drive the running UI in\na browser, screenshot it, read the console — the recipe (isolated browser session per task,\nstreamer mode, serving the app) is the **`\u002Fdebug-ui`** skill.\n","# verify-changes — testing and verification in dev-3.0\n\nThe two hard gates (lint + touched tests before push, full suite before a PR) live in\n`AGENTS.md` and apply whether or not you read this file. Everything here is the detail\nbehind them: which runner covers what, how to write a test that fits, and what \"enough\"\nmeans.\n\n## Which config runs what\n\n**Vitest** with `happy-dom` and React Testing Library. Three configs, three independent\nprocesses:\n\n| Config | Covers | Script |\n|---|---|---|\n| `vitest.config.ts` | renderer (`src\u002Fmainview\u002F`) | part of `bun run test` |\n| `vitest.config.bun.ts` | backend (`src\u002Fbun\u002F`) | `bun run test:bun` |\n| `vitest.config.cli.ts` | CLI (`src\u002Fcli\u002F`) | `bun run test:cli` |\n\n```bash\nbun run test          # mainview + bun + cli in parallel, minus 8 slow e2e files (~6s)\nbun run test:full     # everything incl. slow e2e (~42s) — CI\u002FPR only\nbun run test:watch    # watch mode\n```\n\nRunning vitest directly (outside `bun run`): `bunx vitest run`, never `npx`.\n\nNarrowing while iterating: `bunx vitest run \u003Cpath>`, `-t \"\u003Ctest name>\"`, `--repeat \u003Cn>` for\nsuspected flakes. Because the three configs are separate processes, a failure in one says\nnothing about the others — read which prefix (`[mainview]` \u002F `[bun]` \u002F `[cli]`) failed.\n\n**Local E2E policy:** do not run the full E2E suite locally — `bun run test:full` and any\nequivalent unfiltered command are reserved for CI\u002FPR validation. Investigating a specific\nbehavior means running that one E2E file or test case.\n\n## What to test\n\n- **Unit (mandatory)** — state reducer actions and their edge cases, all pure\n  functions\u002Futils\u002Fparsers, every RPC handler (happy path plus 2-3 error cases), CLI commands\n  (parsing, validation, output), data-layer CRUD plus corrupt-data handling, git operations\n  with mocked spawn, i18n interpolation and pluralization for every locale.\n- **Component (mandatory)** — every major interactive component: board views, task cards,\n  modals, settings panels.\n- **E2E (CLI-based)** — full lifecycle through the CLI plus Unix socket against a real app\n  process in a tmpdir: task lifecycle (create → move statuses → complete), project CRUD,\n  worktree creation and cleanup, notes CRUD, CLI context auto-detection, concurrent writes\n  with no data corruption.\n\n## House style\n\n- One logical assertion per test; no dependencies between tests.\n- Always `userEvent`, never `fireEvent`. Test behavior, not implementation.\n- Mock only external boundaries — git, tmux, fs, Electrobun. Never mock internal modules.\n- No `sleep` and no timer juggling; use proper `async`\u002F`await`.\n- Tests live in `__tests__\u002F` next to their module, e.g.\n  `src\u002Fmainview\u002Fcomponents\u002F__tests__\u002FDashboard.test.tsx`.\n- Avoid the patterns that make a suite flake under CI load: index-based queries\n  (`getAllBy…[0]`), structural traversal (`.parentElement`, `.closest(…)`), and assertions\n  wedged between two `userEvent` interactions without an intervening `waitFor`.\n\n### Mocking Electrobun RPC and providers\n\nComponents importing `api` from `rpc.ts` need the Electrobun native module mocked:\n\n```ts\nvi.mock(\"..\u002F..\u002Frpc\", () => ({\n\tapi: { request: { listDirectory: vi.fn(), addProject: vi.fn() \u002F* … *\u002F } },\n}));\n```\n\nComponents calling `useT()` must render inside `\u003CI18nProvider>` (import from `..\u002F..\u002Fi18n`).\n\nHandler tests mock the `tmux` singleton the same way they mock `rpc.ts`; the tmux client's\nown tests inject a fake spawn instead.\n\n### A test that reads a file as data is an untyped interface\n\nSome tests consume something as **data** rather than importing it as code: workflow YAML parsed\nline by line, a fixture matched by a regex, a log line asserted on, a JSON shape read by string\nmatching. Nothing type-checks that link, so reshaping the source breaks the test with the\ncompiler silent.\n\nThe failure is worse than silent — it is misleading. When the test finally fails it describes the\n**invariant** (\"every Bun-pinning workflow would ship an unproven pin\"), not the missing source,\nso it reads as a real regression and someone spends an hour proving it is not.\n\nTwo rules:\n\n- **Before deleting or reshaping anything, grep who reads it** — not just who imports it. A YAML\n  key, a fixture line shape, a log string.\n- **If you write one of these, make its failure message name the cause and the fix** — \"the\n  pinned string moved; update it in this test\" — never just restate the invariant.\n\n## Bug fixing — reproduce first\n\nWrite the failing test that reproduces the bug (red), then fix until it passes (green), and\ncommit test and fix together. The rare exception is a bug that genuinely cannot be\nreproduced in a test (OS-specific timing, hardware, unmockable third-party behavior) —\ndefault to writing the test.\n\nFor a suspected flake, reproduce **under load** before theorising: `--repeat`, several\nconcurrent vitest processes, and the file run together with its neighbours rather than\nalone (cross-test leakage vanishes in isolation). Never \"fix\" a flake with `retry`, `skip`,\nor a bumped timeout on its own.\n\n## Coverage — expectations, not a gate\n\nTwo numbers, no per-metric split: **~70% for normal code, ~85% for critical modules.**\n\n- **Critical modules** (a silent regression here is expensive): `state.ts`,\n  `src\u002Fshared\u002Ftypes.ts` helpers, `src\u002Fmainview\u002Fi18n\u002F`, `src\u002Fcli\u002F`, `src\u002Fbun\u002Fdata.ts`,\n  `src\u002Fbun\u002Fgit.ts`, `src\u002Fbun\u002Ftmux\u002F`, `src\u002Fmainview\u002Futils\u002F`.\n- **Not expected to be covered** (bootstrap\u002Fwrappers that only make sense in e2e):\n  `src\u002Fbun\u002Findex.ts`, `updater.ts`, `shell-env.ts`, `spawn.ts`, `src\u002Fmainview\u002Frpc.ts`,\n  `main.tsx`.\n\n**No coverage provider is wired up** — no `coverage` block in any vitest config, nothing\ninstalled, no CI gate. These are review-time expectations, so never cite a percentage as if\na tool measured it. What gets rejected in review is a change that leaves its area, or a\ncritical module, visibly less tested than before.\n\n## Visual surfaces\n\nA change to anything the user sees is not verified by a green suite. Drive the running UI in\na browser, screenshot it, read the console — the recipe (isolated browser session per task,\nstreamer mode, serving the app) is the **`\u002Fdebug-ui`** skill.\n",{"name":5,"description":7},"main","3db9a9b6377076d26a40115e7edb086277a807d3",".claude\u002Fskills\u002Fverify-changes",43,"https:\u002F\u002Fgithub.com\u002Fh0x91b\u002Fdev-3.0","https:\u002F\u002Fdev3.h0x91b.com\u002F","https:\u002F\u002Fgithub.com\u002Fh0x91b","http:\u002F\u002Fil.linkedin.com\u002Fin\u002Fh0x91b","2026-11-13 01:27:37",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add h0x91b\u002Fdev-3.0 --skill verify-changes",{"tool":65,"command":66},"bunx","bunx skills add h0x91b\u002Fdev-3.0 --skill verify-changes",{"tool":68,"command":69},"pnpm","pnpm dlx skills add h0x91b\u002Fdev-3.0 --skill verify-changes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fh0x91b\u002Fdev-3.0\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverify-changes\u002FSKILL.md",true,[73,79],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"SOURCE.md","REFERENCE","参考文档",177,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Ftrading\u002Fbabycai-agent\u002FSOURCE.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"TRUST.auto.yaml",2217,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Ftrading\u002Fbabycai-agent\u002FTRUST.auto.yaml",[84,116,139],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":45},"01M6CQSST86BGTQ6BJ2DGZ352K","ux-principal","Principal UX architect skill for deciding WHERE a UI feature belongs, before it is implemented. Reads and maintains docs\u002Fux manifests, classifies the feature, decides placement, navigation, surface, action hierarchy and complexity budgets, and produces a precise implementation brief without coding unless explicitly asked. Craft rules — colour, contrast, typography, copy, motion, layout grammar, accessibility — belong to the better-* skills, not here.","https:\u002F\u002Fgithub.com\u002Fh0x91b\u002Fdev-3.0\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fux-principal\u002FSKILL.md",[],[91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],"ux","ux principal","complexity","brief","grammar","craft","ui","typography","for","coding","architect","motion","Rules","accessibility","implementation","docs","navigation","manifests","hierarchy","layout","colour","action","contrast","ux architect","feature",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":45},"01M6CQSP7D4K6GV3T0MNTW5D4C","ux-create-manifest","Create the initial Product UX Bible for an existing web or full-screen web app by deeply auditing the repository, using sub-agents when available, and generating docs\u002Fux manifests, schemas, budgets, surface maps, action taxonomy, and design-token policies from observed code.","https:\u002F\u002Fgithub.com\u002Fh0x91b\u002Fdev-3.0\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fux-create-manifest\u002FSKILL.md",[],[123,124,125,91,112,126,99,127,128,24,129,130,131,132,133,134,135,136,137,106,138,108],"ux create manifest","manifest","create","full","token","screen","generating docs","design","taxonomy","code","maps","web","product","bible","repository","app",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":45},"01M6CQSKGWPGEFF1FTC7C8J1VN","debug-ui","Drive and visually QA the dev-3.0 UI in a real browser (headless Chromium via agent-browser). Use when verifying a UI\u002FUX change, reproducing a visual bug, taking screenshots of the running app, or self-QA before review. Triggers — \"check the UI\", \"screenshot the app\", \"does this render\", \"QA this screen\", \"verify the UI change in a browser\", \"drive the app\".","https:\u002F\u002Fgithub.com\u002Fh0x91b\u002Fdev-3.0\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug-ui\u002FSKILL.md",[],[146,97,147,148,40,44,39,43,91,149,150,151,152,138,153,154,155,24,128,156],"debug ui","debug","self","bug","screenshot","real browser","screenshots","headless","agent-browser","render","running"]