svg-gen
Skill1 starsChanged 8 months agoMITView on GitHub
Generates clean, accessible SVG assets: UI icons, vector logos, and simple illustrations. Covers viewBox-first layout, grouped markup, palette classes or currentColor, optimization, brand layouts, and handoff. Use when the user asks for SVG icons, logos, wordmarks, favicons, sprites, inline SVG, or guidance on clean vector marks. Keywords: SVG, vector logo, wordmark, brand mark, icon set, scalable graphics.
In this repository33 other files it gives its agents.
- argocdSkill
- c-cpp-compilersSkill
- coding-guidelinesSkill
- devops-iac-engineerSkill
- dag-flowdSkill
- flowd-rules-authorSkill
- frontend-designSkill
- ghSkill
- grafana-dashboardsSkill
- helmSkill
- kustomizeSkill
- legalizerSkill
- lua-projectsSkill
- markdown-documentationSkill
- mermaid-diagramsSkill
- meta-cognition-parallelSkill
- podmasterSkill
- practical-haskellSkill
- rcaSkill
- researcherSkill
- security-auditSkill
- solidity-securitySkill
- tdd-red-green-refactorSkill
- tmux-masterySkill
- tokenomics-designSkill
- ultimate-dbSkill
- ultimate-nixosSkill
- ultimate-rustSkill
- ultimate-web3Skill
- web3-frontendSkill
- web3-testingSkill
- web3-whitepaperSkill
- ziglangSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Layers: Use <g id="..."> for symbol vs text vs accents.
- Distinctive: line 59
Default grid 24x24 unless specified.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SVG Generation
Produce production-quality SVG. Favor simple silhouettes, stable viewBox scaling, and readable structure over ornament.
When to Use
- UI icons (glyphs, sets,
currentColortheming) - Logos and brand marks (wordmarks, lettermarks, pictorial, abstract, combination, emblem)
- Small illustrations when the deliverable is SVG
For diagram-only work (flows, sequences, ER), use the Mermaid skill. This skill is for authored vector artwork.
Choose a Track
| Track | Focus | Typical output |
| Icons | Grid alignment, stroke rules, reuse | Files per icon or <symbol> sprite |
| Logos / branding | Concepts, lockups, variants, guidelines | Concepts plus horizontal, vertical, square, icon-only, text-only as needed |
| Spot illustration | One scene or hero graphic | Single SVG |
Shared Technical Rules
- Root:
xmlns="http://www.w3.org/2000/svg"and a deliberateviewBox. Avoid fixed rootwidth/heightunless the user needs a default; size with CSS in apps. - Layers: Use
<g id="...">for symbol vs text vs accents. Shared gradients, patterns, and<style>live in<defs>. - Color: App icons use
fill="currentColor"or matching stroke. Brand marks use named classes in<defs><style>(or CSS variables if the stack allows) so palettes stay consistent. - IDs: Prefix file-scoped IDs (
brand-grad-1,brand-clip-1) so multiple SVGs on one page do not clash. - Optimization: Drop editor noise, merge paths when it stays clear, trim decimals, remove hidden paths.
- Accessibility: Decorative:
aria-hidden="true". Communicative:role="img"plus<title>/<desc>andaria-labelledbywhere appropriate.
Icon skeleton
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<path fill="currentColor" d="..." />
</svg>Logo skeleton
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" role="img" aria-labelledby="logo-title logo-desc">
<title id="logo-title">Brand name</title>
<desc id="logo-desc">Short description for assistive tech</desc>
<defs>
<style>.primary { fill: #4F46E5; }</style>
</defs>
<g id="logo-symbol">...</g>
<g id="logo-text">...</g>
</svg>Icon Track
- Default grid 24x24 unless specified. For strokes, align to the grid so 1px strokes stay crisp at common scales.
- Stroke sets: shared
stroke-width,stroke-linecap,stroke-linejoin. Reservevector-effect="non-scaling-stroke"for explicit hairline requests. - Sprites:
<symbol id="name" viewBox="...">plus<use href="#name" />.
Logo Track (summary)
Good marks read at a glance and survive favicon size. Before drawing, collect missing facts (see reference.md). Then:
- Concepts: Offer 3 to 5 distinct directions when the user wants exploration. Each needs a one-paragraph rationale (metaphor, differentiation, fit for audience).
- Design discipline: Simple silhouette, intentional negative space, no extra nodes. Sanity-check at 16px to 24px width for icon-style marks.
- Layouts: Horizontal lockup, vertical lockup, square or centered, icon-only, text-only as the brief requires.
- Color modes: Full color plus monochrome dark, monochrome light, and reversed-on-dark when relevant.
- Files: Stable names (
brand-concept-2-horizontal.svg,brand-concept-2-icon.svg). Persist variants the user asked for.
Authoring detail, presentation templates, usage rules for handoff, and pattern snippets are in reference.md.
Presentation
- Order: rationale, then SVG in fenced
xmlblocks. List hex codes for approved fills. - Large deliveries: short summary in chat, full set on disk.
Quality Checklist
- Valid XML;
viewBoxdrives layout - No ID collisions across inline SVGs on the same document
- Logo marks legible at small raster sizes when used as icons
- Icons use
currentColorwhere theme switching matters - Brand SVGs use repeatable classes or tokens for color
Additional Resources
- Clean logo criteria, phased workflow, layouts, SVG patterns, usage and export: reference.md
Sources
Logo workflow and handoff patterns align with SVG Logo Designer (rknall/claude-skills). Icon-track triggers were informed by svg-icon-generator.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

