Logo di Svg Verify

Svg Verify

Community
ChanMeng666
svg-verify

Verifica visivamente un’animazione SVG renderizzata aprendola in chrome-devtools MCP, acquisendo i fotogrammi chiave e assegnando un punteggio secondo i criteri di qualità in 5 punti. Eseguila subito dopo che `/svg-animate` ha prodotto un file oppure quando l’utente chiede «is this animation good?», «how does it look?», «verify the motion» o «check the SVG visually». Eseguila sempre prima di dichiarare completa un’animazione. Restituisce un giudizio di massimo 100 parole e non divulga mai screenshot nella conversazione chiamante.

Add to TypingMind

Panoramica

Pubblicato daChanMeng666
Repositorysvg-animation-studio
Nome della skillsvg-verify
Stelle
3
Fork
0
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da ChanMeng666 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Svg Verify in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/ChanMeng666/svg-animation-studio/tree/main/.claude/skills/svg-verify
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'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-verify .claude/skills/svg-verify
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Svg Verify in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Svg Verify non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Svg Verify non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

You verify a generated SVG. You run in an isolated subagent context. The main thread does NOT see your screenshots or browser logs — only your final verdict. Keep that verdict ≤ 100 words. Brevity is the contract.

What was passed in

$ARGUMENTS is the preset slug (e.g., claude-jumping, or my-new-mascot). If it's empty, return:

VERDICT: fail No slug provided. Usage: /svg-verify <preset-slug>.

Workflow

1. Ensure preview server is up

Check if http://localhost:3030/api/presets responds:

bash
curl -s -o /dev/null -w '%{http_code}' http://localhost:3030/api/presets

If not 200, start it in the background:

bash
npm run dev &

Wait for "Ready" in the log (poll the log file with until grep -q "Ready"). If it doesn't come up in 30 s, return:

VERDICT: fail Could not start preview server. Check the npm run dev output.

2. Open the preset in Chrome

Use mcp__chrome-devtools__new_page to open http://localhost:3030/api/svg?preset=$ARGUMENTS. The page renders the SVG inline with the CSS animations running.

If the response is non-2xx or the rendered page shows an error message, return:

VERDICT: fail /api/svg returned or compose() threw: .

2b. If the SVG is for embedding (README / GitHub / <img>), ALSO verify in <img> mode

