/agentic-design-system:loop-1-expandfrom agentic-design-system
Run the design system's Expand loop (Loop 1) - mine override telemetry and frontend usage for recurring needs, promote them into the spec (new tokens, vocabulary entries, component variants, or components), rewrite the motivating overrides as spec references, and verify the result compiles. Use this whenever the user says "run loop 1", "expand", "grow the system", "promote overrides", "pave the desire paths", "process the overrides report", or when overrides-report.json has accumulated entries that look like recurring gaps.
Ships in agentic-design-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Grow the spec from demand. Every override in the estate is a recorded gap in the
vocabulary; when the same gap appears repeatedly, promote it into the spec and retire
the overrides that motivated it. Philosophy: docs/loops.md in the design system's
repo. This skill is the procedure.
The prime directive is minimum description length: a promotion must shrink the
estate's total description — the spec entry it adds should delete more override/product
text than it costs. Never promote a one-off; a single override with a good reason is
the system working as designed, not a bug to fix.
Read ds.config.json at the project root: spec.core (the system's spec — may point
at a separate checkout), spec.products (product-owned spec roots), frontend
(directories whose Django templates consume the system), commands
(check/build/test/render), artifacts (overrides report path, rendered pages). If it
is missing, discover the layout (spec roots contain tokens/ + components/; the
core has schemas/; frontend dirs have templates with {% load ds %}), write the
config, and note that in your report. The ds-authoring skill documents the format.
uv sync
<commands.build> # produces a fresh overrides report
Read the overrides report (artifacts.overridesReport). Each entry carries id,
component, spec_file, node_path, selector, reason, declarations, attrs.
Record the baseline override count — your run must reduce it (or you promoted
nothing, which is a valid outcome when no pattern recurs).
Then gather the second kind of evidence from actual usage:
frontend dirs): the same
cluster of {% ds_* %} tags with the same props/nesting appearing across pages is
the same signal one level up.Group overrides by what they are for, not by literal text. Two overrides belong to
one cluster when they express the same need: same properties with the same or
near-identical values, or reason fields naming the same missing capability.
A cluster is promotable when it has 2 or more independent occurrences, or when
its reason explicitly names a gap the vocabulary can already almost express (e.g. a
missing token value of an existing type — the cheapest possible fill).
Escalate only when the smaller form cannot express the need:
color.base.* etc.); components consume a
semantic alias named for meaning, not appearance (color.highlight.surface,
never color.orange-light).<core>/vocabulary/) — grows
what all components may express. Declare which token $types the property accepts.ds-authoring
skill: stable id (cmp.<name>, never reused), level by composition depth, one
JSON file in the owning spec root. Promote into the core spec only if 2+ products
need it; a pattern recurring within one product belongs in that product's own
spec root.Some overrides exist because a whole token type is missing (gradients, shadows). Promoting a new token type means touching the schema, vocabulary, and compiler; do it only when the cluster is large enough to justify compiler work, and say so explicitly in your report if you judge it not yet justified.
Make the spec edits, then rewrite every override in the cluster as ordinary spec
references and delete the override nodes. A promotion that leaves its motivating
overrides in place has not finished. If an override carried several declarations and
only some are now expressible, shrink it: move the expressible declarations into
styles, keep the rump override with an updated reason.
<commands.check> # must exit 0 - the closed spec is the law
<commands.test> # full suite green
<commands.build> # fresh overrides report
Confirm in the fresh report: count strictly below baseline, and no entry from the
promoted cluster remains. If the project has renderable pages (commands.render,
artifacts.renderedPages), render and confirm the promoted styling still produces
the intended visual result — a promotion is a refactor of meaning into vocabulary;
the pixels should not regress.
One commit per run, conventional format, e.g.
feat(spec): promote highlight surface + 2xl spacing from recurring overrides.
Never push.
Report exactly this:
## Loop 1 run
- Baseline overrides: N -> now: M
- Clusters found: <list with occurrence counts>
- Promoted: <spec nodes added, with form: token/vocabulary/variant/component>
- Retired: <override ids deleted>
- Skipped: <clusters left alone and why - one-offs are listed here, not fixed>
- Verification: check OK, tests OK (<count> passed)
spec.core points at a separate repo checkout, core-spec promotions happen
there (commit in that checkout); product-root promotions and override rewrites
happen here. Same procedure, two commits, and say so in the report.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (oslokommune/agentic-design-system) — no native marketplace selected
npx claudepluginhub p/oslokommune-agentic-design-system3 skills in this plugin
/ds-authoringWork with the agent-operated JSON design system - author tokens and components in the closed spec, use the override escape hatch correctly, compile with ds-compile, and consume components in Django templates via {% ds_* %} tags. Use this whenever the task touches spec/*.json files (tokens, components, css vocabulary), ds.config.json, adding or changing a design-system component or token, fixing ds-compile errors, or building Django pages with design-system components - even if the user doesn't say "design system"./loop-2-contractRun the design system's Contract loop (Loop 2) - scan the spec and its real usage for dead nodes (unused tokens/components), overlapping near-duplicates (tokens with identical or perceptually indistinguishable values, components with near-identical anatomy), merge or delete them, rewrite all references atomically, and prove the change was output-preserving. Use this whenever the user says "run loop 2", "contract", "consolidate", "dedupe the spec", "prune unused tokens", "shrink the system", "remove bloat", or after Loop 1 runs have accreted vocabulary.Other plugins' skills for the same job