[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MFHPCGKWG86HHYXY5W8XP1":3,"skill-same:01M6MFHPCGKWG86HHYXY5W8XP1":82},{"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":26,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6MFHPCGKWG86HHYXY5W8XP1","cometchat-react-native-testing",null,"Test a CometChat React Native integration — mock the SDK for Jest unit tests, assert init-before-render ordering and no-Auth-Key-in-source, and use Detox for the flows only a device can prove. Triggers: test CometChat React Native, mock CometChat SDK jest, detox CometChat, unit test chat screen RN, CI tests for chat.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-native-testing\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"react","cometchat","cometchat react native testing","native","react native testing","react native","testing","ci","only","react-native","jest","screen","unit","library","init","render","flows","for","source","unit test","auth","2026-11-10 10:12:30",false,"---\nname: cometchat-react-native-testing\ndescription: \"Test a CometChat React Native integration — mock the SDK for Jest unit tests, assert init-before-render ordering and no-Auth-Key-in-source, and use Detox for the flows only a device can prove. Triggers: test CometChat React Native, mock CometChat SDK jest, detox CometChat, unit test chat screen RN, CI tests for chat.\"\nlicense: \"MIT\"\ncompatibility: \"React Native >=0.77; Jest; @testing-library\u002Freact-native; Detox (e2e)\"\nmetadata:\n  author: \"CometChat\"\n  version: \"1.0.0\"\n  tags: \"chat cometchat react-native testing jest detox mocking ci\"\n---\n\n> **Ground truth:** `catalogs\u002Frn-v5.json` + `catalogs\u002Frn-sdk-v4.json`.\n> **Build the feature; do NOT test it unless asked.** Use this skill only when the developer asks for\n> tests. Never add a test framework, e2e suite or CI to a project that did not request one.\n\n## Companion skills (read first)\n- `cometchat-react-native-core` — install, provider chain, init→login→render. Assumed, not repeated here.\n\n## Use this skill when\n- \"write tests for the chat screen\" · \"mock CometChat in Jest\" · \"add Detox coverage for chat\"\n\n## Prerequisites & install\nReact Native ships Jest. Add the renderer:\n\n```bash\nnpm install --save-dev @testing-library\u002Freact-native\n```\n\n## Mock the SDK — never let a unit test hit the network\nCometChat opens a websocket and needs real credentials. Mock at the module boundary:\n\n```js\njest.mock(\"@cometchat\u002Fchat-sdk-react-native\", () => ({\n  CometChat: {\n    init: jest.fn().mockResolvedValue(true),\n    login: jest.fn().mockResolvedValue({ getUid: () => \"test-uid\" }),\n    logout: jest.fn().mockResolvedValue(true),\n    AppSettings: { SUBSCRIPTION_TYPE_ALL_USERS: \"ALL_USERS\" },\n  },\n}));\n```\n\nThe UI Kit also pulls native modules, so mock the peers your test path touches —\n`react-native-gesture-handler`, `react-native-svg`, `react-native-video`,\n`@react-native-async-storage\u002Fasync-storage`. Without them the failure is a NativeModule error that\nnever mentions CometChat: the same confusing shape as a missing install.\n\n## What is worth asserting\n\n**Ordering** — the invariant most likely to regress: `init` resolves before `login`, and no chat\ncomponent renders until login resolves.\n\n**No Auth Key in source** — a cheap grep test that stops a shipped secret ever landing:\n\n```js\nit(\"has no auth key in source\", () => {\n  const src = require(\"fs\").readFileSync(\"src\u002Fconfig.ts\", \"utf8\");\n  expect(src).not.toMatch(\u002FauthKey\\s*:\\s*[\"'][A-Za-z0-9]{20,}\u002F);\n});\n```\n\n**Wiring, not rendering** — that `onItemPress` navigates, that `onBack` returns, that an opened\nsurface can be closed. Unwired affordances are the defect class worth catching.\n\nDo **not** assert on kit internals — bubble markup, class names, child order. Those change between\nminors, so the test breaks with nothing actually wrong.\n\n## Detox for what only a device proves\n\n| Flow | Why it cannot be a unit test |\n|---|---|\n| composer survives the keyboard | needs a real soft keyboard |\n| hardware back navigates | needs the OS back gesture |\n| gestures respond | proves `GestureHandlerRootView` is wired |\n| release-build startup | catches the gesture-handler import-order crash |\n\n**Calls and push are outside Detox too** — they need real hardware, real permissions and a second\ndevice. Record them as manual device checks rather than pretending they are automated.\n\n## CI\nJest with mocks runs anywhere. Detox needs a simulator — heavier, but feasible. Neither can verify\ncalls or push, so a green CI run is not evidence that either works.\n\n## Common pitfalls\n1. **Unmocked native peers** — confusing NativeModule errors.\n2. **Asserting kit internals** — breaks on minor upgrades.\n3. **Real credentials in tests** — network flakes and leaked keys.\n4. **Claiming push\u002Fcalls coverage** from a simulator run.\n5. **Adding tests nobody asked for.**\n\n## Verify it works\n- Tests pass with no network access.\n- No real credentials anywhere in the test tree.\n- `npm run verify:fences:rn-v5` is green.\n","> **Ground truth:** `catalogs\u002Frn-v5.json` + `catalogs\u002Frn-sdk-v4.json`.\n> **Build the feature; do NOT test it unless asked.** Use this skill only when the developer asks for\n> tests. Never add a test framework, e2e suite or CI to a project that did not request one.\n\n## Companion skills (read first)\n- `cometchat-react-native-core` — install, provider chain, init→login→render. Assumed, not repeated here.\n\n## Use this skill when\n- \"write tests for the chat screen\" · \"mock CometChat in Jest\" · \"add Detox coverage for chat\"\n\n## Prerequisites & install\nReact Native ships Jest. Add the renderer:\n\n```bash\nnpm install --save-dev @testing-library\u002Freact-native\n```\n\n## Mock the SDK — never let a unit test hit the network\nCometChat opens a websocket and needs real credentials. Mock at the module boundary:\n\n```js\njest.mock(\"@cometchat\u002Fchat-sdk-react-native\", () => ({\n  CometChat: {\n    init: jest.fn().mockResolvedValue(true),\n    login: jest.fn().mockResolvedValue({ getUid: () => \"test-uid\" }),\n    logout: jest.fn().mockResolvedValue(true),\n    AppSettings: { SUBSCRIPTION_TYPE_ALL_USERS: \"ALL_USERS\" },\n  },\n}));\n```\n\nThe UI Kit also pulls native modules, so mock the peers your test path touches —\n`react-native-gesture-handler`, `react-native-svg`, `react-native-video`,\n`@react-native-async-storage\u002Fasync-storage`. Without them the failure is a NativeModule error that\nnever mentions CometChat: the same confusing shape as a missing install.\n\n## What is worth asserting\n\n**Ordering** — the invariant most likely to regress: `init` resolves before `login`, and no chat\ncomponent renders until login resolves.\n\n**No Auth Key in source** — a cheap grep test that stops a shipped secret ever landing:\n\n```js\nit(\"has no auth key in source\", () => {\n  const src = require(\"fs\").readFileSync(\"src\u002Fconfig.ts\", \"utf8\");\n  expect(src).not.toMatch(\u002FauthKey\\s*:\\s*[\"'][A-Za-z0-9]{20,}\u002F);\n});\n```\n\n**Wiring, not rendering** — that `onItemPress` navigates, that `onBack` returns, that an opened\nsurface can be closed. Unwired affordances are the defect class worth catching.\n\nDo **not** assert on kit internals — bubble markup, class names, child order. Those change between\nminors, so the test breaks with nothing actually wrong.\n\n## Detox for what only a device proves\n\n| Flow | Why it cannot be a unit test |\n|---|---|\n| composer survives the keyboard | needs a real soft keyboard |\n| hardware back navigates | needs the OS back gesture |\n| gestures respond | proves `GestureHandlerRootView` is wired |\n| release-build startup | catches the gesture-handler import-order crash |\n\n**Calls and push are outside Detox too** — they need real hardware, real permissions and a second\ndevice. Record them as manual device checks rather than pretending they are automated.\n\n## CI\nJest with mocks runs anywhere. Detox needs a simulator — heavier, but feasible. Neither can verify\ncalls or push, so a green CI run is not evidence that either works.\n\n## Common pitfalls\n1. **Unmocked native peers** — confusing NativeModule errors.\n2. **Asserting kit internals** — breaks on minor upgrades.\n3. **Real credentials in tests** — network flakes and leaked keys.\n4. **Claiming push\u002Fcalls coverage** from a simulator run.\n5. **Adding tests nobody asked for.**\n\n## Verify it works\n- Tests pass with no network access.\n- No real credentials anywhere in the test tree.\n- `npm run verify:fences:rn-v5` is green.\n",{"name":5,"license":15,"metadata":53,"description":7,"compatibility":57},{"tags":54,"author":55,"version":56},"chat cometchat react-native testing jest detox mocking ci","CometChat","1.0.0","React Native >=0.77; Jest; @testing-library\u002Freact-native; Detox (e2e)","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-native-testing",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-native-testing",{"tool":74,"command":75},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-native-testing",{"tool":77,"command":78},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-native-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-native-testing\u002FSKILL.md",true,[],[83,92,100,108,116,124],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":91},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":91},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":91},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"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":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":91},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":91},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]