cursor

cursor is a cursor rule for Cursor from brendanciccone/storysync. It costs 56 tokens per session (34,545 once invoked), scanned A, original, MIT.

A tool workflow that reads UI components from Storybook, a development catalogue for components, and recreates them in Figma as a component library with design tokens such as colours, spacing and typography.

In plain words
What is it for?
It is for extracting design tokens and syncing Storybook components into Figma for design and development work.
Why use it?
It reduces the manual work of copying a coded interface into Figma and helps keep the design connected to reusable project values instead of fixed numbers.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Claude Code; mentions Codex.

Good fit It is for extracting design tokens and syncing Storybook components into Figma for design and development work.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/brendanciccone/storysync/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.

Clone the repo
git clone --depth 1 https://github.com/brendanciccone/storysync

Made for: Cursor.

Wrote 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.

agentmods badge for cursor

README.md
[![agentmods](https://agentmods.dev/badge/rules/brendanciccone/storysync/cursor/github.svg)](https://agentmods.dev/rules/brendanciccone/storysync/cursor)
Your own site
<a href="https://agentmods.dev/rules/brendanciccone/storysync/cursor"><img src="https://agentmods.dev/badge/rules/brendanciccone/storysync/cursor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursor

Your own site · 80×15
<a href="https://agentmods.dev/rules/brendanciccone/storysync/cursor"><img src="https://agentmods.dev/badge/rules/brendanciccone/storysync/cursor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 34,545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00056 $0.34545
Opus 5.5 $0.00022 $0.13818
Sonnet 5.5 $0.00011 $0.06909
Haiku 4.5 $0.00006 $0.03454

Measured 3d ago against content hash 4b6b282a2b81, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursor 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 3d 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.

skills/cursor.mdc · 419 lines

How it starts

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

Storysync: Storybook to Figma

Read components from Storybook MCP and recreate them in Figma MCP as a visually accurate component library, with design token foundations.

Requirements

  • Storybook dev server running with @storybook/addon-mcp (Vite-based Storybook 10.1+, Node 18+; snap needs Node 20+)
  • Storybook MCP in .cursor/mcp.json: { "mcpServers": { "storybook": { "url": "http://localhost:6006/mcp" } } }
  • Figma MCP: /add-plugin figma in Agent chat (or a "figma": { "url": "https://mcp.figma.com/mcp" } entry in .cursor/mcp.json), and sign in to Figma when prompted
  • Figma Full seat (Dev seats are read-only)
  • storysync 0.4.0 or later, run as npx storysync: 0.3.0 has no token px, component id, --exclude-props or --merge, and 0.2.0 and earlier have no snap or verify
  • If storysync says Storybook has no MCP endpoint (answered HTTP 404, with Run `storysync init`, then restart Storybook), ask the user to run npx storysync init, which asks before each change it makes, and then to restart Storybook. If its install fails, it prints the command to run by hand after Run manually:: pass that line on rather than retrying.
  • The CLI's own storysync diff can't sign in to Figma, so against https://mcp.figma.com/mcp it fails with HTTP 401 by design. Audit with the Audit section below instead, through use_figma, and don't retry it.

Running storysync from Cursor

Cursor runs the agent's terminal commands in a sandbox when it can, and the sandbox blocks loopback addresses (localhost, 127.0.0.1, ::1) by default. list, map, inspect and snap all talk to Storybook on localhost, and snap also launches a browser, so request full permissions to run them outside the sandbox. If one of them fails to reach Storybook from inside the sandbox, re-run it with full permissions before telling the user Storybook is down. tokens, figma tokens, figma code, figma next and verify read and write only local files. figma upload posts pictures to the upload URLs Figma's upload_assets hands out, so it needs network access: run it outside the sandbox too.

Read the full file on GitHub · 419 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. 3d ago Changed · +200 lines 4b6b282a2b81
  2. 15d ago Changed · +84 lines · +45 tokens per session 80c67ec71422
  3. 1mo ago First seen · 135 lines · 11 tokens per session scan A e87b332d9ccb

Subscribe to this mod's changes

cursor is a cursor rule published in the GitHub repository brendanciccone/storysync (75 stars, last pushed 3d ago), licensed MIT. It adds 56 tokens to every session and 34,545 once invoked, about $0.0002 per session on Opus 5.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.