Logo de Svg Audit

Svg Audit

Comunidade
Sagargupta16
svg-audit

Audita arquivos SVG existentes ou cenas animadas em React e apresenta problemas classificados por prioridade, com correções: segurança nos destinos de renderização (proxy de imagens de README do GitHub, navegadores), acessibilidade, qualidade do movimento, tamanho do arquivo e qualidade do código. Executa o validador incluído e, em seguida, verifica o que um linter não consegue detectar. Use quando o usuário disser “audite este SVG”, “por que meu SVG não anima no GitHub?”, “verifique este cartão de README”, “este SVG é acessível?”, “revise minha animação”, “reduza o tamanho deste SVG” ou executar /svg-audit [file]. Primeiro, apresenta os resultados; só edita arquivos quando o usuário pede as correções.

Add to TypingMind

Visão geral

Publicado porSagargupta16
Repositóriosvg-forge
Nome da habilidadesvg-audit
Estrelas
3
Forks
0
Arquivos incluídos
Somente instruções
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.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

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

Instalação

Instale a habilidade de IA Svg Audit 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/Sagargupta16/svg-forge/tree/main/skills/svg-audit
  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/Sagargupta16/svg-forge.git /tmp/svg-forge
mkdir -p .claude/skills
cp -r /tmp/svg-forge/skills/svg-audit .claude/skills/svg-audit
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Svg Audit 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 Audit 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 Audit 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á.

svg-audit

Find what is wrong with an SVG or an animated scene, rank it by how much it hurts, and say exactly how to fix each item. Default mode is read-only: print the report and stop. Apply fixes only when the user asks ("fix it", "--fix", "apply").

1. Identify the artifact and its target

ArtifactTargetPrimary references
.svg shown through <img> in a README, docs site or emailstandalonegithub-readme, smil-and-css
.svg inlined in a web pagewebsmil-and-css, accessibility
React component animated with Motionscenemotion, verify

Ask only if the target cannot be inferred from where the file lives or how it is referenced (grep the repo for its filename).

The references above live in the sibling animated-svg and motion-scene skills of the svg-forge plugin; this skill reads them, so install the plugin, not this folder alone.

2. Run the validator (SVG files)

bash
python skills/animated-svg/scripts/validate_svg.py path/to/file.svg --target standalone --strict-contrast --json

Use --target web for inline page SVGs. For one half of a <picture> pair add --theme dark or --theme light; otherwise text with no background of its own is measured on both GitHub pages. Every error is a finding. Warnings become findings when they matter for the target. Quote rule ids (SV0xx) so the user can look them up; SV021-SV023 are WCAG contrast (text 4.5:1, large text and solid shapes 3:1), with each measurement under stats.contrast.

Then render the timeline so motion findings rest on frames, not guesses:

bash
python skills/animated-svg/scripts/frames.py path/to/file.svg --theme both

Read the PNG contact sheet it writes: entrances, overlaps, labels that are hidden at rest, and whether the seam frame matches t=0. Exit 3 means no browser was found; say so in the report instead of guessing.

For a scene component, there is no validator: read the component and its helpers instead, and apply the checks in section 3.

3. Review what the validator cannot see

Work through each lens and record findings with a file and line.

Render-target safety

  • Standalone: anything that needs network, script, or an HTML context fails silently on GitHub. External fonts fall back to system fonts, so check text still fits.
  • Dark and light: text needs 4.5:1 and marks 3:1 on both GitHub themes (the validator measures this), or the file must ship as a <picture> pair. In-SVG prefers-color-scheme does not follow GitHub's theme and fails on WebKit. For a fix, regenerate with forge.py --theme both or a preset; it tunes every color to pass.
  • Paint order: a far edge showing through a near panel, a wire crossing the face of the panel it should end at, a dashed guide over its own plate. The fix is order and an opaque fill, not a mask.
  • Browser quirks: SMIL path morphs are the only morphs Safari plays; calcMode misspelled (calcmod) silently drops keySplines; pathLength together with vector-effect="non-scaling-stroke" stops line draws short in Chrome.

