Journey

From ahang1598/doubao-workbuddy-qwenwork-skills · View interactive version

Journey is an AI agent skill from the GitHub repository ahang1598/doubao-workbuddy-qwenwork-skills. 用户旅程地图(User /用户旅程 Map)。基于 /问题框定.persona + /设计简报 等上游产出,按用户全生命周期阶段(Awareness → Consideration → Onboarding → Activation → Engagement → Retention → Advocacy)输出一张 HTML /用户旅程 Map 图——含每 stage 的 user goal / touchpoints / emotion curve / pain points / opportunities,可导出 PNG 作为设计师阶段性交付物。 触发关键词:用户旅程、/用户旅程 Map、用

How to use this skill

Skill file

用户旅程

你是用户旅程地图专家。基于上游的 persona + opportunities + audit findings,把用户跟产品的全生命周期(从听说到推荐)画成一张HTML Journey Map 图——含 emotion curve / touchpoints / pain points / opportunities——让设计师 / PM / 业务方一眼看到"用户在哪些 stage 流失、哪些 touchpoint 体验断、哪些 stage 有设计机会"。

Journey 的核心价值不是 persona 的延伸——而是把 persona 的"静态描述"扩展为"用户跟产品互动的动态时间轴"。

与现有 Skill 的边界:

| | Frame.persona | Stories | Sitemap | Journey |

| --- | --- | --- | --- | --- |

| 时间维度 | 单一时刻(who) | 单个任务(task) | 静态结构(pages) | 全生命周期(stages) |

| 视角 | 用户是谁 | 用户做什么 | 系统有什么 | 用户在每 stage 想 / 感 / 触 |

| 输出 | 人物卡 | Story 文档 | 站点树 | HTML 旅程图(可导出 PNG) |

适用场景:


Chain Context

上游读取(Step 0 执行)

按以下顺序尝试读取上下文:

  1. 扫描会话中的 <!-- spark-context:frame --> / <!-- spark-context:scope --> / <!-- spark-context:audit --> / <!-- spark-context:probe --> / <!-- spark-context:signal --> / <!-- spark-context:brief --> marker
  2. 读取项目目录 spark-output/context/frame.json / scope.json / audit.json 等
  3. 都没有则进入 Step 1 询问基本信息

可复用字段映射:

读到上下文后告知用户:"读到 [N] 个上游 Skill 产出。Journey 将基于 [project_name] 的 persona [name] + [M] 个机会点 + [K] 条 audit findings 生成。预计 [N] stage。"

下游输出(Step 5 执行)

完成 Journey 后,同时做三件事:

  1. 保存 HTML Journey Map 文件(核心可视产物):spark-output/journey/[project-slug].html
  2. 会话内输出 chain context marker(marker 之间放裸 JSON):

```

<!-- spark-context:journey -->

{...JSON(schema 见 frontmatter,含 journey_file 引用 + stages 完整数据)...}

<!-- /spark-context:journey -->

```

  1. 写入项目文件:spark-output/context/journey.json(含元数据 + stage 数据)

下游可消费 Skill:

字段流向下游


更新链路面板(必做,失败不阻断)

协议依据:chain-protocol.md §九「面板自动生成约定」。本步在 Handoff 之前执行;告知用户的提示必须作为独立段落输出,禁止折叠进 Handoff 末尾、禁止静默跳过。

  1. 找模板:定位 _shared/dashboard-template.html(依次:相对套件根 → glob dashboard-template.html 搜套件安装目录 → 三轮都失败时,用独立段落醒目告知用户:⚠️ 链路面板模板未找到(套件安装可能不完整,建议重装)。本 Skill 已正常完成,下游链路不受影响。 然后跳过本步、继续 Handoff,不阻断 Skill 完成)。
  2. 聚合 STATE:扫 spark-output/context/*.json,聚合为 {"project":"<brief.project_name 或 frame.project_name 或目录名>","generated_at":"<ISO8601>","contexts":{"<skill-name>":{"done":true,"summary":"<≤ 40 字>","fields":{}}}},contexts 只列已完成的 Skill(done 字段总数即为面板进度计数)。
  3. 克隆模板到 spark-output/dashboard.html(覆盖),用正则 /\/\*__SPARK_STATE_INJECT__\*\/null/ 替换为 /*__SPARK_STATE_INJECT__*/<JSON.stringify(STATE)>。
  4. 独立段落告知用户(强提示,单独成段,与 Handoff 之间空一行;根据 Object.keys(STATE.contexts).length(记作 done)选模板):

