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.
npx agentmods add skills/aemsites/author-kit/svg-prepnpx skills add aemsites/author-kit --skill svg-prepgit clone --depth 1 https://github.com/aemsites/author-kitWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00061 | $0.02159 |
| Opus 5 | $0.00030 | $0.01079 |
| Sonnet 5 | $0.00012 | $0.00432 |
| Haiku 4.5 | $0.00006 | $0.00216 |
Grade A, and why
svg-prep 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SVG prep
Icons are referenced, never inlined: <use href="/img/icons/<name>.svg#icon">. Only inherited
properties cross that shadow boundary, which makes two things in the file load-bearing rather than
stylistic — the root id="icon", because a fragment that resolves to nothing renders nothing, and
currentColor, because a fill="#1a1a1a" is not a default that CSS can override later, it is
permanent. An editor export satisfies neither.
This skill rewrites what is mechanical and reports what is a decision. A finding never silently becomes an edit.
Running it
node .agents/skills/svg-prep/prep.js <path…> [--flatten] [--keep=<value>] [--palette]
A path is a file or a directory — its .svg children, one level, no recursion. Files are
rewritten where they sit, so git diff is the review. Nothing is moved and nothing is renamed.
--palette takes one path, never a directory. It suppresses paint conversion on every file in
the run, not only on the one that needed it — a monochrome icon caught in a --palette run over
img/icons/ is written with its hex fill intact. Each file it suppressed says so, so read the
report rather than the exit code, and point the flag at the single file that earned it.
img/icons/globe.svg 713 → 662 bytes
ℹ viewbox-grid: viewBox "0 0 20 20" — renders correctly; re-export on 0 0 24 24 if stroke weight has to match the set
img/icons/helix-color.svg not written
ℹ viewbox-grid: viewBox "0 0 512 512" — renders correctly; re-export on 0 0 24 24 if stroke weight has to match the set
✗ multi-colour: 2 distinct colours: #ed2c85, #b64aa1
✗ means that file was left untouched and the run exits 1. Every other file in the run is still
written, so working an error is a re-run of the one file, not of the set. ⚠ and ℹ are on a file
that is already written — read them, then decide.
Rewritten silently
Root id |
set to icon, whatever it was |
viewBox |
required; synthesised from width/height when absent |
width/height |
removed from root |
xmlns |
added when absent; xmlns:xlink dropped, xlink:href → href |
| Paint | every fill, stroke and stop-color colour → currentColor; none preserved |
| Illustrator classes | <defs><style>.cls-1{fill:#ed2c85}</style></defs> resolved onto elements, then <style> and class dropped |
Inline style |
paint declarations treated as paint, then the attribute removed |
<script>, on* |
stripped |
<metadata>, <title>, <desc>, comments, data-name, xml:space, serif:id |
stripped |
Descendant id |
stripped when unreferenced, kept when a url(#…) points at it |
| XML prolog | dropped |
| Formatting | one element per line, two-space indent |
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2d ago First seen · 141 lines · 61 tokens per session scan A 738160a9e0df
svg-prep is a skill published in the GitHub repository aemsites/author-kit (12 stars, last pushed 19d ago), licensed Apache-2.0. It adds 61 tokens to every session and 2,159 once invoked, about $0.0003 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.
Other skills, from other repositories
design-guide
Paperclip UI design system guide for building consistent, reusable frontend components. Use when creating new UI components, modifying existing ones, adding pages or features to the frontend, styling UI elements, or when you need to understand the design language and conventions. Covers: component creation, design…
accessibility
Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.
deck-course-module
暖纸背景 + Playfair, 左侧学习目标常驻, 含 MCQ 自测页.
desktop-principles
Desktop-specific UX principles - hover states, pointer precision, keyboard shortcuts, multi-window, focus management. Covers macOS, Windows, Linux, web desktop.
ios-hig-design
Design native iOS interfaces following Apple Human Interface Guidelines. Use when the user mentions "iPhone app", "iPad layout", "SwiftUI", "UIKit", "Dynamic Island", "safe areas", "HIG compliance", "SF Symbols", "haptic feedback", "iOS accessibility", "make my app feel native", or "follow Apple design guidelines".…
taiyi-ui-design
TaiyiForge 第 4 阶段 — UI/UX 契约,产出 UI-DESIGN.md。四端通用。.