AgentSkillsCN

ue

具备UE(用户体验工程)技能,能够精准定义端到端的用户体验行为与交互逻辑。适用于流程设计、交互模型、状态机设计、错误恢复策略、输入校验、可用性启发式原则、无障碍设计,以及将UX意图转化为可测试的验收标准,为实际落地提供依据。

SKILL.md
--- frontmatter
name: ue
description: UE (user experience engineering) skill for defining end-to-end user experience behavior and interaction logic. Use for tasks like flow design, interaction models, state machines, error recovery, input validation, usability heuristics, accessibility, and turning UX intent into testable acceptance criteria for implementation.

ue

Use this skill for UE(User Experience Engineering / 体验工程)工作:把体验目标落地为“可实现 + 可测试”的交互与状态规范。

Outputs (choose what the task needs)

  • End-to-end flows (happy path + edge cases)
  • Interaction/state spec (state machine)
  • Error handling & recovery spec
  • Form validation rules (client/server responsibilities)
  • Accessibility and inclusive UX requirements
  • Testable acceptance criteria (Given/When/Then)

Workflow

  1. Define the experience goal
  • What user problem are we solving in this flow?
  • What does success look like (time to complete, error rate, satisfaction)?
  1. Model the flow as states
  • Enumerate states: idle → input → validating → loading → success/error.
  • Include empty/loading/offline/permission denied/timeouts.
  • Define transitions, triggers, and side effects.
  1. Specify interactions
  • Primary/secondary actions per state.
  • Feedback timing: spinners, skeletons, toasts, confirmations.
  • Undo/cancel patterns where applicable.
  1. Validation & constraints
  • Field rules (length, format, enum) and error messages (exact copy).
  • Decide what is validated client-side vs server-side.
  • Idempotency and retry rules for network actions.
  1. Error taxonomy & recovery
  • User mistakes vs system errors vs dependency failures.
  • Recovery path: retry, fallback, save draft, contact support.
  • Avoid dead ends; preserve user input when possible.
  1. Accessibility
  • Keyboard navigation/focus order (web).
  • Screen reader labels and dynamic text (mobile).
  • Do not rely on color alone for status.

UE acceptance criteria template

  • Given [state], when [event], then [transition] and [UI result].
  • When network timeout occurs, system [behavior] and user can [recovery].
  • Validation: for [invalid input], show [message] and prevent [action].