Shape

From tdimino/claude-code-minoan · View interactive version

Shape is an AI agent skill from the GitHub repository tdimino/claude-code-minoan. Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shap

How to use this skill

Skill file

Shape the UX and UI for a feature before any code is written. This skill produces a design brief — a structured artifact that guides implementation through discovery, not guesswork.

Scope: Design planning only. This skill produces design briefs, not code.

Preparation

Read ~/.claude/skills/minoan-frontend-design/SKILL.md for aesthetic principles and anti-pattern guidance. These inform the design direction but should not constrain the discovery interview.

Check for existing design context: .design-context.md in the project root, or a ## Design Context section in CLAUDE.md. If either exists, use it as a starting point — don't re-ask questions it already answers.

Phase 1: Discovery Interview

Do NOT make any design decisions during this phase. Understand the feature deeply enough to make excellent decisions later.

Interview cadence

Ask 2-3 questions per round, then wait for answers. One round is the default. Add a second only if the first answers leave material gaps — don't run a second round just to feel thorough.

Assert-then-confirm, not menu-with-escape. When the user's prompt and existing context make one option obvious, name it and ask the user to confirm or override. "This reads as Restrained, confirm?" beats a four-option menu when the answer is already clear.

Ask these questions conversationally — adapt based on answers, don't dump them all at once:

Purpose & Context

Content & Data

Design Direction

Force a visual decision on three fronts. Skip anything existing context already answers; ask only what's missing.

Scope

Always ask. Sketch quality and shipped quality are different outputs — don't guess between them.

Constraints

Anti-Goals

Phase 1.5: Visual Direction Probe (Capability-Gated)

After the interview, generate 2-4 visual direction probes before writing the final brief when all of these are true:

When those conditions are met, this step is mandatory. If image generation isn't natively available, state in one line that the step is skipped and proceed.

The probes should differ in primary visual direction (hierarchy, topology, density, typographic voice, color strategy), not just palette tweaks. Treat them as direction tests — ask the user which feels closest, what's off, and what should carry forward. If probes reveal a mismatch, revise the brief inputs before finalizing.

Phase 2: Design Brief

After the interview (and any probes), synthesize into a structured design brief. Present it and stop — the user must confirm before considering this skill complete.

Choose the brief shape based on clarity:

Don't pad a clear brief into a long one to look thorough.

1. Feature Summary (2-3 sentences)

What this is, who it's for, what it needs to accomplish.

2. Primary User Action

The single most important thing a user should do or understand here.

3. Design Direction

Color strategy (Restrained / Committed / Full palette / Drenched) + theme scene sentence + 2-3 named anchor references. Reference the project's design context if available. Set DESIGN_VARIANCE, MOTION_INTENSITY, and VISUAL_DENSITY (1-10 each) based on discovery answers. Consult ~/.claude/skills/minoan-frontend-design/references/design-dials.md. If Visual Direction Probes were run, name which direction won and what changed.

4. Layout Strategy

High-level spatial approach: what gets emphasis, what's secondary, how information flows. Describe the visual hierarchy and rhythm, not specific CSS.

5. Key States

List every state the feature needs: default, empty, loading, error, success, edge cases. For each, note what the user needs to see and feel.

6. Interaction Model

How users interact with this feature. What happens on click, hover, scroll? What feedback do they get? What's the flow from entry to completion?

7. Content Requirements

What copy, labels, empty state messages, error messages, and microcopy are needed. Note any dynamic content and its realistic ranges.

8. Open Questions

Anything unresolved that the implementer should resolve during build.

9. Implementation Skills

Consult references/design-media-catalog.md. Based on discovery answers, recommend which skills the implementer should invoke beyond /minoan-frontend-design. Only list skills that match actual needs discovered — don't enumerate the full catalog.


Get explicit confirmation of the brief before finishing. If the user disagrees with any part, revisit the relevant discovery questions.

Once confirmed, write the brief to .design-context.md in the project root (or update the existing file). The user can then hand it to /minoan-frontend-design or use it to guide any other implementation approach.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.