Logo de Svg Animate

Svg Animate

Comunidade
ChanMeng666
svg-animate

Crie, edite ou remixe um arquivo SVG animado a partir de uma descrição em linguagem natural. Use esta habilidade sempre que o usuário pedir para criar, montar, projetar, gerar, animar ou “desenhar algo que se mexe” — mascotes, logotipos, carregadores, distintivos, ícones, personagens, marcas, cartões de projeto para README, demonstrações de produtos ou qualquer recurso visual que deva ser animado. Prefira sempre esta habilidade a escrever strings SVG manualmente. Frases que acionam esta habilidade (use-a até mesmo com pequenas variações): “做一个X动画”, “给我画个会动的Y”, “搞一个跳跃/旋转/脉动的Z”, “make me an animated X”, “create a bouncing/spinning/pulsing X”, “build a logo that does Y”, “design a loader that ...”, “I need an SVG mascot for ...”, “做一个项目宣传卡片”, “给这个产品做个 README 动图”, “make a project card for my README”, “an animated card that shows the product working”, “animate this logo's expressions”. Use também quando o usuário fornecer uma imagem de referência ou um esboço e pedir para “animar isto” ou “dar vida a isto”. Quando o usuário disser que quer o resultado “como um arquivo SVG” ou pedir algo para colocar em output/, esta é a habilidade certa para começar.

Add to TypingMind

Visão geral

Publicado porChanMeng666
Repositóriosvg-animation-studio
Nome da habilidadesvg-animate
Estrelas
3
Forks
0
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por ChanMeng666 no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Svg Animate no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/ChanMeng666/svg-animation-studio/tree/main/.claude/skills/svg-animate
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Svg Animate em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Svg Animate automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Svg Animate não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Svg Animate faz?

Crie, edite ou remixe um arquivo SVG animado a partir de uma descrição em linguagem natural. Use esta habilidade sempre que o usuário pedir para criar, montar, projetar, gerar, animar ou “desenhar algo que se mexe” — mascotes, logotipos, carregadores, distintivos, ícones, personagens, marcas, cartões de projeto para README, demonstrações de produtos ou qualquer recurso visual que deva ser animado. Prefira sempre esta habilidade a escrever strings SVG manualmente. Frases que acionam esta habilidade (use-a até mesmo com pequenas variações): “做一个X动画”, “给我画个会动的Y”, “搞一个跳跃/旋转/脉动的Z”, “make me an a...

Por que usar Svg Animate no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Svg Animate é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Svg Animate no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/ChanMeng666/svg-animation-studio/tree/main/.claude/skills/svg-animate. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Svg Animate?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Svg Animate?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Svg Animate com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Svg Animate é gratuita?

Sim. A habilidade é publicada no GitHub por ChanMeng666 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