spectrum-design-data: Instructions file for GitHub Copilot

.github/instructions/data-principles.instructions.md

spectrum-design-data data-principles.instructions.md is an instructions file for GitHub Copilot from adobe/spectrum-design-data. It costs 1,018 tokens per session, 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.

Instructions file for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot instructions file.

This is adobe/spectrum-design-data's own configuration. It tells GitHub Copilot how to work on spectrum-design-data itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spectrum-design-data configures →

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 · 163 stars · on GitHub · opensource.adobe.com

Reuse

Borrowing it

Nothing to install: this file belongs to adobe/spectrum-design-data. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/adobe/spectrum-design-data/main/.github/instructions/data-principles.instructions.md
Clone the repo
git clone --depth 1 https://github.com/adobe/spectrum-design-data

Made for: GitHub Copilot.

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 spectrum-design-data data-principles.instructions.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/adobe/spectrum-design-data/data-principles"><img src="https://agentmods.dev/badge/instructions/adobe/spectrum-design-data/data-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,018 This file is loaded in full into every session.
When invoked 1,018 The same file — it is already loaded in full.
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.01018 $0.01018
Opus 5.5 $0.00407 $0.00407
Sonnet 5.5 $0.00204 $0.00204
Haiku 4.5 $0.00102 $0.00102

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

Security

Grade A, and why

spectrum-design-data data-principles.instructions.md 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 9d 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.

.github/instructions/data-principles.instructions.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 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 · 63 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. 9d ago Changed · +6 tokens per session 743c89b955b3
  2. 10d ago Changed 8bed223f13c0
  3. 12d ago Changed · +36 tokens per session 2a57d8ffe935
  4. 14d ago First seen · 63 lines · 976 tokens per session scan A 7d35e506a035

Subscribe to this mod's changes

spectrum-design-data data-principles.instructions.md is an instructions file published in the GitHub repository adobe/spectrum-design-data (163 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,018 tokens to every session, about $0.0041 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-11-21.

Related

spectrum-design-data data-principles.instructions.md compared with instructions from other repositories

spectrum-design-data data-principles.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spectrum-design-data data-principles.instructions.mdadobe/spectrum-design-dataInstructions file163yesterdayApache-2.0A1,018GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot