Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/sordi-ai/skill-everythingnpx agentmods add rules/sordi-ai/skill-everything/svg-checkWrote 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.
[](https://agentmods.dev/rules/sordi-ai/skill-everything/svg-check)<a href="https://agentmods.dev/rules/sordi-ai/skill-everything/svg-check"><img src="https://agentmods.dev/badge/rules/sordi-ai/skill-everything/svg-check.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01251 |
| Opus 5 | $0.00018 | $0.00626 |
| Sonnet 5 | $0.00007 | $0.00250 |
| Haiku 4.5 | $0.00004 | $0.00125 |
Grade A, and why
svg-check 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 6d 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 — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sub-Skill: SVG Check
Purpose. Catch text-overflow and foreign-rect-intersection bugs in SVG diagrams before commit. LLM eyeball review at 4× zoom misses these bug classes consistently — measurement is the only reliable test.
The acceptance test is the script output. Not your visual judgment.
When to apply
Apply this skill whenever:
- you are editing an existing SVG (
*.svgin any docs/diagrams folder), - you are producing a new SVG from scratch,
- a designer agent reports an SVG as "clean" — verify with the script,
- you are reviewing a PR that touches
*.svg.
The two bug classes the script catches
-
OVERFLOW (own-container): a
<text>whose rendered bbox extends past the bounds of its containing<rect>(in the same<g>). Caught bygetBBox()measurement, tolerance 2 px. -
FOREIGN-RECT INTERSECT: a
<text>whose viewport bbox intersects a<rect>that is not an ancestor of the text — i.e. a tagline ascender that touches a structural box above/below it. Caught bygetBoundingClientRect()intersection, tolerance 2 px.
Both classes filter false-positives: rects smaller than 40 × 18 (legend swatches) are not treated as containers; texts that start more than 5 px outside a rect's horizontal range are not treated as contained.
How to run
The script lives next to this file: overflow-check.js. It needs Playwright installed once per machine.
One-time setup
# From the skill folder
cd skills/svg-check
bash setup.sh
Or manually:
npm install playwright
npx playwright install chromium --with-deps
Run on one SVG
node skills/svg-check/overflow-check.js path/to/diagram.svg
Run on all SVGs in a folder
for svg in path/to/*.svg; do
out=$(node skills/svg-check/overflow-check.js "$svg" 2>&1)
if echo "$out" | grep -q "FOUND"; then
echo "FAIL: $svg"; echo "$out" | grep -E "FOUND| \[| \""
fi
done
The script exits non-zero when issues are found — suitable for use as a pre-commit gate or CI step.
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.
- 6d ago First seen · 133 lines · 37 tokens per session scan A d9479c03b6f0
svg-check is a cursor rule published in the GitHub repository sordi-ai/skill-everything (20 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 1,251 once invoked, about $0.0002 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 cursor rules, from other repositories
skill-creator
Create, edit, evaluate, and debug the skills in this repo, including running their evals and fixing a description that fails to trigger. Use when user says 'help me build a new skill', 'add a skill for X', 'run the evals for the tf skill', 'run the behavioral evals', 'my skill is not triggering', 'fix this skill's…
tf-plan
Review a Terraform plan before applying it: destroys and replacements of data-bearing resources, secrets readable in plan output, out-of-band drift, blast radius, and whether the apply is bound to the plan you actually reviewed. Use when user says 'review my plan', 'is this plan safe to apply', 'check tfplan', 'what…
arcjet-ai-apps
Security guidance for AI/LLM endpoints — layered Arcjet protection with prompt injection, PII blocking, and token budgets.
arcjet-express
Arcjet patterns for Express, Node.js, Fastify, Hono, NestJS, Bun, and Deno — correct adapters, no middleware, proxy config.
ci-triage-demo
Agent rules for ci-triage-demo.
browser-ops-demo
Agent rules for browser-ops-demo.