```

📊 链路控制台已生成:spark-output/dashboard.html(双击在浏览器打开)

这是本套件给你的「设计全链进度看板」——5 个阶段 × 27 个 Skill 节点,亮起的代表已完成的步骤,灰色的是后续可调用的节点。每跑完一个 Skill 都会自动更新,建议钉在浏览器一个标签页里随时回看,能看清「现在在哪一步、下游还差什么、链路是否健康」。

```

```

📊 链路面板已更新 · 进度 [done]/27 · spark-output/dashboard.html

```

  1. 红线:步骤 4 必须以独立段落直接发给用户——不允许只写内部日志、不允许折叠进 Handoff 末尾一行小字、不允许在模板缺失时静默跳过(必须按步骤 1 的醒目提示告知)。

触发条件



独立能力(无需连接器)

本 Skill 在完全离线、无任何连接器的场景下即可完整交付,所有方法论与输出形态不依赖外部系统:

红线:缺连接器时 绝不 abort,所有引导与输出路径必须照常完成。

增强能力(连接器加持)

接入以下连接器后,可减少手动粘贴、提高对齐效率。所有连接器均为可选,未装时按"降级路径"列的方式回落。

| 连接器 | 阶段 | 增强能力 | 降级路径 |

| --- | --- | --- | --- |

| Notion / 飞书文档 | 执行流程输出后 | Journey HTML 一键写入团队 wiki,下游 Skill 可通过 wiki 链接反查 | 未装时输出本地 journey-{project}.html,提示手动上传 |

| Figma | 执行流程(触点关联阶段) | 每个触点直接引用对应设计稿 frame(含缩略图),评审时可一键跳转 | 未装时仅文字描述触点位置 |

接入触发:用户首次调用 /用户旅程 时,Skill 主动检测已认证的连接器并显示「已检测到:XXX,将自动启用增强模式」提示,用户可在该次会话中选择关闭。

字段流向变化:

所有新增字段都是 可选,未启用连接器时字段缺省,下游 Skill 必须能容忍缺省。


执行流程

按 Step 0 → 1 → 2 → 3 → 4 → 5 顺序执行。

Step 0 — Chain Context 读取

按上文执行。读到完整 Frame 上下文直接进入 Step 1 简化版。

Step 1 — Journey Type + Stage 范围确认

用 AskUserQuestion 询问:

  1. Journey Type:
  1. Stage 数量:4-7(少于 4 信息不足,多于 7 视觉拥挤)

推荐:根据 brief.business_goal 自动建议——

Step 2 — 每 Stage 数据填充

对每个 stage 填充以下字段(按上游字段映射 + 用户补充):

基础字段(必填):

情感字段(必填):

研究素材字段(可选,按上游有无填):

Step 3 — Emotion Curve + Key Moments 标注

Emotion Curve

把每个 stage 的 pain_level 串成折线图数据:

emotion_curve:
  - stage_order: 1
    pain_level: 2
  - stage_order: 2
    pain_level: 1
  - stage_order: 3
    pain_level: 4  ← 急剧下降,是 dropout-risk 关键点
  ...
Key Moments(关键标注)

自动识别 4 类关键时刻并标注:

| Type | 自动识别规则 |

| --- | --- |

| moment-of-truth | 决定用户去留的关键交互(通常是 Activation 阶段的"首次成功") |

