Interface Design Direction
This skill manages the process: how content is arranged, how references are used without being misled, how direction is set, and how to verify the result. frontend-design covers how to avoid template-like approaches; use them together.
Where style comes from: Follow the direction set for this project. If the user specifies, follow that; if the user provides references, follow those; if neither, offer the user 2–3 directions to choose from (step 5). Style rules from external skills like frontend-design (e.g., its list of common AI looks, its stance on all-caps labels) are style choices of their author—treat them as reminders during direction-setting and review, not as prohibitions. If the project's chosen direction requires them, follow the direction. Non-style craftsmanship remains standard: text legibility, sufficient contrast, visible keyboard focus, no horizontal scrolling at 375px, and respecting reduced motion preferences.
First: Choose a Mode
| Situation | Mode |
|---|---|
| New page, new interface, redesign, or user wants to explore directions | Full mode: Content structure → Three types of references → 2–3 directions (optional mood board) → Craft notes → Implementation → Screenshots → Initial draft to user → Independent review (max two rounds) |
| Small page, single component, or user says "hurry up" / "make it simple" | Quick mode: Write a few lines of content structure; list a few domain materials and anti-patterns each; define only one direction with justification; skip mood board and craft notes; self-check with screenshots, no review sub-agent |
| Small changes like color or spacing tweaks | Make changes directly; only screenshot affected widths and modes; self-review once |
| User says "something feels off" / "looks bad" / "want to optimize" without specifying where | Not a small change; at least use quick mode |
If unsure, use quick mode. After finishing, ask the user whether to run full mode again.
Before Starting
- Read
~/.claude/design-taste/taste.md(user's taste record): treat as preference reference, but it cannot override the current requirements. - Read
~/.claude/design-taste/learnings.md(lessons learned from past work: model behavior, prompt effectiveness, script pitfalls, image generation costs). Use it to avoid known issues. - Skip if either file does not exist.
- If the project's CLAUDE.md or AGENTS.md already defines design direction, follow it—do not redefine direction. Restart only if the user requests a redesign.
- Run Python scripts with
py -3.12(on Windows, typingpythondirectly may open the Microsoft Store; on a different machine, follow that machine's convention; dependencies are listed in the repo's README). Screenshot scripts usenode(requires Node 22+ and Chrome or Edge on the machine). Scripts are located in this skill'sscripts/directory. - Create
design/directory in the project with:brief.md,refs/raw-material.md,refs/avoid.md,refs/craft-notes.md,directions.md,states.md,mood/,shots/.
1. Requirements
Write into brief.md: what the topic is, who the target audience is, the primary task of this page or interface, and real content (copy, data, images available). If anything is missing, propose your own and ask the user to confirm.
If the user provides their own reference images or says "I want this kind of feel," treat that as part of the requirements—following it does not count as being misled by references.
2. Content and Structure
Decide what to say and in what order, then decide what it looks like. Write into the "Structure" section of brief.md. Choose an approach based on page type:
- Landing pages, product pages, portfolios: List the 5–8 questions a first-time visitor would want answered, in the order they naturally arise. Each question corresponds to a section. For each section, write one sentence on "how this section answers the question." Prioritize methods that can be demonstrated: real demos or interactions, before/after comparisons, real data, diagrams, physical product photos, copyable commands. Only if nothing can be demonstrated, use text lists.
- Application interfaces, dashboards, tools: List the 3–5 most common tasks users perform. For each task, write clearly: where to start, the steps involved, what information to see at each step, and how to confirm success after completion. Arrange position and hierarchy by usage frequency; place frequently used items within easy reach. Write one sentence each for empty states, error states, and loading states.
For quick mode, still do this step—just write a few lines.
3. Domain Materials (for Direction-Setting)
List items from the domain world (5–10 in full mode, about 3 in quick mode), not existing web pages: tools, materials, processes, industry documents and forms, printed matter, signage, packaging, historical artifacts, professional literature layouts. For each item, write one sentence on "what can be borrowed from it" (a grid system, a labeling style, a texture, a type treatment, a color relationship). Use browser image search if possible; if not found, rely on knowledge and note which items are from memory.
This step is what makes this design different from others.
4. Competitive Anti-Pattern List
Use the browser to look at several similar websites or similar products (4–10 in full mode). Perform a name-swap test: if you replace the brand name with a competitor's and the page still works, it means the page uses industry clichés. Write these clichés into refs/avoid.md, categorized by color, typography, layout, imagery, and copy tone. Label each as "forbidden" or "do the opposite."
Most similar websites are mediocre, so they serve only as an anti-pattern list, never as positive references. Screenshots are for your own analysis only; do not include them in design materials.
5. Set Direction
Set direction based only on the requirements, content structure, and domain materials—do not look at any web references yet. In full mode, define 2–3 directions; in quick mode, one.
First, write the tone: read the "Tone" and "Translate Vague Words" sections of references/direction-checks.md. For each of the five scales, note which end is chosen and why. Write this at the top of directions.md, shared across all directions (only write separately if evidence is ambiguous). Replace words like "premium" or "clean" with visual decisions before continuing.
For each direction, write into directions.md:
- A one-sentence idea, referencing which domain material it came from
- 4–6 named colors (hex), with both light and dark mode sets; fonts and their roles (choose based on direction and domain;
references/fonts.mdcontains a curated list with verified licenses—you may pick from there or find others, but must verify licenses yourself); type size scale; grid; an ASCII art layout sketch - What is the unique "bold move" and how everything else quietly supports it
- How it carries through the entire page: for each section (or main interface) listed in step 2, note which domain element it brings along. One line per section. If only the hero section has a unique idea and everything below is generic modules, the result will be "above average" at best
- Custom visuals: a diagram, a set of illustrations, a texture, an icon set—if they help the page not look like a template, specify what they are and how to make them (AI image generation, SVG, CSS). For documentation pages or dense dashboards, custom visuals often do more harm than good—explicitly state why not
- Which rules from
avoid.mdthis direction deliberately subverts
Review: if any part would still be done the same way with a different topic, change that part. Compare both light and dark modes against the AI common looks listed in frontend-design (dark mode most easily falls into "near-black background with one bright accent"); if the direction itself calls for it, keep it; if it's just a byproduct, change it.
When full mode has 2–3 directions, run the "Difference Check" from references/direction-checks.md by comparing them side by side. If any fail, rewrite them. Then proceed to the checkpoint.
Optional: Generate Mood Board Images (Full Mode). Generate 1 atmospheric image per direction to establish color palette, texture, composition, and image style. Select tools per ../logo-image-assist/references/image-tools.md. Place images in mood/. Before spending credits for the first time, inform the user of the tool, model, number of images, and estimated cost (check unit price in learnings.md; if unknown, be honest, and after generation, record the actual cost). For prompts, follow the five rules at the beginning of ../logo-image-assist/references/prompt-templates.md: only describe what you want, do not name forbidden things, do not give concrete examples, specify it is a digital front-facing image with no title text. Use mood board images only to judge atmosphere: AI-drawn interface text will be garbled, layouts are often unachievable, and color hex values on swatches may be fabricated.
Checkpoint (Full Mode): Show the direction(s) (and mood board images) to the user. Let the user choose before proceeding. If the user explicitly said not to wait, choose one yourself and explain why.
After direction is set, write it into the project's CLAUDE.md or AGENTS.md (whichever exists): one-sentence idea, both light and dark color sets, fonts and type scale, layout principles, the bold move, how it carries through the page. If neither file exists, write into design/directions.md and inform the user. Future conversations should follow it; style rules from external skills do not override it.
6. Craft Notes (Full Mode, After Direction Is Set)
Find 2–4 pages for specific craft issues: long-form text typography, table density, number alignment, command block placement, mixed Chinese-English typesetting, etc. You can use the screenshot script to capture external websites: node scripts/shoot.mjs <url> --out design/refs/craft/<name> --widths 1440 --schemes light --no-board.
Write into refs/craft-notes.md. For each reference, create two columns:
- What to take: only specific, actionable techniques, e.g., "use tabular figures, right-aligned" or "put the copy button inside the command block." Do not take entire component or layout skeletons, e.g., "a row of tabs on top, names with right-aligned numbers below, a description at the bottom"—copying a skeleton leads to reskinning.
- What to deliberately not take.
After writing notes, compare the direction's ASCII art sketch with the reference screenshots side by side. If the skeleton is the same, go back and change the direction or the notes. When writing code, follow the notes; do not keep the reference images open while coding. Store reference screenshots in refs/craft/. They will be checked for originality during review.
7. Implementation
- First, write the interaction state checklist
states.md: for each interactive element, list all required states (default, hover, keyboard focus, pressed, selected, disabled); for elements with changing content, also list success, error, empty, and loading. Note the page's unique animation moment. When screenshotting, follow this checklist without missing any. - Follow the direction and
directions.md; for font, Chinese typesetting, line breaking, and web font loading, refer toreferences/fonts.md. - Use real sample data: if real data (user configuration, actual product numbers) is available, use it. Numbers on the same page (screenshots, copy, examples) must be consistent. If inconsistency is unavoidable and cannot be fixed, add a note on the page.
- If step 5 called for custom visuals, produce them as real assets and place them in the project's resource directory (for AI-generated assets, follow the cost rules from step 5 and ask the user first). Verify each requested element before use.
- Minimum requirements: no horizontal scrolling at 375px wide; keyboard focus must be visible; respect reduced motion settings; text contrast must be sufficient. Components with a fixed background color (e.g., a light card even in dark mode) must have their focus indicator color set independently, not inherited from the page.
- When self-hosting web fonts, re-subset the font after copy changes; for text composed in scripts, add the text via
--text(seereferences/fonts.md).
8. Screenshot and Initial Draft to User
node scripts/shoot.mjs <url or html file> --out design/shots/r1 --hover "<selector>" --tab 1,3 --click "<selector>"
By default, capture 375, 768, and 1440 width × light and dark modes. For each group, one hero-area screenshot, one full-page screenshot, and one hero-area screenshot with text masked (each line of text is covered into a solid color block, leaving only light/dark patches). Follow states.md to capture states: --hover captures before and after hover, --tab captures focus after N Tab presses, --click captures before and after click (copy success, menu expand, toggle switch, dialog open—do not click links that navigate away). Enlarge local areas by 2x. For states triggered by data (loading, empty, error), create a parameterized page (e.g., ?state=empty) and capture separately.
The summary.json records: horizontal overflow, overflowing elements, console errors, which element has focus, and readability hints (lint): contrast of text and input placeholder text (WCAG: 4.5:1 for body text, 3:1 for large text), text smaller than 12px, body text line height too tight (Chinese text < 1.4×), hero content starting invisible (animation not triggered), input font size under 16px on narrow screens (iOS zooms in on focus), buttons in a click-opened dialog that require scrolling to reach, and text/input left margin only 2–6px from the same-layer edge. For text on images or gradients, the script may be inaccurate—skip those and review manually.
Finally, generate review boards: review-board-light.png and review-board-dark.png. At the top, automated check hints; then "three-second test" (miniaturized and text-masked versions of each width's hero area); then hero, full page, and interaction states. If the page has no dark mode, add --schemes light.
- First, review the board yourself:
- Three-second test: look at the miniaturized and text-masked versions for three seconds each. Can you say what the main subject is and where the primary action is? If not, the hierarchy is wrong—fix hierarchy before touching details.
- Process each hint: horizontal overflow, console errors, readability hints. Hints are clues, not verdicts. If intentional (e.g., decorative large text deliberately faded out, or two pieces of content that purposely should not align), write in the delivery notes why it was kept.
- **Then check for obvious misalignment, orphan words on the last line of paragraphs (widows/orphans), split words, and whether every state from
states.mdwas captured. Fix these before proceeding.
- Share the initial draft with the user immediately: send the review board (or hero screenshot) and explain what you'll do next. Do not wait until the review is complete to let the user see the page for the first time. The user can give feedback while the review runs in the background.
- When iterating, only screenshot the affected parts, e.g.,
--widths 1440 --schemes light. Capture the full set only before sending for review and for final confirmation.
9. Independent Review (Full Mode, Max Two Rounds)
Use the Agent tool to open a sub-agent as the reviewer, running in the background; while waiting, handle user feedback or work on other tasks. Give it only screenshots and textual materials (requirements and content structure, chosen direction, states.md, anti-pattern list, craft issues, craft reference screenshots). Do not give it the code: by not seeing the implementation, it will judge only based on what it sees.
- Round One: Full Review. Use the "Round One" template from
references/critique-rubric.md. In addition to finding issues, it should perform a first-use test (from the target user's perspective: what they understand, where they click, where they get stuck) and give maximum-impact suggestions: the 3 most impactful improvements to go from "no mistakes" to "memorable." Let it first view the two review boards; if it needs details, open individual screenshots and list their scope clearly in the prompt. - In full mode, if any section fails the name-swap test (remains valid when replacing the product with another), it counts as "must change." Among the maximum-impact suggestions, the one with the highest payoff must be acted on or explicitly explained why not.
- If the review flags a section with "Redo", return to step 5 to redesign that section's skeleton—do not patch on top of the original. If flagged as "Cannot deliver", fix it before showing the user.
- Practices called out in the review's "Preserve" section must not be eroded when changing other parts—round two will check.
- Round Two: Recheck Only. Use the "Recheck" template. Only check whether the "must change" from the previous round were resolved, plus at most 3 new issues.
- After two rounds, address any remaining issues yourself: fix, screenshot, and document in delivery notes.
10. Delivery
State which widths, light/dark modes, and interaction states were verified. Note any remaining readability hints and why each was kept. Also note what could not be verified: animation feel, real-device behavior, contrast of text overlaid on images or gradients, and whether web fonts (especially Google Fonts) load in mainland China.
On Completion
- User feedback: append verbatim to
~/.claude/design-taste/taste.md, following the format at the top of that file. - Lessons learned: model performance and cost, what prompts worked or didn't, issues with the screenshot script, review duration—append to
~/.claude/design-taste/learnings.md. Only write what you personally observed. - Do not modify this skill file based on feedback. If the same issue occurs two or three times and seems like it should be added to the skill, propose it to the user in one sentence, and wait for their agreement before making changes.