setup-ux

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Setup UX

设置UX

Learn enough for future UX work to start from intent and evidence instead of guesswork.
掌握足够信息,让后续UX工作从明确意图和实际依据出发,而非凭空猜测。

Always

始终遵循

  • Context — inspect what is already known before asking the user to repeat it. Use
    .ux/INTENT.md
    when product purpose or outcome can change the answer, and load only the additional project context the task needs.
  • User — ground the work in the people affected, their goal, task, context, and available evidence. Do not invent user needs, behaviors, or personas.
  • Evidence — keep known, inferred, assumed, unknown, and conflicted information distinct when the difference matters.
  • System — prefer established product language, components, patterns, and rules before inventing new ones.
  • Clear — lead with the useful point, use the minimum structure needed, and remove generic AI filler.
  • Trust — never invent evidence, requirements, rationale, implementation status, or compliance.
  • Outcome — for substantial multi-step work, keep intent active, use a small
    .ux/STATE.md
    only when continuity needs it, prioritize the highest-impact unresolved gap before polishing, and verify the actual experience against intent before declaring completion.
Do not recite these rules to the user unless one of them materially affects the answer.
Do not introduce research questions, personas, or discovery work when the user and task are already clear or the missing information would not materially change the work.
  • 上下文 — 在要求用户重复信息前,先查看已知内容。当产品目标或成果会影响答案时,使用
    .ux/INTENT.md
    ,仅加载任务所需的额外项目上下文。
  • 用户 — 工作需基于受影响人群、他们的目标、任务、场景以及现有依据。不得虚构用户需求、行为或用户画像。
  • 依据 — 当差异至关重要时,需明确区分已知、推断、假设、未知和存在冲突的信息。
  • 系统 — 优先采用已确立的产品语言、组件、模式和规则,而非自行创造新内容。
  • 清晰性 — 先给出核心有用信息,使用必要的最简结构,剔除通用AI生成的冗余内容。
  • 可信度 — 绝不能虚构依据、需求、理由、实施状态或合规信息。
  • 成果导向 — 对于复杂的多步骤工作,保持意图明确;仅当需要维持工作连续性时,使用小型
    .ux/STATE.md
    ;在优化细节前,优先处理影响最大的未解决缺口;在宣布完成前,验证实际体验是否符合预期。
除非这些规则会对答案产生实质性影响,否则不要向用户复述它们。
当用户和任务已明确,或缺失的信息不会对工作产生实质性改变时,不要引入研究问题、用户画像或探索性工作。

Decide the setup path

确定设置路径

Determine whether this is a new project or an existing one. Infer the path when the available project makes it obvious. Otherwise ask one short question: is this a new project/product, or are we working with an existing one?
Do not create a second setup skill. Both paths end in the same small
.ux/
context layer.
判断这是新项目还是现有项目。若现有项目信息已能明确路径,则直接推断;否则只需提出一个简短问题:这是新项目/产品,还是基于现有项目开展工作?
不要创建第二个设置skill。两条路径最终都会生成相同的小型
.ux/
上下文层。

New project: capture intent conversationally

新项目:以对话形式捕捉意图

There may be little useful project evidence yet, so begin with the user's idea in their own words. Ask only the next question whose answer could materially change what gets designed.
Useful areas to resolve, as needed, are:
  • why this should exist and what should become better or newly possible;
  • who is affected and what they need to accomplish;
  • the essential experience or journey;
  • current scope and explicit non-goals;
  • constraints already known;
  • what success means, if it has been defined;
  • available evidence versus assumptions and unknowns.
Ask one or a small number of related questions at a time. Do not run a fixed questionnaire or require every heading to be complete before work can start.
Write
.ux/INTENT.md
first once the intent is concrete enough to guide decisions. Show the useful synthesis to the designer and let corrections override inference.
此时可能缺乏有用的项目依据,因此先从用户用自己语言表达的想法入手。仅提出下一个答案会对设计产生实质性影响的问题。
根据需要,需明确以下关键领域:
  • 产品存在的意义,以及哪些方面应得到改善或实现新的可能;
  • 受影响人群及其需要完成的任务;
  • 核心体验或用户旅程;
  • 当前范围和明确的非目标;
  • 已知的约束条件;
  • (若已定义)成功的标准;
  • 现有依据与假设、未知信息的区别。
