markstream-install
できること
このツールは、Markstreamというコンポーネントをプログラミングのプロジェクトに導入し、設定するのに役立ちます。Markdownのような整形されたテキストを、チャット画面のように動的に表示できるようになります。
使う場面
- ✓リアルタイムで入力されるテキストを表示するチャットを追加するとき。
- ✓Vue、React、Svelte、Angularのプロジェクトに Markstreamを導入するとき。
- ✓テキスト表示の不具合やサーバーとの互換性の問題を解決したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-install/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ReactのプロジェクトにMarkstreamをインストールしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、プロジェクトがどの技術(ReactやVueなど)を使っているかを確認し、適切なバージョンのMarkstreamをインストールします。そのうえで、テキストが一部ずつ届いても正しく表示されるようスタイルを設定します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Markstream Install
Overview
Integrate the correct Markstream streaming Markdown renderer into an existing frontend application. This skill selects the framework package, installs only requested optional peers, preserves safe HTML and Mermaid defaults, and handles CSS, streaming state, and SSR boundaries.
Read references/scenarios.md before selecting packages or optional 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 missing Markstream styles, an incorrect framework package, or an SSR failure;
- replace another Markdown renderer with Markstream;
- choose between static content, built-in smooth streaming, or externally parsed AST input.
How It Works
1. Inspect the host application
Before changing dependencies, inspect:
- the framework and version in
package.json; - the existing package-manager lockfile;
- whether the application uses SSR;
- reset, Tailwind, UnoCSS, or design-system styles;
- required optional features such as highlighted code, Monaco, Mermaid, D2, or KaTeX.
Do not select markstream-vue merely because the source repository has Vue in its name. Choose the framework-specific package from the scenario table.
2. Install the smallest dependency set
Before installing or changing source files, preview the exact dependency and code changes and obtain explicit user approval. Do not switch package managers or replace an existing renderer implicitly.
Install exactly one framework package and preserve the repository's package manager. 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
For Vue 2.6, also install and register @vue/composition-api. Vue 2.7 has a built-in Composition API and must not install that plugin.
3. Wire styles in the correct order
Import application resets before Markstream styles. Import package CSS explicitly instead of relying on component imports to inject it.
For Tailwind or UnoCSS, put the matching package stylesheet in a component layer:
@import 'markstream-vue/index.css' layer(components);
When math rendering is enabled, also import:
@import 'katex/dist/katex.min.css';
Vue CLI 4 and other Webpack 4-based Vue 2 projects do not understand package export maps. Use the published file path in those projects:
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 application to maintain an AST.
Use nodes plus final only when a worker, shared AST store, custom transform, or another application layer already owns parsing.
5. Handle framework boundaries
- In Nuxt, keep browser-only optional peers behind client boundaries.
- In Next.js, use root
markstream-reactinside a'use client'component for live SSE or WebSocket streams. - Use
markstream-react/nextfor SSR-first HTML with hydration andmarkstream-react/serverfor server-only rendering. - Use
markstream-svelteonly with Svelte 5. - Confirm the host meets the current
markstream-angularversion requirement. - In Vue 3, use
mode="chat"for AI chat,mode="docs"for rich documents, andmode="minimal"for lightweight non-chat surfaces.
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:
- the selected package matches the framework;
- only requested optional peers were added;
- styles load after resets;
- SSR pages do not evaluate browser-only peers on the server;
- static content and at least one incremental update render correctly.
Report the selected package, added peers, CSS location, streaming input choice, and validation command.
Examples
Vue 3 streaming chat
<MarkdownRender
mode="chat"
:content="markdown"
…
よくある質問
Markdownとは何ですか?
Markdownは、特別な記号を使ってテキストを整形するシンプルな方法です。たとえば、アスタリスクで囲むと太字になります。ドキュメントやチャットで広く使われています。
「streaming」とはどういう意味ですか?
コンテンツを一度にまとめて表示するのではなく、少しずつ送信して表示することです。動画を見ながら読み込まれていく様子を思い浮かべるとわかりやすいでしょう。
「optional peers」とは何ですか?
Markstreamが使える追加機能のことです。コードのハイライトや図の描画などが含まれます。このツールは、実際に必要なものだけをインストールします。
詳細
作者による元の説明
Install and configure Markstream streaming Markdown renderers for Vue, React, Svelte, Angular, Nuxt, Next.js, and Vue 2 applications.
人気
- GitHubのスター
- 48k
- ランキング
- #5169
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。