agentleFS
sukirman1901sukirman1901/frontend-expert/skills/design-direction/SKILL.md

design-direction

Skill9 starsChanged 2 months agoMITView on GitHub

Senior frontend judgment before building UI — offer 2–3 approaches on distinct design axes (hierarchy, layout, density, interaction, expression) with tradeoffs; max 1–2 clarifying questions; optional inspiration (Linear/Stripe/…). Use at the start of non-trivial UI work and whenever direction is unclear. Skip for obvious bugfixes, single-token tweaks, or “just implement”. Runs before domain skills.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this before domain skills when any of these apply:

    line 22
  2. Distinctive:

    Follow-up turn continuing an already-approved plan

    line 36
  3. Very specific:

    If DESIGN_MEMORY.md exists in the project root, read it and honor captured tone/density/patterns

    line 44
  4. Distinctive:

    Ask only what changes the design.

    line 49
  5. Distinctive:

    Do not offer three near-identical skins.

    line 65
  6. Distinctive:

    After direction is set:

    line 92
  7. Very specific:

    Read Tailwind theme / :root / theme file

    line 95
  8. Distinctive:

    Do not invent a parallel visual language

    line 97
  9. Distinctive:

    Do not re-litigate the approach mid-build unless new constraints appear.

    line 113
  10. Very specific:

    Before DONE / Conventions check, verify the built surface against this checklist.

    line 117
  11. Distinctive:

    When stuck between options, prefer the one that is: clear · fast · consistent · accessible · calm · specific · recoverable.

    line 145
  12. Distinctive:

    Prefer content and hierarchy over decoration

    line 152
  13. Distinctive:

    Ask more than 2 questions up front

    line 159
  14. Distinctive:

    Start a temporary design-lab route unless the user explicitly asks to explore in-browser

    line 161
  15. Distinctive:

    Start coding blank-canvas UI before a direction is set (unless skip rules apply)

    line 162

“Common” is measured: kept by at least 6 in 10 of the 6 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

Frontend Judgment

Overview

Feel like a senior frontend engineer: decide with the user, then build. Do not dump a generic UI for blank-canvas work. This skill is a short gate before tokens / components / etc.

This pack-authored workflow uses independent design-axis analysis; no external exploration tool is bundled.

When to use (mandatory gate)

Run this before domain skills when any of these apply:

  • New page, screen, flow, or blank-canvas layout
  • Unspecified information architecture / navigation / density
  • Marketing / landing page without a section recipe → load marketing after approaches (or with “langsung saja”)
  • Multiple reasonable visual or interaction directions
  • User ask is vague for a new screen (“bikin dashboard”, “UI modern”) — not mere “rapihin” on existing UI (that’s polish / quality-loop)

When to skip

  • Clear bugfix with known expected behavior
  • Tiny change (one component prop, one token color, copy tweak)
  • User already chose a direction or said “langsung saja” / “just implement”
  • Pure /design audit with no implementation request
  • Follow-up turn continuing an already-approved plan
  • User only wants micro polish on existing UI (“rapihin detail”, “feels off”) → use polish
  • User wants iterate until audit-clean (“sampai bagus”) → use quality-loop, which may call judgment only on first blank-canvas pass

Workflow

0. Quick context (silent — no questions yet)

  • If DESIGN_MEMORY.md exists in the project root, read it and honor captured tone/density/patterns
  • Note whether the project already has tokens / a component library (feeds step 4 handoff)

1. Clarify only if blocked (max 1–2 questions)

Ask only what changes the design. Prefer multiple choice. Do not run a full design-lab interview.

Good single questions (pick at most two total):

TopicExample options
DensityCompact · Comfortable · Spacious
ContextDesktop-first · Mobile-first · Both
Pain (redesign)Cluttered · Unclear hierarchy · Weak mobile · Outdated
InspirationLinear density · Stripe clarity · Notion flexibility · Apple space
  • Skip questions you can infer from the repo or DESIGN_MEMORY.md.
  • Coded side-by-side comparison is prototype, not this skill. Do not emit five full coded variants here.

2. Offer 2–3 approaches on distinct axes

Do not offer three near-identical skins. Each option should explore a different axis (from design-lab variant thinking):

AxisExplores
HierarchyWhat is primary? Gestalt grouping; one primary action
Layout modelCard vs list vs table vs split-pane / sidebar
DensityCompact vs comfortable vs spacious (using project spacing tokens)
InteractionModal vs inline vs drawer vs page; progressive disclosure
ExpressionHow far to push brand (borders vs soft depth, motion amount) — still on-token

Present 2–3 options (not 5 coded mocks). Label each with its axis.

For each option:

  • Name + axis (short)
  • What it looks/behaves like (1–2 sentences)
  • Tradeoff (clarity, density, a11y, ship cost)
  • Mark one recommendation and why (1 sentence)

3. Wait for a clear choice

  • Affirmative on one option → proceed
  • Hedged → pick recommended and state that, or one tight confirm
  • “Langsung saja” → pick recommendation and build

4. Hand off

After direction is set:

  1. Style inference (for tokens / build) — if a project system exists:
    • Read Tailwind theme / :root / theme file
    • Skim 2–3 existing buttons, cards, forms for padding, radius, shadow, type
    • Do not invent a parallel visual language
  2. Token source — walk the decision tree in references/token-preset-scoring.md (custom → explicit → Plasma hard-gate → score). Judgment sets axes/signals; it does not pick a preset by vibe. Include Token score / hard-gate / project system in the handoff. Capture a one-sentence craft intent (task + dominant content form + 2–3 visible decisions), using references/design-axes.md → Turn a reference into decisions. Apply this even when the approach-choice gate was skipped for an already-approved direction; do not reopen approval.
  3. Load: (+ prototype if they asked to see options or stress states) → tokens → (+ shell/data/forms) → components → responsive → motion (light) → anti-slop-design → polish → accessibility (+ testing / seo if in scope)

Optional short handoff note (when exploration was non-trivial):

## Build plan (brief)
- Axis chosen: …
- Files likely touched: …
- States: loading / empty / error / …
- Tokens: <project system | explicit | hard-gate | scored preset + n/24>
- Responsive: 320/768/1024/1440

Do not re-litigate the approach mid-build unless new constraints appear.

Hierarchy pass (ship gate — post-build)

Before DONE / Conventions check, verify the built surface against this checklist. Theory: references/ux-foundations.md, axes: references/design-axes.md.

CheckPass when
One primary focusOne clear focal element per view (not three competing heroes)
One primary CTAOne dominant action; secondary actions quieter (weight/contrast/position)
Weight before decorationSize, weight, contrast, position establish order — not badges/glow/extra chrome
One job per sectionEach section: one purpose, one headline, usually one short supporting line
Gestalt groupingRelated items closer; sections farther; same style = same kind
No equal-weight noiseAvoid same padding/gap/type size on primary vs tertiary

Report in Conventions when auditing: Hierarchy: pass (or list fails). Missing hierarchy on blank-canvas / polish → treat as Needs Work on Visual Hierarchy.

Typography ladder (ship gate)

Pair with polish / anti-slop-design. Full anti-patterns: references/anti-patterns.md.

CheckPass when
Families≤2 type families (project tokens)
One h1Exactly one <h1> (or page title role) per page
Ladderh1 → h2 → h3 → body without skipping levels for style
Roles via tokensHeading/body/muted/label use type tokens — not random rem sizes
MeasureBody ~60–75ch where long-form; product chrome may be narrower
Mobile scaleInputs ≥16px; heading jumps not extreme (no 3rem title crushing a 320px form)

Quick decision check

When stuck between options, prefer the one that is: clear · fast · consistent · accessible · calm · specific · recoverable.

Expert voice (do / don't)

Do:

  • Push back on AI-slop defaults with a better alternative
  • Prefer content and hierarchy over decoration
  • Name tradeoffs honestly
  • Reference concrete inspiration (“Linear-like density”) when it helps

Don't:

  • Block on slash commands
  • Ask more than 2 questions up front
  • Offer 5+ options or five full coded variants by default (coded comparison is prototype, cap 2–3)
  • Start a temporary design-lab route unless the user explicitly asks to explore in-browser
  • Start coding blank-canvas UI before a direction is set (unless skip rules apply)

Output template (before build)

## Approaches
**A — … (axis: hierarchy)** … Tradeoff: …
**B — … (axis: density)** … Tradeoff: …  ← recommended: …
**C — … (axis: interaction)** (optional) …

## Recommendation
…

## Need from you
Pick A/B/C (or say “go with recommended”).

Checklist

  • Direction chosen (or skip rules applied) before domain skills
  • Handoff includes tokens + Responsive breakpoints
  • Hierarchy pass completed on built surface
  • Typography ladder (one h1, no skipped levels, token roles)
  • Build plan notes states (loading / empty / error) when non-trivial

Depth

Lifecycle A→Z: references/fe-lifecycle.md. Axes + memory convention: references/design-axes.md. Token preset scoring: references/token-preset-scoring.md. UX/UI theory + color for products: references/ux-foundations.md (wire hierarchy/type here into ship gates above). Anti-patterns: anti-slop-design + references/anti-patterns.md. Domain how-to stays in the other skills.

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.