data-principles

data-principles is a cursor rule for Cursor from adobe/spectrum-design-data. It costs 0 tokens per session (1,020 once invoked), scanned A, original, Apache-2.0.

A set of principles for storing design data in a structured format, including identity, component parts, reusable recipes, and migrations between formats. It explains how to keep one source for each fact and generate derived names or copies.

In plain words
What is it for?
It is for designing, changing, validating, and migrating structured design-system data such as tokens and component definitions.
Why use it?
It reduces conflicting duplicate data and makes records distinguishable through structure rather than labels or hand-written fields. It also sets rules for checking that old and new formats produce equivalent results.

Cursor rule for Cursor ✓ vendor

Written for Cursor: installed under .cursor/.

Good fit It is for designing, changing, validating, and migrating structured design-system data such as tokens and component definitions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/adobe/spectrum-design-data/data-principles
About the project

adobe/spectrum-design-data is a monorepo containing the design tokens, component schemas, specifications, and related datasets that define Adobe's Spectrum design system; a monorepo keeps these related packages in one repository. It is for Adobe Spectrum SDK and tooling developers who need canonical design-system data and validation artifacts. The catalogue add-ons provide workflows and integrations for working with this design data.

adobe/spectrum-design-data · 161 stars · on GitHub · opensource.adobe.com

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/adobe/spectrum-design-data

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 data-principles

README.md
[![agentmods](https://agentmods.dev/badge/rules/adobe/spectrum-design-data/data-principles/github.svg)](https://agentmods.dev/rules/adobe/spectrum-design-data/data-principles)
Your own site
<a href="https://agentmods.dev/rules/adobe/spectrum-design-data/data-principles"><img src="https://agentmods.dev/badge/rules/adobe/spectrum-design-data/data-principles/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 data-principles

Your own site · 80×15
<a href="https://agentmods.dev/rules/adobe/spectrum-design-data/data-principles"><img src="https://agentmods.dev/badge/rules/adobe/spectrum-design-data/data-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,020 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.00000 $0.01020
Opus 5.5 $0.00000 $0.00408
Sonnet 5.5 $0.00000 $0.00204
Haiku 4.5 $0.00000 $0.00102

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

Security

Grade A, and why

data-principles 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 4d 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.

.cursor/rules/data-principles.mdc · 64 lines

How it starts

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

Data principles

  1. One source per fact. Copies are derived or checked. A rule that only keeps copies in agreement is a smell.

  2. Identity is structured. Prose (context, labels) is display only.

  3. Fix the data, do not add a field. If structure cannot tell records apart, change the data. Remove unused fields before anyone depends on them (Hyrum's law).

  4. Vocabularies do not overlap. A term is a part or a kind, never both.

  5. Rank sources: tokens and Figma Web POC, then React Spectrum S2, then SWC. On a conflict or gap, assume, record a needs-decision bead, and carry on.

  6. Breaking changes are fine for the new format. Legacy names and Figma variable names are generated from the name object. Hand-written names and legacyKey pins are counted migration debt. @adobe/spectrum-tokens names and structure stay stable; value changes are intentional, versioned, and in the changeset.

  7. Prove neutrality. Byte-identical renders and spec sheets, per-component ratchet baselines, warning to error at zero per component. Measure a sample before a corpus-wide rule.

  8. Small shippable slices. Old and new forms coexist (expand, migrate, contract). File the contract bead when the expand starts.

  9. Stop debt growing. No new context bindings.

  10. Garth decides meaning for now. Design confirms later through per-component needs-decision beads. See "When to ask" below.

  11. Recipes force the questions. A finding is progress.

  12. Consolidate. Propose the option with fewer tokens, terms, or options.

  13. Design sees a change before code does.

  14. No compatibility shims. Only @adobe/spectrum-tokens is a compatibility surface. To consolidate, delete the superseded term and migrate its uses. Names from other implementations are registry aliases: documentation plus lint, never valid names.

  15. Deprecated records are a frozen archive. Do not rely on them or change them. If a live record needs one, repoint the live record or un-deprecate it on purpose. The identity check ignores them.

  16. Parts cover slots and named layout groups. A part is warranted when a design source names it and it owns a value, when it is a slot, or when it is an option-togglable region (anatomy-format.md, "What is a part"). RFC #1801 owns slot typing, with an explicit slots[].part link. A part that is another component carries component: <id> (SPEC-106); a recipe component part reads it from the host's anatomy part of the same key and names no component itself. subcomponent: true marks a component with no stand-alone use; its hosts are derived, never stored.

  17. Identity is (property, attribute, part, between). contextRole is derived from the property where the property implies it. contextQualifier is retired. Proposal 018 has the detail.

Also: readers are tolerant of unknown input, and a backfill is verified before the old form is removed.

Read the full file on GitHub · 64 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. 4d ago Changed 4c8928074b64
  2. 6d ago Changed a2e4a31ade10
  3. 7d ago Changed 954700e12e6a
  4. 9d ago First seen · 64 lines · 0 tokens per session scan A 8e52c8e777b6

Subscribe to this mod's changes

data-principles is a cursor rule published in the GitHub repository adobe/spectrum-design-data (161 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,020 tokens. 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-11-21.

Related

data-principles compared with cursor rules from other repositories

data-principles next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-principlesadobe/spectrum-design-dataCursor rule161todayApache-2.0A0Cursor
designlangManavarya09/design-extractCursor rule5.2k5d agoMITA235Cursor
sigil-design-systemKevin-Liu-01/Sigil-UICursor rule101mo agoMITA5,196Cursor
taste-enforcementKevin-Liu-01/Sigil-UICursor rule101mo agoMITA2,171Cursor
dashboard-designKevin-Liu-01/Sigil-UICursor rule101mo agoMITA1,680Cursor
design-animation-rulesKevin-Liu-01/Sigil-UICursor rule101mo agoMITA1,372Cursor
interface-micro-polishKevin-Liu-01/Sigil-UICursor rule101mo agoMITA993Cursor