Everything about Design System Doc Spec (DSDS) — entry kinds, sections, schema structure, and how it fits into the ecosystem.

Apache-2.0Auto-check passedFrontend & Design

Install Dsds Specs

skills CLI
$ npx skills add somerandomdude/design-system-documentation-schema --skill dsds-specs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install somerandomdude/design-system-documentation-schema dsds-specs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/somerandomdude/design-system-documentation-schema.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dsds-specs .claude/skills/dsds-specs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dsds-specs
GitHub stars
116
Token cost
~2.8k tokens
SKILL.md length
1,274 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Everything about Design System Doc Spec (DSDS) — entry kinds, sections, schema structure, and how it fits into the ecosystem.

  • Works in 4 steps: Bundled schema:… → Schema architecture reference:… → Quick start with examples:… → …
  • Reasoning about DSDS specs and .dsds.yaml files
  • SKILL.md covers Schema Sources, Entry Kinds, Document Structure and Sections, plus 5 more sections
  • Calls npx; reaches designsystemdocspec.org

What it does

Dsds Specs is an agent skill from somerandomdude/design-system-documentation-schema. Everything about Design System Doc Spec (DSDS) — entry kinds, sections, schema structure, and how it fits into the ecosystem. Use when authoring, reviewing, or reasoning about DSDS specs and .dsds.yaml files.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Design systems. The licence is Apache-2.0.

When your agent uses it

  • Reasoning about DSDS specs and .dsds.yaml files
  • Tasks that involve Design systems

Example prompts

  • “/dsds-specs”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Bundled schema: https://designsystemdocspec.org/v0.21.2/dsds.bundled.schema.json (or node_modules/design-system-documentation-schema/schema…
  2. Schema architecture reference: https://designsystemdocspec.org/schema#how-the-schema-is-organized (and Conformance for conformance classes…
  3. Quick start with examples: https://designsystemdocspec.org/quickstart
  4. GitHub source (split schema + examples): https://github.com/somerandomdude/design-system-documentation-schema/tree/main/schema

What it can do on your machine

Read from SKILL.md and the folder at commit 52790fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • designsystemdocspec.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dsds Specs loads about 2.8k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 1,274 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from somerandomdude/design-system-documentation-schema at commit 52790fe, republished under its Apache-2.0 licence (© somerandomdude). 1,274 words, ~2,800 tokens.

