本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)48k · #5176

markstream-vue2-vite

できること

このツールは、Viteを使用するVue 2プロジェクトで「markstream-vue2」コンポーネントを使えるようにするためのものです。グラフ(Mermaid)や数式(KaTeX)などの特別な機能も含め、すべてが正しく動作するよう設定します。

使う場面

  • ✓プロジェクトでVue 2とViteを使っているとき。
  • ✓Vue 2プロジェクトで、グラフ(Mermaid)や数式(KaTeX)を表示させたいとき。
  • ✓「markstream-vue2」コンポーネントを安全かつ効率よく組み込みたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2-vite/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2-vite/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Vue 2とViteを使っているプロジェクトにmarkstream-vue2を設定して、グラフを表示できるようにするにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

Viteがバンドルし、markstream-vue2のグラフなどの特別な機能を使えるようにプロジェクトを設定します。また、テキストの表示方法を調整し、より安全で高速になるようにします。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Markstream Vue 2 Vite

Overview

Use Vite-native worker bundling while preserving Vue 2 compatibility and rendering safety.

When to Use

Use when the host is Vue 2 with Vite and needs bundled Mermaid or KaTeX workers. Use the generic Vue 2 skill when worker/bundler behavior is irrelevant.

Workflow

Inspect the existing package manager, installed package version and project conventions. A requested scoped integration already authorizes routine source/dependency edits; seek approval only for a material scope expansion or unresolved beta/alpha adoption decision.

  1. Confirm Vue 2 with Vite and install only requested peers.
  2. Import markstream-vue2/index.css after reset, Tailwind, or UnoCSS layers.
  3. Use package worker entrypoints with Vite ?worker or ?worker&inline imports only when needed.
  4. Add @vue/composition-api only for Vue 2.6 code requiring it.
  5. Keep content with smooth streaming for chat; set final and disable pacing/cursor for history.
  6. Use nodes only for externally owned parsing. Keep HTML safe and Mermaid strict.
  7. Validate the Vite build and worker loading path.

Example

<script>
import MarkdownRender from 'markstream-vue2'
import 'markstream-vue2/index.css'

export default {
  components: { MarkdownRender },
  props: { content: String, done: Boolean },
}
</script>

<template>
  <MarkdownRender
    :content="content"
    :final="done"
    :fade="done"
  />
</template>

Limitations

  • Vite worker syntax is not portable to Vue CLI/Webpack 4.
  • Inline workers can increase bundle size.
  • Optional peers may impose additional browser requirements.

Security & Safety Notes

Review worker source, CSP, dependency changes, and bundle impact. Do not relax safe rendering defaults.

Verify props, export paths and peer ranges against the installed package, not a mutable upstream main. Test partial and completed streams, malformed/untrusted Markdown, links and image URLs, cancellation and reduced motion. Safe HTML and strict diagrams reduce exposure but do not alone enforce URL/network privacy or application component permissions.

Vue 2 is end-of-life; preserve a requested legacy integration and document its maintenance/support decision rather than silently upgrading the whole application. Prefer reviewed locally bundled workers over mutable CDN code where feasible.

よくある質問

Viteとは何ですか?

Webプロジェクトをビルドするための最新のツールで、動作の速さが特徴です。

Vue 2とは何ですか?

人気のあるWebユーザーインターフェース作成用フレームワークの旧バージョンですが、今でも多く使われています。

「ワーカー」とは何ですか?

Webサイトの画面をフリーズさせずに、バックグラウンドでタスクを実行する小さなプログラムのようなものです。

詳細

作者による元の説明

Integrate markstream-vue2 into Vue 2 plus Vite with bundled worker imports, CSS ordering, Composition API compatibility, and safe streaming defaults.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5176
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル