Generated banner for Markstream Install
Generated logo for Markstream Install

Markstream Install

GitHubOfficialFirst committed by Simon-He95Distributed by GitHub

  • Skill
  • Workflow
  • Software development
  • MIT
  • No issues found

From the author

Install and configure Markstream streaming Markdown renderers for Vue, React, Svelte, Angular, Nuxt, and Vue 2 applications. Use for package selection, minimal peer dependencies, CSS order, SSR boundaries, streaming mode, and renderer setup.
— the description by Simon-He95

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured workflow for integrating Markstream into Vue, React, Svelte, Angular, and Nuxt applications. It covers package selection based on framework versions, minimal peer dependency management, correct CSS ordering for style resets, and configuring streaming renderers for AI chat or document interfaces. The guide emphasizes maintaining safe security defaults and optimizing performance by choosing the appropriate rendering mode (content vs. nodes) and pacing settings.

What it does

  • Identifies the correct Markstream package for specific framework versions.
  • Guides the installation of minimal peer dependencies for features like code highlighting or math.
  • Provides instructions for correct CSS layer ordering to ensure style compatibility.
  • Configures renderer modes for smooth streaming in AI chat interfaces.
  • Offers framework-specific advice for SSR boundaries in Nuxt and Next.js.
  • Validates the installation through build and rendering checks.

When to use it

  • When adding streaming Markdown rendering to an AI chat or document interface.
  • When installing Markstream in Vue, Nuxt, React, Next.js, Svelte, or Angular.
  • When troubleshooting broken installations, missing styles, or SSR failures.
  • When replacing an existing Markdown renderer with Markstream.
  • When deciding between static, smooth-streaming, or externally parsed AST input.

Advantages

  • Prevents dependency bloat by recommending only necessary optional peers.
  • Ensures consistent rendering behavior across different frontend frameworks.
  • Provides clear patterns for handling streaming content pacing and typewriter effects.
  • Maintains security by enforcing safe HTML and strict Mermaid defaults.
  • Addresses framework-specific nuances like SSR hydration and CSS export maps.

Usage examples

“How do I install Markstream for a Vue 3 project?”
The agent will guide you to install markstream-vue, import the package CSS after your reset styles, and use the MarkdownRender component with mode='chat' for your AI interface.
“My Next.js app has issues with Markstream SSR.”
The agent will advise using markstream-react/next for SSR-first HTML or markstream-react/server for server-only rendering, ensuring browser-only peers are handled correctly.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/github/markstream-install/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip markstream-install.zip -d .agents/skills

Documentation by Simon-He95

Markstream Install

Integrate the appropriate Markstream package into an existing application without installing unnecessary optional dependencies or weakening its security defaults.

Read references/scenarios.md before choosing packages or peers.

When to Use

Use this skill when the user asks to:

  • add streaming Markdown rendering to an AI chat or document interface;

  • install Markstream in Vue, Nuxt, React, Next.js, Svelte, Angular, or Vue 2;

  • repair a broken Markstream installation, missing styles, or SSR failure;

  • replace another Markdown renderer with Markstream;

  • choose between static, smooth-streaming, and externally parsed AST input.

Workflow

1. Inspect the host application

Before changing dependencies, inspect:

  • the framework and version in package.json;

  • the package manager lockfile;

  • whether the application uses SSR;

  • reset, Tailwind, UnoCSS, or design-system styles;

  • required optional features: code highlighting, enhanced File/Diff surfaces, Monaco, Mermaid, D2, infographic blocks, or KaTeX.

Do not assume the Vue package is correct merely because the source repository is named markstream-vue. Select the framework-specific package from the scenario table.

2. Install the smallest dependency set

Install exactly one framework package. Add optional peers only when the requested UI uses their feature.

Examples:

npm install markstream-vue
npm install markstream-react
npm install markstream-svelte
npm install markstream-angular
npm install markstream-vue2

Preserve the repository's existing package manager. Do not install every optional peer preemptively.

3. Wire styles in the correct order

Import application resets before Markstream styles. Import package CSS explicitly; do not rely on component imports to inject it.

For Tailwind or UnoCSS, use the relevant package subpath in a component layer:

@import 'markstream-vue/index.css' layer(components);

Use the matching package name for React, Svelte, Angular, or Vue 2. If math rendering is enabled, also import:

@import 'katex/dist/katex.min.css';

Vue CLI 4 and other Webpack 4-based Vue 2 applications cannot resolve package export maps. In those projects, import the published file directly:

import 'markstream-vue2/dist/index.css'
4. Add the smallest working renderer

Prefer content for static documents and most streaming chat interfaces. Markstream's built-in smooth streaming can pace irregular token delivery without requiring the host to maintain an AST.

For Vue 3 chat surfaces, start with:

<MarkdownRender
  mode="chat"
  :content="markdown"
  :final="false"
  smooth-streaming="auto"
  :fade="false"
  typewriter
/>

For completed chat history, keep the same renderer mode and switch pacing off:

<MarkdownRender
  mode="chat"
  :content="markdown"
  :final="true"
  :smooth-streaming="false"
  :fade="true"
  :typewriter="false"
/>

In React, Svelte, and Angular, use the equivalent camelCase or framework binding syntax. Keep smoothStreaming="auto", fade=false, and typewriter=true while streaming; use smoothStreaming=false and typewriter=false for completed history.

Use nodes plus final only when a worker, shared AST store, custom transform, or another application layer already owns parsing.

5. Handle framework-specific boundaries
  • In Nuxt, keep browser-only optional peers behind client boundaries.

  • In Next.js, use the root markstream-react entry inside a 'use client' component for live SSE or WebSocket streams. Use markstream-react/next for SSR-first HTML with hydration, or markstream-react/server for server-only rendering.

  • Use markstream-svelte only with Svelte 5.

  • Confirm the Angular application meets the current markstream-angular version requirement.

  • In Vue 3, use mode="chat" for AI chat, mode="docs" for rich documents, and mode="minimal" for lightweight non-chat surfaces.

  • For long Vue 3 conversations or an existing message virtualizer, consult the Markstream performance guide before adding a second virtualizer.

6. Preserve safe defaults

HTML policy defaults to safe, and Mermaid uses strict mode. Do not broaden either setting unless the user explicitly identifies a trusted legacy surface that requires it. Scope any exception to that surface.

7. Validate

Run the smallest relevant build, typecheck, or test command. Confirm:

  1. the selected package matches the framework;

  2. only requested optional peers were added;

  3. styles load after resets;

  4. SSR pages do not evaluate browser-only peers on the server;

  5. static content and at least one incremental update render correctly.

Report the selected package, added peers, CSS location, streaming input choice, and validation command.

Official References

Files

Requirements and compatibility

Written for: GitHub Copilot

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Node.js

The author says: JavaScript or TypeScript frontend project using Vue 3, Nuxt 3/4, Vue 2.6/2.7, React 18+, Next.js, Angular 20+, or Svelte 5.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

First committed by
GitHub avatar of Simon-He95Simon-He95
Publisher
GitHub (Official)
Distributed by
GitHub
Source
github/awesome-copilot · skills/markstream-install · commit 797337f
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Contributors
Simon-He95

AutoGineer is not affiliated with or endorsed by Simon-He95 or GitHub.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download markstream-install.zip