ux-walkthrough
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUX Walkthrough
UX Walkthrough
对产品进行系统性体验走查,输出结构化报告与生成本地 。
.docxConduct systematic experience walkthroughs for products, output structured reports and generate local files.
.docx路径约定
Path Convention
<SKILL_ROOT>bash
python3 <SKILL_ROOT>/scripts/<脚本>.py ...<SKILL_ROOT>bash
python3 <SKILL_ROOT>/scripts/<脚本>.py ...角色与标准
Roles & Standards
- 角色:资深 B 端体验设计专家;给可执行建议,不是主观吐槽
- 主标准:(UX 体验规则)
references/ux-checklist.md - HiUI 典型页:(Delta 走查;模板库全部典型页型,见该文页型索引)
references/hiui-template-baseline.md - 辅助:Nielsen、WCAG、品牌规范;冲突时以效率、理解成本、错误恢复、专业感为准
- 优先级:以 为准,不用 checklist 预设 P 级代替
references/severity-rubric.md
- Role: Senior B-end Experience Design Expert; Provide actionable suggestions, not subjective complaints
- Primary Standard: (UX Experience Rules)
references/ux-checklist.md - HiUI Typical Pages: (Delta Walkthrough; All typical page types in the template library, see the page type index in this document)
references/hiui-template-baseline.md - Supplementary: Nielsen, WCAG, Brand Specifications; In case of conflicts, prioritize efficiency, comprehension cost, error recovery, and professionalism
- Priority: Follow , do not use preset P-levels from the checklist as substitutes
references/severity-rubric.md
交付边界
Delivery Boundaries
- 本 skill 的正式完成面只包括:完整 Markdown 报告、结构化 、标注校验和本地
report.json.docx - 本 public skill 不定义 usage stats、telemetry closeout、网络补传或授权重试 after-hook
- 若上游 workflow 需要统计或发布态补传,必须由页面生成 / 发布 skill 自己定义和承担,不得默认追加到本 skill
- 生成 依赖 Python 包
.docx;若环境缺失,该任务只能报告python-docx失败,不能宣称完整完成docx_generation
- The official deliverables of this skill only include: complete Markdown report, structured , annotation verification, and local
report.jsonfile.docx - This public skill does not define usage stats, telemetry closeout, network retransmission, or authorization retry after-hook
- If upstream workflows require statistics or post-release retransmission, they must be defined and borne by the page generation/publishing skill itself, and cannot be appended to this skill by default
- Generating depends on the Python package
.docx; If the environment lacks this package, the task can only reportpython-docxfailure and cannot claim complete completiondocx_generation
输入 → 模式
Input → Mode
| 输入 | 模式 | 文档 |
|---|---|---|
| 本地项目目录 | | |
| | |
| 图片 | | |
无法判断时,只问一句最小必要澄清。
| Input | Mode | Document |
|---|---|---|
| Local project directory | | |
| | |
| Image | | |
When unable to determine, only ask one minimal necessary clarification question.
三阶段主流程
Three-Stage Main Process
A 前置检查 → B 走查与报告 → C 生 docx 与完成自检A Pre-check → B Walkthrough & Reporting → C Docx Generation & Self-inspection阶段 A:前置检查
Stage A: Pre-check
bash
python3 <SKILL_ROOT>/scripts/precheck_walkthrough.py <输入> --json- 只读 、
next_action、mode、status;code 模式额外读gateruntime_probe - → 进入 B;否则补证据 / 澄清 / 失败说明,不写完整报告
continue_walkthrough - code 输入且 gate 通过后,可能被 runtime 探测改写:
next_action- → 对
try_url_walkthrough再跑 URL precheck,阶段 B 按 url 走runtime_probe.reachable_urls[0] - → 先启动
start_dev_server_then_url_walkthrough;成功则 URL precheck,失败则收窄 coderuntime_probe.suggested_dev_command - → 阶段 B 按 code 走,但须遵守体验边界(见
fallback_code_walkthrough§ 体验边界)mode-code.md
bash
python3 <SKILL_ROOT>/scripts/precheck_walkthrough.py <输入> --json- Only read ,
next_action,mode,status; In code mode, additionally readgateruntime_probe - → Proceed to Phase B; Otherwise, supplement evidence/clarification/failure explanation, do not write a complete report
continue_walkthrough - After code input and gate pass, may be rewritten by runtime probe:
next_action- → Run URL precheck again on
try_url_walkthrough, proceed with url mode in Phase Bruntime_probe.reachable_urls[0] - → First start
start_dev_server_then_url_walkthrough; If successful, run URL precheck; If failed, narrow down code scoperuntime_probe.suggested_dev_command - → Proceed with code mode in Phase B, but must comply with experience boundaries (see
fallback_code_walkthrough§ Experience Boundaries)mode-code.md
阶段 B:走查与报告
Stage B: Walkthrough & Reporting
code 运行时优先(混合走查):
- 若 A 返回 或启动 dev 后拿到本地 URL → 切换 url 模式:浏览器截图 + 标注图,
try_url_walkthrough的report.jsonsource=url - 若 dev 启动失败或 A 返回 →
fallback_code_walkthrough,附录注明「未启动项目,结论基于代码推断」;只强报 code 可确定的体验问题source=code
顺序(不可变):
- HiUI 前置(若适用):识别页型 → 读 对应节(页型索引列全量页型)
references/hiui-template-baseline.md - 分批逐项走查:按 的 Batch 1→4 顺序,逐条对照
references/walkthrough-worksheet.md判断;每批填完工作表再进下一批references/ux-checklist.md - 命中条目且需参考时,读该条 指向的锚点(禁止通读
related_examples全文);HiUI 页先问是否与 baseline 合规默认一致issue-examples/*.md - (含 §5 HiUI)→ 去掉误报
references/ignore-list.md - → 定 P0/P1/P2
references/severity-rubric.md
输出: 对话中完整 Markdown 报告()
references/report-template.md整理 前,必须为 全部 17 条 填写 (见 ):
report.jsonchecklist_coveragereport-json.md-
必须写
pass,禁止裸pass: <验证证据,>=8 字>pass -
/
issue/pending:...规则见n/a:...report-json.md -
禁止在交付报告中输出「HiUI 模板对齐」模块(HiUI Delta 仅走查阶段内部使用;issue 描述可保留/
[HiUI-偏离]标签)[业务域] -
标题格式:
序号. [P级]标题 -
URL/截图模式:确定 issue 须有标注图与
images[].bbox -
证据不足 → 标「待确认 / 待交互验证」,不写确定问题;仍不足则回到阶段 A,不硬写完整报告
Code Runtime Priority (Hybrid Walkthrough):
- If Phase A returns or local URL is obtained after starting dev server → Switch to url mode: browser screenshot + annotated image,
try_url_walkthroughinsource=urlreport.json - If dev server fails to start or Phase A returns →
fallback_code_walkthrough, note in appendix: "Project not started, conclusions based on code inference"; Only report experience issues that can be confirmed by codesource=code
Sequence (Immutable):
- HiUI Pre-check (if applicable): Identify page type → Read corresponding section in (full page types listed in page type index)
references/hiui-template-baseline.md - Batch-by-Batch Itemized Walkthrough: Follow the order of Batch 1→4 in , judge item by item against
references/walkthrough-worksheet.md; Proceed to the next batch only after completing the worksheet for the current batchreferences/ux-checklist.md - When hitting an item and needing reference, read the anchor pointed to by of that item (prohibit reading the full text of
related_examples); For HiUI pages, first check if they are consistent with the baseline compliance defaultissue-examples/*.md - (including §5 HiUI) → Remove false positives
references/ignore-list.md - → Determine P0/P1/P2
references/severity-rubric.md
Output: Complete Markdown report in the conversation (based on )
references/report-template.mdBefore organizing , all 17 items must have filled in (see ):
report.jsonchecklist_coveragereport-json.md-
must be written as
pass, barepass: <verification evidence, >=8 characters>is prohibitedpass -
Rules for/
issue/pending:...are inn/a:...report-json.md -
Prohibit outputting the "HiUI Template Alignment" module in the deliverable report (HiUI Delta is only used internally during the walkthrough phase; issue descriptions can retain/
[HiUI-Deviation]tags)[Business Domain] -
Title format:
Number. [P-Level] Title -
URL/Screenshot mode: Confirmed issues must have annotated images and
images[].bbox -
Insufficient evidence → Mark as "Pending Confirmation / Pending Interaction Verification", do not write confirmed issues; If still insufficient, return to Phase A, do not force a complete report
阶段 C:生 docx 与完成自检
Stage C: Docx Generation & Self-inspection
- 标注(screenshot / url 必做):禁止手估 ;须用
--box(或annotate_issue.py+locate_in_screenshot.py+preview_bbox.py),输出到annotate.py(流程见output/annotations/*-annotated.png§ 标注流程)annotation-style.md - 按 整理
references/report-json.md;URL/截图模式的report.json须指向标注版、设issues[].images[],并记录"annotated": true"bbox": [x,y,w,h] - 校验 checklist 覆盖门禁:
bash
python3 <SKILL_ROOT>/scripts/validate_checklist_coverage.py --report-json <report.json> --json- 校验标注门禁:
bash
python3 <SKILL_ROOT>/scripts/validate_report_annotations.py --report-json <report.json> --json- 执行:
bash
python3 <SKILL_ROOT>/scripts/generate_docx.py \
--report-json <report.json> \
--output <SKILL_ROOT>/output/<项目名>-ux-report-<YYYYMMDD>.docx \
--json- 命名、嵌图与交付边界:§ DOCX
references/report-json.md - screenshot / url:默认校验 checklist 覆盖与标注;未通过则不得 success 完成判断
generate_docx.py - 标注图:(先 § 标注流程,再 § 样式);推荐工具:
references/annotation-style.mdannotate_issue.py - 失败 → 说明卡住位置和直接原因,不能说已完整完成
- Annotation (required for screenshot/url mode): Prohibit manual estimation of ; Must use
--box(orannotate_issue.py+locate_in_screenshot.py+preview_bbox.py), output toannotate.py(process seeoutput/annotations/*-annotated.png§ Annotation Process)annotation-style.md - Organize according to
report.json; In URL/screenshot mode,references/report-json.mdmust point to annotated versions, setissues[].images[], and record"annotated": true"bbox": [x,y,w,h] - Verify checklist coverage gate:
bash
python3 <SKILL_ROOT>/scripts/validate_checklist_coverage.py --report-json <report.json> --json- Verify annotation gate:
bash
python3 <SKILL_ROOT>/scripts/validate_report_annotations.py --report-json <report.json> --json- Execute:
bash
python3 <SKILL_ROOT>/scripts/generate_docx.py \
--report-json <report.json> \
--output <SKILL_ROOT>/output/<项目名>-ux-report-<YYYYMMDD>.docx \
--json- Naming, image embedding, and delivery boundaries: § DOCX
references/report-json.md - Screenshot/url mode: verifies checklist coverage and annotations by default; If not passed, cannot judge as successful completion
generate_docx.py - Annotated images: Follow (first § Annotation Process, then § Style); Recommended tool:
references/annotation-style.mdannotate_issue.py - Failure → Explain the stuck position and direct cause, cannot claim complete completion
完成定义(缺一不可)
Completion Definition (All Required)
- A:precheck 已通过,或已明确说明无法继续的原因
- B:对话中已输出完整报告(非摘要)
- C:success 路径 docx 已 ;失败路径已说明失败阶段和原因
generated
已分析 / 已出报告 / 已生 json 均不等于完成,docx 未生成不算完整完成。
- Phase A: Pre-check has passed, or the reason for inability to continue has been clearly stated
- Phase B: Complete report (not a summary) has been output in the conversation
- Phase C: Docx has been in the success path; Failure phase and reason have been explained in the failure path
generated
Analysis completed / Report issued / JSON generated do not equal completion; Docx not generated means incomplete completion.
分阶段读文档
Phase-Based Document Reading
| 阶段 | 必读 | 按需 |
|---|---|---|
| A | | |
| B | walkthrough-worksheet, hiui-template-baseline(HiUI 时), checklist, ignore-list, severity-rubric | — |
| C | report-template, report-json, annotation-style | |
默认不读: 底层脚本源码及与单次走查无关的维护说明
| Phase | Required Reading | On-Demand Reading |
|---|---|---|
| A | Corresponding anchor in | |
| B | walkthrough-worksheet, hiui-template-baseline (for HiUI), checklist, ignore-list, severity-rubric | — |
| C | report-template, report-json, annotation-style | |
Default Not Required: Underlying script source code and maintenance instructions unrelated to a single walkthrough
底层脚本(仅单层调试)
Underlying Scripts (Single-Level Debugging Only)
bash
python3 <SKILL_ROOT>/scripts/detect_input_mode.py <输入> --json
python3 <SKILL_ROOT>/scripts/probe_dev_server.py <项目路径> --json
python3 <SKILL_ROOT>/scripts/check_evidence_gate.py --source <mode> ... --jsonbash
python3 <SKILL_ROOT>/scripts/detect_input_mode.py <输入> --json
python3 <SKILL_ROOT>/scripts/probe_dev_server.py <项目路径> --json
python3 <SKILL_ROOT>/scripts/check_evidence_gate.py --source <mode> ... --json交付前自检
Pre-Delivery Self-Inspection
- 报告完整,非摘要
- 每问题有:位置、描述、改进建议
- 标题:
序号. [P级]标题 - 已按 walkthrough-worksheet Batch 1→4 逐项检查
- 17 条均已填写,且 pass 均含 >=8 字验证证据
checklist_coverage - 已通过
validate_checklist_coverage.py - URL/截图:每问题有标注图,且 已记录
images[].bbox - 已通过
validate_report_annotations.py - docx 已生成,或已说明失败原因
- 末尾附 docx 绝对路径(success 时)
- Complete report, not a summary
- Each issue includes: location, description, improvement suggestions
- Title format:
Number. [P-Level] Title - Itemized inspection completed according to walkthrough-worksheet Batch 1→4
- All 17 items filled in, and pass items all contain >=8 characters of verification evidence
checklist_coverage - passed
validate_checklist_coverage.py - URL/Screenshot: Each issue has an annotated image, and recorded
images[].bbox - passed
validate_report_annotations.py - Docx generated, or failure reason explained
- Absolute path of docx appended at the end (when successful)
附录
Appendix
- 门禁与完成判断:
docs/onboarding/gates.md - 检查清单:
references/ux-checklist.md - 分批工作表:
references/walkthrough-worksheet.md - 报告模板:
references/report-template.md - 标注规范:
references/annotation-style.md
- Gates and Completion Judgment:
docs/onboarding/gates.md - Checklist:
references/ux-checklist.md - Batch Worksheet:
references/walkthrough-worksheet.md - Report Template:
references/report-template.md - Annotation Specifications:
references/annotation-style.md