每次提出一个或少量相关问题。不要使用固定问卷,也无需在开始工作前完成所有条目。
当意图足够具体可指导决策时,先编写
.ux/INTENT.md
。将有用的综合内容展示给设计师,允许其修正推断内容。

Existing project: inspect before reconstructing intent

现有项目:先调研再重构意图

Explore the repository and connected sources before asking questions. Inspect what is available: README and product docs, existing user research, analytics and support evidence, package files, Storybook, components, tokens, design-system docs, Figma or other connected design sources, accessibility guidance, issue/PR templates, and existing decisions.
Reconstruct a draft of product intent from authoritative evidence, but keep current behavior separate from intended outcome. Code can prove that a flow exists; it usually cannot prove why the organization chose it.
Ask only about material gaps, conflicts, or intent that cannot be established reliably. Do not ask the user for information you can discover.
If an older
.ux/
directory contains only
CONTEXT.md
,
DESIGN-SYSTEM.md
, and
DECISIONS.md
, preserve those files and add
INTENT.md
; do not rewrite established context merely to match the new structure.
在提问前,先浏览代码仓库和相关资源。查看可用内容:README和产品文档、现有用户研究、分析与支持依据、包文件、Storybook、组件、设计令牌、设计系统文档、Figma或其他关联设计资源、无障碍指南、议题/PR模板以及现有决策。
从权威依据中重构产品意图草稿,但需将当前行为与预期成果区分开。代码可证明某个流程存在,但通常无法证明组织选择该流程的原因。
仅询问实质性缺口、冲突或无法可靠确定的意图。不要向用户索要可自行发现的信息。
若旧的
.ux/
目录仅包含
CONTEXT.md
、
DESIGN-SYSTEM.md
和
DECISIONS.md
,请保留这些文件并添加
INTENT.md
;不要仅为匹配新结构而重写已确立的上下文。

Keep the context small

保持上下文精简

Create or refresh the smallest useful core:
text
.ux/
├── INTENT.md
├── CONTEXT.md
├── DESIGN-SYSTEM.md
└── DECISIONS.md
Read
references/context-contract.md
for ownership, templates, evidence status, migration, intent updates, and when a project justifies splitting context into smaller files.
创建或更新最精简的核心上下文:
text
.ux/
├── INTENT.md
├── CONTEXT.md
├── DESIGN-SYSTEM.md
└── DECISIONS.md
阅读
references/context-contract.md
了解所有权、模板、依据状态、迁移、意图更新,以及何时需要将项目上下文拆分为更小文件。

INTENT.md

INTENT.md

Owns why the product or capability exists, intended outcome, people affected, core task/experience, current scope and non-goals, material constraints, success when known, and material assumptions or unknowns.
Keep it short. It is a north star, not a PRD.
记录产品或功能存在的原因、预期成果、受影响人群、核心任务/体验、当前范围和非目标、实质性约束条件、(已知的)成功标准,以及实质性假设或未知信息。
保持内容简洁。它是指引方向的北极星,而非PRD。

CONTEXT.md

CONTEXT.md

Owns the operating environment: observable product mechanics, major journeys, evidence locations, engineering stack and workflow, accessibility expectations, terminology, and stable project facts that help future UX work.
Do not duplicate intent just because both files mention the product.
记录运行环境:可观察的产品机制、主要用户旅程、依据来源、技术栈与工作流程、无障碍要求、术语体系,以及有助于后续UX工作的稳定项目事实。
不要因两个文件都提及产品而重复意图内容。

DESIGN-SYSTEM.md

DESIGN-SYSTEM.md

Record the actual design-system sources and rules: Storybook, Figma, component packages, tokens, source-of-truth order, reuse expectations, and contribution path.
记录实际的设计系统来源和规则:Storybook、Figma、组件包、设计令牌、信息优先级、复用要求以及贡献路径。

DECISIONS.md

DECISIONS.md