Motion quality

  • Rest frame: read the static attributes as the first frame and judge it as the thumbnail. A flat grid, an empty tray or every element at opacity="0" fails; so does a rest that looks like nothing rendered yet.
  • One highlight: one bright mark at rest; a beat moves it, never adds a second. Two lit places at once is a finding.
  • Loop shape: a loop that opens on an empty stage leaves a half-built poster and frozen frame; opening on the finished state with a clear window, or a static ghost layer under the build-up, is the fix.
  • A state change: at least one beat decides something (a row rejected, a check popped, a slot filled); motion with nothing decided is a polish finding.
  • One clock: beats in a loop should share one duration so they never drift apart.
  • Seamless loop: the last keyframe equals the first, or the restart happens while the element is invisible.
  • Easing: multi-keyframe animations need per-segment easing (keySplines per segment, or an ease array in Motion when times is set).
  • Budget: count animated elements; more than about 12 in one scene, or 40 in one file, reads as noise and costs CPU.
  • Only transform and opacity (plus stroke dash properties for line draws) should animate in scenes.

Accessibility

  • Meaningful graphic: role="img" plus <title> (and <desc> when it carries information) referenced by aria-labelledby, or alt text on the <img>.
  • Decorative graphic: aria-hidden="true" (inline) or empty alt (image).
  • Auto-playing motion longer than 5 s has no pause control inside an image: note it, do not block on it.

Weight and hygiene

  • Size against the budget for the target (standalone: aim under 50 KB, hard stop 100 KB unless the user accepts more). python skills/animated-svg/scripts/optimize_svg.py FILE --check reports what an animation-safe minify would save without writing anything.
  • Embedded rasters at more than twice their drawn size, unused <defs>, duplicated paths that could be <use>.
  • Ids prefixed and unique when the file inlines icons or may be inlined into a page.
  • Deterministic output if the file is generated: same input, same bytes.

4. Report

Print a table ranked by severity, then a short verdict.

| # | severity | where | finding | fix |
| 1 | error    | card.svg:12 | <image href="https://..."> is blocked by GitHub's image proxy | inline it as a data URI under 64 KB, or drop it |
| 2 | warn     | card.svg:40 | 6 s loop with beats on 4 s and 6 s clocks drifts | put every beat on the 6 s clock |
verdict: renders on GitHub after fix 1; 2 is polish.

Severity: error (does not render or is unsafe), warn (renders but looks wrong somewhere or hurts access), polish (quality).

5. Fix mode (only when asked)

  • Apply fixes in severity order, one finding at a time, keeping unrelated markup byte-identical.
  • Re-run the validator after each change; the report's errors must reach zero.
  • For generated files, fix the generator or its input, not the output.
  • Show the diff and the new validator result.

Perguntas frequentes

O que a habilidade de IA Svg Audit faz?

Audita arquivos SVG existentes ou cenas animadas em React e apresenta problemas classificados por prioridade, com correções: segurança nos destinos de renderização (proxy de imagens de README do GitHub, navegadores), acessibilidade, qualidade do movimento, tamanho do arquivo e qualidade do código. Executa o validador incluído e, em seguida, verifica o que um linter não consegue detectar. Use quando o usuário disser “audite este SVG”, “por que meu SVG não anima no GitHub?”, “verifique este cartão de README”, “este SVG é acessível?”, “revise minha animação”, “reduza o tamanho deste SVG” ou ex...

Por que usar Svg Audit no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Svg Audit é 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 Audit no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Sagargupta16/svg-forge/tree/main/skills/svg-audit. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Svg Audit?

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 Audit?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Svg Audit 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 Audit é gratuita?

Sim. A habilidade é publicada no GitHub por Sagargupta16 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 👇