spectrum-design-data: Skill for Claude Code

.ai/skills/spectrum-diagrams/SKILL.md

spectrum-diagrams is a skill for Claude Code, Codex from adobe/spectrum-design-data. It costs 106 tokens per session (2,093 once invoked), scanned A, original, Apache-2.0.

A workflow for creating technical diagrams for documentation articles. It turns real code, design tokens, or specifications into architecture diagrams or flowcharts and embeds the exported image in an article.

In plain words
What is it for?
Use it for architecture, pipeline, flowchart, and tiered diagrams in Spectrum documentation articles. It is not intended for decorative illustrations.
Why use it?
It gives documentation a consistent visual explanation of systems and workflows without inventing structures that are not present in the source material.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is adobe/spectrum-design-data's own configuration. It tells Claude Code and Codex 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/.ai/skills/spectrum-diagrams/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/adobe/spectrum-design-data

Made for: Claude Code, Codex.

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-diagrams

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adobe/spectrum-design-data/spectrum-diagrams"><img src="https://agentmods.dev/badge/skills/adobe/spectrum-design-data/spectrum-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,093 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.00106 $0.02093
Opus 5.5 $0.00042 $0.00837
Sonnet 5.5 $0.00021 $0.00419
Haiku 4.5 $0.00011 $0.00209

Measured yesterday against content hash 2de2a7aa13fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spectrum-diagrams 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 yesterday.

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.

.ai/skills/spectrum-diagrams/SKILL.md · 165 lines

How it starts

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

Spectrum diagrams for docs articles

Turns a real technical structure (code, tokens, spec, pipeline) into a diagram that looks like it belongs next to Spectrum's own docs, and embeds it in an article.

This skill is a workflow on top of the Figma MCP's own skills — it doesn't re-document their tool mechanics. Load those when this skill tells you to.

When to use this

  • An article has an <!-- Illustration: ... --> placeholder comment for a diagram (the established convention in this repo — see understanding-spectrum-tokens.md).
  • Someone asks for an architecture diagram, flowchart, pipeline, or tiered/cascade diagram to go in a docs/site/src/articles/*.md file.

Not for: decorative hero illustrations or brand illustration (bell/cloud/lightbulb style icons). Those come from the real S2 Illustrations Figma library, not generate_diagram — see Illustration guardrails below. If a placeholder asks for one, say so and point at the library rather than faking one with generate_diagram.

Workflow

1. Gather the real structure first

Read the actual code, tokens, or spec the diagram represents before writing any Mermaid. Don't invent services, edges, or tiers to "round out" a diagram — a partial, accurate diagram beats a polished, hallucinated one. If the article prose already describes the structure (tables, code blocks), that prose is the source of truth; walk it node by node.

2. Load /figma-generate-diagram and pick the type

This is mandatory before calling generate_diagram (per the Figma MCP server's own instructions). It routes you to type-specific guidance and sets universal Mermaid constraints (no emojis, no \n in labels, reserved words, etc.) — follow it, don't duplicate it here.

Two shapes come up repeatedly in this repo's articles:

  • Real software architecture (services, datastores, queues, external calls) → the architecture layout: flowchart LR, every node inside one of the fixed subgraphs (client/gateway/service/datastore/external/async), pass useArchitectureLayoutCode: "FIGMA_DIAGRAM_2026".
  • Conceptual structure (token tiers, a cascade/precedence model, a pipeline of stages) → a plain flowchart (see the Figma skill's flowchart.md reference). No subgraph-ID constraint applies here — use whatever grouping reads clearly.

Read the full file on GitHub · 165 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday Changed · +2 lines 2de2a7aa13fc
  2. 1mo ago First seen · 163 lines · 106 tokens per session scan A df56e318452b

Subscribe to this mod's changes

spectrum-diagrams is a skill published in the GitHub repository adobe/spectrum-design-data (163 stars, last pushed yesterday), licensed Apache-2.0. It adds 106 tokens to every session and 2,093 once invoked, about $0.0004 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-10-14.

Related

spectrum-diagrams compared with skills from other repositories

spectrum-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spectrum-diagramsadobe/spectrum-design-dataSkill163yesterdayApache-2.0A106Claude Code, Codex
extract-designManavarya09/design-extractSkill5.3k2d agoMITA140Claude Code
designlang-tokensManavarya09/design-extractSkill5.3k2d agoMITA30Claude Code
ss-learnbitjaru/styleseedSkill1.1k4d agoMITA73Claude Code, Codex
omd-applykwakseongjae/oh-my-designSkill6504d agoMITA129Claude Code, Codex
omd-3d-herokwakseongjae/oh-my-designSkill6504d agoMITA349Claude Code
omd-brand-lookkwakseongjae/oh-my-designSkill6504d agoMITA235Claude Code, Codex