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

markstream-svelte

できること

このツールは、Svelte 5やSvelteKitのプロジェクトにMarkstreamというコンポーネントを追加するためのものです。特別な記号などで装飾されたテキストなどの整形済みのコンテンツを、文字をタイプしているかのようななめらかなアニメーションで効率よく表示できるようになります。

使う場面

  • ✓Svelte 5やSvelteKitで新しいプロジェクトを始めるとき。
  • ✓装飾されたコンテンツを少しずつ表示したい(ストリーミング)とき。
  • ✓「ワーカー」を使ってバックグラウンドで処理するなど、高度な機能が必要なとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“Markstreamを私のSvelte 5プロジェクトに組み込んで、記事を表示できるようにしてください。”

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

仕組み

Svelteのコードに特別なコンポーネント(Markstream)を接続して動作します。これを使って、アニメーションやセキュリティの設定を含め、コンテンツの表示方法を定義します。

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

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

Markstream Svelte

Overview

Integrate Markstream using Svelte 5 runes and SvelteKit-safe browser boundaries.

When to Use

Use for Svelte 5 or SvelteKit package setup, streaming state, workers, or scoped custom components. Svelte 4 is unsupported.

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 Svelte 5 and acceptance of a beta package.
  2. Install only requested peers; import package CSS after resets and KaTeX CSS only for math.
  3. Start with <MarkdownRender {content} /> and smooth streaming auto.
  4. For live chat disable fade and opt into the cursor; on completion set final, disable pacing/cursor, and enable fade only if desired.
  5. Use nodes only for worker-owned parsing or shared AST state.
  6. Use $props() and callbacks. Configure KaTeX or Mermaid workers only when requested.
  7. Prefer renderer-local customComponents; use scoped registration only when sharing is intentional.
  8. Keep browser-only workers behind SvelteKit client boundaries; validate with svelte-check, build, or e2e.

Example

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

  let { content, isDone }: { content: string; isDone: boolean } = $props()
</script>

<MarkdownRender
  {content}
  final={isDone}
  fade={isDone}
  typewriter={!isDone}
  smoothStreaming={isDone ? false : 'auto'}
  htmlPolicy="safe"
/>

Limitations

  • Svelte 4 is unsupported and the package is beta.
  • Workers and heavy peers require client-side bundler support.
  • This skill does not migrate unrelated Svelte architecture.

Security & Safety Notes

Keep safe HTML and strict Mermaid defaults. Review dependencies and never run browser-only peers during SSR.

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.

よくある質問

私のプロジェクトはSvelte 4ですが、使えますか?

いいえ、このツールはSvelte 5またはSvelteKit専用で、現在はベータ版(テスト段階)です。

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

メイン画面をフリーズさせずに、情報を処理する小さな助っ人のようなものです。バックグラウンドで動作します。

インターネット上のコンテンツを表示しても安全ですか?

はい、HTMLコンテンツや図を安全に扱うためのセキュリティ設定がありますが、念のため内容を確認しておくと安心です。

詳細

作者による元の説明

Integrate the beta markstream-svelte renderer into Svelte 5 or SvelteKit with runes, explicit CSS, smooth streaming, workers, and SSR-safe boundaries.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル