/devflow:design-languagefrom DevFlow Skills Collection
Guides users through creating a reusable visual design language with design tokens, a DESIGN_LANGUAGE.md contract, and a living styleguide. Use when establishing a design system or brand identity to avoid templated-looking UIs.
Ships in DevFlow Skills Collection. 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; scripts run unread.
$SKILL_DIR/scripts/)Reference files (open one when a step points to it):
references/anthropic-anti-reference.md: The default Anthropic / Claude aesthetic — the anti-referencereferences/contract-format.md: DESIGN_LANGUAGE.md — the contract formatreferences/question-types.md: Questionnaire question typesreferences/token-schema.md: Token schema — what the skill emitsYou help the user design and manufacture their own reusable visual design language and
emit it as a self-contained ./design-system/ folder that future Claude sessions read and
build from. You are not styling one screen — you are compiling a durable language.
The whole point is to land somewhere that is genuinely the user's own, deliberately away from the default Anthropic/Claude aesthetic. Read references/anthropic-anti-reference.md so you know exactly what you are steering away from and can detect regression toward it.
SKILL_DIRbelow means the directory containing this SKILL.md. The scripts import a sharedtokens_libsibling, so always invoke them by their real path (python3 "$SKILL_DIR/scripts/<name>.py" …) — Python puts the script's own dir on the path, so the import resolves no matter what the user's working directory is. The./design-system/output is created in the user's current working directory.
./design-system/css/tokens.css is the single source of truth. Every dashboard page
and the W3C JSON are regenerated from it. Never hand-author a page; change tokens, then
regenerate. (Invariant from the spec — it is why the visual styleguide can never drift
from the machine-readable tokens.)./design-system/ uses relative paths only, no
CDNs, works offline — so the folder can be moved, zipped, and committed to any repo.Check for an existing system FIRST:
python3 "$SKILL_DIR/scripts/init_state.py" status --dir ./design-system
{"fresh": true} → new build. Confirm a working name with the user, then scaffold:
python3 "$SKILL_DIR/scripts/init_state.py" scaffold --dir ./design-system --name "<name>"
This creates the folder tree, seeds css/tokens.css with a deliberately neutral non-Claude
starter palette, and writes .state/brief.json.{"fresh": false, ...} → offer resume (continue at nextPhase) or revisit
(re-open an already-committed dimension to change it). Show completedDimensions so the
user sees where things stand. Run scaffold again too (it is idempotent and won't clobber
an existing tokens.css or brief).For each dimension (color, typography, spacing, shape, elevation, motion, imagery, components, patterns, voice): research → present spectrum + targeted questions → user reacts → tweak → commit → regenerate.
Spawn the design-researcher subagent (agents/design-researcher.md)
for the dimension. Give it the dimension + the user's north-star adjectives, use-cases, and
the anti-reference (from brief.json). It returns a cached manifest of real references with
local screenshots under ./design-system/.state/research/<dimension>/manifest.json. If a
phase was already researched (same adjectives), it returns the cache without re-fetching.
Graceful fallback is built in — thin results are fine because you also render your own live
archetypes next.
The safeness spectrum is N live variants from conventional (1) → experimental (5), each rendered in the user's current tokens so they react to their emerging language.
Authoring the spectrum — where your judgment matters most. Prefer writing your own
per-session variants and rendering them with --spec, rather than leaning on the built-in
seed ladders:
# You author variants.json for THIS user: each variant has a level, a name, a token-delta,
# and a small sampleHtml written with var(--token) references. render_spectrum bakes the
# effective (current+delta) token values onto each sample so it renders live & standalone.
python3 "$SKILL_DIR/scripts/render_spectrum.py" --spec ./variants.json \
--tokens ./design-system/css/tokens.css \
--out ./design-system/.state/phases/<phase>/spectrum.json
When you invent the experimental rungs, reason from the user's adjectives, use-cases, and the researched references — not from a stock list. For an "editorial, archival, print-rooted" brief the imagery experiment might be a hand-torn paper collage or a contact-sheet wall; for a "kinetic, nightlife, neon" brief it might be a marquee ticker or a strobing mosaic. The 3D cloud is fine if it genuinely fits this user — but it is never the default. Choose N per dimension: some warrant only 3 honestly-different steps; imagery may warrant 5+.
Make each rung unmistakably different — the single most important authoring rule. A
spectrum the user can't see the difference in is useless and wastes a whole cycle. So:
isolate one property per spectrum (a color spectrum varies color, not also corners and
shadows); exaggerate the steps so adjacent rungs are obviously distinct at a glance (three
near-identical blues or 6→3→1px corners read as identical — push them wide); and keep the
same sample content across rungs so the user compares the treatment. render_spectrum
auto-captions every rung with its exact token change (e.g. radius-md 8px → 0), but a caption
never excuses an invisible difference. Full guidance:
references/question-types.md.
The built-in seed ladders (--dimension <name> instead of --spec) exist as an offline
fallback and a starting point to adapt — they are generic by design. Use them to bootstrap,
then diverge.
Pre-select around the user's per-dimension safeness baseline (Phase 0) but always let them widen or override.
Assemble the questionnaire for the phase — combine the spectrum question with a
rate-grid built from the research manifest (so they also react to real references) and a
constraint "must never" box. Every 1–5 control is auto-labelled with its endpoints, and
safeness-spectrum/this-or-that carry an inline optional note — so the user can say
"this one, but with orange" without you pre-empting it; read those notes back from
responses.json alongside the picks, as they often carry the best decisions. See
references/question-types.md for every question type and its
exact JSON. Write it to the phase dir as questionnaire.json.
python3 "$SKILL_DIR/scripts/serve_questionnaire.py" \
--questionnaire ./design-system/.state/phases/<phase>/questionnaire.json \
--responses ./design-system/.state/phases/<phase>/responses.json \
--tokens ./design-system/css/tokens.css \
--research-dir ./design-system/.state/research \
--port 3119
Give the user the printed QUESTIONNAIRE_URL. The page renders every question, shows live
previews in their current tokens, and auto-saves. Do not poll — wait until the user says
they're done, then read responses.json. (Headless/Cowork/CI: add --static ./design-system/.state/phases/<phase>/questionnaire.html; the page downloads responses.json
on submit and the user points you at it. Same schema either way.)
Stop the server cleanly between phases — never pkill -f (its pattern can match the
user's own shell). The server prints QUESTIONNAIRE_PID <n> and records a pidfile beside
responses.json; stop it with the same --responses path before serving the next phase:
python3 "$SKILL_DIR/scripts/serve_questionnaire.py" --stop \
--responses ./design-system/.state/phases/<phase>/responses.json
(Or kill <the printed PID>. Reusing the default port 3119 is fine once the previous server
is stopped; if it is still up, the server just auto-picks a free port rather than failing.)
If the user chose a level but wants to nudge it, serve a short token-tweak follow-up
(live color pickers / sliders seeded from current tokens). Its answer is a token delta.
Combine the chosen variant's token delta (and any tweak delta) into one delta.json, then
commit the dimension — this folds the delta onto tokens.css (the source of truth),
re-derives the W3C JSON, and records the decision with its intended safeness level so the
contract and future work match the intended adventurousness:
python3 "$SKILL_DIR/scripts/init_state.py" commit --dir ./design-system \
--dimension color --level 3 --safeness 4 \
--rationale "duotone violet/teal — deliberately far from terracotta" \
--delta ./design-system/.state/phases/foundations/color.delta.json \
--phase foundations
python3 "$SKILL_DIR/scripts/assemble_dashboard.py" --dir ./design-system
assemble_dashboard.py regenerates index.html and every page from the new tokens, so
the styleguide always reflects reality. Show the user the updated page and move on.
To record Phase 0 / north-star data (adjectives, use-cases, references, anti-references, hard constraints, per-dimension safeness baselines) into
brief.json, write a small JSON patch and merge it:init_state.py set-brief --dir ./design-system --json patch.json. Don't hand-editbrief.json— let the helper keep it valid.
| Phase | Dimensions / output | Dashboard page |
|---|---|---|
| 0 · Discovery / North Star | adjectives, use-cases, north-star references and the user's own anti-references, hard constraints, per-dimension safeness baselines | moodboard.html |
| 1 · Foundations | color, typography, spacing, shape, elevation | tokens.html |
| 2 · Motion & Imagery | motion principles + live demos; imagery treatment | motion.html, imagery.html |
| 3 · Components | buttons, inputs, cards, nav … derived from foundations | components.html |
| 4 · Patterns / Layouts | grids, page templates, composition | patterns.html |
| 5 · Voice & Tone | content principles, microcopy, do/don't | voice.html |
| 6 · Assemble & Contract | parent dashboard, machine tokens, contract, compare page | index.html, compare.html |
Phase 0 is reaction-first too. Seed it with 3–5 contrasting archetype directions (you
render small samples) plus researched references, and have the user react (this-or-that,
rate-grid, adjective-pick) rather than asking them to describe their taste in a vacuum.
Capture their hard "must never" constraints here — these become part of the anti-reference.
Record per-dimension safeness baselines so each later spectrum centers sensibly.
Phase 6 finalizes the contract and the comparison. assemble_dashboard.py generates
DESIGN_LANGUAGE.md (structure in references/contract-format.md)
and compare.html — a side-by-side of the default Claude/Anthropic look vs. theirs — so
"did we actually escape the default?" is visible. Walk the user through the pre-ship checklist
in the contract before declaring done.
A self-contained ./design-system/ the user can drop into any project:
index.html + pages/*.html — the living, navigable styleguide (regenerated from tokens).css/tokens.css — the single hand-editable source of truth.tokens/design-tokens.json — W3C format for downstream tooling.DESIGN_LANGUAGE.md — the contract a future session reads before building any UI: identity,
the explicit anti-reference, the token map, per-dimension rules with intended safeness, and
the pre-ship checklist (token-schema details in
references/token-schema.md).Tell the user how to use it later: "In a future session, point Claude at
./design-system/DESIGN_LANGUAGE.md and css/tokens.css and ask it to build UI in this
language — it will read the contract and stay on-language."
$SKILL_DIR/scripts/)| Script | Role |
|---|---|
init_state.py | scaffold / status / set-brief / commit — owns brief.json & the folder |
tokens_lib.py | the shared tokens model (parse/write tokens.css, deltas, W3C export) |
render_spectrum.py | render N live variants for a dimension — prefer --spec (your variants) |
serve_questionnaire.py | the reusable stdlib feedback server (+ --static headless mode) |
assemble_dashboard.py | regenerate every page + the contract FROM tokens.css |
Detailed references live in references/: question-types.md,
token-schema.md, contract-format.md, anthropic-anti-reference.md.
frontend-design. If the user just wants one button/page/screen styled in
the moment, that's frontend-design — this skill is for building a durable, reusable
language as files. If they ask for a one-off style, say so and offer the right tool.agents/design-researcher.md (opens in a new tab)assets/dashboard/base.css (opens in a new tab)assets/dashboard/components.css (opens in a new tab)assets/dashboard/demos.js (opens in a new tab)assets/questionnaire.html.tmpl (opens in a new tab)evals/evals.json (opens in a new tab)references/anthropic-anti-reference.md (opens in a new tab)references/contract-format.md (opens in a new tab)references/question-types.md (opens in a new tab)references/token-schema.md (opens in a new tab)scripts/assemble_dashboard.py (opens in a new tab)scripts/dashboard/__init__.py (opens in a new tab)scripts/dashboard/assets.py (opens in a new tab)scripts/dashboard/brief.py (opens in a new tab)scripts/dashboard/contract.py (opens in a new tab)scripts/dashboard/pages_compare.py (opens in a new tab)scripts/dashboard/pages_overview.py (opens in a new tab)scripts/dashboard/pages_showcase.py (opens in a new tab)scripts/dashboard/pages_tokens.py (opens in a new tab)scripts/dashboard/render.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mhylle/claude-skills-collection --plugin devflow35 skills in this plugin
/adrDocument architectural decisions in standardized ADR format. This skill should be used when making significant technical decisions, choosing between approaches, establishing patterns, or when other skills (create-plan, implement-plan, brainstorm) identify decisions that need documentation. Triggers on "document decision", "create ADR", "architectural decision", or automatically when invoked by other skills during planning and implementation./adversarial-reviewerAdversarial code review by three independent subagent personas (Saboteur, New Hire, Security Auditor) running in parallel, isolated contexts that know nothing of the author's intent or Claude's earlier conclusions. Reviews a diff by default (staged/unstaged, a ref or a file); --codebase reviews a whole repo or subtree for tech debt, attack surface and knowledge silos. Use before merging a PR; when the user asks for a hostile, harsh, critical, skeptical or second-opinion review; when a /devflow:code-review came back suspiciously clean; when the user is tired after a long session or has a gut feeling something is off; or for a quick audit of an inherited repo ("what am I inheriting"). Differs from /devflow:code-review (routine per-phase review, no isolation) and /devflow:security-review (single-lens OWASP depth)./agent-creatorCreate composable AI agent systems in NestJS projects following the "tools all the way down" architecture. Use this skill when users want to: (1) Create new AI agents with orchestrator/planner/executor/evaluator components, (2) Build agentic systems that can call other agents as tools, (3) Implement DAG-based planning with parallel execution, (4) Add database-backed state persistence for agent runs, (5) Create custom evaluators for quality assurance. Triggers on "create agent", "build agent", "agent system", "agentic", "orchestrator", "planner/executor pattern", or NestJS AI agent requests.
/brainstormRefine a rough idea into a well-structured concept through Socratic questioning, targeted research and one or two fitting analysis frameworks (Six Thinking Hats, SCAMPER, Premortem), then write it to docs/brainstorms/ as the input for planning. Use when the user wants to brainstorm, explore or think through an idea, find holes in a proposal, asks "what am I missing", or wants to shape a concept before planning, whether or not the work is tracked in TaskTracker. The output feeds /create-plan, /tt-create-plan and /user-story./codebase-auditLong-running, resumable adversarial audit of a whole codebase. Splits the repo into partitions, runs /adversarial-reviewer --codebase on each, then synthesizes a cross-partition risk register and a written remediation report. Use for onboarding audits of an inherited codebase, pre-acquisition due diligence, periodic tech-debt health checks, or when the user asks for a comprehensive, thorough, exhaustive or deep review of the whole codebase ("full codebase audit", "code due diligence", "tech debt audit", "what am I inheriting"). Differs from /adversarial-reviewer --codebase, which samples the repo in one pass, and from /code-quality-audit, which measures coverage, complexity, cycles and mutation scores./codebase-researchOrchestrates comprehensive codebase research by decomposing user queries into parallel sub-agent tasks and synthesizing findings. This skill should be used when users ask questions about how code works, where functionality exists, how components interact, or need comprehensive documentation of existing implementations. It focuses exclusively on documenting and explaining the codebase as it exists today.Other plugins' skills for the same job