token-crosswalk-builder

token-crosswalk-builder is a cursor rule for Cursor from jrpease/throughline. It costs 115 tokens per session (1,738 once invoked), scanned A, original, MIT.

A rule for building a persistent map between new design tokens, old Figma variables, and old code identifiers. Design tokens are named values such as colors, spacing, or font sizes that keep an interface consistent; brownfield means an existing project being updated.

In plain words
What is it for?
Use it when planning or carrying out a design-system retrofit, mapping values across Figma and code, and adding the tokens:validate check to the project.
Why use it?
It records how old design and code names correspond to new ones, then connects a CI check that can catch missing or invalid mappings. This is intended for retrofitting a design system onto an established codebase.

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

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 token-crosswalk-builder

README.md
[![agentmods](https://agentmods.dev/badge/rules/jrpease/throughline/token-crosswalk-builder.svg)](https://agentmods.dev/rules/jrpease/throughline/token-crosswalk-builder)
Your own site
<a href="https://agentmods.dev/rules/jrpease/throughline/token-crosswalk-builder"><img src="https://agentmods.dev/badge/rules/jrpease/throughline/token-crosswalk-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 115 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,738 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.00115 $0.01738
Opus 5 $0.00057 $0.00869
Sonnet 5 $0.00023 $0.00348
Haiku 4.5 $0.00012 $0.00174

Measured today against content hash 20fef6a5174d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

token-crosswalk-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 today.

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/token-crosswalk-builder.mdc · 129 lines

How it starts

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

Token crosswalk builder

Builds the backbone artifact of a brownfield retrofit: crosswalk.json, a persistent three-way map of new token ↔ old Figma variable ↔ old code identifier. It drives the code retrofit and the tokens:validate CI gate. This skill also installs the canonical scripts into the user's repo and wires the gate.

This is a brownfield skill. Before doing anything, read .throughline/references/brownfield-retrofit.md (read discipline, the 7 guardrails, the safe sequence) and .throughline/references/crosswalk-schema.md (the exact contract). Greenfield builds don't need this skill.

Calibrate

Read user.codingLevel (.throughline/references/coding-level.md) and scale explanation accordingly. The crosswalk involves JSON, npm scripts, and a CI gate — for new users explain each plainly the first time; for comfortable users be terse. Actions are identical across levels.

Prerequisites (offer to run them, don't bail)

Read the manifest. This skill needs:

  1. A DTCG token source at packages/tokens/dtcg/tokens.json — the validator resolves against it. If it doesn't exist, offer to run token-sync-layer first (it emits this file). Apply the read discipline: confirm the file exists by reading it, never assume it's absent without looking.
  2. The audit inputs — ideally the audit manifest section (code surface, Figma inventory, percentSemantic) populated by design-system-audit. If audit is present, use it to seed the rows. If it is null (audit hasn't run — it lands in Plan 3), don't block: ask the user for the old→new mapping inputs directly (which old Figma variables and code symbols map to which new tokens), and proceed. Note plainly that running design-system-audit first would pre-fill this.
  3. A repo at local-git or github (workspace.stage) so the installed scripts and package.json changes land as a reviewable diff/PR. If still folder, offer repository-builder.

Read the full file on GitHub · 129 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. today Changed · +2 lines 20fef6a5174d
  2. 4d ago First seen · 127 lines · 115 tokens per session scan A 2e5338396e6b

Subscribe to this mod's changes

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