component-pipeline

A workflow that takes one new interface component from Figma, a tool for designing user interfaces, through design tokens, code, and Storybook stories. Design tokens are shared values such as colors and spacing; Storybook is a tool for developing and documenting components in isolation.

In plain words
What is it for?
Use it to take a component such as a Tooltip from Figma to synced tokens, a coded component, and its stories. It assumes the project already has tokens, a repository, synchronization, and Storybook set up.
Why use it?
It coordinates several stages in a fixed order and asks for confirmation between them. This helps keep the design, shared values, implementation, and component examples aligned when the project already has those foundations.

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/component-pipeline
Clone the repo
git clone --depth 1 https://github.com/jrpease/throughline

Made for: Cursor.

Per session 119 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,018 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.00119 $0.01018
Opus 5 $0.00060 $0.00509
Sonnet 5 $0.00024 $0.00204
Haiku 4.5 $0.00012 $0.00102

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

Security

Grade A, and why

component-pipeline 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/component-pipeline.mdc · 86 lines

How it starts

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

Component pipeline (orchestrator)

Sequences a single new component through the whole flow: Figma → tokens → code/stories. This skill holds zero domain logic of its own — it is a sequencer that invokes the real skills and gates each stage on a human confirmation. All the actual work lives in the skills it calls; this keeps it from rotting when those skills improve.

When to use vs. the individual skills

Use this for one new component, end to end, on a system that already has foundations (tokens, repo, sync, Storybook). For initial setup, the individual skills run directly. This is the "I have a system; add a Tooltip and take it all the way to a tested story" flow.

Prerequisites

Read the manifest. The pipeline assumes foundations exist: tokens built, a repo at least local-git, sync configured, Storybook initialized. For any missing piece, offer to run the relevant skill — but note that if a lot is missing, the user probably wants the individual setup skills first, not this orchestrator.

The sequence (confirm between every stage)

Confirm the goal first: "New Tooltip component, right? I'll build it in Figma, sync any new tokens, then build the code component and its stories — checking with you between each step." Then:

Stage 1 — Build in Figma (invoke component-builder)

Invoke the component-builder rule for this one component: brainstorm its variant matrix and slots, build it bound to tokens following the component standards, capture its slot contract. Checkpoint: show the finished Figma component. Get explicit confirmation before continuing.

If the build fails or the user wants changes, stop here — they still have a valid (or fixable) Figma component and a clean place to resume. Never push a half-built component down the pipeline.

Stage 2 — Sync new tokens (offer token-sync-layer)

The new component may have introduced new tokens (a new semantic role, a new spacing step). Offer: "This component added a couple of new tokens — want me to sync them to code now?" If yes, invoke token-sync-layer (which lands a reviewable PR per its own rules). If the component introduced no new tokens, say so and skip. Checkpoint: confirm the sync PR before continuing.

Read the full file on GitHub · 86 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 · 86 lines · 119 tokens per session scan A 1bcb00897c10

Subscribe to this mod's changes

component-pipeline is a cursor rule published in the GitHub repository jrpease/throughline (76 stars, last pushed 4d ago), licensed MIT. It adds 119 tokens to every session and 1,018 once invoked, about $0.0006 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.