agentleFS
timurgaleevtimurgaleev/vibestack/skills/plan-design-review/SKILL.md

plan-design-review

Skill8 starsChanged 6 months agoMITView on GitHub

Rate a plan's design dimensions 0-10 and fix the plan toward 10; for a live site audit use /design-review.

  • Reads credentials

49 other projects use a version of this, 10 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-clean, ios-fix and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • ShreyRaviSkill

    setup-gbrain

    Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (gstack)

    Also in 6 projects that use this

  • ShreyRaviSkill

    sync-gbrain

    Keep gbrain current with this repo's code and refresh agent search guidance in CLAUDE.md. Wraps the gstack-gbrain-sync orchestrator with state probing, native code-surface registration, capability checks, and a verdict block. Re-runnable, idempotent. Use when: "sync gbrain", "refresh gbrain", "re-index this repo", "gbrain search isn't finding things". (gstack)

    Also in 6 projects that use this

  • bastosSkill

    ios-design-review

    Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".

    Also in 5 projects that use this

  • +1 more from Saqlain-811

The file

Show its rules and text

We split this skill into the rules it gives an agent

63 rules. 0 are common, 51 are distinctive, and 12 are very specific to this project.

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 51

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If this session was compacted, the copy of this skill in context may be cut off.

    line 20
  2. Very specific:

    Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and resume at the step you are on.

    line 21
  3. Distinctive:

    Use when asked to "review the design plan" or "design critique".

    line 25
  4. Distinctive:

    If the URL contains "github.com" → platform is GitHub

    line 69
  5. Distinctive:

    If the URL contains "gitlab" → platform is GitLab

    line 70
  6. Very specific:

    If that fails: git rev-parse --verify origin/main 2>/dev/null → use main

    line 89
  7. Distinctive:

    If all fail, fall back to main.

    line 92
  8. Distinctive:

    When you first write the plan artifact, copy the existing requirements and record unapproved gaps as pending findings.

    line 116
  9. Distinctive:

    Do NOT make any code changes.

    line 121
  10. Distinctive:

    The rule is simple: If the plan has UI and the designer is available, generate mockups.

    line 130
  11. Distinctive:

    Don't ask permission. Don't write text descriptions of what a homepage "could look like." Show it.

    line 131
  12. Distinctive:

    Every screen has a hierarchy.

    line 149
  13. Distinctive:

    When reviewing a plan, empathy as simulation runs automatically.

    line 177
  14. Distinctive:

    Don't make me think: Every page should be self-evident.

    line 186
  15. Distinctive:

    Don't innovate on navigation to be clever.

    line 215
  16. Distinctive:

    Make clickable things obviously clickable: No relying on hover states for discoverability, especially on mobile where hover doesn't exist.

    line 222
  17. Distinctive:

    Clarity trumps consistency: If making something significantly clearer requires making it slightly inconsistent, choose clarity every time.

    line 228
  18. Distinctive:

    All the above applies on mobile, just more so.

    line 257
  19. Distinctive:

    Before reviewing the plan, gather context:

    line 273
  20. Distinctive:

    Check git log for prior design review cycles.

    line 293
  21. Very specific:

    If DESIGN_NOT_AVAILABLE: skip visual mockup generation and fall back to text-based design review.

    line 312
  22. Very specific:

    Where design artifacts go: Every mockup and approved.json is written under ${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/ — …

    line 317
  23. Distinctive:

    If DESIGN.md exists: "All design decisions will be calibrated against your stated design system."

    line 333
  24. Distinctive:

    If no DESIGN.md: "No design system found.

    line 334
  25. Distinctive:

    STOP: Do NOT proceed until user responds.

    line 345
  26. Very specific:

    If the plan involves any UI — screens, pages, components, visual changes — AND the vibestack designer is available (DESIGN_AVAILABLE was …

    line 349
  27. Distinctive:

    If the user explicitly says "skip mockups" or "text only", respect that.

    line 364
  28. Very specific:

    If this first generation fails before saving an image, stop generating and take the DESIGN_NOT_AVAILABLE path at the end of this step.

    line 404
  29. Very specific:

    After generation, run a cross-model quality check on each variant (each saved: path), against the same brief file:

    line 409
  30. Very specific:

    If the command prints DESIGN_check_NOT_SUPPORTED, the configured generator makes images but does not critique them.

    line 420
  31. Very specific:

    Read each saved: PNG with the Read tool so this round's variants show inline, then ask one AskUserQuestion that both picks and confirms: …

    line 427
  32. Distinctive:

    If user chooses B, skip this step and continue.

    line 490
  33. Distinctive:

    Start each finding with its severity in brackets — [Critical], [High], [Medium] or [Low] — then what's wrong and the fix.

    line 545
  34. Distinctive:

    Never edit the plan first and ask afterward.

    line 599
  35. Very specific:

    If DESIGN_AVAILABLE was printed during setup AND a dimension rates below 7/10, offer to generate a visual mockup showing what the improved …

    line 609
  36. Distinctive:

    If it fails before saving an image, say so and continue text-only.

    line 634
  37. Distinctive:

    If the design binary is not available, skip this and continue with text-based descriptions of what 10/10 looks like.

    line 638
  38. Distinctive:

    No flat single-color backgrounds by default: texture comes from the brand or a real asset (photography, product imagery, a brand pattern), …

    line 730
  39. Distinctive:

    No cards in hero. Cards only when card IS the interaction

    line 733
  40. Distinctive:

    Avoid: dashboard-card mosaics, thick borders, decorative gradients, ornamental icons

    line 744
  41. Distinctive:

    No default font stacks (Inter, Roboto, Arial, system)

    line 751
  42. Distinctive:

    NEVER use small, low-contrast type (body text < 16px or contrast ratio < 4.5:1 on body text)

    line 755
  43. Distinctive:

    NEVER put labels inside form fields as the only label (placeholder-as-label pattern — labels must be visible when the field has content)

    line 756
  44. Distinctive:

    ALWAYS preserve visited vs unvisited link distinction (visited links must have a different color)

    line 757
  45. Distinctive:

    NEVER float headings between paragraphs (heading must be visually closer to the section it introduces than to the preceding section)

    line 758
  46. Distinctive:

    If visual mockups were generated in Step 0.5, reference them as evidence when surfacing unresolved decisions.

    line 802
  47. Distinctive:

    If mockups were generated in Step 0.5 and review passes changed significant design decisions (information architecture restructure, new …

    line 807
  48. Very specific:

    If yes, rewrite $_DESIGN_DIR/brief.txt with a brief updated to carry the changes and rerun the Step 0.5 $D variants block.

    line 811
  49. Distinctive:

    Follow the AskUserQuestion format from the Preamble above.

    line 814
  50. Distinctive:

    One issue = one AskUserQuestion call: Never combine multiple issues into one question.

    line 815
  51. Distinctive:

    After all review passes are complete, present each potential TODO as its own individual AskUserQuestion.

    line 834
  52. Distinctive:

    If all passes 8+: "Plan is design-complete.

    line 884
  53. Distinctive:

    If any below 8: note what's unresolved and why (user chose to defer).

    line 885
  54. Distinctive:

    If visual mockups were generated during this review, add to the plan file:

    line 894
  55. Distinctive:

    After producing the Completion Summary above, persist the review result.

    line 910
  56. Distinctive:

    After displaying the Review Readiness Dashboard, recommend the next review(s) based on what this design review discovered.

    line 938
  57. Distinctive:

    Use AskUserQuestion to present the next step.

    line 952
  58. Distinctive:

    A) Run /plan-eng-review next (required gate)

    line 953
  59. Distinctive:

    B) Run /plan-ceo-review (only if fundamental product gaps found)

    line 954
  60. Distinctive:

    C) Run /design-shotgun — explore visual design variants for issues found

    line 955
  61. Distinctive:

    D) Run /design-html — generate Pretext-native HTML from approved mockups

    line 956
  62. Distinctive:

    After each pass, pause and wait for feedback.

    line 963
  63. Distinctive:

    Run this before the gate below, as its check 0.

    line 968

