agentleFS
SkillMedevSkillMedev/design-system-builder/skills/icon-system/SKILL.md

icon-system

Skill0 starsChanged 38 days agoMITView on GitHub

Designs or audits an icon set so every glyph shares one grid, stroke weight, corner language, naming convention, and export pipeline, and delivers the written icon spec engineering builds against. Use when someone asks "our icons look inconsistent", "set up an icon grid", "how should we name icons", "audit this icon set", "prep our SVGs for handoff", or is commissioning new icons and needs the rules first. Do NOT use for a single logo mark - use logo-brief-writer instead; for delivering full design specs beyond icons, use design-handoff-doc.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 1

    1. SkillMedev/brand-visual-identity★ 1100% same

    Edited · 0

    None found.

    Wrote their own version · 3

    1. dylantarre/design-system-skills★ 50same name
    2. launchapp-dev/animus-cli★ 39same name
    3. miovrag/claude-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the order: the grid constrains the stroke, the stroke constrains the drawing rules, and naming/export only matter once the drawing …

    line 14
  2. Distinctive:

    If filled variants exist, define the outline→filled transformation rule once (which strokes become fills, which counters stay open).

    line 46
  3. Very specific:

    Use fill="currentColor" (or stroke) wherever color should inherit.

    line 60
  4. Very specific:

    Never scale 24px art down to 16px - it goes muddy.

    line 66
  5. Distinctive:

    Run against an existing set.

    line 102
  6. Distinctive:

    Do not mix stroke weights or detail levels - either one instantly reads as two icon sets.

    line 118
  7. Distinctive:

    Do not center diagonal forms geometrically - they will look off-balance.

    line 119
  8. Distinctive:

    Do not scale 24px icons to 16px - redraw them.

    line 120
  9. Very specific:

    Do not name icons after their appearance - gear breaks the day the settings icon becomes sliders.

    line 121
  10. Distinctive:

    Do not hard-code fills in exported SVGs where the product needs color inheritance - every theme change becomes a re-export.

    line 122
  11. Distinctive:

    Do not change the grid after the set is large without budgeting a full redraw.

    line 123
  12. Distinctive:

    All keyline shapes look the same size side by side at the smallest shipped size.

    line 128
  13. Distinctive:

    Every file passes the audit checklist clean.

    line 129

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Icon System

An icon set without shared rules decays one icon at a time: each new glyph is drawn against a slightly different grid, stroke, or metaphor, and within a year the product carries three visual dialects that no single redraw can fix cheaply. This skill produces the spec that makes every icon - including ones drawn by future contributors - feel like one family, and the audit checklist that catches drift before it ships.

Operating procedure

Follow the order: the grid constrains the stroke, the stroke constrains the drawing rules, and naming/export only matter once the drawing rules are fixed. Changing the grid after 200 icons exist means redrawing 200 icons.

Step 1: Gather inputs

Collect before drawing anything. Label assumptions as guesses.

  1. Rendering sizes in product (commonly 16, 20, 24px). The smallest real size drives detail decisions.
  2. Style direction: outline, filled, or both. If both, they are two coordinated sets, not one.
  3. Existing icons to keep - an audit target - or a greenfield set.
  4. Platform constraints (web currentColor inheritance, iOS/Android asset pipelines).
  5. Who will draw future icons - the spec must be executable by someone who was not in the room.

Step 2: Define the grid and keylines

Pick a base canvas, standard is 24x24px. Inside it define:

  • Live area - 20x20, where the icon body sits.
  • Padding - the 2px margin on all sides; nothing crosses it except deliberate optical overshoot.
  • Keylines - reference shapes that anchor optical size: a 20x20 square, a 22px-diameter circle, a 22x16 horizontal rectangle, and a 16x22 vertical rectangle. A circle drawn to the square keyline looks smaller than the square; the oversized circle keyline compensates.

Step 3: Fix the stroke and corner language

  • One stroke weight for the whole set: 2px at 24px is the common default; 1.5px reads lighter and more editorial. Never mix weights - mixed weights are the single fastest way to break cohesion.
  • Standardize caps and joins (round vs butt caps) and one corner radius for stroke endpoints.
  • Decide interior corner radius (commonly 0.5-1px at 24px) and apply it everywhere.

