icon-system-builder

An icon-library builder for Figma, a collaborative design app. It creates a dedicated Icons page with named, scalable icon components from supported libraries or custom SVG files.

In plain words
What is it for?
Use it to import an icon library, add custom SVG icons, create icon components, or prepare icons for use in Figma components.
Why use it?
It avoids drawing icons one by one and gives interface components a consistent set of icons that can be reused and swapped.

Cursor rule for Cursor

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 rules/jrpease/throughline/icon-system-builder
Clone the repo
git clone --depth 1 https://github.com/jrpease/throughline

Made for: Cursor.

Per session 96 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,942 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.00096 $0.03942
Opus 5 $0.00048 $0.01971
Sonnet 5 $0.00019 $0.00788
Haiku 4.5 $0.00010 $0.00394

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

Security

Grade A, and why

icon-system-builder 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.

adapters/cursor/.cursor/rules/icon-system-builder.mdc · 281 lines

How it starts

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

Icon system builder

End state: a Figma page named Icons containing the relevant icon set as scalable, well-named components, ready to be consumed by components (skill 4) and swapped via instance properties.

Core principle: don't make Cursor draw 1,700 icons

The expensive, wrong path is Cursor generating icon components one by one, by hand, via the write mechanism — slow and token-hungry. Get to the end state via the cheapest mechanism that is also fully automated and produces clean, well-named components. "Cheapest" is not just Cursor tokens: a mechanism that burns near-zero tokens but makes the user hunt down a community file, duplicate it, and copy components by hand isn't actually cheap — it just moves the cost onto them. The library determines the mechanism, deterministically — same library, same path every run.

Lucide → fetch the official SVGs directly (default)

Default for Lucide: fetch the curated subset straight from the official source repo and batch-componentize it. Lucide publishes every icon as a uniform 24px SVG at a deterministic path (github.com/lucide-icons/lucide, icons/<name>.svg), and the filename is the canonical name (arrow-rightArrowRight in lucide-react). So the agent can do the whole thing hands-off:

  1. Resolve the subset to kebab-case icon names (see name validation below) and pin a release tag — ideally the tag matching the installed lucide-react version, so the Figma mirror and the code package are the same generation.
  2. Batch-fetch each https://raw.githubusercontent.com/lucide-icons/lucide/<tag>/icons/<name>.svg. A 404 means that icon doesn't exist at that version — report it and let the user pick a replacement. (This is the name-validation gate, for free.)
  3. In one scripted pass, turn each SVG into a component via figma.createNodeFromSvg(svg), convert to a component, name it per the naming contract (Step 3), and set the base size.

This is fully automated, official source-of-truth, deterministic-named, and needs no manual user steps — strictly better than a community-file copy for a library shaped like this. This is not the old "fetch SVGs off a website and hand-prep them" anti-pattern: that meant a human manually downloading and cleaning files. Batch-grabbing the official repo by deterministic path and scripting createNodeFromSvg is cheap and hands-off.

Read the full file on GitHub · 281 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. 2d ago First seen · 281 lines · 96 tokens per session scan A 4c9266c9ca2e

Subscribe to this mod's changes

icon-system-builder is a cursor rule published in the GitHub repository jrpease/throughline (76 stars, last pushed 4d ago), licensed MIT. It adds 96 tokens to every session and 3,942 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.