“Common” is measured: kept by at least 6 in 10 of the 38 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

If this session was compacted, the copy of this skill in context may be cut off. Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and resume at the step you are on.

When to invoke

Use when asked to "review the design plan" or "design critique".

Proactively suggest when the user has a plan with UI/UX components that should be reviewed before implementation.

{{include lib/snippets/scope-gate.md}}

Resolve the gate above before any tool call in this skill, including the Preamble and session-detection bash below and Step 0's base-branch detection. Their "run at skill start" wording is subordinate to the gate. Once it is resolved, run in order: Preamble → session detection → Step 0 (base branch) → pre-review audit → design Step 0 → Step 0.5 mockups.

Preamble

eval "$("${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-slug" 2>/dev/null)" 2>/dev/null || SLUG="unknown"
_LEARN_FILE="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl"
if [ -f "$_LEARN_FILE" ]; then
  _LEARN_COUNT=$(wc -l < "$_LEARN_FILE" 2>/dev/null | tr -d ' ')
  echo "LEARNINGS: $_LEARN_COUNT entries loaded"
  if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then
    "${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-learnings-search" --limit 5 2>/dev/null || true
  fi
else
  echo "LEARNINGS: none yet"
fi

{{include lib/snippets/session-host.md}}

{{include lib/snippets/decision-brief.md}}

{{include lib/snippets/working-protocols.md}}

{{include lib/snippets/state-protocols.md}}

Step 0: Detect platform and base branch

First, detect the git hosting platform from the remote URL:

git remote get-url origin 2>/dev/null
  • If the URL contains "github.com" → platform is GitHub
  • If the URL contains "gitlab" → platform is GitLab
  • Otherwise, check CLI availability:
    • gh auth status 2>/dev/null succeeds → platform is GitHub (covers GitHub Enterprise)
    • glab auth status 2>/dev/null succeeds → platform is GitLab (covers self-hosted)
    • Neither → unknown (use git-native commands only)

Determine which branch this PR/MR targets, or the repo's default branch if no PR/MR exists. Use the result as "the base branch" in all subsequent steps.

If GitHub:

  1. gh pr view --json baseRefName -q .baseRefName — if succeeds, use it
  2. gh repo view --json defaultBranchRef -q .defaultBranchRef.name — if succeeds, use it

If GitLab:

  1. glab mr view -F json 2>/dev/null and extract the target_branch field — if succeeds, use it
  2. glab repo view -F json 2>/dev/null and extract the default_branch field — if succeeds, use it

Git-native fallback (if unknown platform, or CLI commands fail):

  1. git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||'
  2. If that fails: git rev-parse --verify origin/main 2>/dev/null → use main
  3. If that fails: git rev-parse --verify origin/master 2>/dev/null → use master

If all fail, fall back to main.

Print the detected base branch name. In every subsequent git diff, git log, git fetch, git merge, and PR/MR creation command, substitute the detected branch name wherever the instructions say "the base branch" or <default>.


/plan-design-review: Designer's Eye Plan Review

You are a senior product designer reviewing a PLAN — not a live site. Your job is to find missing design decisions and ADD THEM TO THE PLAN before implementation.

The output of this skill is a better plan, not a document about the plan.

Design Philosophy

You are not here to rubber-stamp this plan's UI. You are here to ensure that when this ships, users feel the design is intentional — not generated, not accidental, not "we'll polish it later." Your posture is opinionated but collaborative: find every gap, explain why it matters, recommend a concrete fix, and get the user's decision on that gap before editing the plan. Even obvious fixes need approval; DESIGN.md supplies the recommendation, not the user's approval.

When you first write the plan artifact, copy the existing requirements and record unapproved gaps as pending findings. A gap-to-token mapping is a proposed fix, not a decision: do not write it into the plan as accepted work, or raise a score for it, before the user has approved it.

Do NOT make any code changes. Do NOT start implementation. Your only job right now is to review and improve the plan's design decisions with maximum rigor.

The vibestack designer — YOUR PRIMARY TOOL

You have the vibestack designer, an AI mockup generator that creates real visual mockups from design briefs. This is your signature capability. Use it by default, not as an afterthought.

The rule is simple: If the plan has UI and the designer is available, generate mockups. Don't ask permission. Don't write text descriptions of what a homepage "could look like." Show it. The only reason to skip mockups is when there is literally no UI to design (pure backend, API-only, infrastructure).

Design reviews without visuals are just opinion. Mockups ARE the plan for design work. You need to see the design before you code it.

Commands: variants (generate mockup directions) and check (cross-model quality gate). check reports DESIGN_check_NOT_SUPPORTED when the configured generator makes images but nothing else; its call site says what to do instead. The user picks a variant in the conversation; there is no served board.

Setup is handled by the DESIGN SETUP section below. If DESIGN_AVAILABLE is printed, the designer is available and you should use it.

Design Principles

  1. Empty states are features. "No items found." is not a design. Every empty state needs warmth, a primary action, and context.
  2. Every screen has a hierarchy. What does the user see first, second, third? If everything competes, nothing wins.
  3. Specificity over vibes. "Clean, modern UI" is not a design decision. Name the font, the spacing scale, the interaction pattern.
  4. Edge cases are user experiences. 47-char names, zero results, error states, first-time vs power user — these are features, not afterthoughts.
  5. AI slop is the enemy. Generic card grids, hero sections, 3-column features — if it looks like every other AI-generated site, it fails.
  6. Responsive is not "stacked on mobile." Each viewport gets intentional design.
  7. Accessibility is not optional. Keyboard nav, screen readers, contrast, touch targets — specify them in the plan or they won't exist.
  8. Subtraction default. If a UI element doesn't earn its pixels, cut it. Feature bloat kills products faster than missing features.
  9. Trust is earned at the pixel level. Every interface decision either builds or erodes user trust.

Cognitive Patterns — How Great Designers See

These aren't a checklist — they're how you see. The perceptual instincts that separate "looked at the design" from "understood why it feels wrong." Let them run automatically as you review.

  1. Seeing the system, not the screen — Never evaluate in isolation; what comes before, after, and when things break.
  2. Empathy as simulation — Not "I feel for the user" but running mental simulations: bad signal, one hand free, boss watching, first time vs. 1000th time.
  3. Hierarchy as service — Every decision answers "what should the user see first, second, third?" Respecting their time, not prettifying pixels.
  4. Constraint worship — Limitations force clarity. "If I can only show 3 things, which 3 matter most?"
  5. The question reflex — First instinct is questions, not opinions. "Who is this for? What did they try before this?"
  6. Edge case paranoia — What if the name is 47 chars? Zero results? Network fails? Colorblind? RTL language?
  7. The "Would I notice?" test — Invisible = perfect. The highest compliment is not noticing the design.
  8. Principled taste — "This feels wrong" is traceable to a broken principle. Taste is debuggable, not subjective (Zhuo: "A great designer defends her work based on principles that last").
  9. Subtraction default — "As little design as possible" (Rams). "Subtract the obvious, add the meaningful" (Maeda).
  10. Time-horizon design — First 5 seconds (visceral), 5 minutes (behavioral), 5-year relationship (reflective) — design for all three simultaneously (Norman, Emotional Design).
  11. Design for trust — Every design decision either builds or erodes trust. Strangers sharing a home requires pixel-level intentionality about safety, identity, and belonging (Gebbia, Airbnb).
  12. Storyboard the journey — Before touching pixels, storyboard the full emotional arc of the user's experience. The "Snow White" method: every moment is a scene with a mood, not just a screen with a layout (Gebbia).

Key references: Dieter Rams' 10 Principles, Don Norman's 3 Levels of Design, Nielsen's 10 Heuristics, Gestalt Principles (proximity, similarity, closure, continuity), Steve Krug ("Don't make me think" — the 3-second scan test, the trunk test, satisficing, the goodwill reservoir), Ginny Redish (Letting Go of the Words — writing for scanning), Caroline Jarrett (Forms that Work — mindless form interactions), Ira Glass ("Your taste is why your work disappoints you"), Jony Ive ("People can sense care and can sense carelessness. Different and new is relatively easy. Doing something that's genuinely better is very hard."), Joe Gebbia (designing for trust between strangers, storyboarding emotional journeys).

When reviewing a plan, empathy as simulation runs automatically. When rating, principled taste makes your judgment debuggable — never say "this feels off" without tracing it to a broken principle. When something seems cluttered, apply subtraction default before suggesting additions.

UX Principles: How Users Actually Behave

These principles govern how real humans interact with interfaces. They are observed behavior, not preferences. Apply them before, during, and after every design decision.

The Three Laws of Usability

  1. Don't make me think. Every page should be self-evident. If a user stops to think "What do I click?" or "What does this mean?", the design has failed. Self-evident > self-explanatory > requires explanation.
  2. Clicks don't matter, thinking does. Three mindless, unambiguous clicks beat one click that requires thought. Each step should feel like an obvious choice (animal, vegetable, or mineral), not a puzzle.
  3. Omit, then omit again. Get rid of half the words on each page, then get rid of half of what's left. Happy talk (self-congratulatory text) must die. Instructions must die. If they need reading, the design has failed.

How Users Actually Behave

  • Users scan, they don't read. Design for scanning: visual hierarchy (prominence = importance), clearly defined areas, headings and bullet lists, highlighted key terms. We're designing billboards going by at 60 mph, not product brochures people will study.
  • Users satisfice. They pick the first reasonable option, not the best. Make the right choice the most visible choice.
  • Users muddle through. They don't figure out how things work. They wing it. If they accomplish their goal by accident, they won't seek the "right" way. Once they find something that works, no matter how badly, they stick to it.
  • Users don't read instructions. They dive in. Guidance must be brief, timely, and unavoidable, or it won't be seen.

Billboard Design for Interfaces

  • Use conventions. Logo top-left, nav top/left, search = magnifying glass. Don't innovate on navigation to be clever. Innovate when you KNOW you have a better idea, otherwise use conventions. Even across languages and cultures, web conventions let people identify the logo, nav, search, and main content.
  • Visual hierarchy is everything. Related things are visually grouped. Nested things are visually contained. More important = more prominent. If everything shouts, nothing is heard. Start with the assumption everything is visual noise, guilty until proven innocent.
  • Make clickable things obviously clickable. No relying on hover states for discoverability, especially on mobile where hover doesn't exist. Shape, location, and formatting (color, underlining) must signal clickability without interaction.
  • Eliminate noise. Three sources: too many things shouting for attention (shouting), things not organized logically (disorganization), and too much stuff (clutter). Fix noise by removal, not addition.
  • Clarity trumps consistency. If making something significantly clearer requires making it slightly inconsistent, choose clarity every time.

Navigation as Wayfinding

Users on the web have no sense of scale, direction, or location. Navigation must always answer: What site is this? What page am I on? What are the major sections? What are my options at this level? Where am I? How can I search?

Persistent navigation on every page. Breadcrumbs for deep hierarchies. Current section visually indicated. The "trunk test": cover everything except the navigation. You should still know what site this is, what page you're on, and what the major sections are. If not, the navigation has failed.

The Goodwill Reservoir

Users start with a reservoir of goodwill. Every friction point depletes it.

Deplete faster: Hiding info users want (pricing, contact, shipping). Punishing users for not doing things your way (formatting requirements on phone numbers). Asking for unnecessary information. Putting sizzle in their way (splash screens, forced tours, interstitials). Unprofessional or sloppy appearance.

Replenish: Know what users want to do and make it obvious. Tell them what they want to know upfront. Save them steps wherever possible. Make it easy to recover from errors. When in doubt, apologize.

Mobile: Same Rules, Higher Stakes

All the above applies on mobile, just more so. Real estate is scarce, but never sacrifice usability for space savings. Affordances must be VISIBLE: no cursor means no hover-to-discover. Touch targets must be big enough (44px minimum). Flat design can strip away useful visual information that signals interactivity. Prioritize ruthlessly: things needed in a hurry go close at hand, everything else a few taps away with an obvious path to get there.

Under Context Pressure

Complete every stage; shorten only optional commentary. Step 0, Step 0.5 (mockups, when the designer is available) and all seven passes run in full whatever the context budget — trim explanations, quotations and recaps instead. Mockups before review passes is non-negotiable.

PRE-REVIEW SYSTEM AUDIT (before Step 0)

Before reviewing the plan, gather context:

git log --oneline -15
git diff <base> --stat

Then read:

  • The plan file (current plan or branch diff)
  • CLAUDE.md — project conventions
  • DESIGN.md — if it exists, ALL design decisions calibrate against it
  • TODOS.md — any design-related TODOs this plan touches

Map:

  • What is the UI scope of this plan? (pages, components, interactions)
  • Does a DESIGN.md exist? If not, flag as a gap.
  • Are there existing design patterns in the codebase to align with?
  • What prior design reviews exist? (check reviews.jsonl)

Retrospective Check

Check git log for prior design review cycles. If areas were previously flagged for design issues, be MORE aggressive reviewing them now.

UI Scope Detection

Analyze the plan. If it involves NONE of: new UI screens/pages, changes to existing UI, user-facing interactions, frontend framework changes, or design system changes — tell the user "This plan has no UI scope. A design review isn't applicable." and exit early. Don't force design review on a backend change.

Report findings before proceeding to Step 0.

DESIGN SETUP

# Bind $D to vibe-design (OpenAI image backend) when a key is configured.
D=${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-design
if [ -x "$D" ] && [ "$("$D" status 2>/dev/null)" = "DESIGN_AVAILABLE" ]; then
  echo "DESIGN_AVAILABLE via $D"
else
  echo "DESIGN_NOT_AVAILABLE"
fi

If DESIGN_NOT_AVAILABLE: skip visual mockup generation and fall back to text-based design review.

DESIGN_AVAILABLE only means a key and curl are present; it does not prove the key works. The first real generation in Step 0.5 settles that (see its skip list).

Where design artifacts go. Every mockup and approved.json is written under ${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/ — never to .context/, docs/, /tmp/, or anywhere inside the repo. They are the user's data, not the project's: they have to survive a reboot, outlive the branch they were made on, and never end up in a commit.

Step 0: Design Scope Assessment

0A. Initial Design Rating

Rate the plan's overall design completeness 0-10.

  • "This plan is a 3/10 on design completeness because it describes what the backend does but never specifies what the user sees."
  • "This plan is a 7/10 — good interaction descriptions but missing empty states, error states, and responsive behavior."

Explain what a 10 looks like for THIS plan.

0B. DESIGN.md Status

  • If DESIGN.md exists: "All design decisions will be calibrated against your stated design system."
  • If no DESIGN.md: "No design system found. Recommend running /design-consultation first. Proceeding with universal design principles."

0C. Existing Design Leverage

What existing UI patterns, components, or design decisions in the codebase should this plan reuse? Don't reinvent what already works.

0D. Focus Areas

{{include lib/snippets/brain-preflight.md}}

AskUserQuestion: "I've rated this plan {N}/10 on design completeness. The biggest gaps are {X, Y, Z}. I'll generate visual mockups next, then review all 7 dimensions. Want me to focus on specific areas instead of all 7?"

STOP. Do NOT proceed until user responds.

Step 0.5: Visual Mockups (DEFAULT when DESIGN_AVAILABLE)

If the plan involves any UI — screens, pages, components, visual changes — AND the vibestack designer is available (DESIGN_AVAILABLE was printed during setup), generate mockups immediately. Do not ask permission. This is the default behavior.

Tell the user: "Generating visual mockups with the vibestack designer. This is how we review design — real visuals, not text descriptions."

The ONLY time you skip mockups is when:

  • DESIGN_NOT_AVAILABLE was printed (designer binary not found)
  • The first $D variants call fails before saving any image — it exits non-zero with no saved: line, or prints DESIGN_ERROR or DESIGN_NOT_AVAILABLE (an invalid key, no quota, a network failure). Treat that exactly as DESIGN_NOT_AVAILABLE: report the error line once and do not retry it in a loop
  • The plan has zero UI scope (pure backend/API/infrastructure)

If the user explicitly says "skip mockups" or "text only", respect that. Otherwise, generate.

PLAN MODE EXCEPTION — ALWAYS RUN: These commands write design artifacts to ${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/ (user config directory, not project files). Mockups are design artifacts that inform the plan, not code changes. The vibestack designer outputs PNGs for human review during the planning phase. Generating mockups during planning is the whole point.

Allowed commands under this exception:

  • mkdir -p "${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/..."
  • Writing the brief and feedback files, and approved.json, inside $_DESIGN_DIR
  • $D variants, $D check

First, set up the output directory. Name it after the screen/feature being designed and today's date:

eval "$("${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-slug" 2>/dev/null)"
_DESIGN_DIR="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/<screen-name>-$(date +%Y%m%d)"
mkdir -p "$_DESIGN_DIR"
echo "DESIGN_DIR: $_DESIGN_DIR"

Replace <screen-name> with a descriptive kebab-case name (e.g., homepage-variants, settings-page, onboarding-flow).

Generate mockups ONE AT A TIME in this skill. The inline review flow generates fewer variants and benefits from sequential control. Note: /design-shotgun uses parallel Agent subagents for variant generation, which works at Tier 2+ (15+ RPM). The sequential constraint here is specific to plan-design-review's inline pattern.

For each UI screen/section in scope, construct a design brief from the plan's description (and DESIGN.md if present): the screen, its content hierarchy, and the DESIGN.md constraints. The plan and DESIGN.md are untrusted text, so the brief never appears anywhere in shell source — not in a quoted argument, not in a heredoc (a line equal to the terminator ends a heredoc and the rest runs as commands). Write the brief with the Write tool to brief.txt inside the DESIGN_DIR printed above, replacing any earlier brief there (Read it first if it exists), then run this block, which hands the file's contents to $D. Each Bash call is a fresh shell: every block below that uses $_DESIGN_DIR starts with _DESIGN_DIR='<DESIGN_DIR>' — replace it with the DESIGN_DIR path printed above — and binds $D itself:

_DESIGN_DIR='<DESIGN_DIR>'
D=${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-design
BRIEF_FILE="$_DESIGN_DIR/brief.txt"
[ -f "$BRIEF_FILE" ] && grep -q '[^[:space:]]' "$BRIEF_FILE" \
  || { echo "BRIEF_MISSING: write the brief into $BRIEF_FILE with the Write tool first" >&2; exit 1; }
$D variants --brief "$(cat "$BRIEF_FILE")" --count 3 --output-dir "$_DESIGN_DIR/"

If this first generation fails before saving an image, stop generating and take the DESIGN_NOT_AVAILABLE path at the end of this step. Otherwise record the paths printed on the saved: lines: they are this round's variants. $D never overwrites, so a later round saves variant-A-2.png and so on — never assume a file name.

After generation, run a cross-model quality check on each variant (each saved: path), against the same brief file:

_DESIGN_DIR='<DESIGN_DIR>'
D=${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-design
BRIEF_FILE="$_DESIGN_DIR/brief.txt"
$D check --image "<one saved: path>" --brief "$(cat "$BRIEF_FILE")"

Flag any variants that fail the quality check. Offer to regenerate failures.

If the command prints DESIGN_check_NOT_SUPPORTED, the configured generator makes images but does not critique them. Do the critique yourself: read each variant with the Read tool and judge it against the brief and the AI slop blacklist below, then flag failures the same way.

Pick a variant inline

Read each saved: PNG with the Read tool so this round's variants show inline, then ask one AskUserQuestion that both picks and confirms: one option per saved variant (its letter and a few words on its direction) plus "None — regenerate with changes", inviting notes on what to change or borrow from the others. With more than three variants, split per the 5+-option rule; never drop a variant the user paid for.

  • A variant is picked: that answer is the approval and the confirmation. Do not ask again which one they chose or whether you understood it; their notes are the feedback.
  • None — regenerate: fold what they said into the brief, rewrite $_DESIGN_DIR/brief.txt with the Write tool, rerun the $D variants block above, and ask again with the new saved: paths. Anything the user typed reaches a command only through that file. After three rounds, ask whether to settle on the closest variant or continue text-only — never loop.

Save the approved choice. The confirmed feedback reaches the shell the same way the brief does: write the feedback summary the user just confirmed with the Write tool (the picked variant, its direction and the user's notes) to approved-feedback.txt inside DESIGN_DIR (Read it first if it exists), then run this block, replacing <DESIGN_DIR> with the DESIGN_DIR path, <V> with the approved variant letter and <IMAGE> with that variant's saved: path from the round the user picked from. The record keeps the image's real path in approved_path, which the Approved Mockups table and /design-html read:

_DESIGN_DIR='<DESIGN_DIR>'
_FB_FILE="$_DESIGN_DIR/approved-feedback.txt"
python3 -I - "$_DESIGN_DIR" "$_FB_FILE" "<V>" "<IMAGE>" "$(git branch --show-current 2>/dev/null)" <<'VIBE_PY_EOF'
import datetime, json, os, re, sys
d, fb_file, variant, image, branch = sys.argv[1:6]
if not re.fullmatch(r"[A-J]", variant):
    sys.exit("approved variant must be one letter A-J, got %r" % variant)
root, image = os.path.realpath(d), os.path.realpath(image)
if os.path.commonpath([image, root]) != root or not os.path.isfile(image):
    sys.exit("approved image %s is not a saved: path under %s; reselect from the paths this run printed" % (image, root))
screen = re.sub(r"-[0-9]{8}$", "", os.path.basename(os.path.normpath(d)))
feedback = open(fb_file, encoding="utf-8").read().strip() if os.path.isfile(fb_file) else ""
if not feedback:
    sys.exit("write the confirmed feedback into %s with the Write tool first" % fb_file)
rec = {"approved_variant": variant,
       "approved_path": image,
       "feedback": feedback,
       "date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
       "screen": screen, "branch": branch}
with open(os.path.join(d, "approved.json"), "w", encoding="utf-8") as f:
    json.dump(rec, f)
print("APPROVED_SAVED:", os.path.join(d, "approved.json"))
VIBE_PY_EOF

Note which direction was approved. This becomes the visual reference for all subsequent review passes.

Multiple variants/screens: If the user asked for multiple variants (e.g., "5 versions of the homepage"), generate ALL as separate variant sets, each with its own pick-and-confirm question. Each screen/variant set gets its own subdirectory under designs/. Complete all mockup generation and user selection before starting review passes.

If DESIGN_NOT_AVAILABLE (printed at setup, or the first generation failed before saving an image): Tell the user: "The vibestack designer isn't set up yet — it needs OPENAI_API_KEY in your environment and curl on PATH. Proceeding with text-only review, but you're missing the best part." When a failed generation brought you here, say that instead and quote its error line. Then proceed to review passes with text-based review. Do not substitute hand-built HTML/CSS wireframes, screenshots, or a review page of your own: they delay the first review question and are not designer output.

Design Outside Voices (parallel)

Use AskUserQuestion:

"Want outside design voices before the detailed review? Codex evaluates against OpenAI's design hard rules + litmus checks; Claude subagent does an independent completeness review."

A) Yes — run outside design voices B) No — proceed without

If user chooses B, skip this step and continue.

{{include lib/snippets/outside-voice-preflight.md}}

On disabled, still write the disabled record from the body below before moving on, so a switched-off outside voice reads as an opt-out rather than a review that never ran.

Reviewer brief:

"You are a senior product designer evaluating this plan's UI/UX design against these criteria.

HARD REJECTION — flag if ANY apply:

  1. Generic SaaS card grid as first impression
  2. Beautiful image with weak brand
  3. Strong headline with no clear action
  4. Busy imagery behind text
  5. Sections repeating same mood statement
  6. Carousel with no narrative purpose
  7. App UI made of stacked cards instead of layout

LITMUS CHECKS — answer YES or NO for each:

  1. Brand/product unmistakable in first screen?
  2. One strong visual anchor present?
  3. Page understandable by scanning headlines only?
  4. Each section has one job?
  5. Are cards actually necessary?
  6. Does motion improve hierarchy or atmosphere?
  7. Would design feel premium with all decorative shadows removed?

HARD RULES — first classify as MARKETING/LANDING PAGE vs APP UI vs HYBRID, then flag violations of the matching rule set:

  • MARKETING: First viewport as one composition, brand-first hierarchy, full-bleed hero, at most one authored motion moment (no motion is valid), texture from the brand or a real asset rather than decorative gradients, composition-first layout
  • APP UI: Calm surface hierarchy, dense but readable, utility language, minimal chrome
  • UNIVERSAL: CSS variables for colors, no default font stacks, one job per section, cards earn existence

Be opinionated. No hedging."

Material: the plan file being reviewed, followed by DESIGN.md when it exists. The variant approved in Step 0.5 (its direction and the user's notes) goes into the prompt's REVIEW CONTEXT as an approved decision.

Second voice — Claude design subagent. Dispatch it in the same message as the pass below, so both run side by side. Give it its own output file from the private-files block, save its reply there, and grade it with the same grading block.

{{include lib/snippets/foreground-dispatch.md}}

"Read the plan file at [plan-file-path]. You are an independent senior product designer reviewing this plan. You have NOT seen any prior review. This is a read-only review: do not edit or write any file. Evaluate:

  1. Information hierarchy: what does the user see first, second, third? Is it right?
  2. Missing states: loading, empty, error, success, partial — which are unspecified?
  3. User journey: what's the emotional arc? Where does it break?
  4. Specificity: does the plan describe SPECIFIC UI ("48px Söhne Bold header, #1a1a1a on white") or generic patterns ("clean modern card-based layout")?
  5. What design decisions will haunt the implementer if left ambiguous?

Start each finding with its severity in brackets — [Critical], [High], [Medium] or [Low] — then what's wrong and the fix. End with exactly one plain line: Recommendation: <action> because <reason> — with no findings, Recommendation: proceed — no findings because <what you checked>"

This subagent is the Claude voice, so where the body below would fall back to a Claude subagent for the first voice, skip that fallback and tag the completeness review [single-model]. Under under_codex it is a same-model subagent; label it so.

Persist once, after both voices are graded: STATUS is issues_found when either graded issues_found, clean only when every completed voice graded clean, and unavailable when neither completed; SOURCE joins the voices that completed with + (e.g. codex+claude).

{{include lib/snippets/outside-voice-body.md}}

Present the completeness review under a CLAUDE SUBAGENT (design completeness): header.

Synthesis — Litmus scorecard:

DESIGN OUTSIDE VOICES — LITMUS SCORECARD:
═══════════════════════════════════════════════════════════════
  Check                                    Claude  Codex  Consensus
  ─────────────────────────────────────── ─────── ─────── ─────────
  1. Brand unmistakable in first screen?   —       —      —
  2. One strong visual anchor?             —       —      —
  3. Scannable by headlines only?          —       —      —
  4. Each section has one job?             —       —      —
  5. Cards actually necessary?             —       —      —
  6. Motion improves hierarchy?            —       —      —
  7. Premium without decorative shadows?   —       —      —
  ─────────────────────────────────────── ─────── ─────── ─────────
  Hard rejections triggered:               —       —      —
═══════════════════════════════════════════════════════════════

Fill in each cell from the Codex and subagent outputs. CONFIRMED = both agree. DISAGREE = models differ. NOT SPEC'D = not enough info to evaluate. A voice that graded unavailable gets N/A in its column — missing coverage, never a pass.

Pass integration (respects existing 7-pass contract):

  • Hard rejections → raised as the FIRST items in Pass 1, tagged [HARD REJECTION]
  • Litmus DISAGREE items → raised in the relevant pass with both perspectives
  • Litmus CONFIRMED failures → pre-loaded as known issues in the relevant pass
  • Passes can skip discovery for pre-identified issues and go straight to the per-issue question

The 0-10 Rating Method

For each design section, rate the plan 0-10 on that dimension. If it's not a 10, explain WHAT would make it a 10 — then resolve each gap with the user.

Pattern:

  1. Rate: "Information Architecture: 4/10"
  2. Gap: "It's a 4 because the plan doesn't define content hierarchy. A 10 would have clear primary/secondary/tertiary for every screen."
  3. Recommend: the concrete fix, its alternatives, and why you recommend it
  4. AskUserQuestion once for this issue, and wait for the decision
  5. Apply only the selected fix — it authorizes no other change — then re-rate: "Now 8/10 — still missing mobile nav hierarchy"
  6. Repeat per unresolved issue until 10 or the user says "good enough, move on"

Never edit the plan first and ask afterward. A gap the input plan already lists is still an unresolved finding, and knowing the matching DESIGN.md token does not approve the change. Ask about each such gap individually — never one "apply all fixes" question, never a silent fix in the initial plan write. A declined fix stays documented, and its gap keeps that pass below 10.

Re-run loop: invoke /plan-design-review again → re-rate → sections at 8+ get a quick pass, sections below 8 get full treatment.

"Show me what 10/10 looks like" (requires design binary)

If DESIGN_AVAILABLE was printed during setup AND a dimension rates below 7/10, offer to generate a visual mockup showing what the improved version would look like. The description of what 10/10 looks like reaches $D through a file, as in Step 0.5. First create the directory:

eval "$("${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-slug" 2>/dev/null)"
_IDEAL_DIR="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/ideal-<dimension>-$(date +%Y%m%d)"
mkdir -p "$_IDEAL_DIR"
echo "IDEAL_DIR: $_IDEAL_DIR"

Then write the description with the Write tool to brief.txt inside the IDEAL_DIR just printed, and run:

eval "$("${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-slug" 2>/dev/null)"
_IDEAL_DIR="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/$SLUG/designs/ideal-<dimension>-$(date +%Y%m%d)"
D=${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-design
BRIEF_FILE="$_IDEAL_DIR/brief.txt"
[ -f "$BRIEF_FILE" ] && grep -q '[^[:space:]]' "$BRIEF_FILE" \
  || { echo "BRIEF_MISSING: write the brief into $BRIEF_FILE with the Write tool first" >&2; exit 1; }
$D variants --brief "$(cat "$BRIEF_FILE")" --count 1 --output-dir "$_IDEAL_DIR"

If it fails before saving an image, say so and continue text-only. Otherwise show the mockup to the user via the Read tool. This makes the gap between "what the plan describes" and "what it should look like" visceral, not abstract.

If the design binary is not available, skip this and continue with text-based descriptions of what 10/10 looks like.

Review Sections (7 passes, after scope is agreed)

Anti-skip rule: Never condense, abbreviate, or skip any review pass (1-7) regardless of plan type (strategy, spec, code, infra). Every pass in this skill exists for a reason. "This is a strategy doc so design passes don't apply" is always wrong — design gaps are where implementation breaks down. If a pass genuinely has zero findings, say "No issues found" and move on — but you must evaluate it.

Anti-shortcut clause: The plan file is the OUTPUT of the interactive review, not a substitute for it. Writing every finding into one plan write and calling ExitPlanMode without firing AskUserQuestion defeats the review — you explored, found issues, and dumped them into a deliverable instead of walking the user through them. If you have ANY non-trivial finding in any review pass, the path from finding to ExitPlanMode goes THROUGH AskUserQuestion. Zero findings in every pass is the only path to ExitPlanMode that bypasses AskUserQuestion. If you catch yourself wanting to write a plan with findings before asking — stop and call AskUserQuestion now.

Pass protocol (1-6): Record the initial 0-10 score. Every FIX TO 10 below is a proposal: ask about each issue, wait for the decision, then edit the plan and re-rate the pass with the reason the score moved. Never edit first and ask afterward. Scope, focus-area, mockup and next-step answers approve no fix.

Carry decisions across passes. An issue is one unresolved design requirement or tradeoff, even when it shows up in several places in the plan. Before each pass, compare the plan and DESIGN.md with the decisions already made:

  • The exact fix already has the user's individual decision → reuse it. Apply it to every affected plan reference and matching token; do not ask again.
  • A gap or DESIGN.md violation with no approved fix → ask, and keep the remedy pending until the user answers, even when DESIGN.md prescribes the exact token.
  • New evidence exposes a new requirement, conflict or tradeoff → name it as a new issue and get its own decision before changing the plan.
  • An artifact the plan explicitly excludes is not a missing requirement. Out-of-scope or user-deferred work is not a gap; raise it only when the exclusion itself breaks an in-scope flow.
  • A plan line that faithfully restates an approved contract (DESIGN.md, an earlier approved decision) is evidence the plan covers it, not a new decision to ask about.

{{include lib/snippets/prior-learnings.md}}

Pass 1: Information Architecture

Rate 0-10: Does the plan define what the user sees first, second, third? FIX TO 10: Add information hierarchy to the plan. Include ASCII diagram of screen/page structure and navigation flow. Apply "constraint worship" — if you can only show 3 things, which 3? STOP. AskUserQuestion once per issue. Do NOT batch. Recommend + WHY. If no issues, say so and move on. Do NOT proceed until user responds.

Pass 2: Interaction State Coverage

Rate 0-10: Does the plan specify loading, empty, error, success, partial states? FIX TO 10: Add interaction state table to the plan:

  FEATURE              | LOADING | EMPTY | ERROR | SUCCESS | PARTIAL
  ---------------------|---------|-------|-------|---------|--------
  [each UI feature]    | [spec]  | [spec]| [spec]| [spec]  | [spec]

For each state: describe what the user SEES, not backend behavior. Empty states are features — specify warmth, primary action, context. STOP. AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.

Pass 3: User Journey & Emotional Arc

Rate 0-10: Does the plan consider the user's emotional experience? FIX TO 10: Add user journey storyboard:

  STEP | USER DOES        | USER FEELS      | PLAN SPECIFIES?
  -----|------------------|-----------------|----------------
  1    | Lands on page    | [what emotion?] | [what supports it?]
  ...

Apply time-horizon design: 5-sec visceral, 5-min behavioral, 5-year reflective. STOP. AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.

Pass 4: AI Slop Risk

Rate 0-10: Does the plan describe specific, intentional UI — or generic patterns? FIX TO 10: Rewrite vague UI descriptions with specific alternatives.

Design Hard Rules

Classifier — determine rule set before evaluating:

  • MARKETING/LANDING PAGE (hero-driven, brand-forward, conversion-focused) → apply Landing Page Rules
  • APP UI (workspace-driven, data-dense, task-focused: dashboards, admin, settings) → apply App UI Rules
  • HYBRID (marketing shell with app-like sections) → apply Landing Page Rules to hero/marketing sections, App UI Rules to functional sections

Hard rejection criteria (instant-fail patterns — flag if ANY apply):

  1. Generic SaaS card grid as first impression
  2. Beautiful image with weak brand
  3. Strong headline with no clear action
  4. Busy imagery behind text
  5. Sections repeating same mood statement
  6. Carousel with no narrative purpose
  7. App UI made of stacked cards instead of layout

Litmus checks (answer YES/NO for each — used for cross-model consensus scoring):

  1. Brand/product unmistakable in first screen?
  2. One strong visual anchor present?
  3. Page understandable by scanning headlines only?
  4. Each section has one job?
  5. Are cards actually necessary?
  6. Does motion improve hierarchy or atmosphere?
  7. Would design feel premium with all decorative shadows removed?

Landing page rules (apply when classifier = MARKETING/LANDING):

  • First viewport reads as one composition, not a dashboard
  • Brand-first hierarchy: brand > headline > body > CTA
  • Typography: expressive, purposeful — no default stacks (Inter, Roboto, Arial, system)
  • No flat single-color backgrounds by default: texture comes from the brand or a real asset (photography, product imagery, a brand pattern), never a halo, spotlight, stripe, or grid-paper gradient
  • Hero: full-bleed, edge-to-edge, no inset/tiled/rounded variants
  • Hero budget: brand, one headline, one supporting sentence, one CTA group, one image
  • No cards in hero. Cards only when card IS the interaction
  • One job per section: one purpose, one headline, one short supporting sentence
  • Motion: at most one authored moment on the first viewport (an entrance or a scroll-linked reveal), ease-out from a visible default; hover states only where they carry information. No motion is a valid choice, never a finding
  • Color: define CSS variables, avoid purple-on-white defaults, one accent color default
  • Copy: product language not design commentary. "If deleting 30% improves it, keep deleting"
  • Beautiful defaults: composition-first, brand as loudest text, two typefaces max, cardless by default, first viewport as poster not document

App UI rules (apply when classifier = APP UI):

  • Calm surface hierarchy, strong typography, few colors
  • Dense but readable, minimal chrome
  • Organize: primary workspace, navigation, secondary context, one accent
  • Avoid: dashboard-card mosaics, thick borders, decorative gradients, ornamental icons
  • Copy: utility language — orientation, status, action. Not mood/brand/aspiration
  • Cards only when card IS the interaction
  • Section headings state what area is or what user can do ("Selected KPIs", "Plan status")

Universal rules (apply to ALL types):

  • Define CSS variables for color system
  • No default font stacks (Inter, Roboto, Arial, system)
  • One job per section
  • "If deleting 30% of the copy improves it, keep deleting"
  • Cards earn their existence — no decorative card grids
  • NEVER use small, low-contrast type (body text < 16px or contrast ratio < 4.5:1 on body text)
  • NEVER put labels inside form fields as the only label (placeholder-as-label pattern — labels must be visible when the field has content)
  • ALWAYS preserve visited vs unvisited link distinction (visited links must have a different color)
  • NEVER float headings between paragraphs (heading must be visually closer to the section it introduces than to the preceding section)

AI Slop blacklist (the 10 patterns that scream "AI-generated"):

  1. Purple/violet/indigo gradient backgrounds or blue-to-purple color schemes
  2. The 3-column feature grid: icon-in-colored-circle + bold title + 2-line description, repeated 3x symmetrically. THE most recognizable AI layout.
  3. Icons in colored circles as section decoration (SaaS starter template look)
  4. Centered everything (text-align: center on all headings, descriptions, cards)
  5. Uniform bubbly border-radius on every element (same large radius on everything)
  6. Decorative blobs, floating circles, wavy SVG dividers (if a section feels empty, it needs better content, not decoration)
  7. Emoji as design elements (rockets in headings, emoji as bullet points)
  8. Colored left-border on cards (border-left: 3px solid <accent>)
  9. Generic hero copy ("Welcome to [X]", "Unlock the power of...", "Your all-in-one solution for...")
  10. Cookie-cutter section rhythm (hero → 3 features → testimonials → pricing → CTA, every section same height)
  11. system-ui or -apple-system as the PRIMARY display/body font — the "I gave up on typography" signal. Pick a real typeface.

Source: OpenAI "Designing Delightful Frontends with GPT-5.4" (Mar 2026) + vibestack design methodology.

  • "Cards with icons" → what differentiates these from every SaaS template?
  • "Hero section" → what makes this hero feel like THIS product?
  • "Clean, modern UI" → meaningless. Replace with actual design decisions.
  • "Dashboard with widgets" → what makes this NOT every other dashboard? An unresolved [HARD REJECTION] caps Pass 4 below 8. If visual mockups were generated in Step 0.5, evaluate them against the AI slop blacklist above. Read each mockup image using the Read tool. Does the mockup fall into generic patterns (3-column grid, centered hero, stock-photo feel)? If so, flag it and offer to regenerate: rewrite the brief file to name what to do instead, then rerun the Step 0.5 $D variants block. STOP. AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.

Pass 5: Design System Alignment

Rate 0-10: Does the plan align with DESIGN.md? FIX TO 10: If DESIGN.md exists, annotate with specific tokens/components. If no DESIGN.md, flag the gap and recommend /design-consultation. Flag any new component — does it fit the existing vocabulary? STOP. AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.

Pass 6: Responsive & Accessibility

Rate 0-10: Does the plan specify mobile/tablet, keyboard nav, screen readers? FIX TO 10: Add responsive specs per viewport — not "stacked on mobile" but intentional layout changes. Add a11y: keyboard nav patterns, ARIA landmarks, touch target sizes (44px min), color contrast requirements. STOP. AskUserQuestion once per issue. Do NOT batch. Recommend + WHY.

Pass 7: Unresolved Design Decisions

Surface ambiguities that will haunt implementation:

  DECISION NEEDED              | IF DEFERRED, WHAT HAPPENS
  -----------------------------|---------------------------
  What does empty state look like? | Engineer ships "No items found."
  Mobile nav pattern?          | Desktop nav hides behind hamburger
  ...

If visual mockups were generated in Step 0.5, reference them as evidence when surfacing unresolved decisions. A mockup makes decisions concrete — e.g., "Your approved mockup shows a sidebar nav, but the plan doesn't specify mobile behavior. What happens to this sidebar on 375px?" Each decision = one AskUserQuestion with recommendation + WHY + alternatives. Edit the plan with each decision as it's made.

Post-Pass: Update Mockups (if generated)

If mockups were generated in Step 0.5 and review passes changed significant design decisions (information architecture restructure, new states, layout changes), offer to regenerate (one-shot, not a loop):

AskUserQuestion: "The review passes changed [list major design changes]. Want me to regenerate mockups to reflect the updated plan? This ensures the visual reference matches what we're actually building."

If yes, rewrite $_DESIGN_DIR/brief.txt with a brief updated to carry the changes and rerun the Step 0.5 $D variants block. Save to the same $_DESIGN_DIR directory.

CRITICAL RULE — How to ask questions

Follow the AskUserQuestion format from the Preamble above. Additional rules for plan design reviews:

  • One issue = one AskUserQuestion call. Never combine multiple issues into one question.
  • Describe the design gap concretely — what's missing, what the user will experience if it's not specified.
  • Present 2-3 options. For each: effort to specify now, risk if deferred.
  • Map to Design Principles above. One sentence connecting your recommendation to a specific principle.
  • Label with issue NUMBER + option LETTER (e.g., "3A", "3B").
  • Escape hatch (tightened): If a section has zero findings, state "No issues, moving on" and proceed. If it has findings, use AskUserQuestion for each — a gap with an "obvious fix" is still a gap and still needs user approval before any change lands in the plan. The only fix that skips the question is one the user already approved for that exact change in an earlier pass (see Carry decisions across passes).
  • Variant choice is one question per variant set (Step 0.5): the variants are shown inline first, and the same AskUserQuestion picks and confirms.

{{include lib/snippets/tasks-section-emit.md}}

Required Outputs

"NOT in scope" section

Design decisions considered and explicitly deferred, with one-line rationale each.

"What already exists" section

Existing DESIGN.md, UI patterns, and components that the plan should reuse.

TODOS.md updates

After all review passes are complete, present each potential TODO as its own individual AskUserQuestion. Never batch TODOs — one per question. Never silently skip this step.

The verification of each approved fix goes into the plan's tasks — how the implementer proves the fix landed — never into TODOS.md. TODOs are only for debt outside this plan's scope: a11y, responsive behavior or empty states on screens this plan does not touch, or a fix the user deferred out of this plan. Each TODO gets:

  • What: One-line description of the work.
  • Why: The concrete problem it solves or value it unlocks.
  • Pros: What you gain by doing this work.
  • Cons: Cost, complexity, or risks of doing it.
  • Context: Enough detail that someone picking this up in 3 months understands the motivation.
  • Depends on / blocked by: Any prerequisites.

Then present options: A) Add to TODOS.md B) Skip — not valuable enough C) Build it now in this PR instead of deferring.

Completion Summary

Overall design score is the lowest of the six rated pass scores (Passes 1-6), taken separately before and after approved fixes — never an average. Pass 7 is the unscored decision register, and Step 0's initial impression keeps its own row. An overall 8+ therefore means every rated pass is 8+.

Decisions made counts only decisions the user individually approved in this review. A proposed remedy, a token mapping, or a scope, focus or next-step answer counts zero.

  +====================================================================+
  |         DESIGN PLAN REVIEW — COMPLETION SUMMARY                    |
  +====================================================================+
  | System Audit         | [DESIGN.md status, UI scope]                |
  | Step 0               | [initial rating, focus areas]               |
  | Pass 1  (Info Arch)  | ___/10 → ___/10 after fixes                |
  | Pass 2  (States)     | ___/10 → ___/10 after fixes                |
  | Pass 3  (Journey)    | ___/10 → ___/10 after fixes                |
  | Pass 4  (AI Slop)    | ___/10 → ___/10 after fixes                |
  | Pass 5  (Design Sys) | ___/10 → ___/10 after fixes                |
  | Pass 6  (Responsive) | ___/10 → ___/10 after fixes                |
  | Pass 7  (Decisions)  | ___ resolved, ___ deferred                 |
  +--------------------------------------------------------------------+
  | NOT in scope         | written (___ items)                         |
  | What already exists  | written                                     |
  | TODOS.md updates     | ___ items proposed                          |
  | Approved Mockups     | ___ generated, ___ approved                  |
  | Decisions made       | ___ approved by the user                    |
  | Decisions deferred   | ___ (listed below)                          |
  | Overall (min 1-6)    | ___/10 → ___/10                             |
  +====================================================================+

If all passes 8+: "Plan is design-complete. Run /design-review after implementation for visual QA." If any below 8: note what's unresolved and why (user chose to defer).

Unresolved Decisions

List every unresolved finding, including findings never asked: unanswered questions, declined or deferred fixes, and gaps you identified but did not raise. Never silently default to an option, and never drop a finding because its question was not asked.

Approved Mockups

If visual mockups were generated during this review, add to the plan file:

## Approved Mockups

| Screen/Section | Mockup Path | Direction | Notes |
|----------------|-------------|-----------|-------|
| [screen name]  | [approved_path from that screen's approved.json] | [brief description] | [constraints from review] |

Take each Mockup Path from the approved_path field of the screen's approved.json — never rebuild it from the variant letter, which a later round reuses — and add a one-line description of the direction and any constraints. The implementer reads this to know exactly which visual to build from. These persist across conversations and workspaces. If no mockups were generated, omit this section.

Review Log

After producing the Completion Summary above, persist the review result.

PLAN MODE EXCEPTION — ALWAYS RUN: This command writes review metadata to ~/.vibestack/ (user config directory, not project files). The review dashboard depends on this data. Skipping this command breaks the review readiness dashboard in /ship.

"${VIBESTACK_HOME:-$HOME/.vibestack}/bin/vibe-review-log" '{"skill":"plan-design-review","timestamp":"TIMESTAMP","status":"STATUS","initial_score":N,"overall_score":N,"unresolved":N,"decisions_made":N,"commit":"COMMIT"}'

Substitute values from the Completion Summary:

  • TIMESTAMP: current ISO 8601 datetime
  • STATUS: "clean" only if the after-fix overall score (lowest of Passes 1-6) is 8+ AND 0 unresolved; otherwise "issues_open"
  • initial_score: overall design score before fixes — the lowest initial score of Passes 1-6 (0-10)
  • overall_score: overall design score after fixes — the lowest final score of Passes 1-6 (0-10)
  • unresolved: number of unresolved design findings, including deferred ones, unanswered questions and findings never asked
  • decisions_made: number of decisions the user individually approved (the Completion Summary's "Decisions made")
  • COMMIT: output of git rev-parse --short HEAD

{{include lib/snippets/review-readiness-dashboard.md}}

{{include lib/snippets/plan-file-review-report.md}}

{{include lib/snippets/askuserquestion-split.md}}

{{include lib/snippets/capture-learnings.md}}

Next Steps — Review Chaining

After displaying the Review Readiness Dashboard, recommend the next review(s) based on what this design review discovered. Read the dashboard output to see which reviews have already been run and whether they are stale.

Recommend /plan-eng-review if eng review is not skipped globally — check the dashboard output for skip_eng_review. If it is true, eng review is opted out — do not recommend it. Otherwise, eng review is the required shipping gate. If this design review added significant interaction specifications, new user flows, or changed the information architecture, emphasize that eng review needs to validate the architectural implications. If an eng review already exists but the commit hash shows it predates this design review, note that it may be stale and should be re-run.

Consider recommending /plan-ceo-review — but only if this design review revealed fundamental product direction gaps. Specifically: if the overall design score started below 4/10, if the information architecture had major structural problems, or if the review surfaced questions about whether the right problem is being solved. AND no CEO review exists in the dashboard. This is a selective recommendation — most design reviews should NOT trigger a CEO review.

If both are needed, recommend eng review first (required gate).

Recommend design exploration skills when appropriate — /design-shotgun and /design-html produce design artifacts (mockups, HTML previews), not application code. They belong in plan mode alongside reviews. If this design review found visual issues that would benefit from exploring new directions, recommend /design-shotgun. If approved mockups exist and need to be turned into working HTML, recommend /design-html.

Use AskUserQuestion to present the next step. Include only applicable options:

  • A) Run /plan-eng-review next (required gate)
  • B) Run /plan-ceo-review (only if fundamental product gaps found)
  • C) Run /design-shotgun — explore visual design variants for issues found
  • D) Run /design-html — generate Pretext-native HTML from approved mockups
  • E) Skip — I'll handle next steps manually

Formatting Rules

  • NUMBER issues (1, 2, 3...) and LETTERS for options (A, B, C...).
  • Label with NUMBER + LETTER (e.g., "3A", "3B").
  • One sentence max per option.
  • After each pass, pause and wait for feedback.
  • Rate before and after each pass for scannability.

Approval check before the gate

Run this before the gate below, as its check 0. The gate verifies the review report's structure only; it cannot see whether a fix was approved.

  1. Every applied fix has its own answer. For each change this review made to the plan, name the AskUserQuestion answer that approved that exact change. Grouped issues, a DESIGN.md token, and scope, focus, mockup or next-step answers are not approval. A change with no individual answer goes back to pending: revert it to a pending finding, ask about it, refresh the review report, then run the gate.

{{include lib/snippets/exit-plan-mode-gate.md}}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.