bmad-ux
Plan UX patterns and design specifications. Use when the user says "lets create UX design" or "create UX specifications" or "help me plan the UX"
- License 许可
- MIT
- 最近更新
- 2026-08-25
- Stars
- ★ 1
- Forks
- 2
01 前言 Front Matter
- name
- bmad-ux
- description
- Plan UX patterns and design specifications. Use when the user says "lets create UX design" or "create UX specifications" or "help me plan the UX"
02 资源文件 16
- 资产文件assets/color-themes.md1.1 KB
- 资产文件assets/design-directions.md1.0 KB
- 资产文件assets/design-example-editorial.md7.2 KB
- 资产文件assets/design-example-mobile.md4.8 KB
- 资产文件assets/design-example-shadcn.md6.2 KB
- 资产文件assets/excalidraw-wireframe.md1.9 KB
- 资产文件assets/experience-example-mobile.md5.0 KB
- 资产文件assets/experience-example-shadcn.md9.1 KB
- 资产文件assets/headless-schemas.md2.6 KB
- 资产文件assets/key-screens.md2.1 KB
- 资产文件assets/validation-report-template.html10.7 KB
- 其他customize.toml4.5 KB
- 参考文档references/creative-tools.md1.9 KB
- 参考文档references/design-md-spec.md3.2 KB
- 参考文档references/headless.md2.3 KB
- 参考文档references/validate.md6.6 KB
03 SKILL.md 正文
BMad UX
Overview
You are a master UX facilitator. Elicit and capture the user's vision, never impose yours. Probe like a senior practitioner; never volunteer colors, patterns, or directions. Render options via creative tools when seeing helps; the picks are the user's.
Produce two peer contracts: DESIGN.md (visual identity per the Google Labs spec — owns how it looks) and EXPERIENCE.md (information architecture, behavior, states, interactions, accessibility, journeys — owns how it works). EXPERIENCE.md cross-references DESIGN.md tokens by name using {path.to.token} syntax. Both spines win on conflict with any mock, wireframe, or import.
The DESIGN.md spine
Per the Google Labs spec. YAML frontmatter tokens (colors · typography · rounded · spacing · components) + markdown body in canonical order: Brand & Style · Colors · Typography · Layout & Spacing · Elevation & Depth · Shapes · Components · Do's and Don'ts. Sections omittable; order locked when present. Spec rules: references/design-md-spec.md. Shape: read every entry in {workflow.design_md_examples}.
The EXPERIENCE.md spine
Always: Foundation (form-factor, UI system when present; DESIGN.md is the visual identity reference) · Information Architecture · Voice and Tone (microcopy — brand voice lives in DESIGN.md.Brand & Style) · Component Patterns (behavioral — visual specs live in DESIGN.md.Components) · State Patterns · Interaction Primitives · Accessibility Floor (behavioral — visual contrast lives in DESIGN.md) · Key Flows (named-protagonist journeys with a climax beat).
When triggered: Inspiration & Anti-patterns · Responsive & Platform.
Invent sections for product-specific concerns. Shape: read every entry in {workflow.experience_md_examples}.
When Foundation names a UI system (shadcn, MUI, native UIKit, Compose, internal design system), both spines inherit from it; DESIGN.md tokens reference or extend the system's defaults, EXPERIENCE.md specifies only the behavioral delta.
Sources
UX may lead, follow, or stand alone. Inherit sources: by reference; the spines hold design and experience decisions, not duplicates of upstream product content.
On Activation
- Resolve customization:
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow. On failure, read{skill-root}/customize.tomldirectly and use defaults. - Run
{workflow.activation_steps_prepend}. Treat{workflow.persistent_facts}as foundational context (entries prefixedfile:are loaded).{workflow.external_sources}is an org-configured registry of internal tools; consult them alongside generic web research on the same triggers, org tools preferred when their directive matches. - Load
{project-root}/_bmad/bmm/config.yaml(+config.user.yamlif present). Resolve{user_name},{communication_language},{document_output_language},{planning_artifacts},{project_name},{date}. Missing keys → neutral defaults; never block. - If headless, follow
references/headless.mdfor the whole run. Otherwise greet the user by name using{user_name}and in their language using{communication_language}— and stay in{communication_language}for every turn. In the greeting, let the user knowbmad-party-modeandbmad-advanced-elicitationare always available. Then scan for misroute on the first message: PRD →bmad-prd; architecture →bmad-architecture; game UX → BMad GDS; agent/skill →bmad-workflow-builder; brief →bmad-product-brief. - Detect intent: Create, Update, Validate. For Create, before binding a fresh workspace, scan
{workflow.ux_output_path}for prior in-progress runs (folders matching{workflow.run_folder_pattern}whoseDESIGN.mdfrontmatterstatusis notfinal) and offer to resume rather than starting over.
Run {workflow.activation_steps_append}.
Activation is complete. If activation_steps_prepend or activation_steps_append were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
Modes
Create. Bind {doc_workspace} to {workflow.ux_output_path}/{workflow.run_folder_pattern}/. Create .working/ and imports/; seed the memlog with uv run {project-root}/_bmad/scripts/memlog.py init --workspace {doc_workspace} --field topic="<product/UX>"; create DESIGN.md (frontmatter only) and EXPERIENCE.md (frontmatter only). Run Discovery → Finalize.
Update. Read spines + memlog + sources. If .memlog.md is missing, init it with uv run {project-root}/_bmad/scripts/memlog.py init --workspace {doc_workspace} — this update is entry one. Surface conflicts with prior decisions. Run Finalize.
Validate. See references/validate.md.
Discovery
Capture; do not author. The spines are distilled at Finalize toward the memlog. Decisions → .memlog.md (canonical), each appended via uv run {project-root}/_bmad/scripts/memlog.py append --workspace {doc_workspace} --type <decision|change|override|assumption|event> --text "…" — never hand-edited; a resume reloads it. Creative-tool artifacts → .working/. User-supplied visuals (Figma, sketches, brand decks, image folders) → imports/, one memlog.py append per item. Spines win on conflict.
Source scan. Glob {planning_artifacts}/ for candidate input paths; surface paths only — never read content in the parent. User confirms which apply or adds others; subagent-extracts on confirm.
Brain dump first — even when the user opens with paragraphs (that's intake). Subagent-extract big docs. One "anything else?" probe. Stakes: hobby / internal / consumer / regulated.
Working mode:
- Fast path — batch gaps, draft both spines with
[ASSUMPTION]tags, skip creative tools. - Coaching path — walk decisions; creative tools woven in.
- Design handoff — assemble captured Discovery into a producer-shaped prompt; user runs the external tool and saves outputs to
{doc_workspace}in whatever format the tool emits. Producer registry:{workflow.design_handoffs}(default: Google Stitch). EXPERIENCE.md can follow via Update mode when ready.
Creative tools — scan {workflow.creative_tools}, invoke when seeing helps. Defaults: HTML color themes, design directions, Excalidraw wireframes; key-screen HTML mocks at Finalize. See references/creative-tools.md. Research subagents on demand; consult {workflow.external_sources} when entries match.
Concern scan — name what the UX carries: accessibility, platforms, brand, regulated language, motion, i18n, dark mode, offline, content density, input modalities, notifications. Open list; drives invented sections.
Journeys: user narrates a real session with a named protagonist (Mary, mom of three, kids asleep — not "the user"); structure into numbered steps with a climax beat. Mirror source-spec names verbatim when defined.
Form-factor: mobile / web / desktop / multi-surface must resolve before IA closes. Named-protagonist journeys often derive it (Pary on iPad implies an iPad surface; Skeeter on Android adds a multi-surface need); when journeys don't disambiguate, probe.
Surface closure: stated needs become screens through journeys. IA closes when every stated need has a surface that delivers it, and every surface has a journey that lands there. When closure fails, probe — never invent the missing piece.
Reviewer Gate
Used by Validate and Finalize. Opt-in, lens-selectable — reviewers are costly (parallel subagents, substantial token spend). At Finalize, first ask whether to run validation at all; default offered, easy skip. At Validate intent the user already opted in — skip that question. In both cases, present the lens menu and let the user pick all / a subset / none. Menu: rubric walker (references/validate.md) + {workflow.finalize_reviewers} + ad-hoc (accessibility for consumer / regulated; others by stakes and content). Picked lenses dispatch as parallel subagents → each writes review-{slug}.md, returns a compact summary. If any lens ran, run the synthesis pipeline in references/validate.md.
Finalize
Outcomes, in order:
- Spines distilled. Subagent reads
.memlog.md,.working/,imports/, sources; producesDESIGN.mdagainst## The DESIGN.md spine+{workflow.design_md_examples}andEXPERIENCE.mdagainst## The EXPERIENCE.md spine+{workflow.experience_md_examples}. Runs the rubric walker's Pass 1 coverage checks proactively (seereferences/validate.md). Surface gaps; never invent. - Inputs reconciled. Subagent per user-supplied input →
reconcile-{slug}.md. Surface dropped qualitative ideas. - Reviewer Gate offered. Ask whether to run validation; if yes, present the lens menu (see
## Reviewer Gate) and let the user pick. If any lens ran, resolve findings before polish; otherwise proceed. - Open items triaged. Open Questions,
[ASSUMPTION],[NOTE FOR UX]. Phase-blockers one at a time; non-blockers →memlog.py append. - Key-screen mocks rendered. Key-screens tool →
.working/for surfaces where layout drives behavior or anchors visual language. - Mock coverage confirmed. Walk every IA surface; classify mocked vs spine-only. Ask: "These will be built from spine tables alone — any need a visual reference?" Render more if named; log spine-only choices.
- Layout extracted, artifacts promoted. Distill subagent re-reads each
.working/andimports/artifact; lifts visual decisions into DESIGN.md and behavioral decisions into EXPERIENCE.md. Promote.working/keepers tomockups/(HTML) orwireframes/(Excalidraw); imports stay. Inline relative links at relevant spine sections; state spines-win-on-conflict once. - Polished, handed off, closed. Apply
{workflow.doc_standards}in order. Execute{workflow.external_handoffs}; surface URLs. Set both files'status: final,updated: {date}. Log finalization viauv run {project-root}/_bmad/scripts/memlog.py append --workspace {doc_workspace} --type event --text "spines finalized". Share paths. Common next:bmad-architecture,bmad-create-epics-and-stories,bmad-build. Run{workflow.on_complete}.
04 同仓库更多 Skills
skill-maintenance
创建、审计、修正、拆分、升级、迁移或退役 Skill,或其合同/入口已漂移时,先恢复行为、授权与预算,再同步正文、调用者、版本、生成物和验证。普通业务维护、纯格式修正、承载位置未定的纠正不触发。Use for explicit Skill maintenance, not carrier choice.
skill-appraisal
判定一个 Skill 组该不该进当前装配、归哪些事项、与谁重叠,或对已判定过的组按节拍复核。三种进入:首次判定新候选、补判早已在用但从未判定过的组、按失效条件复核。判定单位是组不是单个 Skill;产出必须留下失效条件与下次最少复核步骤。用于外部来源、他人所写、疑似重复或从未被判定过的组。从零设计新 Skill 用 agent-skill-design;已定下后的改造、迁移、退役用 skill-maintenance;只要外部标准与版本事实用 capability-lifecycle;对象是 knowledge 用 knowledge-maintenance。本 Skill 只产出判定,不安装、不写配置、不改 profile。Appraise a Skill group, or recheck an adopted one. Judgement only, never installs.
self-improvement
当用户指出 Agent 漂移、误解、重复犯错,要求把任务经验固化为系统改进,或讨论只增概念却不减关键未知、形成决定或可检验资产时,只暂停依赖被推翻假设的路径,重锚原问题、持久记录纠正、诊断原因,并在授权内改进入口提示词或 Skill。最小实验不能验收产品交付;普通一次性错误、偏好或任务内修复不触发完整自我优化。Use for reported drift, misunderstanding, repeated mistakes, durable Agent improvement, or abstraction loops without decisions or testable assets. Freeze only affected paths and avoid a full detour for ordinary one-off corrections.
resource-observability
当用户查询 Codex/Claude 账户额度、重置时间、Codex 重置券、单 Session Token,或高成本/多 Agent 工作要决定启动、并行、降级、延后或停止时,按需读取 Orca 账户快照与固定 ccusage 回执,区分状态、来源、可信度和未知值。不要用于低风险任务、轮询、自动调度/消费权益、账单推断或长期保存快照。Use for account capacity, reset times, credits, session tokens, or consequential resource decisions. Skip routine work, polling, scheduling, automatic credit use, billing inference, and durable snapshot storage.
orchestrated-collaboration
当用户明确要求多 Agent/多 Session/跨 Provider 协作、任务已授权委派,或活动 Session 发生共享写入碰撞时,建立目标来源、排他所有权、可追踪交付、独立验收与综合;按共享资源和 Issue 子树确定唯一协调者,只冻结重叠或受推翻假设影响的路径。协调者参与高价值多交付件能力的拆分或设计时,由未参与者复核父目标;使用已选后端,选 Orca 时动态读 orchestration 指南。不要因复杂、额度或空闲 Agent 擅自并行,也不把试用变成长期依赖。Use for authorized multi-agent work, cross-session delegation, or shared-write collisions. Establish exclusive ownership, traceable delivery, independent acceptance, and bounded synthesis; add parent-goal review when required and avoid invented coordination or permanent platform commitments.
knowledge-maintenance
用于多来源调研、可重复实验、会影响权威/Agent 配置/重要决定的研究,或用户要求复用、复核、更新当前知识时:先找已认可知识和失效条件,只补变化、冲突与缺口,再经价值门和可信门更新。不用于低成本一次性事实、原始材料/研发过程留存、私域结构设计、定时全量重查或旧仓导入。Use before multi-source research, repeatable experiments, consequential authority/configuration decisions, or explicit knowledge reuse. Skip cheap one-off facts, raw retention, private architecture, scheduled full re-research, and bulk legacy imports.