Communitygithub.com

zc277584121/mermaid-to-gif

.mmd または .md ファイル内の Mermaid コードブロックを、カスタマイズ可能なアニメーションスタイル(プログレッシブ、ハイライトウォーク、パルスフロー、ウェーブ)でアニメーション GIF に変換します。

mermaid-to-gif とは?

このスキルは、Mermaid コードブロックを含む `.mmd` または `.md` ファイルを、アニメーション GIF に変換するためのツールです。開発者は、図の段階的な表示や強調表示など、4種類のアニメーションスタイル(プログレッシブ、ハイライトウォーク、パルスフロー、ウェーブ)から選択できます。このスキルは、Claude Code などの AI エージェントと連携して動作し、指定されたアニメーションスタイルに基づいて、図の一部を順に表示したり、特定の要素を強調したりする GIF を生成します。これにより、静的画像では伝わりにくい図の動的な変化やプロセスを効果的に表現でき、ドキュメントやプレゼンテーションでの説明力を高めることができます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zc277584121/marketing-skills/tree/main/skills/mermaid-to-gif

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

mermaid-to-gif は何をしますか?

.mmd または .md ファイル内の Mermaid コードブロックを、カスタマイズ可能なアニメーションスタイル(プログレッシブ、ハイライトウォーク、パルスフロー、ウェーブ)でアニメーション GIF に変換します。

概要

このスキルは、Mermaid 図を動的なアニメーション GIF に変換することで、ドキュメントやプレゼンテーションでの視覚的な説明を強化します。各アニメーションスタイルは、図の要素を段階的に表示したり、強調したりする独自の方法を提供します。

利用可能なアニメーションスタイル

  • progressive: 図の要素を左から右、上から下へと順次表示します。
  • highlight walk: 図の各要素を順にハイライトしながら、その他の要素は薄く表示します。
  • pulse flow: 図内のエッジ(フローの矢印)をパルス状にアニメーション表示します。
  • wave: ウェーブパターンで要素をフェードイン表示します。

使用方法

前提条件

  • 入力ファイル(.mmd または .md)が利用可能であること。
  • Mermaid コードブロックが正しい構文で記述されていること。

ワークフロー

  1. ユーザーが入力ファイルと希望するアニメーションスタイルを指定します。
  2. 内部で Puppeteer を使用して Mermaid 図をレンダリングおよびキャプチャします。
  3. 各フレームを処理し、選択したアニメーションスタイルに従ってアニメーション GIF を生成します。
  4. 出力 GIF ファイルが作成されます。

入力例(.mmd ファイル)

graph TD
    A[開始] --> B[処理]
    B --> C[終了]

コマンド例

npx mermaid-to-gif input.mmd output.gif --style progressive

制限事項

  • 大きな図の場合、生成時間が長くなることがあります。
  • すべての Mermaid 図タイプが完全にサポートされているわけではありません。
  • 出力 GIF のファイルサイズは、図の複雑さに依存します。

トラブルシューティング

  • 出力が生成されない: 入力ファイルに有効な Mermaid コードブロックが含まれていることを確認してください。
  • アニメーションが正しく表示されない: 指定したスタイルがサポートされているか確認してください。

関連リソース

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

zc277584121/browser-screenshot

Take focused, region-specific screenshots from web pages. Navigates to the right page based on user context (URL, search query, social media post), locates the target region via DOM selectors, and crops to a clean, focused screenshot.

zc277584121/chrome-automation

Automate Chrome browser tasks using agent-browser CLI. Navigate pages, fill forms, click buttons, take screenshots, extract data, and replay recorded workflows — all inside the user's real Chrome session.

zc277584121/content-rewrite

Adapt and rewrite content for different platforms (LinkedIn, X, Reddit, English blog, WeChat). Each platform has its own tone, format, and length requirements.

zc277584121/github-traffic

Fetch, store, and visualize GitHub repository traffic data (views, clones, referrers, stars) with trend charts. Requires repo push access.

zc277584121/image-generation

Generate illustration images for articles and documentation with a Codex-first workflow, OpenAI API fallback, and Gemini fallback.

zc277584121/jupyter-notebook-writing

Write Milvus application-level Jupyter notebook examples using a Markdown-first workflow with jupyter-switch for format conversion.

zc277584121/md-to-feishu

Convert local Markdown files to Feishu (Lark) documents with automatic image uploading. Uses the feishu-docx CLI tool.

zc277584121/mermaid-to-image

Convert Mermaid code blocks in Markdown files to PNG images using the mermaid.ink API.

zc277584121/raw-video-processing

Post-process raw screen recordings by removing silent segments and applying speed adjustments. Uses FFmpeg-based Python scripts to optimize video pacing automatically.

zc277584121/remove-ai-style

Review and adjust writing style to reduce AI-generated patterns, making text read more naturally and human-like. Supports Chinese and English.

zc277584121/screenshot-compression

Compress PNG and JPEG screenshots in place using pngquant and jpegoptim, keeping the original format for maximum compatibility.

zc277584121/video-to-gif

Convert a video to multiple GIF variants with different quality/size tradeoffs. Generates a comparison set so the user can visually pick the best result.

関連スキル