Download SKILL.mdSave it as .claude/skills/dsds-specs/SKILL.md (or your agent's skills folder).
name
dsds-specs
description
Everything about Design System Doc Spec (DSDS) — entry kinds, sections, schema structure, and how it fits into the ecosystem. Use when authoring, reviewing, or reasoning about DSDS specs and `*.dsds.yaml` files.
metadata.version
0.21.2

Design System Doc Spec (DSDS)

DSDS is a machine-readable YAML format for documenting design systems. DSDS specs are the single source of truth — everything else (React components, Figma, docs, AI catalogs) derives from them.

DSDS documents a graph of entries (a system, a component, a token, a theme, or the generic entry kind for anything else), each carrying typed sections (definitions, guidelines, steps, or the generic section). It never duplicates data a better source of truth already owns — a component's sourceFiles points at the real code instead of hand-typing its props; a token's source points at the real DTCG value instead of restating it.

Schema Sources

When you need precise field-level details beyond this skill, consult these in order:

  1. Bundled schema: https://designsystemdocspec.org/v0.21.2/dsds.bundled.schema.json (or node_modules/design-system-documentation-schema/schema/dsds.bundled.schema.json if installed as a dependency)
  2. Schema architecture reference: https://designsystemdocspec.org/schema#how-the-schema-is-organized (and Conformance for conformance classes and the full rule catalog)
  3. Quick start with examples: https://designsystemdocspec.org/quickstart — and the style guide for the field order every example follows. The schema permits any order; the style guide picks one. It is a convention, not a constraint — the DSDS-17–DSDS-23 rules that report deviations are advisory warnings from npx dsds-lint, never a validation failure.
  4. GitHub source (split schema + examples): https://github.com/somerandomdude/design-system-documentation-schema/tree/main/schema

Key pages for field-level detail:

Each definition has its own small markdown mirror under /schema/ — a few KB of field names, types, requiredness and descriptions for that one shape, in the order the schema declares them. Fetch one of these rather than the whole bundle when you need a single shape.

The Schema page carries the same content for a human reader, one anchor per definition — for example /schema#entries-component.

Entry Kinds

KindPurposeSuggested directory
systemThe design system as a whole — version, organization, url, license, platforms. One per project, usually the root index.dsds.yaml.(root)
componentA reusable UI element — API (via sourceFiles), variants/states (via traits), accessibility, usage.components/
tokenA single design token. Points at its real value via source; never carries the value itself.tokens/
themeA named set of token overrides (dark mode, brand variant). Points at its DTCG source file.themes/
entry (generic, or a namespaced custom kind like acme.icon-library)Anything else — a foundation, a pattern, a guide. Organize by folder for clarity even though the schema kind is uniform.foundations/, patterns/, guides/, etc.

There is no token-group kind: a group of related tokens is a metadata.group fact on the tokens in it, not a separate artifact.

Document Structure

A standalone entry file (most components, tokens, themes) has no wrapper — the entry's own fields sit at the file's top level:

yaml
kind: component
id: checkbox
name: Checkbox
description: A styled checkbox input for boolean or indeterminate selection.

A base document (the root index.dsds.yaml, or any file meant to hold more than one entry) requires schemaVersion, name, and a non-empty entries array. System-wide facts live on that list's own kind: system entry:

yaml
schemaVersion: "0.21.2"
name: Acme Design System

entries:
  - kind: system
    id: acme-design-system
    name: Acme Design System
    description: Acme's cross-platform design system.
    metadata:
      version: 1.4.0
      platforms: [react, web-component]

refs:
  - href: ./components/checkbox.dsds.yaml
    rel: file
    role: Checkbox component

Splitting a system across many files uses refs (rel: file) pointing at sibling documents — not a $ref/JSON-Pointer include. There's also scripts/tools/compose.js upstream, for concatenating many hand-authored fragment files into one document before validation.

Sections

Every entry's structured docs live in one sections array. Each section has a kind and a for (human, agent, or all, naming its audience):

  • definitions — term/definition pairs. Use for anatomy, naming conventions, or a prop/event list when there's no real source file to extract from.
  • guidelines — a statement paired with a level (must/should/may/should-not/must-not). Carries framing: when-to-use (a fit judgment) or how-to-use (the default, an implementation rule).
  • steps — an ordered procedure or unordered checklist.
  • section (generic) — for anything else, or purely freeform narrative prose.

Every section kind can also carry freeform: headed, nestable prose alongside its own structured items.

Two optional fields on any section kind make it findable without matching on a human-written title:

  • context — the job the section is doing: anatomy, terms, keyboard, events, or a namespaced custom value. Set it whenever the section has one of those jobs, so a tool can find "the anatomy table" by field rather than by heading text.
  • tags — what the whole section is about ([accessibility]). The first tag is the primary one. A tag-scoped section sorts after the broader sections covering the same entry.

A guidelines item that claims checkedBy: automated must point checks at what actually runs the check — rel: test (the design system's own code), rel: lint-rule (static analysis), or rel: agent-test (a fixture that runs an AI agent against the guideline and grades what it generates). An agent-test usually reports a pass rate or a judged rubric rather than a strict pass/fail, so pair it with checkedBy: assisted unless its assertion really is deterministic.

Show full SKILL.md (489 more words)Show less

A Component's Own Fields

Not sections — facts about the component as a build artifact:

  • sourceFiles — one entry per platform, pointing a tool at the real file to extract the API from (Button.tsx). Prefer this over hand-typing props in a definitions section.
  • specs — the already-generated contract document, one step later in the same pipeline (a Custom Elements Manifest, a DS Contracts document, your own format), with rel: contract. DSDS points at it and never parses it, so any standard format works.
  • imports — one entry per platform: install package + import statement.
  • traits — every variant and state the component has. Each one declares traitType: variant (a dimension the caller configures, like size) or traitType: state (a condition the component can be in, like hover). Separately, kind says whether its value is a boolean toggle or an enum with named values — either traitType can be either kind. A trait's id mirrors the real prop or attribute name, so isDisabled stays as written.
  • combos — pairing rules between traits, tokens, or entries (e.g. "loading and disabled must not both be set"). A combo addresses an enum value as traitId.valueId, which is why a dot is the one character a trait id can't contain.

Agent-Only Sections

Mark a section for: agent for firm, ready-to-act notes a person wouldn't need — hard MUST/MUST NOT rules, notes that keep an agent from confusing this entry with a similar one, checks an agent can run against its own output. Tools never surface these to people. It must extend the human-facing sections on the same entry, never contradict or repeat them.

Schema Validation

The bundled schema is published at https://designsystemdocspec.org/v0.21.2/dsds.bundled.schema.json, using JSON Schema draft 2020-12. Validate with:

bash
npx dsds-validate <files-or-globs>   # is this document allowed?
npx dsds-lint <files-or-globs>       # is this documentation good? (advisory)

See the dsds-validate skill for the full rule catalog (DSDS-01–DSDS-23) and how to interpret failures.

Deep-Dive References

Fetch these pages when authoring specific pieces:

Gotchas

  • A standalone entry file has no entity/entityGroups wrapper — id/kind/name/description sit at the top level directly. A base document requires schemaVersion, name, and a non-empty entries array.
  • id must match the filename without .dsds.yaml (e.g. checkbox → checkbox.dsds.yaml).
  • Three id shapes, and they are not interchangeable: an entry id is lowercase dash-separated segments, optionally dot-chained (color.action.primary); a trait id or enum value copies a real API name in whatever case that API uses, no dots (isDisabled); a token id is the same but may also chain with a dot or a slash, so a Figma variable named Color/Action/Primary validates as written.
  • Requirement levels: must, should, should-not, must-not, may (lowercase, hyphenated — RFC 2119).
  • metadata.status is always an object: {status: "stable"}, optionally scoped with platform, since, deprecationNotice, note. There's no bare-string shorthand.
  • All pointers — dependencies, composition, citations, external links — use one type: common/ref (to for this document's own graph, href for outside it, plus a rel). There's no separate "relationship" or "link" type.

© somerandomdude, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/dsds-specs of somerandomdude/design-system-documentation-schema.

Open the folder on GitHubat commit 52790fe

Compare with similar skills

Dsds Specs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dsds Specs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dsds Specs this skillsomerandomdude/design-system-documentation-schema116—~2.8kAutomated safety check: PassApache-2.0
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
UI StylingOhh-889/skyroc79513 repos~2.5kAutomated safety check: PassMIT
Shadcnsupabase/evals14342 repos~4.5kAutomated safety check: PassApache-2.0

Similar skills

  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • UI Styling

    Ohh-889/skyroc

    Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs.

    795 GitHub starsUsed in 13 repos~2.5k tokens
    Frontend & DesignAuto-check passed
  • Shadcn

    supabase/evals

    Official

    Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI.

    143 GitHub starsUsed in 42 repos~4.5k tokens
    Frontend & DesignAuto-check passed
  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed

More from somerandomdude/design-system-documentation-schema

  • Dsds Add

    somerandomdude/design-system-documentation-schema

    Author a new Design System Doc Spec (DSDS) spec from component implementation, Figma design, or written requirements.

    116 GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check passed
  • Dsds Validate

    somerandomdude/design-system-documentation-schema

    Validate DSDS specs against the bundled schema and check for consistency issues.

    116 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Dsds Update

    somerandomdude/design-system-documentation-schema

    Update an existing DSDS spec based on implementation changes, Figma updates, or written instructions.

    116 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed

Questions about Dsds Specs

What does Dsds Specs do?

Everything about Design System Doc Spec (DSDS) — entry kinds, sections, schema structure, and how it fits into the ecosystem. Dsds Specs is an agent skill from somerandomdude/design-system-documentation-schema. Everything about Design System Doc Spec (DSDS) — entry kinds, sections, schema structure, and how it fits into the ecosystem.

When should I use Dsds Specs?

Dsds Specs fits situations like: reasoning about DSDS specs and .dsds.yaml files; tasks that involve Design systems.

How do I install Dsds Specs in Claude Code?

Run `npx skills add somerandomdude/design-system-documentation-schema --skill dsds-specs -a claude-code`. Or copy the skill folder (.agents/skills/dsds-specs in somerandomdude/design-system-documentation-schema) into .claude/skills/dsds-specs in your project. Claude Code loads it when a task matches its description.

How do I install Dsds Specs in Codex?

Run `npx skills add somerandomdude/design-system-documentation-schema --skill dsds-specs -a codex`. Or copy the skill folder (.agents/skills/dsds-specs in somerandomdude/design-system-documentation-schema) into .agents/skills/dsds-specs in your project. Codex loads it when a task matches its description.

Can I use Dsds Specs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add somerandomdude/design-system-documentation-schema --skill dsds-specs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dsds-specs, .gemini/skills/dsds-specs, .github/skills/dsds-specs and .opencode/skills/dsds-specs in your project.

What does Dsds Specs need to run?

Going by SKILL.md and its folder, Dsds Specs needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Dsds Specs access the network?

SKILL.md names 1 domain. In commands or code: designsystemdocspec.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Dsds Specs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dsds Specs use?

Dsds Specs is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dsds Specs use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dsds Specs?

Skills that share tags, products or a category with Dsds Specs: Impeccable (bestofjs/bestofjs, 3.1k stars), Figma Design System Builder (warpdotdev/warp, 65k stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars) and UI Styling (Ohh-889/skyroc, 795 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dsds Specs?

somerandomdude (a GitHub user) maintains it in somerandomdude/design-system-documentation-schema, which has 116 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 7, 2026.

Source: somerandomdude/design-system-documentation-schema on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.