UI/UX

UI means user interface, and UX means user experience. One agent, ft-ui-ux-design, designs and edits what a person sees. Two rule files hold the canon, and an independent lens checks the result in a browser. Watch a scenario, or click an element to read what it does. The tables are on the UI/UX Reference.

Skip the map

You

  • Main loopThe Claude Code session in which you talk to the agents.You type the brief here. A report comes back here. A product-taste question comes to you here as two or three options.

Pipelines

  • /ft-devRuns ft-developer. It splits a larger build into units and calls the agent itself.Stage 3 calls Mode: design, and Stage 6 calls Mode: change for a presentation-only unit. Stage 7 adds the Visual/UX lens.
  • /ft-fixRuns a MAJOR or CRITICAL bug. A user-visible fix adds the Visual/UX lens to the core.
  • bugfix-agentSends a purely presentational root cause to Mode: change.

Before the dispatch

  • price-gate.pyReads Size: in a Mode: change brief from the main loop. It denies a missing line or an oversized unit.

ft-ui-ux-design

  • Mode: designWrites a UX spec and no production code.
  • Mode: changeEdits the presentation of one unit, with component tests and a browser check.The zone is the presentation layer. New data, a new API field, business rules, routing logic or state management are a SCOPE_BREACH.
  • Mode: reviewCritiques a screen, read-only. Each finding has a file:line and the smallest fix.

What comes back

  • UX specLists states, copy, tokens, motion, files and tests for one design.
  • The reportNamed fields, with a status first and a ## HANDOFF block last.

Canon

Design skills

Independent check

  • Visual/UX lensA verifier lens that checks the code and then drives the running product itself.
  • Running appThe product, driven with agent-browser at a URL and route that someone else starts.

A solid border: the installers offer it, or the toolkit ships it. A dashed border: no installer offers it. Each line is a real connection.

Restyle one screen

  1. You send Mode: change with a Size: line. The gate reads the line first.
  2. The size is within the cap, so the agent starts.
  3. The agent states its Routing: line from the code that it will touch.
  4. The diff has transitions, so the routing table names the motion skills.
  5. The agent drives the route and takes a screenshot of the failure state.
  6. The agent answers all 18 items of the UI Definition of Done.
  7. The report carries the DoD: line and the screenshots.
  8. The report comes back to you.

A new screen in a feature

  1. You type /ft-dev, because the screen needs new data.
  2. Stage 3 calls Mode: design for the new screen.
  3. The agent writes a UX spec and no production code.
  4. The spec goes into the design brief.
  5. Stage 5 brings the direction options to you.
  6. Stage 6 calls Mode: change for each presentation-only unit.
  7. Stage 7 adds the Visual/UX lens.
  8. The lens drives the running product itself.

A presentational bug

  1. You type /ft-fix for a MAJOR or CRITICAL bug.
  2. bugfix-agent finds a purely presentational root cause.
  3. The agent edits the presentation in Mode: change.
  4. The fix is user-visible, so the Visual/UX lens joins the core.
  5. The lens drives the fixed flow in the running app.

A build that is too large

  1. The brief says Mode: change and declares more than 500 lines or 12 files.
  2. The gate denies the dispatch. The agent does not start.
  3. You type /ft-dev with the approved UX spec.
  4. ft-developer splits the build into units and calls Mode: change for each unit.

A critique of a screen

  1. You send Mode: review. The size check lets it pass.
  2. The agent drives the existing screen for a baseline.
  3. The agent runs impeccable critique on the screen.
  4. The report lists the findings by severity and changes no file.
  5. The findings come back to you.

How the parts connect

  • A Mode: change dispatch from the main loop passes the size check first.
  • A brief within the cap starts the agent.
  • A Mode: design or Mode: review dispatch needs no Size: line.
  • A build with new data, a new flow or a large size goes to /ft-dev.
  • A MAJOR or CRITICAL bug goes to /ft-fix.
  • /ft-fix runs the fix stages through bugfix-agent.
  • A presentational bug can also start at bugfix-agent.
  • A purely presentational root cause goes to Mode: change.
  • Stage 3 calls Mode: design for a new screen, a new flow, a restyle or a redesign.
  • Stage 6 calls Mode: change for a presentation-only unit.
  • Mode: design writes the UX spec.
  • The spec goes into the design brief of ft-developer.
  • Every mode states its Routing: line before work.
  • The Definition of Done is the canon of every mode.
  • Every mode ends with the report.
  • The report goes back to the caller, or to you from the main loop.
  • The routing table binds each property to its owner skill.
  • Mode: design and Mode: review run impeccable critique as a baseline.
  • Every mode drives the surface with agent-browser.
  • A user-visible outcome adds the Visual/UX lens to the core.
  • The lens drives the app instance that the orchestrator names.
  • The Definition of Done is the minimum attack list of the lens.
  • The lens needs the impeccable design gates before its drive.

