Markstream Install
Use this skill when the task is "add markstream to an app" or "fix a broken markstream install".
Read references/scenarios.md before making dependency choices.
Workflow
- Detect the target framework and CSS stack.
- Check
package.json, app entry files, Tailwind or UnoCSS config, and whether the repo is SSR or streaming-focused. - Choose the package that matches the host app:
markstream-vue,markstream-vue2,markstream-react, ormarkstream-angular.
- Check
- Install the smallest peer set that matches the requested features.
- Add peers only for features the user actually needs: Monaco, Mermaid, D2, KaTeX, or Shiki.
- Do not install every optional peer by default.
- Fix CSS order.
- Put reset styles before Markstream styles.
- In Tailwind or UnoCSS projects, place
markstream-*/index.cssinside@layer components. - Import
katex/dist/katex.min.csswhen math is enabled.
- Add the smallest working render example.
- Use
contentfor static or low-frequency rendering. - Use
nodesplusfinalwhen the app receives streaming updates.
- Use
- Keep customization scoped.
- If the task requires overrides, prefer
customId/custom-idplus scopedsetCustomComponents(...).
- If the task requires overrides, prefer
- Validate.
- Run the smallest relevant build, typecheck, test, or docs build command.
- Report which peers were installed, where CSS lives, and whether the repo should later adopt
nodes.
Default Decisions
- Prefer the minimal peer set over "install everything".
- Prefer
contentunless the app is clearly SSE, chat, token-streaming, or worker-preparsed. - Treat CSS order as a first-class part of installation, not a later cleanup.
- When the request includes SSR, explicitly gate browser-only peers behind client-only boundaries.
Useful Doc Targets
docs/guide/installation.mddocs/guide/usage.mddocs/guide/troubleshooting.mddocs/guide/component-overrides.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.