New to Claude Skills? Learn how to install them →

github on GitHub

Markstream Install

OfficialFree

Seamlessly integrate Markstream for Markdown rendering.

by github37.7k stars on github/awesome-copilot
3 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Markstream Install does

Markstream Install is a skill designed for developers looking to integrate streaming Markdown rendering into their applications using Vue, React, Svelte, Angular, Nuxt, or Vue 2. This skill simplifies the installation and configuration process by ensuring that only the necessary dependencies are added, thereby maintaining the security and performance of your application. By following the structured workflow provided, developers can avoid common pitfalls such as installing unnecessary optional dependencies or misconfiguring styles.

The skill begins with an inspection of the host application to determine the framework in use and any specific requirements related to server-side rendering (SSR) or optional features. This careful evaluation ensures that the correct Markstream package is selected from the available options, allowing for a tailored integration that meets the application's needs. The workflow emphasizes the importance of importing styles in the correct order and setting up the smallest working renderer, which is crucial for performance and user experience.

This tool is particularly useful when developers need to add Markdown rendering to chat interfaces or document displays, repair existing installations, or switch from another Markdown renderer to Markstream. The skill provides clear instructions on how to manage dependencies and styles, ensuring that the integration is both efficient and effective. By following the outlined steps, users can validate their installation and confirm that all components are functioning as expected, leading to a smoother development process.

Markstream Install is ideal for developers who value precision and efficiency in their workflow. It is especially beneficial for those working on projects that require dynamic content rendering, such as AI chat applications or documentation sites, where Markdown is a primary format for content delivery.

When to use it

Use this skill when you need to add or repair Markstream Markdown rendering in various frontend frameworks.

When not to use it

This skill may not be suitable for projects that do not require Markdown rendering or for those already using a different renderer without issues.

What you can build with it

Integrate Markdown in AI Chat

Use Markstream Install to add streaming Markdown rendering to an AI chat interface, enhancing the user experience.

Repair Existing Markstream Setup

If your current Markstream installation is broken or missing styles, this skill provides the necessary steps to fix it.

Switch from Another Renderer

Easily replace an existing Markdown renderer with Markstream using this skill, ensuring a smooth transition.

How to install Markstream Install

View source

1. Install with the skills CLI

npx skills add github/awesome-copilot/markstream-install --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by github

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

Frequently asked questions about Markstream Install

Similar skills