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

markstream-vue2

できること

このツールは、Vue 2のプロジェクトに「markstream-vue2」コンポーネントを組み込むためのものです。使用しているVue 2のバージョンに合わせて正しく動作するようにし、技術的な細かい部分はツールが処理するので、心配する必要はありません。

使う場面

  • ✓Vue 2.6または2.7を使っていて、Markdownなどの整形されたテキストを表示するコンポーネントが必要なとき。
  • ✓チャットのように、テキストを少しずつ画面に表示したいとき。
  • ✓古いVue 2のバージョンとの互換性を確保したいとき。

スキルのリンク

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

AIへの頼み方の例

“Vue 2プロジェクトにmarkstream-vue2を設定するにはどうすればよいですか?”

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

仕組み

このツールはVue 2のバージョンを確認し、必要な依存関係を追加します。テキストを表示するようコンポーネントを設定し、タイプされているように見せる表示や、少しずつ現れるアニメーションのオプションも用意します。

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

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

Markstream Vue 2

Overview

Handle Vue 2.6/2.7 compatibility decisions that the generic installer cannot resolve safely.

When to Use

Use for Vue 2 integration when no bundler-specific edge case dominates. Use markstream-vue2-cli for Vue CLI/Webpack 4 and markstream-vue2-vite for Vite worker imports.

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.6 or 2.7 and install markstream-vue2.
  2. Add @vue/composition-api only for Vue 2.6 code that uses Composition API patterns; Vue 2.7 has built-in support.
  3. Import markstream-vue2/index.css after resets.
  4. Start with <MarkdownRender :content="markdown" /> and smooth streaming auto.
  5. For live chat disable fade and opt into the cursor; on completion set final, disable pacing/cursor, and enable fade only if desired.
  6. Use nodes only when another layer owns parsing. Use scoped mappings for overrides.
  7. Keep HTML safe and Mermaid strict; validate with the smallest build or dev command.

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"
    :typewriter="!done"
  />
</template>

Limitations

  • Vue 2.6 and 2.7 have different Composition API requirements.
  • Legacy bundlers require the dedicated specializations.
  • Optional modern peers may not support every Vue 2 toolchain.

Security & Safety Notes

Review dependency and compatibility changes. Do not relax rendering safety for untrusted content.

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.

よくある質問

「Composition API」とは何ですか?

Vue.jsでコードを整理するための、より新しい方法です。Vue 2.6では追加のパッケージをインストールする必要がある場合がありますが、Vue 2.7では標準で対応しています。

「ストリーミング状態」とはどういう意味ですか?

テキストを一度にすべて表示するのではなく、タイプされているように、またはリアルタイムで読み込まれているように、少しずつ表示できる状態のことです。

どのVueのバージョンでも使えますか?

いいえ、このツールはVue 2.6と2.7専用です。他のバージョンやViteなどのビルドツールを使う場合は、それぞれ別のバージョンのツールがあります。

詳細

作者による元の説明

Integrate markstream-vue2 into Vue 2.6 or 2.7 with correct Composition API decisions, CSS, streaming state, optional peers, and scoped overrides.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル