markstream-install — скилл для GitHub Copilot: установка
Скилл помогает подключить стриминговый рендерер Markstream в веб-приложения на React, Vue, Svelte или Angular. Он настраивает стили, SSR-границы и режимы плавного вывода Markdown в чатах.
npx skills add github/awesome-copilot --skill markstream-installЧто делает markstream-install
Скилл анализирует package.json и lockfile проекта, чтобы выбрать точный пакет: markstream-vue, markstream-react, markstream-svelte, markstream-angular или markstream-vue2. Лишние библиотеки не ставятся. Дополнительные модули вроде Monaco или KaTeX подключаются только при явной необходимости в интерфейсе.
Импорт стилей агент прописывает строго после сбросов CSS. Для Tailwind или UnoCSS стили оборачиваются в layer(components), а для старых сборок на Webpack 4 используется прямой путь к файлу в dist. При работе с SSR агент изолирует браузерный код в Nuxt и назначает точки входа 'use client' или markstream-react/server в Next.js. Для чатов включается режим smooth-streaming="auto" с эффектом пишущей машинки.
Ставить этот скилл стоит при внедрении потокового AI-чата в готовый фронтенд. Если в проекте уже есть работающий парсер Markdown без проблем с гидратацией, можно обойтись без него.
Какие задачи решает
- выбрать подходящий пакет Markstream под используемый фреймворк
- настроить плавный стриминг Markdown для сообщений AI-чата
- исправить порядок подключения CSS для Tailwind и KaTeX
- разграничить серверный и клиентский рендеринг в Next.js или Nuxt
Примеры запросов агенту
- Установи Markstream для чата в моем проекте на Next.js
- Настрой плавный стриминг Markdown в компоненте Vue 3
- Почини ошибки SSR и стилей после установки markstream-react
Как установить markstream-install
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill markstream-install2GitHub CLI
gh skill install github/awesome-copilot markstream-install3Вручную: положить файлы
.github/skills/markstream-install/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill markstream-install -a claude-code2Вручную: положить файлы
~/.claude/skills/markstream-install/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/markstream-install/
Вручную: положить файлы
.agents/skills/markstream-install/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/markstream-install/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/markstream-installВручную: положить файлы
.devin/skills/markstream-install/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора554
Весь набор →Похожие
Вопросы о markstream-install
Как установить markstream-install в GitHub Copilot?
Выполните команду npx skills add github/awesome-copilot --skill markstream-install или добавьте файл конфигурации по пути .github/skills/markstream-install/SKILL.md.
Что делает скилл markstream-install?
Он определяет стек фронтенда, ставит минимальный пакет Markstream без избыточных зависимостей, настраивает параметры стриминга и упорядочивает импорт CSS.
С какими фреймворками работает markstream-install?
Скилл поддерживает Vue 3, Nuxt 3/4, Vue 2.6/2.7, React 18+, Next.js, Angular 20+ и Svelte 5.
Исходный текст
SKILL.md · MIT
--- name: markstream-install description: '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.' license: MIT compatibility: '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.' metadata: source: https://github.com/Simon-He95/markstream-vue documentation: https://markstream.simonhe.me/ --- # Markstream Install Integrate the appropriate [Markstream](https://github.com/Simon-He95/markstream-vue) package into an existing application without installing unnecessary optional dependencies or weakening its security defaults. Read [references/scenarios.md](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: ```bash 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: ```css @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: ```css @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: ```ts 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: ```vue <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: ```vue <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 - [Installation](https://markstream.simonhe.me/guide/installation) - [AI chat and streaming](https://markstream.simonhe.me/guide/ai-chat-streaming) - [Performance](https://markstream.simonhe.me/guide/performance) - [Troubleshooting](https://markstream.simonhe.me/guide/troubleshooting) - [Component overrides](https://markstream.simonhe.me/guide/component-overrides)
© github · MIT · github/awesome-copilot