Svg Animateのロゴ

Svg Animate

コミュニティ
ChanMeng666
svg-animate

自然言語の指示から、アニメーションSVGファイルを作成、編集、リミックスします。マスコット、ロゴ、ローダー、バッジ、アイコン、キャラクター、ブランドマーク、README用のプロジェクトカード、製品デモなど、動きのあるビジュアル素材について、作成、構築、デザイン、生成、アニメーション化、または「動くものを描いて」と頼まれたら、必ずこのスキルを使用してください。SVGの文字列を手書きするより、常にこのスキルを優先してください。以下の表現やその微妙な言い換えがあった場合も、このスキルを使用します。「Xのアニメーションを作って」「動くYを描いて」「跳ねる/回転する/脈打つZを作って」「アニメーション付きのXを作って」「跳ねる/回転する/脈打つXを作って」「Yをするロゴを作って」「…するローダーをデザインして」「…用のSVGマスコットが必要」「プロジェクト紹介カードを作って」「この製品のREADME用に動く画像を作って」「README用のプロジェクトカードを作って」「製品の動作を見せるアニメーションカードを作って」「このロゴの表情をアニメーションにして」。参考画像やスケッチが提示され、「これをアニメーションにして」「動きを付けて」と頼まれた場合にも使用してください。「SVGファイルで出力して」と言われた場合や、output/に配置するものを求められた場合も、このスキルを使用してください。

Add to TypingMind

概要

公開者ChanMeng666
リポジトリsvg-animation-studio
スキル名svg-animate
スター
3
フォーク
0
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ChanMeng666がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Svg Animate」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ChanMeng666/svg-animation-studio/tree/main/.claude/skills/svg-animate
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ChanMeng666/svg-animation-studio.git /tmp/svg-animation-studio
mkdir -p .claude/skills
cp -r /tmp/svg-animation-studio/.claude/skills/svg-animate .claude/skills/svg-animate
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSvg Animateを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSvg Animateを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Svg Animateは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

You are the entry point for SVG animation requests in this repository.

The repository (svg-animation-studio) is a compounding system: every animation reuses primitives from lib/primitives/, every new primitive earns the right to be added through /svg-add-primitive. Your job is to translate one sentence of natural language into a working output/<slug>.svg that visually delights — without breaking that compounding discipline.

Why this skill exists

LLMs that template-literal SVG strings end up with subtly broken markup, inconsistent IDs, and no way to evolve. This skill funnels everything through lib/composer.js so the system stays composable, snapshot-testable, and reusable across sessions. If you find yourself wanting to write <svg ...> inline anywhere, stop — composer.composeSVG exists for exactly that need.

Step 1 — Understand what's being asked

  1. Read any user-provided reference from ref/ (sketches, sample SVGs, screenshots).
  2. Identify the asset class: character mascot, logo mark, loader/spinner, notification badge, ambient background, icon, or product card (a README card whose stage shows a product at work).
    • A product card is a different job. Read docs/product-cards.md first: draw it in the product's own design system, produce the stage from the real thing, schedule it on a timeline, end on a frame about the work. Fork project-card; build with lib/text.js, lib/timeline.js, lib/media.js.
    • A logo that cycles expressions on a long loop without touching its geometry: read docs/animating-a-mark.md first.
  3. Identify the motion verbs: jumping, bobbing, pulsing, spinning, waving, talking, glowing, drifting, flickering.
  4. Identify the style cues: pixel-art, gradient-smooth, flat, neon, comic.

If the request is vague ("make it cool"), ask one clarifying question — pick the highest-leverage one (usually: "what shape/character?" or "what motion?"). Don't grill the user.

Step 2 — Read the catalog before composing

Open lib/presets/index.js to see what already exists. Look at each candidate's compose() (~30 lines each) to learn the patterns. Decide one of:

  • Fork — closest existing preset is 80%+ right. Copy its file to a new slug, adjust params/colors.
  • Compose from primitives — no existing preset fits, but the needed primitives all exist in lib/primitives/. Build a new preset.
  • Stop and request a primitive — a needed motion / shape / filter doesn't exist. Output a one-line summary plus:

    "I need a <primitive-name> primitive in lib/primitives/<category>.js. Please run /svg-add-primitive <name>." Do NOT add primitives inline. See docs/extension-protocol.md rule 1.

For inspiration mapping ("user wants X → reach for Y"), open references/preset-cookbook.md.

For the full lib API (signatures + defaults), open references/lib-api.md.

For any branded / multi-layer asset (cover, banner, logo, loader), use the modern composition path (it's how the quality bar is reproduced):

  • Pull a palette with getPalette(opts.palette || '<default>') from lib/palettes.js and reference accents by index (pal.accents[0]) — never hardcode hex.
  • Build the body with composeScene({ layers, defs, style }) from lib/scene.js: it orders layers back-to-front and auto-nests a layer's static transform + animated className (so the CSS transform can't clobber positioning — Gotcha 2).
  • Then fork the closest family template: brandCover.js / gradientCover.js (covers), heroStrip.js / repoHero.js (banners), orbitLogo.js / pulseMonoLogo.js / spinBadge.js (logos/badges), dotLoader.js / rippleLoader.js / bounceChar.js (loaders/characters). chan-cover is the FROZEN reference — fork brand-cover instead.

For why timing / squash / staggering matter, open references/animation-principles.md. The 5-point quality checklist there is the same one /svg-verify will grade against — design with it in mind.

Step 3 — Write the preset

A preset file lives at lib/presets/<slugCamelCase>.js and exports:

