Markstream React
Use this skill when the host app is React or Next and the task is to wire Markstream safely.
Workflow
- Confirm the repo is React, Next, or another React-based host.
- Install
markstream-reactplus only the requested optional peers. - Import
markstream-react/index.cssfrom the app shell or client entry. - Start with
content.
- Move to nodes plus final only when the UI receives streaming or high-frequency updates.
- Respect SSR boundaries in Next.
- Prefer use client, dynamic imports with ssr: false, or other client-only boundaries when browser-only peers are involved.
- Use scoped Markstream overrides before custom parser work.
- Validate with the smallest useful dev, build, or typecheck command.
Default Decisions
- Renderer wiring first, migration cleanup second.
- If the repo already uses
react-markdown, pair this skill withmarkstream-migration. - Prefer the smallest client-only boundary that solves the SSR issue.
Useful Doc Targets
docs/guide/react-quick-start.mddocs/guide/react-installation.mddocs/guide/react-markdown-migration.mddocs/guide/component-overrides.md