Where does my request go?

Follow the four boxes in the main loop. Each answer names what you type.

  1. 1. A build with new parts?

    Do you want a build that needs new data, a new API field, new logic or a new flow?
    • YESType /ft-dev <description> and give the approved UX spec if you have one. Stop here.
    • NOGo to box 2.
  2. 2. What do you want?

    Choose the mode by the result that you want.
    • CRITIQUEMode: review
    • DESIGNMode: design as a design pass, for a redesign, a new screen or a new flow.
    • BUILDA restyle, polish, accessibility pass or motion pass on one screen. Go to box 3.
  3. 3. Is it one unit?

    Does it fit about 400 changed lines or 10 files?
    • YESMode: change
    • NO/ft-dev splits it into units.
  4. 4. Send the brief

    Type Use ft-ui-ux-design. and the brief below. Then read the report. See what each status means.
main loop
Use ft-ui-ux-design. Mode: change Repo: /path/to/worktree Paths: src/app/profiles/ App URL and route: http://localhost:4200/profiles Size: files 6 · lines ~240 Done means: the empty state and the error state use the product tokens; the UI Definition of Done is answered.
A Mode: change brief. Replace the values with your own.
  • A script reads two lines

    price-gate.py reads Mode: and Size:. The other lines are free text for the agent. See why the gate denies a large unit.
  • Set no model

    The agent definition runs it on opus.
  • No mode in the brief

    The agent infers a mode and says which mode it took.

Two cases start somewhere else

A bug with a purely presentational root cause → bugfix-agent

bugfix-agent sends ft-ui-ux-design, Mode: change. A MAJOR or CRITICAL bug runs through /ft-fix.

A small change with no design choice → bugfix-agent as MINOR

Examples are wording, a path or a one-line config. A purely mechanical change can go to the stack coding agent. A full pipeline costs a design pass for nothing. A small addition that follows an existing pattern goes to /ft-dev as simple-addition. See Choosing the entry point.

Inside /ft-dev, the pipeline calls the agent itself

  1. 3

    Stage 3: design

    Mode: design writes the UX spec for the design brief.

    ft-ui-ux-design
  2. 5

    Stage 5: approval

    You choose among the direction options.

    You
  3. 6

    Stage 6: build

    Mode: change builds each presentation-only unit.

    ft-ui-ux-design
  4. 7

    Stage 7: check

    The Visual/UX lens checks the running product.

    verifier

Other stages carry smaller UI/UX duties. See every pipeline step.

Is my change UI/UX work?

The outcome decides, not the file type: is a person going to read it, see it or decide from it?

In scopeA person meets the result

  • A screen or its parts: a component, style, layout, icon or animation.
  • A string that a person reads, even when a Java, Go or Rust handler writes it.
  • A failure that reaches a person: a 4xx or 5xx body, a timeout or a permission denial.
  • A payload field that exists to be displayed.
  • A flow: a new step or route, a changed default or a changed order.

Out of scopeNo person meets the result

  • A machine-to-machine payload that no human reads.
  • A log line written for grep.
  • Back in scope A log line shown in a UI panel.
  • Back in scope An error string forwarded verbatim to a screen.
If the case is ambiguous, treat it as in scope

The canon is rules/ux/user-visible-dod.md. Its paths: glob is a floor, not the boundary. A change in a file outside the glob is in scope when a person sees its result.

What does each mode do?

Only Mode: change edits production files. Read a column to see what one mode does.

What happensdesignchangereview
What it produces
A UX spec at the path in the brief, else in the journal directoryyes
Edited presentation files and component tests for every changed stateyes
Findings by severity, each with a file:line, the broken rule and the smallest fixyes
Direction options for you, as a NEEDS_USER statusyes
What it runs
A drive of the screen with agent-browser. In design, only when the surface existswhen the surface existsyesyes
impeccable critique as a baseline. In design, only when the surface existswhen the surface existsyes
The inspector of the taste skill, before the work. Only for a restyle or a redesignrestyle or redesignrestylerestyle or redesign
impeccable audit and polish on its own diffyes
The before and after comparison at the product widths and themesyes
What it needs in the brief
A Size: line, when the main loop sends ityes