js
module.exports = {
  name: '<slug-kebab>',
  viewBox: '0 0 W H',
  width:  W, height: H,
  compose(opts = {}) {
    motion.resetIdCounter();          // mandatory first line
    // pull primitives, compose body + style, return composeSVG({...})
  }
};

Add the new slug to lib/presets/index.js.

Constraints, in priority order:

  • composeSVG is the only allowed way to assemble the root <svg> document.
  • Call motion.resetIdCounter() as the first line of compose() so class names are deterministic across calls — this is what makes snapshots stable.
  • Default colors and durations should match the source's intent; allow the user to override via opts.
  • Re-use existing primitives wherever possible. Each new preset that re-uses ≥ 1 primitive validates the compounding contract.

Step 4 — Render

bash
node lib/render-cli.js <slug>

This writes to output/<slug>.svg. Inspect file size — if it's < 200 bytes, something is wrong (probably an empty body); if it's > 20 KB without good reason (heavy gradients or many elements), something is duplicated. A product card is the exception: outlined text and embedded pictures put it at 50 to 600 KB (budgets in docs/product-cards.md § 8).

For anything on a timeline, check it in time rather than in one frame:

bash
node scripts/capture-frames.mjs output/<slug>.svg --at=2,5.5,10

It captures each second through <img> on a light and a dark canvas and fails if the reduced-motion picture is still moving. Read the pictures it writes.

Step 5 — Snapshot

bash
npm run test:snapshot

First time for a new preset → snapshot is created. Subsequent runs → diff is shown. If diff is intentional (you tuned params), update with:

bash
npm run snapshot:update

Always re-verify visually after a snapshot update.

Step 6 — Visually verify

Invoke /svg-verify <slug> — it runs in an isolated subagent context, opens the SVG in chrome-devtools MCP, scores against the 5-point rubric, and returns ≤ 100 words. The screenshots and console messages stay in the subagent's context so this main thread doesn't drown in image data.

Step 7 — Iterate or finalize

If the verdict is tweak: adjust params (duration, easing, magnitude, stagger), re-render, re-verify. Cap at 3 rounds before pausing to ask the user. If fail: probably a structural issue — re-read the source primitives and reconsider composition rather than tweaking magnitudes.

If pass: report to the user with:

  • Path: output/<slug>.svg
  • Primitives used: motion.foo, shapes.bar, ...
  • The verdict's one-line summary
  • (Optional) Whether to run /svg-export <slug> to optimize and ship.

Anti-patterns

  • ❌ Writing <svg ...> markup directly in a skill or preset. Always go through composer.composeSVG.
  • ❌ Adding a function to lib/primitives/*.js without going through /svg-add-primitive. The protocol exists to keep JSDoc, snapshot coverage, and lib-api.md in sync.
  • ❌ Calling npm run snapshot:update without a visual recheck. Snapshots are the only thing protecting you from silent regressions.
  • ❌ Burning the user's time on > 3 silent iterations. After three rounds without a pass, pause and ask.
  • ❌ Hand-writing keyframe values when a motion.* primitive already covers the motion. Composability is the whole point.

When the user wants multiple variants

If the user asks for "a few options", "show me 3 styles", "give me variants", or "compare different approaches", delegate to the svg-explorer subagent instead of running variants serially in this thread. The Agent dispatch pattern:

Use the svg-explorer agent to produce <N> variants of
"<user's description>" varying along axis <timing|palette|style|energy>.

It returns a comparison block with file paths + a recommendation. Then run /svg-verify <recommended-slug> on the chosen winner, and /svg-export if the user accepts.

Why delegate? Generating N presets in parallel + rendering N SVGs + reading N preset diffs would pump verbose intermediate output into this thread. The fork keeps the comparison clean: you only see the final summary.

When something goes wrong

  • npm test fails on a preset you didn't touch → you broke a primitive signature. Diff your primitive changes and either fix them or update the snapshot deliberately after visual recheck.
  • compose() throws → almost certainly a missing or renamed primitive. Open docs/lib-api.md and grep for the function you tried to call.
  • Visual verification keeps failing on stagger → check animation-principles.md section "Staggering"; the magnitude is probably outside 0.05–0.15 s.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Svg Animate」では何ができますか?

自然言語の指示から、アニメーションSVGファイルを作成、編集、リミックスします。マスコット、ロゴ、ローダー、バッジ、アイコン、キャラクター、ブランドマーク、README用のプロジェクトカード、製品デモなど、動きのあるビジュアル素材について、作成、構築、デザイン、生成、アニメーション化、または「動くものを描いて」と頼まれたら、必ずこのスキルを使用してください。SVGの文字列を手書きするより、常にこのスキルを優先してください。以下の表現やその微妙な言い換えがあった場合も、このスキルを使用します。「Xのアニメーションを作って」「動くYを描いて」「跳ねる/回転する/脈打つZを作って」「アニメーション付きのXを作って」「跳ねる/回転する/脈打つXを作って」「Yをするロゴを作って」「…するローダーをデザインして」「…用のSVGマスコットが必要」「プロジェクト紹介カードを作って」「この製品のREADME用に動く画像を作って」「README用のプロジェクトカードを作って」「製品の動作を見せるアニメーションカードを作って」「このロゴの表情をアニメーションにして」。参考画像やスケッチが提示され、「これをアニメーションにして」「動きを付けて」と頼まれた場合にも使用してください。「SVGファイルで出力して」と言われた場合や、output/に配置するものを求められた場合も、このスキルを使用してください。

TypingMindでSvg Animateを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Svg Animateはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSvg Animateをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ChanMeng666/svg-animation-studio/tree/main/.claude/skills/svg-animateを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Svg Animateを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Svg Animateで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSvg Animateを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Svg Animate」は無料ですか?

はい。ChanMeng666がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