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

markstream-nuxt

できること

このツールは、Nuxt 3またはNuxt 4のプロジェクトで「markstream-vue」を使うのに役立ちます。Webサイトがサーバー側で構築される場合でも、ブラウザでのみ動作するコードが正しく実行されるようにします。

使う場面

  • ✓Nuxt 3またはNuxt 4でページやコンポーネントを作成するとき。
  • ✓AIが生成したコンテンツをリアルタイムで(ストリーミング)表示したいとき。
  • ✓リッチな文書や軽量なインターフェースをNuxtプロジェクトに組み込みたいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“NuxtのWebサイトで、AIが生成したテキストをチャット形式で表示するにはどうすればよいですか?”

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

仕組み

「markstream-vue」を設定し、ブラウザでの実行が必要なコードを分けることで、Nuxtに対応させます。これには、`<ClientOnly>`や動的インポートといったNuxtの機能を使います。

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

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

Markstream Nuxt

Overview

Integrate markstream-vue into Nuxt while keeping hydration, browser-only peers, workers, and streaming behavior on the correct side of SSR boundaries.

When to Use

Use for Nuxt 3 or 4 pages, components, or plugins. Use markstream-vue for non-Nuxt Vue applications and markstream-install when the framework is not yet known.

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 Nuxt 3 or 4 and install only requested peers.
  2. Put browser-only peers behind <ClientOnly>, .client plugins, dynamic imports, or guarded initialization.
  3. Import markstream-vue/index.css explicitly from a client-safe shell or plugin.
  4. Start with content: mode="chat" for AI streams, docs for rich documents, and minimal for lightweight non-chat surfaces.
  5. Keep smooth streaming in auto mode for SSR; do not force true on first-screen server content.
  6. When a chat row completes, keep its mode stable, set final, disable pacing/cursor, and enable fade only if desired.
  7. Keep HTML safe and Mermaid strict. Put optional code, diagram, and worker runtimes behind client boundaries.
  8. Validate build/typecheck, hydration, and one incremental client update.

Example

<script setup lang="ts">
import MarkdownRender from 'markstream-vue'
import 'markstream-vue/index.css'

defineProps<{ markdown: string; done: boolean }>()
</script>

<template>
  <MarkdownRender
    mode="chat"
    :content="markdown"
    :final="done"
    :fade="done"
    :typewriter="!done"
    :smooth-streaming="done ? false : 'auto'"
    html-policy="safe"
  />
</template>

Limitations

  • Browser-only peers cannot run during SSR.
  • Hydration depends on correct host plugin/component boundaries.
  • This skill does not configure deployment adapters.

Security & Safety Notes

Do not expose trusted HTML or loose Mermaid settings to untrusted model output. Review dependency and runtime-boundary changes.

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.

よくある質問

SSRとは何ですか?

SSR(サーバーサイドレンダリング)は、利用者のブラウザに送る前に、サーバー側でWebページを組み立てる仕組みです。表示速度やSEOの面で役立つことがあります。

「hydration」とはどういう意味ですか?

サーバーがあらかじめ描画したHTMLに、ブラウザのJavaScriptを結びつけ、ページを操作できるようにする処理のことです。

「browser-only peers」とは何ですか?

Webサイトが利用者のブラウザで動いているときにのみ機能するコードの部分のことで、サーバー上では動作しません。

詳細

作者による元の説明

Integrate markstream-vue into Nuxt 3 or 4 with SSR-safe client boundaries, renderer modes, explicit CSS, and browser-only optional peers.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル