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.
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 callsMode: design, and Stage 6 callsMode: changefor a presentation-only unit. Stage 7 adds theVisual/UXlens. - /ft-fixRuns a MAJOR or CRITICAL bug. A user-visible fix adds the
Visual/UXlens to the core. - bugfix-agentSends a purely presentational root cause to
Mode: change.
Before the dispatch
- price-gate.pyReads
Size:in aMode: changebrief 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:lineand 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
## HANDOFFblock last.
Canon
- user-visible-dod.mdThe trigger and the 18 items of the UI Definition of Done.
- design-skill-routing.mdWhich skill owns which property, the ladder and the precedence.
Design skills
- Motion skillsOwn motion, transitions and animation.
- apple-designOwns drag, swipe, sheets, springs and momentum.
- impeccableOwns states, accessibility, layout, copy and edge cases.
- design-taste-frontendOwns the visual direction of a new screen.
- datavizOwns charts, dashboards and KPI tiles.
Independent check
- Visual/UX lensA
verifierlens that checks the code and then drives the running product itself. - Running appThe product, driven with
agent-browserat 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
- You send
Mode: changewith aSize:line. The gate reads the line first. - The size is within the cap, so the agent starts.
- The agent states its
Routing:line from the code that it will touch. - The diff has transitions, so the routing table names the motion skills.
- The agent drives the route and takes a screenshot of the failure state.
- The agent answers all 18 items of the UI Definition of Done.
- The report carries the
DoD:line and the screenshots. - The report comes back to you.
A new screen in a feature
- You type
/ft-dev, because the screen needs new data. - Stage 3 calls
Mode: designfor the new screen. - The agent writes a UX spec and no production code.
- The spec goes into the design brief.
- Stage 5 brings the direction options to you.
- Stage 6 calls
Mode: changefor each presentation-only unit. - Stage 7 adds the
Visual/UXlens. - The lens drives the running product itself.
A presentational bug
- You type
/ft-fixfor a MAJOR or CRITICAL bug. bugfix-agentfinds a purely presentational root cause.- The agent edits the presentation in
Mode: change. - The fix is user-visible, so the
Visual/UXlens joins the core. - The lens drives the fixed flow in the running app.
A build that is too large
- The brief says
Mode: changeand declares more than 500 lines or 12 files. - The gate denies the dispatch. The agent does not start.
- You type
/ft-devwith the approved UX spec. ft-developersplits the build into units and callsMode: changefor each unit.
A critique of a screen
- You send
Mode: review. The size check lets it pass. - The agent drives the existing screen for a baseline.
- The agent runs
impeccable critiqueon the screen. - The report lists the findings by severity and changes no file.
- The findings come back to you.
How the parts connect
- A
Mode: changedispatch from the main loop passes the size check first. - A brief within the cap starts the agent.
- A
Mode: designorMode: reviewdispatch needs noSize: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-fixruns the fix stages throughbugfix-agent.- A presentational bug can also start at
bugfix-agent. - A purely presentational root cause goes to
Mode: change. - Stage 3 calls
Mode: designfor a new screen, a new flow, a restyle or a redesign. - Stage 6 calls
Mode: changefor a presentation-only unit. Mode: designwrites 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: designandMode: reviewrunimpeccable critiqueas a baseline.- Every mode drives the surface with
agent-browser. - A user-visible outcome adds the
Visual/UXlens 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
impeccabledesign gates before its drive.
Where does my request go?
Follow the four boxes in the main loop. Each answer names what you type.
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.
- YESType
2. What do you want?
Choose the mode by the result that you want.- CRITIQUE
Mode: review - DESIGN
Mode: designas 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.
- CRITIQUE
3. Is it one unit?
Does it fit about 400 changed lines or 10 files?- YES
Mode: change - NO
/ft-devsplits it into units.
- YES
4. Send the brief
TypeUse ft-ui-ux-design.and the brief below. Then read the report. See what each status means.
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.
Mode: change brief. Replace the values with your own.A script reads two lines
price-gate.pyreadsMode:andSize:. 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 onopus.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
- 3
Stage 3: design
ft-ui-ux-designMode: designwrites the UX spec for the design brief. - 5
Stage 5: approval
You choose among the direction options.
You - 6
Stage 6: build
ft-ui-ux-designMode: changebuilds each presentation-only unit. - 7
Stage 7: check
The
verifierVisual/UXlens checks the running product.
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.
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 happens | design | change | review |
|---|---|---|---|
| What it produces | |||
| A UX spec at the path in the brief, else in the journal directory | yes | ||
| Edited presentation files and component tests for every changed state | yes | ||
Findings by severity, each with a file:line, the broken rule and the smallest fix | yes | ||
Direction options for you, as a NEEDS_USER status | yes | ||
| What it runs | |||
A drive of the screen with agent-browser. In design, only when the surface exists | when the surface exists | yes | yes |
impeccable critique as a baseline. In design, only when the surface exists | when the surface exists | yes | |
| The inspector of the taste skill, before the work. Only for a restyle or a redesign | restyle or redesign | restyle | restyle or redesign |
impeccable audit and polish on its own diff | yes | ||
| The before and after comparison at the product widths and themes | yes | ||
| What it needs in the brief | |||
A Size: line, when the main loop sends it | yes | ||
always only in the case that the row names
How Mode: change runs
- 1
Record the before
Route, states, screenshots and console.
Agent - 2
Edit in small steps
Type, color and tokens, then frame and spacing, then states, then stock components.
Agent - 3
Test in the same pass
Component tests for every changed state, until test and lint are green.
Agent - 4
See it
Drive each state, take a screenshot of the failure state and read the console.
Agent - 5
Review itself
The motion, audit and polish passes. This review is not independent.
Agent
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-enganimatereview-animationsfind-animation-opportunitiesimprove-animationsanimation-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 critiquegives the baseline, anddistillfollows. 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)
impeccabledesign-taste-frontend
- Data displayCharts, dashboards and KPI tiles.
- Skills (1)
dataviz
- Running appDriving the running app.
gstackserves only the surfaces thatagent-browserlacks. Playwright owns committed*.spec.tssuites and is the fallback.- Skills (1)
agent-browser
Motion canon
- emil-design-engHolds the rules of motion.
- animateBuilds new motion.
- review-animationsChecks a motion diff.
- find-animation-opportunitiesSays where motion belongs and where it must not go.
- improve-animationsAudits motion across a whole codebase.
- animation-vocabularyTurns a vague description into the exact term before a brief.
Apple canon
- apple-designHolds the rules of gesture physics.
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,critiqueanddistill.
Direction
- design-taste-frontendSets the visual direction and runs the before and after inspector.
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
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
A property with no installed owner is a named degradation.impeccablealone is not routing
If two canons disagree, the first one wins
- 1. Design systemThe existing system of the product. In an enterprise UI, conformance is the direction.
- 2. Your directionThe direction that you approved for this change.
- 3. The ownerThe domain owner of the property.
- 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.
ReachabilityConsumer contractThe failure viewState truthfulnessRecoveryState matrixCopyDestructive actionsKeyboard and focusContrast and hit targetsLayout integrityReadabilityMotion floorSystem conformanceSpacing and alignmentControl placementSeen, not readSeen in a running browserOrange 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.
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.
- 0
The DoD, inline
Every user-visible change.
No extra model call - 1
Read one skill
Before you author the property that it owns.
One skill file - 2
Drive the app
Any user-visible change that renders.
About one minute - 3
A read-only pass
A non-trivial slice, a redesign or authored motion.
One pass over the diff - 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. Read the code
Reachability, consumer contract, the failure view and state truthfulness, all from the code, before any browser.2. Did the design gates run?
impeccable:audit,polishandcritique.- YESGo on.
- NO
NEEDS_EVIDENCE, with the missing gate named. - ABSENTThe skill is not installed. The lens declares a degradation and runs the DoD floor.
3. Is an app instance named?
The orchestrator starts the app and names it.- YESGo on.
- NO
NEEDS_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. Drive the product
The lens attacks the running product withagent-browserand returns a verdict with evidence.
What the drive attacks
Routing: line
One adjacent screen
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
Verificationfield. - 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
Changed files in one unit
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 ~240and send the brief again.
DeniedThe line is over 500 lines or 12 files
- The agent does not start.
- Send the build to
/ft-devwith 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?
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.