Documentation
README
Design
Systematic, anti-slop product design. All agents inherit the session model. Reviewers bold-labeled; Workers plain.
This skill exercises Layer 4 (Brainstorming/Spec) and the design layer of Layer 0 (Project Analysis). It is
thinking, not building โ no source code is written here. The only writes are to .hyperflow/design/system.md and
.hyperflow/specs/. It ends with a handoff gate into /hyperflow:plan โ /hyperflow:dispatch for the build.
Iron Rules
- Design system first. Every run establishes or extends
.hyperflow/design/system.mdbefore designing a screen, per../hyperflow/design-system.md. The system is created once and extended, never regenerated. - Researched, not invented. Ground every direction in โฅ2 real products from the project's field, combine
them, then diverge with one deliberate signature (the method in
design-system.md). - Local taste skills are invoked live. The main session calls
Skillto invoke the matching taste skill; the dispatcheddesigneragent Reads theSKILL.mdand applies it (it has noSkilltool). - Per-step agents (DOCTRINE rule 12). No inline design โ the
designerspecialist does the work; anaccessibility-reviewerpass gates the result. - No code in the design phase. Design produces a system file and a design spec;
dispatchexecutes them. - Failure recovery (DOCTRINE rule 14) per
../hyperflow/failure-recovery.md. - No AI attribution in any file written.
Per-Step Agent Map (DOCTRINE rule 12)
| Step | Sub-phase | Workers | Reviewers | Notes |
|---|---|---|---|---|
| 1 โ Triage | โ | โ | โ | Mechanical classification (exempt) per ../hyperflow/task-triage.md |
| 2 โ Design system | 2a โ establish/extend .hyperflow/design/system.md |
designer |
Reviewer | Creates if missing; extends if present |
| 3 โ Research + direction | 3a โ prior-art research + combine + diverge | designer (fan-out โค 3 by dimension) |
Reviewer | Web-research-first; โฅ2 references |
| 4 โ Design spec | 4a โ translate direction into tokens/spec | designer |
Reviewer | Written to .hyperflow/specs/<slug>.md |
| 5 โ Taste + a11y review | โ | โ | designer verdict + accessibility-reviewer |
Anti-slop floor + WCAG floor |
| 6 โ Handoff gate | โ | โ | โ | AskUserQuestion only (exempt โ structural gate) |
Approval Gates
| Gate | When | Format |
|---|---|---|
| Handoff gate | Step 6, after the spec is written | AskUserQuestion โ build now / plan first / stop |
Flow
Step 1 โ Triage
Classify the request per ../hyperflow/task-triage.md. types will include ui
and/or creative; the Brain confirms designer on the roster.
Step 2 โ Design system
Read .hyperflow/design/system.md. If missing, dispatch designer โ establish design system to create it (domain,
tokens, type scale, spacing, motion, voice, components, references, anti-patterns) per
design-system.md. If present, dispatch designer โ extend design system to add
only what this brief needs. Then **Reviewer** โ design-system coverage check.
Step 3 โ Research + direction
Invoke the matching local taste skill(s) live via Skill (per the index in design-system.md). Then dispatch
designer โ research prior art + propose direction (fan-out โค 3 by visual language / motion+interaction / IA when
the surface is broad): study โฅ2 real systems in the field, combine, diverge with one named signature. Then
**Reviewer** โ direction grounding check (โฅ2 references combined, not copied; signature is deliberate).
Step 4 โ Design spec
Dispatch designer โ author design spec to translate the chosen direction into the bound design-system tokens and
write it to .hyperflow/specs/<slug>.md (format per ../hyperflow/artefact-format.md).
Then **Reviewer** โ spec sanity check.
Step 5 โ Taste + accessibility review
Dispatch in parallel: **designer** โ taste verdict (anti-slop floor) โฅ **accessibility-reviewer** โ a11y floor
(WCAG AA, focus, reduced-motion, RTL). On a11y conflict, the floor wins (Step 5 defers to the a11y verdict).
Step 6 โ Handoff gate (STRUCTURAL GATE ยท DOCTRINE rule 8)
? Design spec ready at .hyperflow/specs/<slug>.md โ build it?
Build now (Recommended) โ chain to /hyperflow:plan โ /hyperflow:dispatch
Plan first โ open /hyperflow:plan to decompose without building yet
Stop โ leave the spec; build later
On Build now โ invoke Skill with skill: plan and args: "session=one spec=.hyperflow/specs/<slug>.md". On
Plan first โ invoke plan without auto-dispatch. On Stop โ print one line and stop. If AskUserQuestion is
unavailable, print the gate as a Hyperflow Question block and wait โ never auto-build silently.
Output Format
Two outputs:
- The design system at
.hyperflow/design/system.mdโ living token document (created or extended this run). - The design spec at
.hyperflow/specs/<slug>.mdโ the direction, tokens, signature, andReferences:block.
Chat shows one status box pointing at the files, never the token dump (file-first, rule 8):
โโ Design Result โโโโโโโโโโโโโโโโโโโโโ
Brief: <one line>
System: .hyperflow/design/system.md (created | extended)
Spec: .hyperflow/specs/<slug>.md
Verdict: taste PASS ยท a11y PASS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Hand-off
- Plan it โ auto-chain to
/hyperflow:planfor decomposition; plan then stops at its build-location gate and asks where to build (it never auto-implements). - Stop โ spec persists for a later build.
Doctrine
Full rules in DOCTRINE.md. Design method, taste-skill index, and anti-slop floor in
design-system.md. Persona standards (ui, creative) in
personas-A.md โ bound by the designer, never restated.
Overview
/hyperflow:design runs systematic product design: it establishes or extends the project's design system, researches
real-world prior art in the project's field, invokes the matching local taste skill, dispatches the designer
specialist to combine references and diverge with one deliberate signature, and gates the result on a taste +
accessibility review before handing off to the build chain.
Prerequisites
.hyperflow/cache recommended (Layer 0 analysis improves design context). Run/hyperflow:scaffoldfirst if missing.- Local taste skills installed under
~/.claude/skills/(the skill degrades gracefully to the anti-slop floor indesign-system.mdwhen a specific taste skill is absent).