Keep a lightweight index of consequential UX or architecture decisions. If the project already has ADRs or another decision system, point to that instead of creating a competing one.
保留一份轻量化的重要UX或架构决策索引。若项目已有ADRs或其他决策系统,请直接指向该系统,而非创建竞争系统。

Use progressive context

采用渐进式上下文

Do not create a research repository, persona library, journey catalog, or constraints folder during setup by default.
Split information into smaller files only when density, repeated use, or distinct ownership makes the split useful. Examples include
.ux/users/tasks.md
,
.ux/evidence/research.md
, or
.ux/constraints/accessibility.md
for projects that genuinely need them.
Future skills should load
INTENT.md
when product purpose, outcome, scope, or success can change the answer, then load only the additional context relevant to the task. Do not treat the whole
.ux/
directory as mandatory context for every request.
.ux/STATE.md
is not part of setup and is not a fifth core context file. A future agent may create it only for substantial multi-step work when continuity would otherwise be lost. It is disposable working state, not durable product truth.
默认情况下,设置过程中不要创建研究仓库、用户画像库、用户旅程目录或约束条件文件夹。
仅当信息密度高、重复使用频繁或所有权明确需要拆分时,才将信息拆分为更小文件。例如,对于真正需要的项目,可创建
.ux/users/tasks.md
、
.ux/evidence/research.md
或
.ux/constraints/accessibility.md
。
后续skill在产品目标、成果、范围或成功标准会影响答案时,应加载
INTENT.md
,然后仅加载与任务相关的额外上下文。不要将整个
.ux/
目录视为每个请求的必备上下文。
.ux/STATE.md
不属于设置内容,也不是第五个核心上下文文件。仅当复杂多步骤工作需要维持连续性时,后续agent才可创建它。它是一次性工作状态,而非持久的产品事实。

Missing information is allowed

允许存在未知信息

Do not block setup because something is unknown. Ask only when an answer would materially change future recommendations.
Never turn assumptions into facts. Label claims about people, evidence, requirements, decisions, intent, and material unknowns as known, inferred, assumed, unknown, or conflicted when the distinction matters; ordinary product mechanics do not need labels.
不要因存在未知信息而阻碍设置。仅当答案会对后续建议产生实质性影响时才提问。
绝不能将假设视为事实。当差异至关重要时,需将关于用户、依据、需求、决策、意图和实质性未知信息的声明标记为已知、推断、假设、未知或冲突;常规产品机制无需标记。

Refresh intent carefully

谨慎更新意图

Treat
INTENT.md
as stable, not frozen. Existing intent is the default and should survive routine design and implementation work.
Change it only when explicit human direction or authoritative evidence shows that the product's purpose, intended outcome, people, scope, non-goals, material constraints, or definition of success has actually changed. Make the smallest useful edit instead of regenerating the file.
A small clarification can be refined in place when it makes an already-established intent more precise without changing its meaning. A consequential change should preserve the decision or evidence that caused it in
DECISIONS.md
or the project's existing ADR/RFC system.
Never rewrite intent to rationalize the current implementation, remove an inconvenient constraint, or make completed work appear aligned after the fact. Agent inference alone does not override established intent.
将
INTENT.md
视为稳定内容,而非一成不变。现有意图是默认值,应在常规设计和实施工作中保留。
仅当有明确的人工指示或权威证据表明产品的目标、预期成果、受众、范围、非目标、实质性约束条件或成功标准确实发生变化时,才修改它。仅做必要的最小改动,而非重新生成文件。
若小范围澄清能让已确立的意图更精确且不改变其含义,可直接在原处优化。若为重大变更,需在
DECISIONS.md
或项目现有的ADR/RFC系统中记录导致变更的决策或依据。
绝不能为合理化当前实现、移除不便的约束条件或事后让已完成工作显得符合预期而重写意图。仅agent的推断不能推翻已确立的意图。

Finish usefully

高效收尾

Tell the designer what you learned, the few important gaps you found, and whether intent, user context, and the design system are sufficiently understood to start working.
Then stop. Do not turn setup into an audit or a discovery workshop.
告知设计师你所了解的内容、发现的少量重要缺口,以及是否已充分理解意图、用户上下文和设计系统以开展后续工作。
然后停止。不要将设置变成审计或探索研讨会。