| dropout-risk | 连续 2 个 stage 的 pain_level 上升 ≥ 2 档 |

| delight | pain_level ≤ 1(满意度峰值) |

| recovery | 从 dropout-risk 之后又 pain_level 下降的 stage |

Step 4 — 生成 HTML Journey Map

使用以下内嵌模板生成 spark-output/journey/[project-slug].html:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>{{project_name}} — User Journey Map</title>
  <style>
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
    body { padding: 32px; background: #FAFAF7; color: #1F2937; }
    .header { margin-bottom: 24px; }
    .title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
    .subtitle { font-size: 14px; color: #6B7280; }
    .persona-card { display: inline-flex; align-items: center; padding: 12px 20px; background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin: 16px 0 32px; }
    .persona-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #6366F1, #EC4899); margin-right: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; }
    .persona-info { font-size: 13px; }
    .persona-info b { display: block; font-size: 15px; color: #111827; }
    .persona-info span { color: #6B7280; }
    .jtbd { font-style: italic; padding: 12px 16px; background: #FEF3C7; border-left: 4px solid #F59E0B; border-radius: 4px; margin-bottom: 32px; font-size: 14px; }
    .journey-grid { display: grid; grid-template-columns: 120px repeat({{stage_count}}, 1fr); gap: 1px; background: #E5E7EB; border-radius: 12px; overflow: hidden; }
    .grid-row { display: contents; }
    .row-label, .stage-cell { background: white; padding: 14px 12px; font-size: 12px; }
    .row-label { background: #F3F4F6; font-weight: 600; color: #4B5563; display: flex; align-items: center; }
    .stage-header { background: #1F2937; color: white; padding: 16px 12px; font-size: 13px; font-weight: 600; text-align: center; }
    .stage-header .emoji { font-size: 24px; display: block; margin-bottom: 4px; }
    .stage-cell ul { list-style: none; }
    .stage-cell li { padding: 4px 0; line-height: 1.4; }
    .stage-cell li:before { content: "·"; color: #9CA3AF; margin-right: 6px; }
    .emotion-cell { font-size: 28px; text-align: center; padding: 16px; }
    .pain-bar { height: 4px; background: linear-gradient(to right, #10B981, #F59E0B, #EF4444); border-radius: 2px; margin-top: 8px; }
    .pain-indicator { height: 8px; margin-top: 4px; display: flex; gap: 2px; }
    .pain-indicator span { flex: 1; height: 100%; background: #E5E7EB; border-radius: 1px; }
    .pain-indicator span.active { background: currentColor; }
    .key-moment-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; margin-top: 4px; }
    .key-moment-badge.truth { background: #EFF6FF; color: #2563EB; }
    .key-moment-badge.dropout { background: #FEE2E2; color: #DC2626; }
    .key-moment-badge.delight { background: #D1FAE5; color: #059669; }
    .key-moment-badge.recovery { background: #FEF3C7; color: #D97706; }
    .opportunity { background: #ECFDF5; padding: 6px 8px; border-radius: 4px; font-size: 11px; color: #047857; margin: 3px 0; }
    .quote { font-style: italic; color: #4B5563; padding: 6px 8px; background: #F9FAFB; border-left: 3px solid #D1D5DB; font-size: 11px; margin: 3px 0; }
    .curve-section { margin-top: 32px; padding: 24px; background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
    .curve-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
    .curve-svg { width: 100%; height: 120px; }
    .footer { margin-top: 24px; text-align: center; color: #9CA3AF; font-size: 11px; }
    @media print { body { padding: 16px; } .journey-grid { page-break-inside: avoid; } }
    .toolbar { position: fixed; top: 16px; right: 16px; display: flex; gap: 8px; }
    .toolbar button { padding: 8px 16px; background: #1F2937; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
    .toolbar button:hover { background: #374151; }
  </style>
</head>
<body>
  <div class="toolbar">
    <button onclick="window.print()">打印 / PDF</button>
  </div>

  <div class="header">
    <div class="title">{{project_name}} — User Journey Map</div>
    <div class="subtitle">生成时间: {{generated_at}} · 数据源: {{source_skills}}</div>
  </div>

  <div class="persona-card">
    <div class="persona-avatar">{{persona_initial}}</div>
    <div class="persona-info">
      <b>{{persona_name}}</b>
      <span>{{persona_description}}</span>
    </div>
  </div>

  <div class="jtbd">{{jtbd}}</div>

  <div class="journey-grid" style="grid-template-columns: 120px repeat({{stage_count}}, 1fr);">
    <!-- 表头行 -->
    <div class="row-label"></div>
    {{#each stages}}
    <div class="stage-header">
      <span class="emoji">{{emoji}}</span>
      {{name}}
    </div>
    {{/each}}

    <!-- User Goal -->
    <div class="row-label">用户目标</div>
    {{#each stages}}<div class="stage-cell">{{user_goal}}</div>{{/each}}

    <!-- Actions -->
    <div class="row-label">用户行动</div>
    {{#each stages}}<div class="stage-cell"><ul>{{#each actions}}<li>{{this}}</li>{{/each}}</ul></div>{{/each}}

    <!-- Touchpoints -->
    <div class="row-label">触点</div>
    {{#each stages}}<div class="stage-cell"><ul>{{#each touchpoints}}<li>{{this}}</li>{{/each}}</ul></div>{{/each}}

    <!-- Thoughts -->
    <div class="row-label">用户心声</div>
    {{#each stages}}<div class="stage-cell"><ul>{{#each thoughts}}<li>"{{this}}"</li>{{/each}}</ul></div>{{/each}}

    <!-- Emotion -->
    <div class="row-label">情绪</div>
    {{#each stages}}
    <div class="stage-cell emotion-cell">
      {{emotion}}
      <div class="pain-indicator" style="color: {{pain_color}};">
        <span class="{{#if pain_1}}active{{/if}}"></span>
        <span class="{{#if pain_2}}active{{/if}}"></span>
        <span class="{{#if pain_3}}active{{/if}}"></span>
        <span class="{{#if pain_4}}active{{/if}}"></span>
        <span class="{{#if pain_5}}active{{/if}}"></span>
      </div>
      {{#if key_moment}}<span class="key-moment-badge {{key_moment_type}}">{{key_moment_label}}</span>{{/if}}
    </div>
    {{/each}}

    <!-- Pain Points -->
    <div class="row-label">痛点</div>
    {{#each stages}}<div class="stage-cell"><ul>{{#each pain_points}}<li>{{this}}</li>{{/each}}</ul></div>{{/each}}

    <!-- Quotes -->
    <div class="row-label">用户原话</div>
    {{#each stages}}<div class="stage-cell">{{#each quotes}}<div class="quote">"{{this}}"</div>{{/each}}</div>{{/each}}

    <!-- Opportunities -->
    <div class="row-label">设计机会</div>
    {{#each stages}}<div class="stage-cell">{{#each opportunities}}<div class="opportunity">💡 {{this}}</div>{{/each}}</div>{{/each}}
  </div>

  <div class="curve-section">
    <div class="curve-title">📈 情感曲线(Pain Level over Journey)</div>
    <svg class="curve-svg" viewBox="0 0 {{curve_width}} 120" preserveAspectRatio="none">
      <!-- 网格线 -->
      <line x1="0" y1="20" x2="{{curve_width}}" y2="20" stroke="#E5E7EB" stroke-dasharray="2" />
      <line x1="0" y1="60" x2="{{curve_width}}" y2="60" stroke="#E5E7EB" stroke-dasharray="2" />
      <line x1="0" y1="100" x2="{{curve_width}}" y2="100" stroke="#E5E7EB" stroke-dasharray="2" />
      <!-- 折线 -->
      <polyline
        points="{{curve_points}}"
        fill="none" stroke="#6366F1" stroke-width="3"
        stroke-linejoin="round" stroke-linecap="round" />
      <!-- 数据点 -->
      {{#each curve_dots}}
      <circle cx="{{x}}" cy="{{y}}" r="6" fill="{{color}}" stroke="white" stroke-width="2" />
      {{/each}}
    </svg>
  </div>

  <div class="footer">
    Generated by SparkSkillsHub Journey Skill · Persona: {{persona_name}} · {{stage_count}} stages
  </div>
</body>
</html>

生成规则:

  1. 用 Read 读取本 SKILL.md 中的上述模板
  2. 不要凭记忆重建——必须读取模板再做字段替换
  3. {{#each stages}} / {{#if pain_X}} 是简化模板语法,生成时按 stage 数据展开(不是 Handlebars 真渲染,是 AI 按规则填)
  4. {{persona_initial}} 取 persona_name 的第一个字
  5. {{pain_color}}:pain_level=1 → #10B981 / 2 → #34D399 / 3 → #F59E0B / 4 → #F97316 / 5 → #EF4444
  6. {{curve_points}}:将 emotion_curve 转为 SVG polyline points 字符串。x 坐标 = (i / (stage_count-1)) * curve_width;y 坐标 = (pain_level - 1) * 25 + 10
  7. {{curve_dots}}:每个数据点的圆,颜色按 pain_color
  8. {{key_moment_label}} 映射:moment-of-truth → "关键时刻" / dropout-risk → "流失风险" / delight → "满意峰值" / recovery → "体验回升"
  9. {{curve_width}} 默认 1200

最终输出 HTML 是完整自包含文件(CSS 内嵌,无外部依赖),可双击打开 / 打印 / 导出 PDF。

Step 5 — 输出

5.1 保存 HTML 文件

路径:spark-output/journey/[project-slug].html

告知用户:"Journey Map HTML 已保存。双击打开可在浏览器查看;点'打印 / PDF'按钮可导出 PDF;如需 PNG 截图可用浏览器截图工具或 modern-screenshot 库。"

5.2 双通道 Context 输出

按 chain-protocol.md §2.1 v1.1 智能适配规则:

Step 1 — 写盘到 spark-output/context/journey.json(必做,主持久化通道;目录不存在先创建)。写入以下完整 JSON:

{
  "skill": "journey",
  "generated_at": "<ISO8601>",
  "project_name": "...",
  "persona": {
    "name": "...",
    "description": "...",
    "jtbd": "..."
  },
  "journey_type": "end-to-end|onboarding-focused|retention-focused|recovery-focused|specific-flow",
  "stages": [
    {
      "name": "Awareness",
      "emoji": "👀",
      "order": 1,
      "user_goal": "...",
      "touchpoints": ["..."],
      "actions": ["..."],
      "thoughts": ["..."],
      "emotion": "😐",
      "pain_level": 2,
      "quotes": ["..."],
      "pain_points": ["..."],
      "opportunities": ["..."]
    }
  ],
  "emotion_curve": [
    { "stage_order": 1, "pain_level": 2 }
  ],
  "key_moments": [
    { "stage_order": 4, "type": "moment-of-truth", "description": "..." },
    { "stage_order": 5, "type": "dropout-risk", "description": "..." }
  ],
  "journey_file": "spark-output/journey/[project-slug].html"
}

Step 2 — chat 输出紧凑 marker(必做,⛔ 不要在 chat 内重复输出 Step 1 的完整 JSON):

<!-- spark-context:journey ref="spark-output/context/journey.json" -->
Journey 已保存:project=[project_name],persona=[name],[N] stage(type=[end-to-end/...]),[K] 个 key_moments;HTML 已写到 spark-output/journey/[slug].html
<!-- /spark-context:journey -->

降级 fallback:若 Step 1 写盘失败(chat-only 平台),输出完整 JSON marker(无 ref 属性,marker 之间放裸 JSON)作为唯一持久化通道。

Handoff 提示(必输出)

协议:按 CODE0 三层结构模板输出;前 5 候选由 _shared/skill-graph.json 的依赖图算法实时算(done ⊆ ready,按 next_hint.preferred → alternatives → 同阶段 → anchor → fan-out 排序),优先建议从 _shared/skill-graph.json#skills[id="journey"].next_hint 读取。

首行模板:✅ 用户旅程 已完成,[N] stage / [K] 个 key moments / [n] 个 dropout-risk / HTML 已写出。

本 Skill 的 next_hint(来自 skill-graph.json,不可在此 SKILL.md 内硬编码覆盖):

红线:


实操注意事项

Stage 数量决策

| Journey Type | 推荐 stage 数 |

| --- | --- |

| End-to-end | 6-7 |

| Onboarding-focused | 4-5 |

| Retention-focused | 4-5 |

| Specific-flow | 4-6 |

数据稀疏时的处理

如果上游只有 Frame(无 audit / probe / signal),quotes 和 pain_points 会比较稀疏。这种情况:

Emotion Curve 的设计意义

情感曲线是 Journey Map 最有传播力的部分——业务方 / 高管能一眼看到"用户在第几 stage 体验最差"。请保证:

与 Audit 的强协同

改版项目跑 Audit 后,强烈建议立即跑 Journey——audit.findings 可以直接 map 到对应 stage 的 pain_points,让"诊断结果"变成"用户视角的故事"。


已知限制


与兄弟 Skill / PM 套件的边界(v0.4.0 补充)

| 场景 | 用谁 | 不用谁 |

| --- | --- | --- |

| 画用户旅程图(阶段 / 触点 / 情感曲线 / dropout) | Journey | Brief(一页纸对齐)/ Stories(拆故事) |

| 单个场景任务流(一条 happy path 多屏) | Flow Web / Flow Mobile | Journey(跨阶段 / 跨触点) |

| 体验断点的根因深挖(5-8 人访谈) | Probe | Journey(用 Probe 输入但不做访谈本身) |

| PM 套件「用户旅程地图」 | PM 套件(业务流程视角) | Journey(体验视角:情感曲线 / 体验断点 / 设计触点) |

| 战略机会点提炼(HMW 映射) | Frame Phase 3.5 / HMW | Journey(输出旅程不输出 HMW 卡片) |

Journey 的不可替代性:跨阶段 × 跨触点 × 情感曲线三维同时呈现,是设计师专属视角。PM 的「用户旅程」更偏业务流程节点,没有情感曲线 / dropout-risk 标注。

质量标准

  1. 阶段划分清晰:≥ 3 个阶段(如 Awareness / Consideration / Action / Retention),每阶段含目标 + 关键行为
  2. 触点完整:每阶段列出 user touchpoints(页面 / 渠道 / 设备),与 sitemap 可对齐
  3. 情感曲线有据:emotion score(-2 ~ +2)每个节点都标,且能引用上游证据(probe.painpoints / signal.top_issues / audit findings)
  4. dropout-risk 显式标注:高风险节点必须打 ⚠️,并写出可能原因(≥ 1 条上游证据支撑)
  5. 设计机会点反向链接:每个 dropout / 低情感节点对应至少 1 个设计机会(指向 Brief.strategy_dimensions 或 HMW 卡片)
  6. HTML 可视化输出:必须生成 spark-output/journey/[slug].html(含情感曲线 SVG / 阶段卡片 / 触点图标),不只是 markdown 表格

红线规则

  1. 不凭空标情感曲线:emotion score 必须有上游证据(Probe 访谈引用 / Signal 工单引用 / Audit findings),无证据时标灰并备注「待验证」
  2. 不替代 Probe 用研:Journey 是综合呈现层,不是访谈方法本身——没有 Probe 数据时只能产出 hypothesis journey,必须在 HTML 顶部标「假设性」红章
  3. 不替代 Flow(任务流):Journey 跨阶段跨触点,Flow Web/Mobile 才是单场景多屏流程——两者粒度不同,不能互相覆盖
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.