[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F84R1QJNA4YM79QJ16BGW7":3,"skill-same:01M7F84R1QJNA4YM79QJ16BGW7":46},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F84R1QJNA4YM79QJ16BGW7","cross-mod-testing",null,"Testing Bifrost plugins - Bun tests with the @gidragir\u002Fbifrost\u002Ftesting kit, engine tests run by claude plugin test against the built plugin, type checking and Biome. Use when writing or running tests, debugging a failing check, or deciding which layer a test belongs to.","gidragir\u002Fclaude-mods","gidragir","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7879777?v=4","01M7F842DBWPHAR769D362Z1S5","Gidragir","01M7F842DZNA65ZSEQBZDP0A21",0,"MIT","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcross-mod-testing\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: cross-mod-testing\ndescription: Testing Bifrost plugins - Bun tests with the @gidragir\u002Fbifrost\u002Ftesting kit, engine tests run by claude plugin test against the built plugin, type checking and Biome. Use when writing or running tests, debugging a failing check, or deciding which layer a test belongs to.\n---\n\n# Testing\n\n| Layer | Where | Runner | What it covers |\n| --- | --- | --- | --- |\n| Logic | `plugins\u002F\u003Cmod>\u002Ftest\u002F*.test.ts` | `bun test` | pure functions in `src\u002F*.ts` (use `memoryFs` or a hand-written `FsLike`) |\n| Plugin | `plugins\u002F\u003Cmod>\u002Ftest\u002F*.test.tsx` | `bun test` | commands, events, panes through the test kit, in both renderings |\n| Engine | `plugins\u002F\u003Cmod>\u002Ftest\u002Fengine\u002F*.ts` | `claude plugin test dist` (`pnpm check`) | the generated hooks module inside the real engine, on several surfaces |\n\nFramework tests (`packages\u002Fbifrost\u002Ftest`) belong to framework work\n([packages\u002Fbifrost\u002FAGENTS.md](..\u002F..\u002F..\u002Fpackages\u002Fbifrost\u002FAGENTS.md)). `bun test` from the repository root\nruns every Bun suite (~100 ms); from a plugin folder it runs that plugin's (its `bunfig.toml` ignores `dist\u002F**`, where engine tests are copied).\n\n## Test kit (`@gidragir\u002Fbifrost\u002Ftesting`)\n\n```ts\nimport { expect, test } from 'bun:test'\nimport { completeTurn, createTestHost, mount, runCommand, submitPrompt } from '@gidragir\u002Fbifrost\u002Ftesting'\nimport plugin from '..\u002Fsrc\u002Fplugin'\n\ntest('…', async () => {\n  const host = createTestHost(plugin, { files: { '\u002Fws\u002Ffeatures\u002FT-1\u002Freview\u002Fr.md': '### RV-1 …' }, cwd: '\u002Fws', config: { prefixes: '' } })\n  expect(await runCommand(plugin, 'ref', 'RV-1', { host })).toBe('Refs pane opened.')\n  const ui = await mount(plugin, 'refs', { host, columns: 120 })   \u002F\u002F surface\u002Fharness\u002FcanInput options too\n  host.select('picked text')\n  await ui.press('add-context')\n  expect(host.promptText).toContain('picked text')\n  expect(host.calls.toasts).toEqual([…])\n  expect(ui.html()).toContain('data-bf-id=\"pick-RV-001\"')          \u002F\u002F agy rendering\n})\n```\n\n`mount` drives elements by `key`: `press`, `input` (onInput), `submit` (onSubmit), `select`; `find` \u002F\n`findAll` by `{ key, type, text }`; `text()`; `rerender()`. The host records `calls.toasts`,\n`calls.prompt`, `calls.submitted`, `calls.opened\u002Fclosed\u002Ffocused\u002Fscrolled`, and keeps `promptText`.\n\n## Engine tests\n\nFiles in `test\u002Fengine\u002F*.ts` import only `claude-code\u002Ftesting`; the build copies them to\n`dist\u002Ftests\u002F*.test.ts`. Mock host answers with `on('ui.open', () => ({ value: { isPlaced: true } }))`,\n`on('prompt.fill', () => ({ isFilled: true }))`, `on('fs.list'|'fs.read'|'session.cwd', …)`. Mount panes\nwith `$.ui.mount({ plugin, component: 'Pane', requestId, surface, props: { bodyColumns, … } })`.\n`$.command.run` needs `origin` and `presentation`.\n\n## Checks\n\n- `pnpm check [mod]`: build → `claude plugin validate dist` → `tsc` (src, then `test\u002Ftsconfig.json`) →\n  `claude plugin test dist`.\n- `pnpm typecheck`, `pnpm lint` (Biome), `pnpm test:engine`.\n- `types\u002Fengine` must exist for `tsc` (`pnpm types:sync`).\n","# Testing\n\n| Layer | Where | Runner | What it covers |\n| --- | --- | --- | --- |\n| Logic | `plugins\u002F\u003Cmod>\u002Ftest\u002F*.test.ts` | `bun test` | pure functions in `src\u002F*.ts` (use `memoryFs` or a hand-written `FsLike`) |\n| Plugin | `plugins\u002F\u003Cmod>\u002Ftest\u002F*.test.tsx` | `bun test` | commands, events, panes through the test kit, in both renderings |\n| Engine | `plugins\u002F\u003Cmod>\u002Ftest\u002Fengine\u002F*.ts` | `claude plugin test dist` (`pnpm check`) | the generated hooks module inside the real engine, on several surfaces |\n\nFramework tests (`packages\u002Fbifrost\u002Ftest`) belong to framework work\n([packages\u002Fbifrost\u002FAGENTS.md](..\u002F..\u002F..\u002Fpackages\u002Fbifrost\u002FAGENTS.md)). `bun test` from the repository root\nruns every Bun suite (~100 ms); from a plugin folder it runs that plugin's (its `bunfig.toml` ignores `dist\u002F**`, where engine tests are copied).\n\n## Test kit (`@gidragir\u002Fbifrost\u002Ftesting`)\n\n```ts\nimport { expect, test } from 'bun:test'\nimport { completeTurn, createTestHost, mount, runCommand, submitPrompt } from '@gidragir\u002Fbifrost\u002Ftesting'\nimport plugin from '..\u002Fsrc\u002Fplugin'\n\ntest('…', async () => {\n  const host = createTestHost(plugin, { files: { '\u002Fws\u002Ffeatures\u002FT-1\u002Freview\u002Fr.md': '### RV-1 …' }, cwd: '\u002Fws', config: { prefixes: '' } })\n  expect(await runCommand(plugin, 'ref', 'RV-1', { host })).toBe('Refs pane opened.')\n  const ui = await mount(plugin, 'refs', { host, columns: 120 })   \u002F\u002F surface\u002Fharness\u002FcanInput options too\n  host.select('picked text')\n  await ui.press('add-context')\n  expect(host.promptText).toContain('picked text')\n  expect(host.calls.toasts).toEqual([…])\n  expect(ui.html()).toContain('data-bf-id=\"pick-RV-001\"')          \u002F\u002F agy rendering\n})\n```\n\n`mount` drives elements by `key`: `press`, `input` (onInput), `submit` (onSubmit), `select`; `find` \u002F\n`findAll` by `{ key, type, text }`; `text()`; `rerender()`. The host records `calls.toasts`,\n`calls.prompt`, `calls.submitted`, `calls.opened\u002Fclosed\u002Ffocused\u002Fscrolled`, and keeps `promptText`.\n\n## Engine tests\n\nFiles in `test\u002Fengine\u002F*.ts` import only `claude-code\u002Ftesting`; the build copies them to\n`dist\u002Ftests\u002F*.test.ts`. Mock host answers with `on('ui.open', () => ({ value: { isPlaced: true } }))`,\n`on('prompt.fill', () => ({ isFilled: true }))`, `on('fs.list'|'fs.read'|'session.cwd', …)`. Mount panes\nwith `$.ui.mount({ plugin, component: 'Pane', requestId, surface, props: { bodyColumns, … } })`.\n`$.command.run` needs `origin` and `presentation`.\n\n## Checks\n\n- `pnpm check [mod]`: build → `claude plugin validate dist` → `tsc` (src, then `test\u002Ftsconfig.json`) →\n  `claude plugin test dist`.\n- `pnpm typecheck`, `pnpm lint` (Biome), `pnpm test:engine`.\n- `types\u002Fengine` must exist for `tsc` (`pnpm types:sync`).\n",{"name":5,"description":7},"main","f6bd66d12222e4097404efee5bec1b8e1ec45482",".agents\u002Fskills\u002Fcross-mod-testing","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Ftree\u002Fmain\u002Fplugins\u002Fref-pane","https:\u002F\u002Fgithub.com\u002Fgidragir","Everything as Code. Automating routines, refining AI workflows & building ergonomic developer tooling.","2026-10-22 19:56:40",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add gidragir\u002Fclaude-mods --skill cross-mod-testing",{"tool":38,"command":39},"bunx","bunx skills add gidragir\u002Fclaude-mods --skill cross-mod-testing",{"tool":41,"command":42},"pnpm","pnpm dlx skills add gidragir\u002Fclaude-mods --skill cross-mod-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcross-mod-testing\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F867TXYBJX53PWSD1CSWMC","__MOD_NAME__","__MOD_DESCRIPTION__","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002Ftemplates\u002Fmod\u002Fskills\u002F__MOD_NAME__\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7F862R0J2CBSCDPCMMKFEZW","cross-mod","Hub for building plugins that run in both Claude Code and Google Antigravity (agy) with the Bifrost framework. Use when starting any plugin work in this repository to find the right specialized skill and the end-to-end workflow.","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002Fskills\u002Fcross-mod\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7F85YREF3NBW5RFRDM2NSV4","ref-pane","Inspect and navigate project artifact references (such as RV-1, FB-2, T-3, ADR-4) in the Auxiliary Pane.","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002Fplugins\u002Fref-pane\u002Fskills\u002Fref-pane\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F85V4PPEFB8YC12ACYHRYN","bifrost-dev","Use when changing @gidragir\u002Fbifrost itself (packages\u002Fbifrost) - adding or renaming an export, Host member, primitive or component, changing codegen or the adapters, bumping its version or releasing it - and not when building a plugin under plugins\u002F\u003Cmod>.","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002Fpackages\u002Fbifrost\u002F.agents\u002Fskills\u002Fbifrost-dev\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7F85KV1TAYNXEFZ1V8ZDYBF","bifrost-claude-adapter","Use when changing packages\u002Fbifrost\u002Fsrc\u002Fclaude or src\u002Fcli codegen, or when a generated hooks module fails claude plugin validate\u002Ftest for a reason the framework (not the plugin) causes - scanner errors, missing state contract keys, guard hooks, next(e) chaining.","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002Fpackages\u002Fbifrost\u002F.agents\u002Fskills\u002Fbifrost-claude-adapter\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7F85EX7FQXHME8HYVQXFF32","bifrost-agy-adapter","Use when changing packages\u002Fbifrost\u002Fsrc\u002Fagy - the generated Antigravity aux-pane server, page runtime client.js, effects, token and preload contract, HTML renderer or bifrost.css - or when an agy pane misbehaves for every plugin rather than one.","https:\u002F\u002Fgithub.com\u002Fgidragir\u002Fclaude-mods\u002Fblob\u002Fmain\u002Fpackages\u002Fbifrost\u002F.agents\u002Fskills\u002Fbifrost-agy-adapter\u002FSKILL.md",[],[]]