io-svg

io-svg is a skill for Claude Code, Codex from gridaco/nothing. It costs 108 tokens per session (1,531 once invoked), scanned A, original, Apache-2.0.

A guide to importing SVG files into the Grida Canvas Rust engine and testing the resulting scene data.

In plain words
What is it for?
Use it when adding SVG support, fixing conversion bugs, creating SVG test fixtures, debugging codec issues, or checking text-import fidelity.
Why use it?
It explains the import path and known limits, reducing errors when SVG elements, text, transforms, filters, or cross-language data do not convert as expected.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gridaco/nothing/io-svg
Any agent
npx skills add gridaco/nothing --skill io-svg
Clone the repo
git clone --depth 1 https://github.com/gridaco/nothing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for io-svg

README.md
[![agentmods](https://agentmods.dev/badge/skills/gridaco/nothing/io-svg.svg)](https://agentmods.dev/skills/gridaco/nothing/io-svg)
Your own site
<a href="https://agentmods.dev/skills/gridaco/nothing/io-svg"><img src="https://agentmods.dev/badge/skills/gridaco/nothing/io-svg.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00108 $0.01531
Opus 5 $0.00054 $0.00766
Sonnet 5 $0.00022 $0.00306
Haiku 4.5 $0.00011 $0.00153

Measured 4d ago against content hash 02965feaa71b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

io-svg scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/io-svg/SKILL.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SVG I/O — Rust SVG Import Pipeline

Crate: crates/grida/src/import/svg/

When to Use This Skill

  • Adding support for new SVG elements or attributes
  • Fixing SVG-to-Grida conversion bugs (wrong transform, wrong paint, etc.)
  • Authoring new SVG test fixtures in fixtures/test-svg/L0/
  • Debugging cross-boundary codec failures (Rust encodes ≠ TS decodes)
  • Understanding what SVG features are supported vs. dropped
  • Investigating text import fidelity

Architecture

.svg bytes
  → usvg::Tree::from_data()   — parse + resolve (third_party/usvg/)
  → packed_scene::*           — usvg::Tree → Grida scene graph
  → pack::*                   — pack nodes into IPackedSceneDocument
  → io::archive::pack()       — produce .grida ZIP

Key design: SVG import is Rust-only. There is no TypeScript path for SVG→Grida.

Cross-boundary status: the TS-side codec test (fbs-svg-cross-boundary.test.ts, grida repo) was retired at the engine split — it reached across the repo seam and consumed Rust-generated artifacts from this repo's gitignored fixtures/test-svg/.generated/. Verification is now Rust-side (cargo test -p grida round-trips). If TS-decode coverage is ever wanted again, it must be re-plumbed deliberately (publishable artifact or in-repo wasm-decode test), not revived as-was.


Key Files

Path Role
crates/grida/src/import/svg/packed_scene.rs Core conversion: usvg nodes → Grida nodes
crates/grida/src/import/svg/pack.rs Packs converted nodes into scene document
crates/grida/src/import/svg/from_usvg.rs High-level entry: bytes → scene
crates/grida/src/formats/svg/sanitize.rs Pre-processing / sanitization
crates/grida_dev/src/main.rs svg-to-grida subcommand
fixtures/test-svg/L0/ Committed SVG fixtures
fixtures/test-svg/.generated/ Gitignored, generated .grida outputs

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 171 lines · 108 tokens per session scan A 02965feaa71b

Subscribe to this mod's changes

io-svg is a skill published in the GitHub repository gridaco/nothing (46 stars, last pushed today), licensed Apache-2.0. It adds 108 tokens to every session and 1,531 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

freya

Freya Rust GUI framework best practices, patterns, and conventions. Use when writing Freya components, hooks, elements, or working on a Freya project.

marc2332/freya · 35 tokens

docs-svg-kit

Author SVG figures for Grida docs — diff-able, version-controlled vector diagrams embedded in doc pages instead of screenshots. Provides reusable primitives (selection chrome, size badges, anchor pins, resize cursors, click ripples), color/typography tokens, a starter template, and finished examples to crib from.…

gridaco/grida · 145 tokens

editor-perf

Guides performance investigation, benchmarking, and optimization of the Grida Canvas web editor (TypeScript reducer, Immer, React hooks). Use when profiling reducer dispatch cost, diagnosing slow interactions (drag, resize, color change), writing or running editor benchmarks, instrumenting with PerfObserver, or…

gridaco/grida · 69 tokens

sdk-seam

Discipline for the seam between two SDKs (or two sides of one contract) that the same hand writes. The failure mode: "we own both sides" produces dirty contracts no foreign reviewer would accept. The exercise: pretend the other side is FFI, IPC, or a network protocol you cannot rewrite. Spawn an adversarial subagent…

gridaco/grida · 142 tokens

agent-system

Grida AI agent system work: @grida/daemon (DaemonServer, loopback HTTP perimeter, files/workspaces, secrets store, daemon discovery) and @grida/agent (the agent tenant: sessions, providers/BYOK, runtime/tool execution, skills discovery, prompts, tiers, sandbox hosts). Use for packages/grida-daemon/…

gridaco/grida · 127 tokens

ai-models

Research, compare, and update AI model configurations. Covers text model tiers, image and video generation models, image tool models, pricing data sourcing, and provider-cost metering against prepaid org credit. Use when bumping model versions, adding new models, updating pricing, or auditing model specs against…

gridaco/grida · 65 tokens