Logotipo de Svg Audit

Svg Audit

Comunidad
Sagargupta16
svg-audit

Audita un archivo SVG existente o una escena animada de React y ofrece una lista priorizada de hallazgos y soluciones: compatibilidad con el destino de renderizado (proxy de imágenes de GitHub README, navegadores), accesibilidad, calidad del movimiento, peso del archivo e higiene del código. Ejecuta el validador incluido y después revisa lo que un linter no puede detectar. Úsalo si el usuario dice «audita este SVG», «¿por qué no se anima mi SVG en GitHub?», «revisa esta tarjeta README», «¿es accesible este SVG?», «revisa mi animación» o «reduce el tamaño de este SVG», o si ejecuta /svg-audit [file]. Primero informa de los resultados; solo edita archivos si el usuario pide que aplique las correcciones.

Add to TypingMind

Descripción general

EditorSagargupta16
Repositoriosvg-forge
Nombre de la habilidadsvg-audit
Estrellas
3
Forks
0
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Sagargupta16 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Svg Audit en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Sagargupta16/svg-forge/tree/main/skills/svg-audit
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Svg Audit en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Svg Audit automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Svg Audit no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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.

Preguntas frecuentes

¿Qué hace la habilidad de IA Svg Audit?

Audita un archivo SVG existente o una escena animada de React y ofrece una lista priorizada de hallazgos y soluciones: compatibilidad con el destino de renderizado (proxy de imágenes de GitHub README, navegadores), accesibilidad, calidad del movimiento, peso del archivo e higiene del código. Ejecuta el validador incluido y después revisa lo que un linter no puede detectar. Úsalo si el usuario dice «audita este SVG», «¿por qué no se anima mi SVG en GitHub?», «revisa esta tarjeta README», «¿es accesible este SVG?», «revisa mi animación» o «reduce el tamaño de este SVG», o si ejecuta /svg-audi...

¿Por qué usar Svg Audit en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Svg Audit está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Svg Audit en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Sagargupta16/svg-forge/tree/main/skills/svg-audit. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Svg Audit?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Svg Audit?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Svg Audit con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Svg Audit?

Sí. Sagargupta16 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