/getstream:stream-reactfrom Stream
Builds, integrates, audits, or upgrades Stream Chat, Video, Feeds, and Moderation in React/Next.js web apps. Covers team messaging, DMs, video conferencing, livestreaming, social feeds, AI assistants, LLM chat, and Stream Agents.
Ships in Stream. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Don't write Stream SDK code from memory. APIs change between majors, so your
memory is stale. Read the docs first, via the getstream docs command:
cat $(getstream docs chat-sdk/react)/INDEX.md
Client and UI: chat-sdk/react, video/react, activity-feeds/react. Node.js backend (e.g. Next.js routes): chat/node, activity-feeds/node, moderation/node. Stream Agents (sessions, voice, tools): agents. Previous majors are available too (chat-sdk/react/v).
Chat SDK majors can differ deeply (state, layout, configuration). Before any Chat code, pin the installed major, read only that major's docs (never the unversioned id on trust), and treat SDK names in this skill and in your memory as leads to confirm there - follow chat-versions.md.
Start with getstream init (binds the working dir to a Stream app, existing or
new) and getstream env (credentials).
For new apps, Next.js + Tailwind + shadcn with the default theme is a good
choice unless the user says otherwise. Latest shadcn uses Base UI, not Radix: no
asChild, and don't wrap trigger components in <Button>.
Install the SDKs:
stream-chat stream-chat-react (see chat-versions.md for which major)@stream-io/video-react-sdk@stream-io/feeds-react-sdk@stream-io/stream-agents, plus the Chat and Video packages above
for its UI (stream-agents.md)@stream-io/node-sdkDon't bump an already-installed Stream major.
Writes through getstream api (product configuration: channel types, feed
groups, moderation policies, and the Video label below) are app-wide. Before the
first one, run getstream status and tell the user which app it will change, so
a stale CLI binding doesn't write to the wrong (possibly production) app. Ask
before each app-wide write, and run it only once the user agrees.
For Video apps, offer to label the use case once (metadata, no runtime effect), and set it once the user agrees:
getstream api UpdateApp --request '{"video_primary_use_case":"livestreaming"}'
Allowed values: video-calling, voice-calling, livestreaming,
audio-rooms, ai-agents, live-shopping, other. Derive it from what the
app is, not from the call type in use (Whatnot runs on the livestream call
type but is live-shopping). Any commerce signal means live-shopping. Unsure
means other.
Product configuration (channel types, feed groups, moderation policies) goes
through getstream api, with the user's go-ahead as above.
Tokens are minted server-side: a route (e.g. /api/token) uses the secret and
returns the token with the apiKey. The secret never reaches the client. An app
that already has auth or a token endpoint gets it extended, not a second one.
Start with a login screen. Don't auto-connect, don't hardcode user credentials, don't seed demo users or content on app load. The token route upserts only the requesting user. Keep credentials in React state, not localStorage, so two tabs can be two users.
Clients mount once, at the app shell. Don't disconnectUser() in a screen's
cleanup - it kills the client every other screen shares. Per-screen cleanup is
channel.stopWatching() or call.leave().
Be careful with client initialization within React Strict Mode. Instead of using an effect, use specialized hooks:
useCreateChatClient()useCreateFeedsClient()StreamVideoClient in a useEffect with disconnectUser()
cleanup; the constructor is synchronous, no timer or mounted flag needed.
Define the tokenProvider inside that effect - an inline provider in the
dependency array is a new identity every render and recreates the client.
Never use a useRef flag as a run-once guard in an effect with cleanup: the
ref survives the remount, so the second mount skips setup entirely.Start with prebuilt Stream SDK components. Customize them via documented props and hooks. Feeds has no prebuilt UI - build from its hooks.
Land on a channel list, lobby, or feed by default - never directly in a call or a camera prompt. Camera/mic permission is requested only on an explicit action (Join, Go Live), behind a preview. Empty states say what to do next.
Chat:
[A-Za-z0-9_.-]; emoji are rejected
server-side) and must be registered in reactionOptions - unregistered types
silently don't render. Fallback: render pills from message.reaction_groups.channel.data?.own_capabilities (a server-side query lists all capabilities,
so it's useless here). useCanCreatePoll() is poll-form validity, not
permission - don't gate menu visibility on it.Feeds:
client.follow(), so the feed hooks update. Follow your own user feed too, or
your own posts never appear in your timeline.Video:
Moderation:
CreateBlockList 400s if the list already exists - check ListBlockLists
first. Fill blocklists with real words, not badword1 placeholders.The prebuilt components ship features users expect. Keep each one on unless the user turns it off by name. A design reference that doesn't show a feature, or "keep it minimal", is not turning it off: keep the feature and style it to match, or ask.
Override the smallest slot that does the job, and add to existing
WithComponents overrides instead of replacing them. Replacing a whole region
drops everything it rendered by default:
MessageUI / VirtualMessage (Message before v15) must put back
what the default renders: text, attachments, quoted message, polls, reactions,
replies count, actions, timestamp, read status. The full composition is in the docs.MessageComposerUI must put back the attachment picker and
previews, drag-and-drop upload, link previews, the quoted-message preview,
voice recording, and the send button - see the docs.The defaults, and what usually turns them off:
renderText renders markdown,
mentions, and emoji. Printing message.text as a plain string, or a custom
renderText that doesn't build on the SDK's, turns it off. Check: send
**bold**, a list, and a code block.MessageReactions, or custom reaction
types missing from reactionOptions. Check: react, and see the pill.<Thread />, or a custom message without the
replies count button. Check: reply in a thread, and open it from the parent.isMessageAIGenerated on <Chat>
(typewriter and markdown), the stop button (replacing the composer drops it),
and AIStateIndicator inside <Channel>. Check: as in ai-integration.md.Type-check and build, run the dev server, and test multi-user flows in two tabs as two different users through browser integration or automation. Run the check for each default in Defaults to keep. Report what was verified and what wasn't, and list each default that is off with the user's words that turned it off.
When asked, perform a read-only audit: check the code against the docs, report findings, and fix only if asked. For a pre-launch review, or for an app that livestreams or is built on two-person calls, follow the stream skill's integration-review.md together with integration-review.md, which has the React checks for Video, livestreams, and two-person calls.
When asked, read the upgrade notes for both the installed and the target major (use the versioned docs: chat-sdk/react/v), apply them, then verify as if you're building an app. For Chat, follow the AI migration guide for the exact pair of majors (chat-versions.md), one major per pass.
When the request carries a target appearance - a screenshot, a Figma frame, "make it look like WhatsApp" - follow design-matching.md.
A named app without a reference ("a Slack-like team chat", "a WhatsApp-style DM app") is guidance on structure - the shape, built from prebuilt components - not a look to match. Only explicit design reference warrants design-matching.md.
For the code migration, follow sendbird-migration.md. When the user also wants their existing data moved (users, channels, message history), follow the stream skill's sendbird-data-migration.md.
The model runs on a backend agent, never in the browser: no LLM provider key or Stream secret in the client bundle. There are two kinds of backend; pick by what the user names:
getstream agents, an
agents/<name>/ folder, @stream-io/stream-agents). Any voice agent is this kind. Follow
stream-agents.md.@stream-io/chat-ai-sdk,
LangChain, a webhook turn):
If the request fits both and the user hasn't said, ask which backend they want. An agent that answers with UI (generative UI: A2UI, OpenUI, cards or forms in a reply) works with either backend: add ai-integration.md's "Generative UI" section.
This skill covers Stream. For general React and Next.js work, use these skills if they're installed:
For Next.js APIs, read the docs that ship with the installed version in
node_modules/next/dist/docs/ (next dev on 16.3+ also writes an AGENTS.md
pointing there), not memory.
Where general advice conflicts with this skill, this skill wins for Stream code:
'use client' modules. Keep pages
and layouts as server components where you can, and put the Stream subtree in
a client component.WithComponents,
props, hooks), not by rebuilding it as your own compound components.
Defaults to keep applies.If these skills aren't installed, carry on without them. Don't install skills yourself; mention them once in the final summary:
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices --skill vercel-composition-patterns
ai-integration.md (opens in a new tab)ai-support-agent.md (opens in a new tab)chat-versions.md (opens in a new tab)design-matching.md (opens in a new tab)integration-review.md (opens in a new tab)sendbird-mapping.md (opens in a new tab)sendbird-migration.md (opens in a new tab)stream-agents.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub getstream/agent-skills --plugin getstream12 skills in this plugin
/streamStream overview, CLI, and router for Chat, Video, Feeds, Moderation, and Agents. Use for any Stream task: building or integrating Stream into web, iOS, Android, React Native, Flutter, Unity, or Unreal apps, building voice or text AI agents with Stream Agents, querying Stream data, running getstream CLI commands, looking up Stream SDK docs, migrating (from Sendbird, or Feeds v2 to v3), or security-auditing an SDK or library. Routes to the right skill./stream-androidBuild, integrate, and review Stream Chat, Video, and Feeds in Android apps. Use for Jetpack Compose, Android Studio, and Gradle project work - including Stream package setup, auth and token wiring, screen blueprints, read-only integration reviews before going live, AI assistants, voice agents and LLM chat (ChatGPT-style apps, streaming replies, thinking indicators, stop generating, tool calls, generative UI) with stream-chat-android-ai-compose and Stream Agents, and any follow-up Stream UI work such as adding screens, navigating between channel list and channel/message screens, channel tap handling, deep links, push routing, theming, custom channel/message UI, video calling flows (joining/starting calls, ringing, custom call controls and participant tiles), and Feeds surfaces (timeline, activity composer, threaded comments, follow graph / profile, notification feed, stories)./stream-builderCompatibility entrypoint for requests naming stream-builder. Routes app work to the appropriate platform skill./stream-docsCompatibility entrypoint for requests naming stream-docs. Uses getstream docs for SDK documentation lookups./stream-feeds-migrationGenerate the v2 -> v3 sync mapping for a Stream Activity Feeds app by sampling its live v2 activities and reactions and, when the app's v2 integration code is available, reading its write paths, and, from that code, plan how the app's code moves from v2 to v3. Use when setting up a Feeds v2 to v3 migration, when asked to build, review, or debug a v3 sync mapping, when someone asks 'what mapping do we need for our app?', when asked how to port an app's v2 Feeds code to v3, or when a migrated activity lands in v3 with missing text, missing attachments, comments that are not comments, or bookmarks that went missing. Triggers on v3sync, v2 to v3, feeds migration, activity feeds migration, sync mapping, extra_context, reaction kinds, comments and bookmarks mapping, porting plan. The same mapping drives both the live syncer and the bulk exporter./stream-flutterBuild, integrate, review, migrate to, and answer how-to questions for Stream Chat, Video, and Feeds in Flutter / Dart apps. Supports stream_chat_flutter (pre-built Chat UI), stream_chat_flutter_core (custom Chat UI), stream_video_flutter (calls, ringing, audio rooms, livestreaming), and stream_feeds (Activity Feeds v3, no pre-built UI). Routes each request to the exact official Flutter docs page, fetches it live, and applies it - with a curated setup flow, a push / ringing runbook, design-matching and custom-UI runbooks, a Sendbird -> Stream Chat migration runbook, a read-only integration review before going live (including livestream launches), an AI integration runbook (ChatGPT-style apps, LLM bots in chat, streaming responses, thinking indicators, reasoning and tool-call steps, tool approvals, device-side tools, generative UI with A2UI, voice agents and their transcripts, apps built on Stream Agents, with stream_chat_flutter_ai), and Flutter-specific pitfalls.Other plugins' skills for the same job