shape

A command for planning a new screen as a low-detail wireframe before writing interface code. It records the layout, visible states, content, and unanswered questions.

In plain words
What is it for?
Use it when starting a screen from scratch or when a design brief is unclear, especially to define the main action, default information, success result, and target user.
Why use it?
It makes the screen's purpose and required content explicit before implementation begins. This helps prevent building a polished interface around missing or guessed requirements.

Command

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.

agentmods
npx agentmods add commands/educlopez/ui-craft/shape
Clone the repo
git clone --depth 1 https://github.com/educlopez/ui-craft
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,485 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.01485
Opus 5 $0.00019 $0.00743
Sonnet 5 $0.00008 $0.00297
Haiku 4.5 $0.00004 $0.00148

Measured 2d ago against content hash 91170c5f4331, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

shape 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 2d 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.

cli/assets/claude/commands/shape.md · 119 lines

How it starts

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

Shape the UI for $ARGUMENTS before writing code. Load the ui-craft skill.

This command produces a shape artifact, not JSX. The point is to force low-fi thinking — content inventory, layout regions, state coverage, open questions — before any component is written. Skipping this step is how generic AI UIs get built: straight to hi-fi, no discovery, every screen looks the same.

Step 1 — Clarify (3-5 questions). Ask the user before shaping. Don't guess. Minimum questions:

  • What's the primary user action on this screen? (One verb, one object.)
  • What data is visible by default vs hidden behind a click or tab?
  • What does success look like — a state, a redirect, a toast?
  • Who's the primary user — first-timer, power user, mobile-first?

Step 2 — Content inventory. Bullet list of every piece of content that will appear. Annotate each by priority:

  • P0 — must be visible on first paint. Cut it and the screen fails.
  • P1 — one click away (tab, accordion, drawer).
  • P2 — settings-level; rarely accessed.

Example:

- P0  Headline (one line, the value prop)
- P0  Primary CTA
- P0  Hero chart / metric
- P1  Secondary nav tabs
- P1  Recent activity list
- P2  Export / integrations menu

Step 3 — ASCII layout. Low-fi sketch showing regions. No specific copy, no colors, no font sizes. One desktop variant + one mobile variant. Use box characters:

Desktop
┌──────────────────────────────────────────────┐
│ [logo]                 [nav]         [user]  │
├──────────────────────────────────────────────┤
│  ┌────────────────┐   ┌───────────────────┐  │
│  │ Headline + sub │   │                   │  │
│  │                │   │   Hero visual     │  │
│  │ [Primary CTA]  │   │                   │  │
│  └────────────────┘   └───────────────────┘  │
│                                              │
│  ── Social proof row ──                      │
│                                              │
│  ┌─── Feature 1 ───┐   ┌─── Feature 2 ───┐   │
│  └─────────────────┘   └─────────────────┘   │
└──────────────────────────────────────────────┘

Mobile
┌──────────────────┐
│ [logo]     [☰]   │
├──────────────────┤
│  Headline + sub  │
│                  │
│  [Primary CTA]   │
│                  │
│  ┌── Hero ──┐    │
│  └──────────┘    │
│                  │
│  Social proof    │
│                  │
│  Feature 1       │
│  Feature 2       │
└──────────────────┘

Asymmetry is fine and often better — don't force center-everything.

Step 4 — State list. Enumerate the states this screen must handle. Point at references/state-design.md for the contracts.

  • idle — default state, data present.
  • loading — skeletons that mirror final layout, 200ms delay before showing.
  • empty — first-run or no data; doubles as onboarding.
  • error — specific cause + recovery action + support ID.
  • partial — some data loaded, some failed (e.g., one widget erred).
  • conflict — user-edit collision (rare but load-bearing on collaborative surfaces).
  • offline — queue writes, reconcile on reconnect.
  • success — confirmation state after the primary action completes.

Mark each as required / optional (why) / N/A.

Step 5 — Open questions. Do NOT start coding until these are answered. Default set:

  • Accent color — brand-defined, or to be chosen? (See Discovery in SKILL.md.)
  • Typography — existing tokens, or new system? (Reference typography.md.)
  • Responsive breakpoints — what's the minimum supported width?
  • Stack — CSS only, or Motion / GSAP / Three.js? (Only load stack.md if the user opts in.)
  • Data source — real API ready, or mock for shape?
  • Keyboard / a11y requirements — anything beyond the baseline from accessibility.md?

Knob awareness.

  • At CRAFT_LEVEL ≥ 7, add two more sections:
    • Motion shape — which elements enter, in what order, with what stagger. Pick from the duration scale in references/motion.md.
    • Typography hierarchy plan — display / headline / body / label sizes and weights, before code.
  • At CRAFT_LEVEL ≤ 4, strip Step 4 to idle / loading / error only. Skip the motion shape.

Read the full file on GitHub · 119 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. 2d ago First seen · 119 lines · 39 tokens per session scan A 91170c5f4331

Subscribe to this mod's changes

shape is a command published in the GitHub repository educlopez/ui-craft (298 stars, last pushed 13d ago), licensed MIT. It adds 39 tokens to every session and 1,485 once invoked, about $0.0002 per session on Opus 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-08-30.