ui-design

ui-design is a command for Claude Code from dwarvesf/dwarves-kit. It costs 50 tokens per session (3,195 once invoked), scanned A, original, MIT.

A coordinator for designing user-interface concepts: it writes a structured design brief, sends it to an external generator, gets it reviewed, and makes a limited number of revisions. It does not build or store the renderer itself.

In plain words
What is it for?
Use it to create and refine interface designs for a downstream web or app project, using a brief and visual critique.
Why use it?
It provides a repeatable path from a product specification to a reviewed UI concept for projects that have a visual interface.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool; built for gstack.

Part of the kit plugin — 16 skills, 39 commands, 32 agents, 9 hooks shipped together

Good fit Use it to create and refine interface designs for a downstream web or app project, using a brief and visual critique.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dwarvesf/dwarves-kit/ui-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit

Made for: Claude Code.

Or install kit, the plugin that ships this one along with the rest of its 16 skills, 39 commands, 32 agents, 9 hooks.

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 ui-design

README.md
[![agentmods](https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/ui-design/github.svg)](https://agentmods.dev/commands/dwarvesf/dwarves-kit/ui-design)
Your own site
<a href="https://agentmods.dev/commands/dwarvesf/dwarves-kit/ui-design"><img src="https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/ui-design/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 ui-design

Your own site · 80×15
<a href="https://agentmods.dev/commands/dwarvesf/dwarves-kit/ui-design"><img src="https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/ui-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,195 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.00050 $0.03195
Opus 5.5 $0.00020 $0.01278
Sonnet 5.5 $0.00010 $0.00639
Haiku 4.5 $0.00005 $0.00319

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

Security

Grade A, and why

ui-design 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 4d 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.

commands/ui-design.md · 153 lines

How it starts

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

You are a UI-design loop coordinator. Your job is to write a structured UI brief, hand generation to an external generator, route the result through the visual critique, and revise, bounded. The kit ships NO renderer; generation is delegated. This lane is downstream-facing: it serves UI-bearing projects that consume the kit; the kit itself (bash/CLI) has no UI to dogfood it.

This lane does NOT implement a renderer and does NOT store generated artifacts (they live downstream). It orchestrates two stations the kit already has access to (the external frontend-design skill, and /kit:visual-team) around a brief the kit owns.

Bracket the phase for timing before starting: bash lib/gate/gate-ledger.sh outcome <rid> "UI design" start.

Step 1: Write the ## UI design brief (spec-first)

Resolve the active spec the way /kit:next does (branch-aware). Write/replace a ## UI design section into the active docs/specs/SPEC-NNN-<slug>.md if one exists, else docs/briefs/DECISION-BRIEF-<slug>.md (falling back to the legacy docs/briefs/DECISION-BRIEF.md if that is the one already on disk) (else create the brief at docs/briefs/DECISION-BRIEF-<slug>.md). If several specs match, ask the user which one; do not auto-pick. One ## UI design per doc: if it exists, REPLACE it (heading to next ## or EOF); do not stack.

The brief feeds BOTH stations: the Aesthetic direction preamble is what frontend-design reads first; the rest is what /kit:visual-team measures against.

## UI design
Date: [date]
Source: this spec's ## Solution (or the brief's), + the developer's UI intent

### Aesthetic direction (feeds the generator)
- Purpose: [the problem + who uses it]
- Tone: [pick an extreme: minimal | maximalist | brutalist | editorial | retro-futuristic | ...]
- Constraints: [framework, performance, accessibility, existing design system]
- Differentiation: [the one unforgettable thing]
- References: [ref-library cards this brief draws on, from `ref-library find <words>`, the operator's reference-library CLI when it is on PATH; copy each card's Technique numbers into the motion spec]
- Exclude: [named patterns the generator must not use, e.g. "no off-white background, no pill buttons, no italic accent words in headings"; specific names, never "avoid a generic look"]
- Persona (optional): [operator-supplied critique archetype, seeded from `$ARGUMENTS` `persona:`; blank if none. Threaded to `/kit:visual-team` in Step 3 as its 6th lens]

### Layout & structure
[regions, grid, hierarchy]

### Components & states
Per key component, a states x properties matrix; state priority disabled > loading > active > focus > hover > default.
| state | bg | fg | border | opacity | cursor |
|-------|----|----|--------|---------|--------|
| default | token | token | - | 1 | pointer |
| hover | ... | ... | ... | ... | ... |
| focus | ... | ... | ring | ... | ... |
| disabled | muted | muted | - | 0.5 | not-allowed |

### Responsive behavior
[breakpoints + the named viewports the critique checks, e.g. 390 / 768 / 1440]

### Accessibility targets
[contrast 4.5:1 body / 3:1 large+UI+focus-ring; never color-alone for state; aria-invalid / aria-busy / aria-disabled; visible focus ring]

### Design-system tokens (3-tier ladder)
- primitive: [raw values, e.g. --color-blue-600:#2563EB; --space-4:1rem]
- semantic: [purpose aliases, e.g. --color-primary -> blue-600]
- component: [per-component vars, e.g. --button-bg -> primary]
- dark mode: override the SEMANTIC layer only
(defaults to the kit's visual-theme tokens unless the project overrides)

### Content/copy
[key strings + voice as 3-5 "X not Y" trait pairs (e.g. "confident, not arrogant") + a context -> tone-shift mini-table]

If neither a spec nor a brief has a ## Solution to draw context from, still write the ## UI design from the developer's intent; do not stop.

Read the full file on GitHub · 153 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. 4d ago Changed · +1 lines 41bc3b19457a
  2. 20d ago Changed · +1 lines 325dbf580e91
  3. 1mo ago Changed 0c61b8944b12
  4. 1mo ago Changed 585d63c8702a
  5. 2mo ago Changed · +1 lines b920799f9e99
  6. 2mo ago Changed e4bfa96aa808
  7. 2mo ago Changed c9444f536326
  8. 2mo ago Changed e6b8452f91ff
  9. 2mo ago First seen · 150 lines · 50 tokens per session scan A 112191529344

Subscribe to this mod's changes

ui-design is a command published in the GitHub repository dwarvesf/dwarves-kit (15 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 3,195 once invoked, about $0.0002 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-09-04.

Related

ui-design compared with commands from other repositories

ui-design next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-designdwarvesf/dwarves-kitCommand15todayMITA50Claude Code
canvas-designhamr0/agentic-toolkitCommand233d agoApache-2.0A59Claude Code
brand-guidelineshamr0/agentic-toolkitCommand233d agoApache-2.0A50Claude Code
specmanager-designjoanseg/specmanagerCommand2713d agoMITA44Claude Code
initdork-labs/dorkosCommand11todayMITA13Claude Code
rundork-labs/dorkosCommand11todayMITA22Claude Code
pulsedork-labs/dorkosCommand11todayMITA15Claude Code