Logo van Svg Audit

Svg Audit

Community
Sagargupta16
svg-audit

Controleert een bestaand SVG-bestand of een geanimeerde React-scène en geeft gerangschikte bevindingen met oplossingen: veiligheid voor weergavedoelen (GitHub README-afbeeldingsproxy, browsers), toegankelijkheid, bewegingskwaliteit, bestandsgrootte en codehygiëne. Voert de meegeleverde validator uit en beoordeelt daarna wat een linter niet kan zien. Gebruik deze skill wanneer de gebruiker zegt "audit this SVG", "why doesn't my SVG animate on GitHub", "check this README card", "is this SVG accessible", "review my animation" of "shrink this SVG", of /svg-audit [file] uitvoert. Rapporteert eerst; past bestanden alleen aan wanneer de gebruiker om oplossingen vraagt.

Add to TypingMind

Overzicht

UitgeverSagargupta16
Repositorysvg-forge
Skillnaamsvg-audit
Sterren
3
Forks
0
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door Sagargupta16 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Svg Audit in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Sagargupta16/svg-forge/tree/main/skills/svg-audit
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Svg Audit in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Svg Audit automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Svg Audit niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill Svg Audit?

Controleert een bestaand SVG-bestand of een geanimeerde React-scène en geeft gerangschikte bevindingen met oplossingen: veiligheid voor weergavedoelen (GitHub README-afbeeldingsproxy, browsers), toegankelijkheid, bewegingskwaliteit, bestandsgrootte en codehygiëne. Voert de meegeleverde validator uit en beoordeelt daarna wat een linter niet kan zien. Gebruik deze skill wanneer de gebruiker zegt "audit this SVG", "why doesn't my SVG animate on GitHub", "check this README card", "is this SVG accessible", "review my animation" of "shrink this SVG", of /svg-audit [file] uitvoert. Rapporteert eer...

Waarom Svg Audit gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Svg Audit bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Svg Audit in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Sagargupta16/svg-forge/tree/main/skills/svg-audit. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Svg Audit gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Svg Audit gebruiken?

Zoveel als je wilt. Je kunt Svg Audit gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Svg Audit gratis?

Ja. Deze skill is door Sagargupta16 op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