[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MFKGTGWD8G6C58Y19E468E":3,"skill-same:01M6MFKGTGWD8G6C58Y19E468E":74},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6MFKGTGWD8G6C58Y19E468E","cometchat-react-v7-patterns",null,"Framework wiring for the React v7 UI Kit across Vite, Create React App, Next.js, React Router (incl. Remix), and Astro — provider placement, env vars, routing, SSR\u002Fislands and build pitfalls. Triggers: 'cometchat with vite', 'cometchat in next.js', 'cometchat in react router', 'cometchat in remix', 'cometchat in astro', 'env vars not working', 'cometchat provider setup', 'SSR window is not defined'.","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-v7-patterns\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"cometchat react v7 patterns","cometchat","react","patterns","create","framework","ui","verified","pitfalls","ssr","next","window","astro","router","across","wiring","kit","remix","create react app","nextjs","app","2026-11-10 10:12:30",false,"---\nname: cometchat-react-v7-patterns\ndescription: \"Framework wiring for the React v7 UI Kit across Vite, Create React App, Next.js, React Router (incl. Remix), and Astro — provider placement, env vars, routing, SSR\u002Fislands and build pitfalls. Triggers: 'cometchat with vite', 'cometchat in next.js', 'cometchat in react router', 'cometchat in remix', 'cometchat in astro', 'env vars not working', 'cometchat provider setup', 'SSR window is not defined'.\"\nlicense: \"MIT\"\ncompatibility: \"React >=18; Vite >=4 \u002F CRA \u002F Next.js >=13 \u002F react-router(-dom) ^6–7 \u002F Astro >=3 (@astrojs\u002Freact); @cometchat\u002Fchat-uikit-react ^7 (7.2.x, verified 7.2.4)\"\nmetadata:\n  author: \"CometChat\"\n  version: \"1.0.0\"\n  tags: \"cometchat react patterns vite nextjs cra react-router remix astro provider env ssr v7\"\n---\n\n> **Ground truth:** `@cometchat\u002Fchat-uikit-react@7`. Framework mechanics (env prefixes, SSR) are baked framework knowledge; kit symbols come from `cometchat-react-v7-core`. Status: **catalog-verified vs installed 7.1.0 (exports-only web-v7.json).**\n\n## Companion skills (read first)\n- `cometchat-react-v7-core` — install, provider, `init→login→render`. This skill ASSUMES it.\n\n## Use this skill when\nWiring the UI Kit into a specific React toolchain, or debugging env\u002Frouting\u002FSSR issues.\n\n## Prerequisites & install\nCovered by core. No new package.\n\n## Framework wiring (BAKED — the delta per toolchain; full recipe = fetch the docs integration page)\n- **Vite:** env in `.env` with `VITE_` prefix; read via `import.meta.env.VITE_COMETCHAT_*`. init\u002Flogin in an app-startup effect; mount `CometChatProvider` above the chat routes. **Brownfield gotcha (AUDIT-037\u002F066):** if the `vite\u002Fclient` types aren't wired, `import.meta.env` is untyped → strict-TS build fails `TS2339: Property 'env' does not exist on ImportMeta`. Scaffolds wire `vite\u002Fclient` differently by Vite version — older ones ship `src\u002Fvite-env.d.ts` (`\u002F\u002F\u002F \u003Creference types=\"vite\u002Fclient\" \u002F>`), newer ones (Vite 8+) put `\"vite\u002Fclient\"` in the `types` array of `tsconfig.app.json`. **Don't assume either is present — CHECK, then ensure `vite\u002Fclient` is referenced:** add `\u002F\u002F\u002F \u003Creference types=\"vite\u002Fclient\" \u002F>` at the top of the env-reading file (self-contained, works regardless of Vite version), or add `\"vite\u002Fclient\"` to `tsconfig.app.json` `compilerOptions.types`, or create `src\u002Fvite-env.d.ts`.\n- **Create React App:** env with `REACT_APP_` prefix; read via `process.env.REACT_APP_*`.\n- **Next.js:** client-only kit — put init\u002Flogin + `CometChatProvider` in a Client Component (`\"use client\"`); env in `.env.local` with `NEXT_PUBLIC_*`. Guard browser-only code so it never runs during SSR (App Router AND Pages Router).\n- **React Router \u002F Remix:** two modes — **v6 library mode** (routing inside a Vite\u002FCRA app, no SSR, `VITE_` env) wires like Vite; **v7 framework mode** (SSR, the Remix successor — a legacy `@remix-run\u002Freact` app maps here) has Next-like SSR concerns → render the chat client-only (client guard \u002F `clientLoader` \u002F a `\u003CClientOnly>`), `VITE_` env. Provider above the routed outlet.\n- **Astro:** the kit is a React **island** — mount it with `client:only=\"react\"` (never SSR it); env with `PUBLIC_` prefix (`import.meta.env.PUBLIC_COMETCHAT_*`). One island owns init\u002Flogin + provider + chat.\n- Keep `CometChatProvider` at a stable ancestor so init\u002Flogin survive navigation (see `-placement`).\n> **Full per-framework recipe:** fetch the docs integration page via `cometchat-react-v7-core\u002Freferences\u002Fdocs-map.md` — `integration-react` · `integration-nextjs` · `integration-react-router` · `integration-astro` (+ the `next-*` \u002F `react-router-*` \u002F `astro-*` layout recipes). Bake only the deltas above; fetch the rest.\n\n## Framework pitfalls (BAKED)\n- **SSR frameworks (Next.js · React Router v7 framework mode · Astro):** `window is not defined` \u002F hydration errors when the kit renders on the server → render the chat **client-only** (`\"use client\"` in Next; `client:only=\"react\"` in Astro; a client guard \u002F `clientLoader` in React Router v7) and defer init to `useEffect`\u002Fthe browser.\n- **Astro:** using `client:load`\u002F`client:visible` (they SSR the component first) instead of `client:only=\"react\"` → server-render crash.\n- Wrong env prefix for the toolchain (Vite\u002FReact-Router `VITE_` · CRA `REACT_APP_` · Next `NEXT_PUBLIC_` · Astro `PUBLIC_`) → values are `undefined` at runtime.\n- Importing UI Kit CSS in multiple entry points (import once at root).\n- Auth key shipped to the client in production — use server-side token exchange (`RULES.md`).\n\n## Common pitfalls (BAKED)\nSee above; also `version_conflict` STOP (v6 installed) per core.\n\n## Verify it works\nThe app builds and chat renders on your framework (Vite \u002F Next \u002F React Router \u002F Astro) with the correct env prefix and SSR guards (`\"use client\"` \u002F `ssr:false` where needed).\n","> **Ground truth:** `@cometchat\u002Fchat-uikit-react@7`. Framework mechanics (env prefixes, SSR) are baked framework knowledge; kit symbols come from `cometchat-react-v7-core`. Status: **catalog-verified vs installed 7.1.0 (exports-only web-v7.json).**\n\n## Companion skills (read first)\n- `cometchat-react-v7-core` — install, provider, `init→login→render`. This skill ASSUMES it.\n\n## Use this skill when\nWiring the UI Kit into a specific React toolchain, or debugging env\u002Frouting\u002FSSR issues.\n\n## Prerequisites & install\nCovered by core. No new package.\n\n## Framework wiring (BAKED — the delta per toolchain; full recipe = fetch the docs integration page)\n- **Vite:** env in `.env` with `VITE_` prefix; read via `import.meta.env.VITE_COMETCHAT_*`. init\u002Flogin in an app-startup effect; mount `CometChatProvider` above the chat routes. **Brownfield gotcha (AUDIT-037\u002F066):** if the `vite\u002Fclient` types aren't wired, `import.meta.env` is untyped → strict-TS build fails `TS2339: Property 'env' does not exist on ImportMeta`. Scaffolds wire `vite\u002Fclient` differently by Vite version — older ones ship `src\u002Fvite-env.d.ts` (`\u002F\u002F\u002F \u003Creference types=\"vite\u002Fclient\" \u002F>`), newer ones (Vite 8+) put `\"vite\u002Fclient\"` in the `types` array of `tsconfig.app.json`. **Don't assume either is present — CHECK, then ensure `vite\u002Fclient` is referenced:** add `\u002F\u002F\u002F \u003Creference types=\"vite\u002Fclient\" \u002F>` at the top of the env-reading file (self-contained, works regardless of Vite version), or add `\"vite\u002Fclient\"` to `tsconfig.app.json` `compilerOptions.types`, or create `src\u002Fvite-env.d.ts`.\n- **Create React App:** env with `REACT_APP_` prefix; read via `process.env.REACT_APP_*`.\n- **Next.js:** client-only kit — put init\u002Flogin + `CometChatProvider` in a Client Component (`\"use client\"`); env in `.env.local` with `NEXT_PUBLIC_*`. Guard browser-only code so it never runs during SSR (App Router AND Pages Router).\n- **React Router \u002F Remix:** two modes — **v6 library mode** (routing inside a Vite\u002FCRA app, no SSR, `VITE_` env) wires like Vite; **v7 framework mode** (SSR, the Remix successor — a legacy `@remix-run\u002Freact` app maps here) has Next-like SSR concerns → render the chat client-only (client guard \u002F `clientLoader` \u002F a `\u003CClientOnly>`), `VITE_` env. Provider above the routed outlet.\n- **Astro:** the kit is a React **island** — mount it with `client:only=\"react\"` (never SSR it); env with `PUBLIC_` prefix (`import.meta.env.PUBLIC_COMETCHAT_*`). One island owns init\u002Flogin + provider + chat.\n- Keep `CometChatProvider` at a stable ancestor so init\u002Flogin survive navigation (see `-placement`).\n> **Full per-framework recipe:** fetch the docs integration page via `cometchat-react-v7-core\u002Freferences\u002Fdocs-map.md` — `integration-react` · `integration-nextjs` · `integration-react-router` · `integration-astro` (+ the `next-*` \u002F `react-router-*` \u002F `astro-*` layout recipes). Bake only the deltas above; fetch the rest.\n\n## Framework pitfalls (BAKED)\n- **SSR frameworks (Next.js · React Router v7 framework mode · Astro):** `window is not defined` \u002F hydration errors when the kit renders on the server → render the chat **client-only** (`\"use client\"` in Next; `client:only=\"react\"` in Astro; a client guard \u002F `clientLoader` in React Router v7) and defer init to `useEffect`\u002Fthe browser.\n- **Astro:** using `client:load`\u002F`client:visible` (they SSR the component first) instead of `client:only=\"react\"` → server-render crash.\n- Wrong env prefix for the toolchain (Vite\u002FReact-Router `VITE_` · CRA `REACT_APP_` · Next `NEXT_PUBLIC_` · Astro `PUBLIC_`) → values are `undefined` at runtime.\n- Importing UI Kit CSS in multiple entry points (import once at root).\n- Auth key shipped to the client in production — use server-side token exchange (`RULES.md`).\n\n## Common pitfalls (BAKED)\nSee above; also `version_conflict` STOP (v6 installed) per core.\n\n## Verify it works\nThe app builds and chat renders on your framework (Vite \u002F Next \u002F React Router \u002F Astro) with the correct env prefix and SSR guards (`\"use client\"` \u002F `ssr:false` where needed).\n",{"name":5,"license":15,"metadata":45,"description":7,"compatibility":49},{"tags":46,"author":47,"version":48},"cometchat react patterns vite nextjs cra react-router remix astro provider env ssr v7","CometChat","1.0.0","React >=18; Vite >=4 \u002F CRA \u002F Next.js >=13 \u002F react-router(-dom) ^6–7 \u002F Astro >=3 (@astrojs\u002Freact); @cometchat\u002Fchat-uikit-react ^7 (7.2.x, verified 7.2.4)","main","cebc3dce495d7eb80d3b1d5841f877a4a92e162d","plugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-v7-patterns",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":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-v7-patterns",{"tool":66,"command":67},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-v7-patterns",{"tool":69,"command":70},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-v7-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-v7-patterns\u002FSKILL.md",true,[],[75,84,92,100,108,116],{"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":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"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":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":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":83},"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":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":83},"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":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":83},"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":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":83},"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":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":83},"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",[],[]]