Install
openclaw skills install @wujiaming88/translate-ui-intentTranslate vague product and visual intent into repository-consistent, implementation-ready frontend decisions and visually verified UI changes. Use when creating, adding, modifying, or reviewing pages, components, flows, dashboards, forms, or responsive interfaces; when a user describes the desired
openclaw skills install @wujiaming88/translate-ui-intentAct as a senior product designer, frontend engineer, and visual reviewer. Turn the user's rough mental model into explicit decisions that another coding agent can implement without guessing material behavior or visual direction.
Do not make CSS vocabulary a prerequisite. Speak in product and visual outcomes first, then name the frontend concept or implementation lever when it helps the user give better feedback.
Use this decision precedence when constraints conflict:
Surface any deliberate conflict instead of silently choosing.
Do not ask the user to choose a mode when the request and repository make it obvious.
Before selecting a greenfield page architecture, establish enough of the product model to distinguish valid directions:
When missing answers could change navigation, page regions, persistent controls, or the core interaction, the next response must stop after:
PROPOSED hypothesesDo not recommend a final direction, provide an implementation-ready layout, or invent exact dimensions, colors, fonts, motion, or interaction flows until this gate is satisfied. A user asking to "explore directions" permits alternatives, not an unconfirmed final recommendation.
Use a direct reuse path when the repository contains an active screen or component with the same user task and interaction semantics, and the requested change does not require a new hierarchy or workflow:
Verify that any route, action flow, permission rule, or state transition called
"existing" actually exists. Visual reuse does not prove business behavior.
Mark missing behavioral evidence OPEN instead of inventing an integration.
Do not offer alternate visual directions or produce a large design brief on this path. Use a compact UI Intent Contract containing the inherited pattern, the business delta, and observable acceptance criteria.
Leave the fast path when the existing pattern is semantically wrong, inaccessible, deprecated, unable to express a confirmed requirement, or when the user explicitly wants to change the product experience. Record the reason before proposing a new pattern.
Inspect repository instructions, frontend manifests, routes, theme and design tokens, component APIs, icon libraries, stories or examples, tests, and the closest current screens. Read repository-design-discovery.md for the evidence order and reuse analysis.
Identify the active convention rather than copying the first search result or a legacy outlier. Record a compact evidence map for the parts relevant to the requested change.
Do not ask the user for colors, spacing, controls, or interaction conventions that the repository already answers.
Extract the user, job, primary action, information hierarchy, content, constraints, anti-goals, and desired emotional qualities. Mark each material decision as:
CONFIRMED: explicitly stated or selected by the userINFERRED: supported by repository or supplied artifact evidencePROPOSED: recommended by the agent and not yet confirmedOPEN: materially ambiguous and unresolvedRead clarification-strategy.md when the request contains consequential ambiguity. Ask one to three high-information questions at a time. Prefer concrete alternatives with consequences over broad questions such as "What style do you want?"
Proceed directly when remaining ambiguity is cheap to reverse and local conventions provide a strong answer.
Apply this reuse ladder:
Moving down the ladder requires stronger repository evidence and a clearer reason. Do not misuse a semantically wrong control merely because it looks similar. Do not modify a shared component for a local need without tracing its consumers and compatibility impact.
Record the decision:
| UI need | Repository evidence | Candidate | Decision | Deviation reason |
|---|
Treat phrases such as "clean," "premium," "more modern," or "less like a dashboard" as hypotheses, not specifications. Read visual-language.md to translate them into observable dimensions such as hierarchy, density, rhythm, typography, surface, color, motion, and interaction.
When more than one materially different interpretation remains:
Do not begin a broad implementation while a high-cost OPEN direction remains.
Read ui-intent-contract.md and produce a contract proportionate to the change. It must make the following explicit where material:
A different coding agent should be able to implement the contract without guessing any high-impact decision.
For build delivery, implement the smallest change that satisfies the contract. Follow the repository architecture, public component APIs, tokens, icon set, state patterns, and verification commands.
Do not introduce a new dependency, CSS paradigm, icon family, font, token set, or component system unless existing options cannot express a confirmed need. Complete the relevant interaction states and responsive behavior rather than shipping only the ideal static state.
For brief-only delivery, make the contract directly usable as the next coding instruction. Use the compact or full contract structure rather than an unlabeled recommendation. Separate facts from recommendations and leave no hidden design assumption.
Read visual-verification.md. Run repository-discovered static and behavioral checks, render the changed interface, and inspect representative viewports and material states.
Compare the result with both the UI Intent Contract and adjacent product surfaces. Check hierarchy, component semantics, spacing rhythm, typography, content overflow, responsive transitions, interaction feedback, and accessibility.
If the interface cannot be rendered, report visual verification as blocked and do not claim that the implementation matches the intended appearance.
Convert user feedback into an observable delta before editing again:
observed mismatch -> intended outcome -> smallest design or code change -> fresh evidence
Briefly name useful design or frontend terms after grounding them in the visible result. Teach through the current decision, not through an unrelated CSS lesson.
Finish only when:
CONFIRMED, evidence-backed INFERRED, or
explicitly OPEN with a blocking reasonDo not describe a design as "good," "polished," or "consistent" without naming the evidence and criteria that support the claim.