always only in the case that the row names

How Mode: change runs

  1. 1

    Record the before

    Route, states, screenshots and console.

    Agent
  2. 2

    Edit in small steps

    Type, color and tokens, then frame and spacing, then states, then stock components.

    Agent
  3. 3

    Test in the same pass

    Component tests for every changed state, until test and lint are green.

    Agent
  4. 4

    See it

    Drive each state, take a screenshot of the failure state and read the console.

    Agent
  5. 5

    Review itself

    The motion, audit and polish passes. This review is not independent.

    Agent
The agent stays in the presentation layer

New data, a new API field, business rules, routing logic or state management are a SCOPE_BREACH. The agent also keeps the stack and invents no new direction. See every limit of change mode.

Which skill owns which property?

Select a property to see its skills. The agent routes by the property in the code, not by the words of the task.

Properties

  • MotionMotion, transitions and animation.
    Skills (6)
    emil-design-eng animate review-animations find-animation-opportunities improve-animations animation-vocabulary
  • GesturesDrag, swipe, sheets, springs, momentum and interruptible transitions.
    Skills (1)
    apple-design
  • States and copyStates, accessibility, layout, UX copy, edge cases and internationalization.
    Skills (1)
    impeccable
  • DirectionThe visual direction of a new screen.A route or screen that did not exist before means direction. Greenfield and marketing surfaces use the page run of the skill. An existing enterprise design system uses only its app-screen run with --keep palette,type.
    Skills (1)
    design-taste-frontend
  • RestyleA restyle of a surface that exists. The audit comes first.impeccable critique gives the baseline, and distill follows. The product design system is the direction. The inspector of the taste skill adds a before and after when the whole surface is in scope.
    Skills (2)
    impeccable design-taste-frontend
  • Data displayCharts, dashboards and KPI tiles.
    Skills (1)
    dataviz
  • Running appDriving the running app.gstack serves only the surfaces that agent-browser lacks. Playwright owns committed *.spec.ts suites and is the fallback.
    Skills (1)
    agent-browser

Motion canon

Apple canon

Structure and QA

  • impeccablePlans, hardens and audits states, layout and copy.It owns none of motion, gestures or direction. Its commands are shape, harden, polish, audit, critique and distill.

Direction

Tools

  • datavizHolds the rules of data display. No installer offers it.
  • agent-browserOpens a route, takes a snapshot, exercises states and reads the console.

propertymotion canongestures (Apple canon)structure and QAdirectiontoolshollow dot: no installer offers this skillthe property routes to this skill

The agent writes the routing first

the report, Routing field
Routing: motion -> emil-design-eng; states -> impeccable; no gestures, no new direction
IllustrationThe format comes from the canon.
  • A grep of the code decides

    Motion: transition, animation, @keyframes, transform, spring, ease. Gestures: drag, swipe, pan, pointer, touchmove, sheet, momentum. A property is ruled out only when the grep finds nothing.
  • Loading impeccable alone is not routing

    A property with no installed owner is a named degradation.

If two canons disagree, the first one wins

  1. 1. Design systemThe existing system of the product. In an enterprise UI, conformance is the direction.
  2. 2. Your directionThe direction that you approved for this change.
  3. 3. The ownerThe domain owner of the property.
  4. 4. TasteTaste skills, only where the earlier steps leave room.

The agent never blends two canons on one property. An open product-taste question goes to you.

What must be true before done?

Every user-visible change answers all 18 items of the UI Definition of Done (DoD). The check takes minutes and starts no agent.

Reachability and core5ReachabilityConsumer contractThe failure viewState truthfulnessRecovery
States and content3State matrixCopyDestructive actions
Access and form4Keyboard and focusContrast and hit targetsLayout integrityReadability
Visual system5Motion floorSystem conformanceSpacing and alignmentControl placementSeen, not read
Evidence1Seen in a running browser

Orange outline: the core four. Other documents cite them by name.What each item asks

If you check only four, check these

  • Consumer contract

    Every field added for display has a consumer, and every rendered field has a producer. Both sides branch on a code, not on a message text.
  • The failure view

    For each failure, the person sees a title, a body and a next action. Nothing internal reaches the screen.
  • State truthfulness

    The screen matches what happened. Each event maps to a state and its words. A refusal and a crash are different events.
  • Recovery

    Every error names the next action and a way back. Every loading state has a timeout and a view after it.

These four cross the wire between backend and frontend. A green unit suite, a clean lint and a one-sided review all miss them.

