cometchat-nextjs-patterns
Ground truth:
@cometchat/chat-uikit-react@^6(+@cometchat/calls-sdk-javascript@^5) — installed package types +ui-kit/react. Official docs: https://www.cometchat.com/docs/ui-kit/react/overview · Docs MCP:claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp(or fetch the URL directly without MCP). Verify symbols against the installed package/source before relying on them.
Purpose
This skill teaches Claude how to integrate CometChat into a Next.js project. Next.js is the most complex framework to integrate with because of Server-Side Rendering (SSR) and the Server Component / Client Component boundary. Every CometChat component is browser-only -- getting this wrong is the #1 source of integration failures.
Read these companion skills first:
cometchat-core-- initialization, login, CSS, provider pattern, anti-patternscometchat-components-- component catalog and composition patternscometchat-placement-- WHERE to put chat (route, modal, drawer, embedded)
This skill covers the HOW for Next.js specifically.
1. Project detection
A project uses Next.js when package.json has next as a dependency.