Step 4: Set drawing rules

  • Align edges to the pixel grid at the base size; off-pixel edges render blurry.
  • Optical, not mathematical, sizing: circles slightly overshoot the live area to match squares; triangles and diagonals are optically centered, not geometrically centered. Test glyphs side by side at target size and nudge until none looks heavier.
  • One canonical form per recurring metaphor - a "plus" is always the same plus, reused, never redrawn.
  • Pick one detail level and hold it; a detailed glyph next to a minimal one reads as two sets.
  • If filled variants exist, define the outline→filled transformation rule once (which strokes become fills, which counters stay open).

Step 5: Name by meaning

Names describe function, not appearance, so a visual redesign never forces renames:

  • delete not trash-can; settings not gear.
  • Pattern: name-variant with optional category prefix - arrow-left, arrow-left-filled.
  • Lowercase, hyphenated, singular.
  • Maintain an alias table mapping synonyms to canonical names (remove → delete, preferences → settings) so searches succeed.

Step 6: Define the export pipeline

  • Export SVGs with a uniform viewBox="0 0 24 24" and no width/height attributes.
  • Use fill="currentColor" (or stroke) wherever color should inherit; no hard-coded brand hex values in the file.
  • Strip editor metadata and run every file through an SVG optimizer (SVGO or equivalent); a clean icon is typically under 1KB.
  • Flatten strokes to outlines only if the platform requires it - outlined strokes cannot be re-weighted later, so keep stroke sources.

Step 7: Redraw for small sizes

Never scale 24px art down to 16px - it goes muddy. For 16px, redraw with reduced detail, simplified counters, and a stroke that stays near 1.5-2px rendered. Ship size variants as separate optically-tuned files (icon-name-16, icon-name-24).

Worked icon spec (copy and fill)

ICON SYSTEM SPEC - [FILL: product name]

GRID
  Canvas: 24x24px    Live area: 20x20    Padding: 2px
  Keylines: square 20x20, circle Ø22, h-rect 22x16, v-rect 16x22

STROKE
  Weight: 2px (never mixed)   Caps: round   Joins: round
  Corner radius: 1px interior, round endpoints

DRAWING RULES
  Pixel-aligned edges at 24px. Optical centering for diagonals.
  Circles overshoot live area to Ø22. One detail level: [FILL: minimal / moderate]
  Canonical metaphors: plus, chevron, arrow drawn once, reused everywhere.

NAMING
  Pattern: name-variant (lowercase-hyphenated-singular)
  Examples: arrow-left, arrow-left-filled, delete, settings
  Aliases: remove→delete, preferences→settings, [FILL: more]

EXPORT
  viewBox="0 0 24 24", no width/height, fill="currentColor"
  SVGO-optimized, no editor metadata, <1KB target
  16px variants redrawn, suffixed -16

SIZES SHIPPED: [FILL: 16 / 20 / 24]
OWNER OF FUTURE ICONS: [FILL]

Consistency audit checklist

Run against an existing set; every "no" is a defect to log:

  • Same canvas and live area on every file? Same stroke weight measured, not assumed?
  • Caps, joins, and corner radii uniform? Detail level uniform?
  • Circles/squares/rectangles optically equal at target size when placed side by side?
  • Edges pixel-aligned at base size? Any glyph blurry at 100% zoom?
  • Names follow the pattern, meaning-based, no orphan synonyms outside the alias table?
  • SVGs share one viewBox, inherit color, pass the optimizer with no diff?
  • Small sizes redrawn rather than scaled?

Deliverable

Produce an icon system spec containing: the grid and keyline definitions, stroke and corner rules, drawing rules with optical-sizing notes, the naming convention plus alias table, the export pipeline checklist, and - for audits - the defect list from the checklist with a fix priority (grid violations first, naming last, because grid fixes require redraws while renames are mechanical).

Do NOT

  • Do not mix stroke weights or detail levels - either one instantly reads as two icon sets.
  • Do not center diagonal forms geometrically - they will look off-balance; center optically.
  • Do not scale 24px icons to 16px - redraw them; scaled icons render muddy.
  • Do not name icons after their appearance - gear breaks the day the settings icon becomes sliders.
  • Do not hard-code fills in exported SVGs where the product needs color inheritance - every theme change becomes a re-export.
  • Do not change the grid after the set is large without budgeting a full redraw; there is no partial migration.

Quality bar

  • A designer who never saw the set can draw a conforming new icon from the spec alone, without asking a question.
  • All keyline shapes look the same size side by side at the smallest shipped size.
  • Every file passes the audit checklist clean.
  • Icon color changes in product via CSS alone, with no asset re-export.

Pair with design-handoff-doc when the spec ships to engineering alongside other design deliverables, and with design-qa-checklist to verify implemented icons match the spec post-build.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.