The report carries one line

  • An item that does not apply gets one word, for example n/a: no motion.
  • An item that you could not verify gets a stated reason.
  • Silence on an item counts as a skipped test.
the report, Verification field
DoD: 16/16 — 2 n/a (no motion, no new colors); consumer @ <file:line>; failure copy: "<the exact sentence>"; contrast <pair> = <ratio>; screenshots at <paths>
IllustrationThe count covers the items that apply. Here 2 items are n/a, so the line says 16/16.

Who checks the result, and how much?

Use the smallest rung that answers the question. Each rung costs more than the rung before it, and the label under a rung names its cost.

  1. 0

    The DoD, inline

    Every user-visible change.

    No extra model call
  2. 1

    Read one skill

    Before you author the property that it owns.

    One skill file
  3. 2

    Drive the app

    Any user-visible change that renders.

    About one minute
  4. 3

    A read-only pass

    A non-trivial slice, a redesign or authored motion.

    One pass over the diff
  5. 4

    A verifier agent

    A new screen or journey, a MAJOR or CRITICAL fix, or an unsettled finding.

    A whole fresh context

Never run rung 3 or 4 on code that is still moving. Rung 4 is one pass after the code stops.

How the Visual/UX lens reaches a verdict

  1. 1. Read the code

    Reachability, consumer contract, the failure view and state truthfulness, all from the code, before any browser.
  2. 2. Did the design gates run?

    impeccable:audit, polish and critique.
    • YESGo on.
    • NONEEDS_EVIDENCE, with the missing gate named.
    • ABSENTThe skill is not installed. The lens declares a degradation and runs the DoD floor.
  3. 3. Is an app instance named?

    The orchestrator starts the app and names it.
    • YESGo on.
    • NONEEDS_EVIDENCE, with a launch request.
    • TEXTIf the diff shows only as text, the lens still delivers findings from the code. It asks only for what needs the browser.
  4. 4. Drive the product

    The lens attacks the running product with agent-browser and returns a verdict with evidence.

What the drive attacks

Every named state New console errors Accessibility tree labels The flow by keyboard Motion and reduced motion Layout at the breakpoints The product design system The first-time journey One recovery path The Routing: line One adjacent screen
The screenshots of the author are claims

The drive of the lens is the evidence. The lens is part of the mandatory core on a user-visible outcome, and the agent never reviews its own diff.

The agent stopped, or the gate denied. What now?

The first field of the report tells you what to do next. A size denial comes before the agent starts.

OK
The work is done. Read the Verification field.
NEEDS_USER
A product-taste choice is yours. Choose one of the options in the report.
SCOPE_BREACH
The work needs new data or logic. The report names what a coding agent must add. From the main loop, send that work to /ft-dev.
BLOCKED
The agent has a question. Answer the question in the report.

Why the gate denies a large unit

Changed lines in one unit

Target of the canon~400
The gate denies above500
One measured unit~8000

Changed files in one unit

Target of the canon10
The gate denies above12
One measured unit133

The measured unit ran to 564K tokens of context and cost $80. A build of that size belongs to /ft-dev.

DeniedThe Size: line is missing

  • The agent does not start.
  • Add a line such as Size: files 6 · lines ~240 and send the brief again.

DeniedThe line is over 500 lines or 12 files

  • The agent does not start.
  • Send the build to /ft-dev with the approved UX spec.
  • If the unit cannot be split, add atomic: <why> to the line.

FAQ

The questions that readers ask most.

Does the agent start my app?

No. If the brief has no URL, the report carries a launch request. The browser check needs a running instance.

Can the agent use my own browser?

No. It drives agent-browser and never uses the Chrome-extension browser tools. Those tools drive your own browser.

A design skill is not installed. What happens?

The agent reports a named degradation and does not fall back to impeccable. It checks the session skill listing, not ~/.claude/skills. See what the toolkit installs.

Does the size check also read a dispatch from ft-developer?

No. The ux_change check reads only a dispatch from the main loop. The pricing checks for producers cover a dispatch from ft-developer or bugfix-agent.

A page or an agent says something else than the rule file. Which is right?

The rule file is right. Other agents point to the two rule files, and a restatement that disagrees is the defect.

Where next?

Look up one fact on the reference page, or read how UI work fits the wider pipelines.

Every tableRoutes, modes, canon, all 18 items, the lens and the pipeline stages are on UI/UX Reference.
The hooks and the agentsThe gate and every other hook are on Agent Harness.
The pipelinesThe grades, the checkpoints and the lenses are on Quality Pipelines.
Open the UI/UX Reference