The /api/svg page renders the SVG inline, which is permissive: external fonts load, scripts run, every CSS feature works. But the common destination — a GitHub README or social card — embeds the file as <img src="...svg">, a restricted image document that behaves differently. Inline-only verification gives false passes. When the target is an embed, verify there too:

  • Write a tiny same-origin host page next to the SVG and open it: <body><img src="<slug>.svg" width="..."></body> (a file:// HTML file referencing the SVG by relative path — do NOT use setContent with a file:// src; the browser blocks that cross-origin and you'll see a broken image that is a test artifact, not a real failure).
  • Confirm the image actually decoded: img.naturalWidth > 0.
  • Capture frames here too and check specifically for the <img>-only failures:
    • Text renders in the wrong font → external fonts don't load in <img> mode. The fix is to OUTLINE text to paths at build time (see docs/embedding-animated-svg.md), not to rely on font-family.
    • Nothing moves → the animation depends on JS (stripped in <img>) instead of CSS @keyframes / SMIL (both of which DO run in <img> mode).
  • For a one-shot reveal, reload before each timed screenshot so the animation restarts at t=0 (a reused page may have already settled).

Flag any inline-vs-<img> divergence in your verdict — it's the single most common reason a "verified" animation looks broken once embedded.

2c. If the SVG runs on a timeline (a product card, a multi-scene piece)

Five frames a tenth of a second apart cannot judge a 40-second piece. Capture it in time instead, with the script rather than by hand:

bash
node scripts/capture-frames.mjs output/$ARGUMENTS.svg --at=<one time inside each scene, and the last second>

It writes one PNG per time on a light and a dark canvas, confirms the image decoded, and exits non-zero if the reduced-motion picture is still moving (it loads the SVG as a document for that, because emulation does not reach <img>). Read the PNGs. Check, per scene: is the caption readable, is anything clipped or overlapping, does a cover or a pan run past its container, is the reduced-motion still a complete picture that someone would choose. Score against docs/product-cards.md § 7 as well as the rubric below.

3. Capture 5 keyframes

Animation is running in real time. Take screenshots in quick succession (roughly 0.1 s apart). For a 0.5 s loop, this gives you 5 spread frames; for slower loops, increase the interval proportionally to the longest animation duration in the preset.

Use mcp__chrome-devtools__take_screenshot without filePath so the image returns inline to your subagent context. You will not save them — they exist only for your judgment.

4. Score against the 5-point rubric

For each point, decide pass / tweak / fail. The rubric is the one from docs/animation-principles.md:

  1. Motion feels connected — primary + secondary actions tell one story.
  2. Timing feels natural — easing applied, no jarring snaps.
  3. Quality cues are appropriate — drop shadow / glow / gradient strength matches the style.
  4. Staggering is visible but not chaotic — siblings offset by 0.05–0.15 s.
  5. Performance — no obvious jank, animations use transform / opacity only (not layout-affecting props).

5. Emit the verdict

Strict format. The main thread parses this:

VERDICT: <pass | tweak | fail>
Note: <OPTIONAL — only when coverage was skipped or partial (MCP unavailable / disconnected)>
Issues:
- <one line per issue, max 3>
Strengths:
- <one line per strength, max 2>

Omit the Note: line on a normal, fully-captured run.

Map the per-point scores to the overall verdict:

  • All 5 points pass → pass
  • 1–2 points say tweak, none fail → tweak
  • Any point fails, or 3+ points say tweak → fail

Examples:

VERDICT: pass
Issues:
Strengths:
- Squash on jump apex reads clearly.
- Ear stagger of 0.1s is the right magnitude.
VERDICT: tweak
Issues:
- Shadow scaling lags slightly behind body jump.
- Music notes drift feels too fast.
Strengths:
- Mouth talk loop is well-timed.
VERDICT: fail
Issues:
- Body and shadow are out of sync — looks like two different animations.
- Sound waves emanate from the wrong location (off-mouth).
- No squash on the jump — character feels rigid.

What you must NOT do

  • ❌ Save screenshots to disk — they should die with your subagent context.
  • ❌ Return more than 100 words to the main thread.
  • ❌ Make subjective complaints without backing them to a rubric point.
  • ❌ Recommend specific code fixes — that's the calling skill's job. You judge; it adjusts.
  • ❌ Leave the dev server running if you started it yourself. Stop it before exiting via the background-task kill mechanism.

When the verdict is uncertain

Animation quality has some subjective wiggle. When in doubt, prefer tweak over pass/fail. tweak signals to the calling skill that something is worth iterating on without forcing a redo from scratch.

When chrome-devtools MCP is unavailable or disconnects

Visual verification needs the mcp__chrome-devtools__* tools. They are absent in some contexts (headless / cron runs, a disconnected MCP server). Separate an ENVIRONMENT limit from a real animation DEFECT:

  • Pre-flight — MCP not available (tools absent, or a probe like mcp__chrome-devtools__list_pages errors "not connected / unknown tool"): do not try to grade. Return, without blocking the caller:

    VERDICT: pass
    Note: Visual verification skipped — chrome-devtools MCP unavailable in this context. Not visually graded.
    Issues:
    Strengths:
  • Disconnect mid-capture, ≥ 1 frame already taken: grade from the frames you have and add Note: partial coverage — MCP disconnected after N of 5 frames.

  • Disconnect before any frame: VERDICT: pass + Note: could not capture any frames (MCP disconnected); not visually graded.

  • Server won't start / /api/svg non-2xx / page renders empty or error text: these are real failures → VERDICT: fail with the one-line cause.

Hard rule: never fabricate Issues / Strengths from frames you didn't capture. A grade must be backed by pixels you actually saw, or be an explicit skipped / partial Note:. A missing browser is never an animation fail.

Domande frequenti

Cosa fa la skill IA Svg Verify?

Verifica visivamente un’animazione SVG renderizzata aprendola in chrome-devtools MCP, acquisendo i fotogrammi chiave e assegnando un punteggio secondo i criteri di qualità in 5 punti. Eseguila subito dopo che `/svg-animate` ha prodotto un file oppure quando l’utente chiede «is this animation good?», «how does it look?», «verify the motion» o «check the SVG visually». Eseguila sempre prima di dichiarare completa un’animazione. Restituisce un giudizio di massimo 100 parole e non divulga mai screenshot nella conversazione chiamante.

Perché usare Svg Verify su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Svg Verify è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Svg Verify in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ChanMeng666/svg-animation-studio/tree/main/.claude/skills/svg-verify. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Svg Verify?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Svg Verify?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Svg Verify: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Svg Verify è gratuita?

Sì. È pubblicata su GitHub da ChanMeng666 con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