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

markstream-vue2-cli

できること

このツールは、Vue CLIやWebpack 4を使っている古いVue 2プロジェクトで「markstream-vue2」ライブラリを使えるようにするためのものです。CSSが正しく動作するように調整し、互換性のない可能性がある新しい機能の代わりの方法も用意します。

使う場面

  • ✓Vue 2プロジェクトでVue CLIやWebpack 4を使っているとき。
  • ✓「パッケージのエクスポートマップ」や「Viteのワーカーインポート」などの新しい機能を使えないとき。
  • ✓既存のプロジェクトを壊さずに「markstream-vue2」を組み込みたいとき。

スキルのリンク

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

AIへの頼み方の例

“Webpack 4を使っているVue 2プロジェクトで、markstream-vue2を使うにはどうすればよいですか?”

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

仕組み

このツールは、Vue CLIとWebpack 4の制約に合わせて「markstream-vue2」の読み込み方法と設定を調整します。CSSは別に読み込み、ワーカーなどの機能には代わりの方法を使います。

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

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

Markstream Vue 2 CLI

Overview

Handle Vue CLI and Webpack 4 constraints that differ materially from modern Vue 2/Vite setup.

When to Use

Use when Vue 2 runs on Vue CLI or Webpack 4 and package export maps or Vite worker imports are unavailable.

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 plus Vue CLI/Webpack 4.
  2. Install markstream-vue2 and only requested peers.
  3. Import markstream-vue2/dist/index.css, because legacy tooling may not understand the CSS export map.
  4. Avoid ?worker imports. Use Markstream CDN worker helpers for KaTeX or Mermaid only when needed.
  5. Prefer stream-markdown code blocks over fragile Monaco worker wiring.
  6. Keep content with smooth streaming for chat; set final and disable pacing/cursor for completed history.
  7. Keep HTML safe and Mermaid strict; validate the actual legacy build.

Example

<script>
import MarkdownRender from 'markstream-vue2'
// Legacy Webpack may not resolve the package CSS export map.
import 'markstream-vue2/dist/index.css'

export default {
  components: { MarkdownRender },
  data: () => ({ content: '# Answer', done: false }),
}
</script>

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

Limitations

  • CDN workers require network access and compatible content-security policy.
  • Monaco-style worker setups are intentionally not covered.
  • Vue 2.6 may also require @vue/composition-api.

Security & Safety Notes

Do not introduce CDN workers without reviewing CSP, network policy, and dependency trust. Preserve 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.

よくある質問

「パッケージのエクスポートマップ」とは何ですか?

JavaScriptライブラリの各部分を整理して読み込むための、より新しい方法です。古いプロジェクトではこの仕組みを理解できない場合があります。

「CDNワーカーのフォールバック」とは何ですか?

通常の方法が環境でうまく動かないとき、インターネット上のCDNからダウンロードしたコードを使って、数式の描画などの処理を行う代わりの方法です。

なぜ「保守的なコードブロックのデフォルト設定」を使うのですか?

コードブロックに対して、より安全でシンプルな設定を使うという意味です。古い環境での互換性の問題やセキュリティの問題を避けるためです。

詳細

作者による元の説明

Integrate markstream-vue2 into Vue CLI or Webpack 4 with export-map-safe CSS, CDN worker fallbacks, and conservative code-block defaults.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル