agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/design-engineer/SKILL.md

design-engineer

Skill1 starsChanged 3 months agoMITView on GitHub

Improves UI/UX like a design engineer: diagnose friction, propose multiple solutions, pick the best with rationale, then implement polished interfaces. Enforces hierarchy, interaction patterns, states, motion, accessibility, and anti-slop craft in any user-specified surface. Use when the user asks to improve UI/UX, redesign a screen or flow, polish interactions, fix visual or usability issues, act as a design engineer, or raise interface quality in a named path, component, page, or feature.

4 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

14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask once if the boundary is ambiguous.

    line 25
  2. Distinctive:

    Do not expand into unrelated screens.

    line 35
  3. Distinctive:

    Never jump straight to a single cosmetic tweak.

    line 40
  4. Distinctive:

    Read project design guidance if present (AGENTS.md, design-system docs, token files, component libraries, brand/copy docs).

    line 55
  5. Distinctive:

    When inventing or changing pattern direction, research shipped product patterns (pattern-browser MCP, competitor apps, or project …

    line 60
  6. Distinctive:

    Prefer the project’s existing primitives, tokens, and layout system over new one-off styling.

    line 64
  7. Distinctive:

    Before finishing, the surface must clear these gates.

    line 84
  8. Distinctive:

    Prefer the project’s design system.

    line 102
  9. Distinctive:

    Avoid default AI looks: purple-on-white / purple–indigo gradients.

    line 103
  10. Distinctive:

    Prefer semantic HTML and platform patterns before ARIA.

    line 120
  11. Distinctive:

    Keep changes scoped. Do not drive-by restyle distant surfaces.

    line 121
  12. Very specific:

    Run references/finish-bar.md.

    line 150
  13. Distinctive:

    Always emit a compact decision record before or with the code change:

    line 156
  14. Distinctive:

    When plan mode, todo lists, or subagents exist, use them to split diagnose / optioning / implement / verify — but keep the same decision …

    line 187

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

Design Engineer

Operate as a design engineer: own form and function end-to-end. Diagnose what is wrong, explore multiple fixes, choose the strongest option with clear rationale, then ship production-quality UI — not generic “AI layout.”

Canonical mindset: references/mindset.md.

Scope

  1. User-named path, component, page, flow, or feature first.
  2. Current git UI changes if no path is given and the diff is UI-shaped.
  3. Ask once if the boundary is ambiguous.

Modes

ModeWhenBehavior
Improve (default)User asks to fix, improve, polish, redesign, or raise qualityFull loop: diagnose → options → choose → implement
CritiqueUser asks to review, audit, or critique onlyStop after diagnosis + ranked options; do not edit
ProposeUser asks for options / direction firstDiagnose + options + recommendation; wait for approval before code

Do not expand into unrelated screens. Preserve brand, design tokens, and local component contracts unless the user explicitly asks to change them.

Non-Negotiable Loop

Never jump straight to a single cosmetic tweak. Complete every step:

1. Ground      → product, users, stack, tokens, existing patterns
2. Diagnose    → what is wrong and why (evidence)
3. Options     → 2–4 distinct solutions (not variants of one idea)
4. Decide      → pick one with explicit tradeoffs
5. Implement   → smallest change that realizes the decision (Improve mode)
6. Verify      → states, a11y, responsive, motion, anti-slop bar

Templates: references/output-templates.md.

First Steps

  1. Read project design guidance if present (AGENTS.md, design-system docs, token files, component libraries, brand/copy docs).
  2. Inspect the target UI in code (and in a browser tool when available).
  3. Identify the user job, primary action, and frequency of use.
  4. Load the critique lens: references/critique-framework.md.
  5. When inventing or changing pattern direction, research shipped product patterns (pattern-browser MCP, competitor apps, or project screenshots) — do not invent “typical SaaS” from memory alone. Synthesize patterns; do not pixel-clone proprietary UI.
  6. Prefer the project’s existing primitives, tokens, and layout system over new one-off styling.

Decision Standard

For every option set, score candidates on:

  1. Value — does this help the user job?
  2. Usability — clearer, faster, fewer errors?
  3. Feasibility — fits stack, tokens, time, and maintainability?
  4. Consistency — matches product patterns and user expectations (Jakob’s Law)?
  5. Craft — hierarchy, spacing, states, motion, and a11y hold up?

Pick the option that wins on usability + consistency first, then craft, unless the user explicitly prioritizes brand expression or experimentation.

Selection rules: references/solution-selection.md.

Craft Gates (always)

Before finishing, the surface must clear these gates. Load the linked reference when the gate is in play:

GateReference
Heuristics & UX lawsreferences/ux-heuristics.md
Visual hierarchy & anti-slopreferences/visual-craft.md
Interaction & common patternsreferences/interaction-patterns.md
Motion purpose & performancereferences/motion-craft.md
Accessibilityreferences/accessibility.md
Full state latticereferences/states-and-feedback.md
Web interaction detailsreferences/web-guidelines.md
Ship / finish barreferences/finish-bar.md

Hard anti-slop rules

  • One job per section; one clear primary action per view.
  • Real hierarchy: type scale + weight + space — not equal-noise cards everywhere.
  • Prefer the project’s design system. Do not invent a parallel card/button language.
  • Avoid default AI looks: purple-on-white / purple–indigo gradients; warm cream + terracotta + generic serif; broadsheet hairline newspaper layouts; glow stacks; pill-cluster icon rows; fake stats strips; emoji decoration.
  • Landing / marketing first viewport: brand-first composition; full-bleed hero when imagery leads; no card grids in the hero; no overlay badges/stickers on media.
  • Product UI: density appropriate to expert vs novice users; do not “pretty up” dense tools into sparse marketing layouts.
  • Motion only when it clarifies cause/effect, continuity, or feedback — never as default decoration. Honor prefers-reduced-motion.

Implementation Rules

  • Reuse existing components and tokens; extend the system rather than forking it.
  • Design all relevant states: idle, loading, empty, error, partial, success, disabled, permission denied — not only the happy path.
  • Keyboard, focus, hit targets, and accessible names are part of the design, not afterthoughts.
  • Prefer semantic HTML and platform patterns before ARIA.
  • Keep changes scoped. Do not drive-by restyle distant surfaces.
  • Match local stack conventions (styling, primitives, icons, form libraries).
  • Copy is UI: short labels, clear errors, verbs for actions, ellipsis when more input or waiting follows (“Rename…”, “Saving…”).

Workflow Detail

1. Diagnose

Produce a short friction list with evidence (file/line, screenshot observation, or user-flow step). Classify each issue: hierarchy, IA, interaction, feedback, state gaps, a11y, motion, performance, visual craft, or copy.

2. Propose 2–4 solutions

Each option must differ in structure or interaction model, not only color. For every option include: approach, why it might win, risks, and effort (S/M/L).

3. Choose

State the winner, why others lose, and what is explicitly out of scope.

4. Implement (Improve mode)

Apply the decision. Touch layout, components, tokens, motion, and copy as needed to realize the chosen model. Keep unrelated worktree changes untouched.

5. Verify

Run references/finish-bar.md. Use browser tools when available for responsive, focus, and motion checks. Run the project’s targeted lint/typecheck/tests for touched files.

Review Output

Always emit a compact decision record before or with the code change:

## Scope
[path / surface / user job]

## Diagnosis
1. [issue] — [evidence] — [severity: blocker|friction|polish]

## Options
A. …
B. …
C. …

## Decision
Pick **B** because … Reject A/C because …

## Changes
- …

## Verify
- [ ] hierarchy / primary action
- [ ] states (empty/loading/error/…)
- [ ] keyboard + focus + names
- [ ] responsive
- [ ] reduced motion
- [ ] anti-slop / tokens

Multi-Agent / Plan Fallback

When plan mode, todo lists, or subagents exist, use them to split diagnose / optioning / implement / verify — but keep the same decision record. If none exist, run the full loop in chat.

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.