harnessed 4.38.0 → 4.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cli.mjs +249 -15
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/index.mjs +1 -1
  4. package/dist/index.mjs.map +1 -1
  5. package/manifests/SCHEMA.md +2 -2
  6. package/manifests/optional/chrome-devtools-mcp.yaml +2 -2
  7. package/manifests/optional/codegraph.yaml +2 -2
  8. package/manifests/optional/ecc.yaml +60 -17
  9. package/manifests/skill-packs/design-taste-frontend.yaml +2 -2
  10. package/manifests/skill-packs/gsd.yaml +2 -2
  11. package/manifests/skill-packs/gstack.yaml +2 -2
  12. package/manifests/skill-packs/mattpocock-skills.yaml +2 -2
  13. package/manifests/skill-packs/planning-with-files.yaml +2 -2
  14. package/manifests/skill-packs/ui-ux-pro-max.yaml +21 -7
  15. package/manifests/tools/ctx7.yaml +7 -3
  16. package/manifests/tools/exa-mcp.yaml +2 -2
  17. package/manifests/tools/playwright-test.yaml +10 -4
  18. package/manifests/tools/superpowers.yaml +2 -2
  19. package/manifests/tools/tavily-mcp.yaml +2 -2
  20. package/package.json +1 -1
  21. package/workflows/capabilities.yaml +110 -110
  22. package/workflows/defaults.yaml +17 -7
  23. package/workflows/discuss/phase/workflow.yaml +0 -1
  24. package/workflows/discuss/strategic/workflow.yaml +0 -2
  25. package/workflows/discuss/subtask/workflow.yaml +0 -1
  26. package/workflows/judgments/stage-routing.yaml +10 -0
  27. package/workflows/judgments/subtask-gate.yaml +24 -1
  28. package/workflows/plan/architecture/workflow.yaml +0 -1
  29. package/workflows/plan/phase/workflow.yaml +0 -1
  30. package/workflows/research/workflow.yaml +0 -6
  31. package/workflows/retro/workflow.yaml +0 -1
  32. package/workflows/task/clarify/SKILL.md +4 -2
  33. package/workflows/task/clarify/SKILL.zh-Hans.md +4 -3
  34. package/workflows/task/clarify/workflow.yaml +0 -1
  35. package/workflows/task/code/workflow.yaml +0 -1
  36. package/workflows/task/deliver/workflow.yaml +0 -1
  37. package/workflows/task/test/workflow.yaml +0 -1
  38. package/workflows/verify/auto/workflow.yaml +10 -1
  39. package/workflows/verify/code-review/workflow.yaml +0 -1
  40. package/workflows/verify/paranoid/workflow.yaml +0 -1
  41. package/workflows/verify/progress/workflow.yaml +0 -1
  42. package/workflows/verify/second-opinion/SKILL.md +89 -0
  43. package/workflows/verify/second-opinion/SKILL.zh-Hans.md +88 -0
  44. package/workflows/verify/second-opinion/workflow.yaml +50 -0
  45. package/workflows/verify/simplify/workflow.yaml +0 -1
@@ -44,7 +44,7 @@ capabilities:
44
44
  since: v2.0
45
45
  category: tool-slash-cmd
46
46
  description: 规格澄清 with docs (fires when phase.spec_ambiguous == true)
47
- fires_when:
47
+ routing_note:
48
48
  - phase.spec_ambiguous == true
49
49
 
50
50
  # v4.16.3 — zoom-out entry REMOVED (mattpocock 上游 2026-07 重构删除该 skill,无稳定
@@ -61,7 +61,7 @@ capabilities:
61
61
  since: v2.0
62
62
  category: tool-slash-cmd
63
63
  description: 系统化排错 (fires when test_fail OR debug context)
64
- fires_when:
64
+ routing_note:
65
65
  - subtask.test_fail == true
66
66
  - subtask.type == 'debug'
67
67
 
@@ -78,7 +78,7 @@ capabilities:
78
78
  since: v2.0
79
79
  category: tool-slash-cmd
80
80
  description: token 紧张时 surgical edit (fires when token_tight == true)
81
- fires_when:
81
+ routing_note:
82
82
  - subtask.token_tight == true
83
83
 
84
84
  grill-me:
@@ -89,12 +89,12 @@ capabilities:
89
89
  since: v2.0
90
90
  category: tool-slash-cmd
91
91
  description: 反向追问 (fires when spec_ambiguous AND no_docs)
92
- fires_when:
92
+ routing_note:
93
93
  - phase.spec_ambiguous == true AND phase.no_docs == true
94
94
 
95
95
  # v15.0 re-sync (2026-07-13) — upstream renamed to-prd → to-spec, to-issues →
96
96
  # to-tickets (clone 实证 @391a2701)。capability key 同步改名(全仓 grep 实证
97
- # 无 judgments/role-prompts/模板引用旧 key);fires_when 事实名保留(语义仍准)。
97
+ # 无 judgments/role-prompts/模板引用旧 key);routing_note 事实名保留(语义仍准)。
98
98
  to-spec:
99
99
  impl: mattpocock-skills
100
100
  install_type: user-skill
@@ -103,7 +103,7 @@ capabilities:
103
103
  since: v2.0
104
104
  category: tool-slash-cmd
105
105
  description: translate idea → spec (fires when phase.translate_idea_to_prd == true)
106
- fires_when:
106
+ routing_note:
107
107
  - phase.translate_idea_to_prd == true
108
108
 
109
109
  to-tickets:
@@ -114,7 +114,7 @@ capabilities:
114
114
  since: v2.0
115
115
  category: tool-slash-cmd
116
116
  description: translate spec → tickets (fires when phase.translate_prd_to_issues == true)
117
- fires_when:
117
+ routing_note:
118
118
  - phase.translate_prd_to_issues == true
119
119
 
120
120
  improve-codebase-architecture:
@@ -125,7 +125,7 @@ capabilities:
125
125
  since: v2.0
126
126
  category: tool-slash-cmd
127
127
  description: architecture health audit (fires when phase.architecture_health_audit == true)
128
- fires_when:
128
+ routing_note:
129
129
  - phase.architecture_health_audit == true
130
130
 
131
131
  # v3.4.2 fix: code-review is a claude-plugins-official PLUGIN (not mattpocock).
@@ -156,7 +156,7 @@ capabilities:
156
156
  - { impl: ecc, cmd: "ecc:rust-reviewer" }
157
157
  - { impl: ecc, cmd: "ecc:go-reviewer" }
158
158
  - { impl: ecc, cmd: "ecc:typescript-reviewer" }
159
- fires_when:
159
+ routing_note:
160
160
  - phase.stage == 'verify'
161
161
 
162
162
  # v3.4.2 fix: code-simplifier is a claude-plugins-official PLUGIN (not mattpocock).
@@ -168,7 +168,7 @@ capabilities:
168
168
  since: v2.0
169
169
  category: tool-slash-cmd
170
170
  description: verify-work tail step (移除重复、多余逻辑)
171
- fires_when:
171
+ routing_note:
172
172
  - phase.stage == 'verify' AND phase.is_final_step == true
173
173
 
174
174
  investigate:
@@ -183,7 +183,7 @@ capabilities:
183
183
  since: v2.0
184
184
  category: tool-slash-cmd
185
185
  description: gstack bug investigation (fires when bug_root_cause_unknown)
186
- fires_when:
186
+ routing_note:
187
187
  - subtask.bug_root_cause_unknown == true
188
188
 
189
189
  # Note: 剩 11 mattpocock 招式 (e.g., /retro, /ship, /office-hours-alias 等) 推 v2.x patch
@@ -203,7 +203,7 @@ capabilities:
203
203
  since: v2.0
204
204
  category: tool-slash-cmd
205
205
  description: UI/UX 默认主方案 数据驱动
206
- fires_when:
206
+ routing_note:
207
207
  - phase.has_ui_changes == true
208
208
  - subtask.type == 'ui_polish'
209
209
 
@@ -217,7 +217,7 @@ capabilities:
217
217
  since: v4.11
218
218
  category: tool-slash-cmd
219
219
  description: 视觉打磨 / anti-slop 高级感 (cross-agent, taste-skill)
220
- fires_when:
220
+ routing_note:
221
221
  - phase.has_ui_changes == true
222
222
 
223
223
  playwright-cli:
@@ -226,7 +226,7 @@ capabilities:
226
226
  since: v2.0
227
227
  category: tool-bundled-skill
228
228
  description: "AI 实时操作浏览器 一行 Bash (手层 — 探查 / 调试 / 一次性交互)"
229
- fires_when:
229
+ routing_note:
230
230
  - subtask.type == 'browser_probe'
231
231
 
232
232
  playwright-test:
@@ -235,7 +235,7 @@ capabilities:
235
235
  since: v2.0
236
236
  category: tool-plugin
237
237
  description: "E2E test framework TypeScript (脑层 — 写测试 / 跑 CI / 断言 / fixtures / reporter)"
238
- fires_when:
238
+ routing_note:
239
239
  - subtask.type == 'e2e_test' AND subtask.language == 'typescript'
240
240
 
241
241
  webapp-testing:
@@ -246,7 +246,7 @@ capabilities:
246
246
  since: v2.0
247
247
  category: tool-bundled-skill
248
248
  description: "Python 后端联动 E2E (筋骨层 — Python Playwright + with_server.py)"
249
- fires_when:
249
+ routing_note:
250
250
  - subtask.type == 'e2e_test' AND subtask.language == 'python'
251
251
 
252
252
  chrome-devtools-mcp:
@@ -265,7 +265,7 @@ capabilities:
265
265
  # `chrome_devtools_available == true` arm 强制 (实测: probe-chrome-devtools.ts;
266
266
  # 自动填入: `harnessed facts`; 报告: doctor `ecc` check)。
267
267
  description: "性能/a11y/内存泄漏诊断 (非功能性 only; NOT for E2E test); provider 二选一 — ecc (bonus tier, ECC 唯一默认 MCP connector) 或 optional 自装 manifest chrome-devtools-mcp (不装 ecc 的兜底); 双装 doctor warn; 两者都缺时本 capability 不可用 —— 由 gate fact chrome_devtools_available 强制, 该 lane 不 fire, 开启路径 `harnessed install ecc` 或 `claude mcp add chrome-devtools-mcp` 二选一"
268
- fires_when:
268
+ routing_note:
269
269
  - subtask.type in ['perf_diagnose', 'a11y_audit', 'memory_leak']
270
270
 
271
271
  ctx7:
@@ -274,7 +274,7 @@ capabilities:
274
274
  since: v2.0
275
275
  category: tool-cli
276
276
  description: 库 API/框架/SDK 文档抓取
277
- fires_when:
277
+ routing_note:
278
278
  - subtask.needs_library_docs == true
279
279
 
280
280
  codegraph:
@@ -283,7 +283,7 @@ capabilities:
283
283
  since: v7.0
284
284
  category: tool-mcp
285
285
  description: 语义代码索引 (symbol/call-graph query; opt-in self-installed, fewer tool-calls)
286
- fires_when:
286
+ routing_note:
287
287
  - subtask.type in ['code_navigation', 'symbol_lookup', 'call_graph']
288
288
 
289
289
  tavily-mcp:
@@ -292,7 +292,7 @@ capabilities:
292
292
  since: v2.0
293
293
  category: tool-mcp
294
294
  description: Web 搜索默认 (关键词/库 API/时效)
295
- fires_when:
295
+ routing_note:
296
296
  - subtask.needs_web_search == true
297
297
 
298
298
  exa-mcp:
@@ -305,7 +305,7 @@ capabilities:
305
305
  # 承接)。运行需 EXA_API_KEY (server 进程 env 读取; settings.json env 块 /
306
306
  # OS env 配置)。
307
307
  description: "描述式/学术 Web 搜索 (覆盖默认 Tavily 的场景 — 描述式查询 / 学术 / 批量抓多 URL); 需 EXA_API_KEY, 未配置时不可用, fallback 走 tavily-mcp / 内置 WebSearch (web-search-routing 已有 fallback 分支)"
308
- fires_when:
308
+ routing_note:
309
309
  - subtask.needs_web_search == true AND subtask.search_type in ['descriptive', 'academic']
310
310
 
311
311
  gsd-discuss-phase:
@@ -316,7 +316,7 @@ capabilities:
316
316
  since: v2.0
317
317
  category: tool-slash-cmd
318
318
  description: GSD discuss-phase 灰色澄清 (Phase 层判据 sister judgments/phase-gate.yaml)
319
- fires_when:
319
+ routing_note:
320
320
  - phase.open_decisions >= 2 OR phase.scope_days > 1
321
321
 
322
322
  gsd-plan-phase:
@@ -327,7 +327,7 @@ capabilities:
327
327
  since: v2.0
328
328
  category: tool-slash-cmd
329
329
  description: GSD plan-phase Wave A research + Wave B planner + Wave C plan-checker
330
- fires_when:
330
+ routing_note:
331
331
  - phase.stage == 'plan'
332
332
 
333
333
  gsd-review:
@@ -338,7 +338,7 @@ capabilities:
338
338
  since: v2.0
339
339
  category: tool-slash-cmd
340
340
  description: GSD cross-AI peer review
341
- fires_when:
341
+ routing_note:
342
342
  - phase.stage == 'verify' AND phase.requires_peer_review == true
343
343
 
344
344
  gsd-debug:
@@ -365,7 +365,7 @@ capabilities:
365
365
  - { impl: ecc, cmd: "ecc:rust-build-resolver" }
366
366
  - { impl: ecc, cmd: "ecc:go-build-resolver" }
367
367
  - { impl: ecc, cmd: "ecc:build-error-resolver" }
368
- fires_when:
368
+ routing_note:
369
369
  - subtask.type == 'debug'
370
370
 
371
371
  gsd-progress:
@@ -376,7 +376,7 @@ capabilities:
376
376
  since: v2.0
377
377
  category: tool-slash-cmd
378
378
  description: GSD 状态同步 (verify-work serial after gsd-verify-work)
379
- fires_when:
379
+ routing_note:
380
380
  - phase.stage == 'verify'
381
381
 
382
382
  gsd-verify-work:
@@ -387,7 +387,7 @@ capabilities:
387
387
  since: v2.0
388
388
  category: tool-slash-cmd
389
389
  description: verify-work entry (Stage ④ Verify 起点)
390
- fires_when:
390
+ routing_note:
391
391
  - phase.stage == 'verify'
392
392
 
393
393
  # v13.0 P42 (upstream re-sync) — GSD AI phase eval 覆盖审计 (conditional has_ai_phase;
@@ -401,7 +401,7 @@ capabilities:
401
401
  since: v13.0
402
402
  category: tool-slash-cmd
403
403
  description: AI phase eval 覆盖审计 (verify 回查 AI-SPEC eval 是否真覆盖)
404
- fires_when:
404
+ routing_note:
405
405
  - phase.stage == 'verify' AND phase.has_ai_phase == true
406
406
 
407
407
  # v13.0 P43 (upstream re-sync) — GSD Nyquist 覆盖审计 (verify 回溯查 requirement→test
@@ -414,7 +414,7 @@ capabilities:
414
414
  since: v13.0
415
415
  category: tool-slash-cmd
416
416
  description: GSD Nyquist 覆盖审计 (verify 回溯查 requirement→test 缺口并补测)
417
- fires_when:
417
+ routing_note:
418
418
  - phase.stage == 'verify' AND phase.requires_coverage_audit == true
419
419
 
420
420
  # ============================================================================
@@ -429,7 +429,7 @@ capabilities:
429
429
  since: v2.0
430
430
  category: tool-slash-cmd
431
431
  description: 战略层产品理念/商业 scope 澄清 (sister CLAUDE.md "新功能启动前强制")
432
- fires_when:
432
+ routing_note:
433
433
  - phase.type in ['new_project', 'new_milestone', 'new_feature']
434
434
 
435
435
  gstack-plan-ceo-review:
@@ -440,7 +440,7 @@ capabilities:
440
440
  since: v2.0
441
441
  category: tool-slash-cmd
442
442
  description: 战略评估 CEO 视角 (新功能启动前强制 sister CLAUDE.md)
443
- fires_when:
443
+ routing_note:
444
444
  - phase.type == 'new_feature' AND phase.has_business_decisions == true
445
445
 
446
446
  gstack-review:
@@ -451,7 +451,7 @@ capabilities:
451
451
  since: v2.0
452
452
  category: tool-slash-cmd
453
453
  description: Paranoid Staff Engineer 视角 (关键模块 PR 前强制 sister CLAUDE.md)
454
- fires_when:
454
+ routing_note:
455
455
  - phase.is_critical_module == true
456
456
 
457
457
  gstack-qa:
@@ -462,7 +462,7 @@ capabilities:
462
462
  since: v2.0
463
463
  category: tool-slash-cmd
464
464
  description: 端到端 QA 验收 (可选 conditional)
465
- fires_when:
465
+ routing_note:
466
466
  - phase.stage == 'verify' AND phase.has_ui_changes == true
467
467
 
468
468
  gstack-cso:
@@ -473,7 +473,7 @@ capabilities:
473
473
  since: v2.0
474
474
  category: tool-slash-cmd
475
475
  description: 安全审查 OWASP/auth/secrets (可选 conditional)
476
- fires_when:
476
+ routing_note:
477
477
  - phase.stage == 'verify' AND phase.has_auth_or_secrets == true
478
478
 
479
479
  gstack-design-review:
@@ -484,7 +484,7 @@ capabilities:
484
484
  since: v2.0
485
485
  category: tool-slash-cmd
486
486
  description: 设计系统一致性审查 + AI 审美问题识别 (可选 conditional)
487
- fires_when:
487
+ routing_note:
488
488
  - phase.stage == 'verify' AND phase.has_design_changes == true
489
489
 
490
490
  # ============================================================================
@@ -500,7 +500,7 @@ capabilities:
500
500
  description: TDD red-green-refactor (gated by judgments/tdd-gate.yaml fires_when)
501
501
  aliases:
502
502
  - { impl: mattpocock-skills, cmd: /tdd }
503
- fires_when:
503
+ routing_note:
504
504
  - subtask.is_core_business_logic == true
505
505
  - subtask.is_algorithm == true
506
506
  - subtask.is_data_processing == true
@@ -524,7 +524,7 @@ capabilities:
524
524
  - task_plan.md
525
525
  - progress.md
526
526
  - findings.md
527
- fires_when:
527
+ routing_note:
528
528
  - phase.stage == 'plan' AND phase.requires_persisted_plan == true
529
529
 
530
530
  # 完成保证 (原 D-10 `ralph-loop`) — 4.35.0 起完全内置,4.36.0 摘除上游 plugin 依赖。
@@ -545,7 +545,7 @@ capabilities:
545
545
  category: tool-cli
546
546
  description: 子任务完成保证 (fail-closed evidence + TDD boundary + verbatim COMPLETE; `checkpoint fail` 出 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP)
547
547
  sdk_ref: src/workflow/lib/ralphLoop.ts
548
- fires_when:
548
+ routing_note:
549
549
  - subtask.completion_required == true
550
550
 
551
551
  superpowers-brainstorming:
@@ -554,7 +554,7 @@ capabilities:
554
554
  since: v2.0
555
555
  category: tool-slash-cmd
556
556
  description: 子任务级澄清 multi-approach 探索 (gated by judgments/subtask-gate.yaml)
557
- fires_when:
557
+ routing_note:
558
558
  - subtask.approaches >= 2
559
559
  - subtask.core_algorithm == true
560
560
  - subtask.has_api_contract == true
@@ -569,7 +569,7 @@ capabilities:
569
569
  since: v13.0
570
570
  category: tool-slash-cmd
571
571
  description: 子任务声明 done/fixed/passing 前强制跑验证命令并贴 output (evidence before claims)
572
- fires_when:
572
+ routing_note:
573
573
  - subtask.completion_required == true
574
574
 
575
575
  # ============================================================================
@@ -597,7 +597,7 @@ capabilities:
597
597
  # 走已删除的 TeamCreate/TeamDelete)harnessed 不再支持,故这里只声明新下界 `>=2.1.178`,
598
598
  # 不写区间(区间会暗示存在双路径 dispatch,而引擎里并不存在)。
599
599
  #
600
- # 5 fires_when OR-chain (multi-select; Agent Teams upgrade triggers):
600
+ # 5 routing_note OR-chain (multi-select; Agent Teams upgrade triggers):
601
601
  # 1. teammate_send_message_needed — teammate 间需 SendMessage 互通 (NOT fire-and-forget)
602
602
  # 2. subagent_context_overflow — 某 subagent 撞 context 上限需分担
603
603
  # 3. shared_task_list — 多 teammate 共享 task list 自协调
@@ -615,7 +615,7 @@ capabilities:
615
615
  requires:
616
616
  settings_env_var: env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS == "1"
617
617
  cc_version: ">=2.1.178"
618
- fires_when:
618
+ routing_note:
619
619
  - teammate_send_message_needed == true
620
620
  - subagent_context_overflow == true
621
621
  - shared_task_list == true
@@ -742,7 +742,7 @@ capabilities:
742
742
  since: v3.0
743
743
  category: tool-slash-cmd
744
744
  description: 串联完整 review pipeline (office-hours + plan-ceo-review + plan-eng-review 等)
745
- fires_when:
745
+ routing_note:
746
746
  - phase.requires_full_review_pipeline == true
747
747
 
748
748
  codex:
@@ -753,7 +753,7 @@ capabilities:
753
753
  since: v3.0
754
754
  category: tool-slash-cmd
755
755
  description: 第二意见 / cross-AI peer review via codex
756
- fires_when:
756
+ routing_note:
757
757
  - phase.stage == 'verify' AND phase.requires_second_opinion == true
758
758
 
759
759
  design-shotgun:
@@ -764,7 +764,7 @@ capabilities:
764
764
  since: v3.0
765
765
  category: tool-slash-cmd
766
766
  description: 设计 variants 探索 (一次产出多版本 mockup)
767
- fires_when:
767
+ routing_note:
768
768
  - phase.has_design_changes == true AND phase.needs_variants == true
769
769
 
770
770
  design-html:
@@ -775,7 +775,7 @@ capabilities:
775
775
  since: v3.0
776
776
  category: tool-slash-cmd
777
777
  description: 设计 HTML mockup 生成 (throwaway 原型)
778
- fires_when:
778
+ routing_note:
779
779
  - phase.has_design_changes == true AND phase.needs_html_mockup == true
780
780
 
781
781
  design-consultation:
@@ -786,7 +786,7 @@ capabilities:
786
786
  since: v3.0
787
787
  category: tool-slash-cmd
788
788
  description: 设计咨询 / 品牌一致性顾问
789
- fires_when:
789
+ routing_note:
790
790
  - phase.has_design_changes == true AND phase.needs_brand_consult == true
791
791
 
792
792
  plan-design-review:
@@ -797,7 +797,7 @@ capabilities:
797
797
  since: v3.0
798
798
  category: tool-slash-cmd
799
799
  description: 计划 phase 设计审查 (设计意图与可行性评估)
800
- fires_when:
800
+ routing_note:
801
801
  - phase.stage == 'plan' AND phase.has_design_changes == true
802
802
 
803
803
  plan-devex-review:
@@ -808,7 +808,7 @@ capabilities:
808
808
  since: v3.0
809
809
  category: tool-slash-cmd
810
810
  description: 计划 phase 开发体验审查 (DX/onboarding 视角)
811
- fires_when:
811
+ routing_note:
812
812
  - phase.stage == 'plan' AND phase.has_devex_concerns == true
813
813
 
814
814
  plan-eng-review:
@@ -819,7 +819,7 @@ capabilities:
819
819
  since: v3.0
820
820
  category: tool-slash-cmd
821
821
  description: 复杂架构审查 (engineering manager 视角, 锁定架构后再 plan-phase)
822
- fires_when:
822
+ routing_note:
823
823
  - phase.is_complex_architecture == true
824
824
 
825
825
  plan-tune:
@@ -830,7 +830,7 @@ capabilities:
830
830
  since: v3.0
831
831
  category: tool-slash-cmd
832
832
  description: 计划微调 (重新评估 plan 后细节调整)
833
- fires_when:
833
+ routing_note:
834
834
  - phase.stage == 'plan' AND phase.tune_required == true
835
835
 
836
836
  context-save:
@@ -841,7 +841,7 @@ capabilities:
841
841
  since: v3.0
842
842
  category: tool-slash-cmd
843
843
  description: 保存进度 / context handoff 准备
844
- fires_when:
844
+ routing_note:
845
845
  - user.explicit_signal includes 'save progress'
846
846
 
847
847
  context-restore:
@@ -852,7 +852,7 @@ capabilities:
852
852
  since: v3.0
853
853
  category: tool-slash-cmd
854
854
  description: 恢复进度 / context restoration
855
- fires_when:
855
+ routing_note:
856
856
  - user.explicit_signal includes 'resume'
857
857
 
858
858
  qa-only:
@@ -863,7 +863,7 @@ capabilities:
863
863
  since: v3.0
864
864
  category: tool-slash-cmd
865
865
  description: QA 报告 only mode (端到端测试但不修代码)
866
- fires_when:
866
+ routing_note:
867
867
  - phase.stage == 'verify' AND phase.has_ui_changes == true AND phase.report_only == true
868
868
 
869
869
  devex-review:
@@ -874,7 +874,7 @@ capabilities:
874
874
  since: v3.0
875
875
  category: tool-slash-cmd
876
876
  description: 开发体验审查 (onboarding test / DX audit)
877
- fires_when:
877
+ routing_note:
878
878
  - phase.stage == 'verify' AND phase.has_devex_concerns == true
879
879
 
880
880
  benchmark:
@@ -885,7 +885,7 @@ capabilities:
885
885
  since: v3.0
886
886
  category: tool-slash-cmd
887
887
  description: 性能基准 / page speed regression 检测
888
- fires_when:
888
+ routing_note:
889
889
  - phase.stage == 'verify' AND phase.has_perf_concerns == true
890
890
 
891
891
  browse:
@@ -896,7 +896,7 @@ capabilities:
896
896
  since: v3.0
897
897
  category: tool-slash-cmd
898
898
  description: 浏览器自动化 / dogfooding (gstack 默认 browser cmd)
899
- fires_when:
899
+ routing_note:
900
900
  - subtask.needs_browser_automation == true
901
901
 
902
902
  open-gstack-browser:
@@ -907,7 +907,7 @@ capabilities:
907
907
  since: v3.0
908
908
  category: tool-slash-cmd
909
909
  description: 启动 headed Chrome (gstack 集成 browser headed mode)
910
- fires_when:
910
+ routing_note:
911
911
  - subtask.needs_headed_browser == true
912
912
 
913
913
  connect-chrome:
@@ -918,7 +918,7 @@ capabilities:
918
918
  since: v3.x
919
919
  category: tool-slash-cmd
920
920
  description: 连接现有 Chrome 实例 (用于 Chrome extension 测试) — defer v3.x per W1.1 K1 (gstack plugin 当前未 ship connect-chrome subdir)
921
- fires_when:
921
+ routing_note:
922
922
  - subtask.needs_chrome_extension == true
923
923
 
924
924
  setup-browser-cookies:
@@ -929,7 +929,7 @@ capabilities:
929
929
  since: v3.0
930
930
  category: tool-slash-cmd
931
931
  description: 导入 cookies 用于 authenticated browser 测试
932
- fires_when:
932
+ routing_note:
933
933
  - subtask.needs_authenticated_browser == true
934
934
 
935
935
  ship:
@@ -940,7 +940,7 @@ capabilities:
940
940
  since: v3.0
941
941
  category: tool-slash-cmd
942
942
  description: 发版 / 创建 PR / deploy (用户 explicit 触发)
943
- fires_when:
943
+ routing_note:
944
944
  - user.explicit_signal includes 'ship'
945
945
  - user.explicit_signal includes 'send it'
946
946
 
@@ -952,7 +952,7 @@ capabilities:
952
952
  since: v3.0
953
953
  category: tool-slash-cmd
954
954
  description: merge + deploy + verify 串联
955
- fires_when:
955
+ routing_note:
956
956
  - phase.stage == 'verify' AND phase.is_release_candidate == true
957
957
 
958
958
  release-preflight:
@@ -961,7 +961,7 @@ capabilities:
961
961
  since: v7.0
962
962
  category: tool-cli
963
963
  description: 只读发布就绪门 (CHANGELOG/version/git-clean/tag; PR ready != release ready)
964
- fires_when:
964
+ routing_note:
965
965
  - phase.stage == 'ship'
966
966
 
967
967
  setup-deploy:
@@ -972,7 +972,7 @@ capabilities:
972
972
  since: v3.0
973
973
  category: tool-slash-cmd
974
974
  description: 配置 deployment (新项目 deploy infra setup)
975
- fires_when:
975
+ routing_note:
976
976
  - phase.type == 'new_project' AND phase.needs_deploy_config == true
977
977
 
978
978
  setup-gbrain:
@@ -983,7 +983,7 @@ capabilities:
983
983
  since: v3.0
984
984
  category: tool-slash-cmd
985
985
  description: 配置 gbrain 项目上下文 (gstack 项目知识库)
986
- fires_when:
986
+ routing_note:
987
987
  - phase.type == 'new_project' AND phase.needs_gbrain == true
988
988
 
989
989
  canary:
@@ -994,7 +994,7 @@ capabilities:
994
994
  since: v3.0
995
995
  category: tool-slash-cmd
996
996
  description: post-deploy canary monitor / 错误率监控
997
- fires_when:
997
+ routing_note:
998
998
  - phase.stage == 'verify' AND phase.post_deploy_monitor == true
999
999
 
1000
1000
  document-release:
@@ -1005,7 +1005,7 @@ capabilities:
1005
1005
  since: v3.0
1006
1006
  category: tool-slash-cmd
1007
1007
  description: 发版后更新文档 (changelog / release notes)
1008
- fires_when:
1008
+ routing_note:
1009
1009
  - phase.is_release_candidate == true AND phase.needs_doc_update == true
1010
1010
 
1011
1011
  document-generate:
@@ -1016,7 +1016,7 @@ capabilities:
1016
1016
  since: v3.0
1017
1017
  category: tool-slash-cmd
1018
1018
  description: 生成文档 (PDF / 报告)
1019
- fires_when:
1019
+ routing_note:
1020
1020
  - subtask.needs_pdf_doc == true
1021
1021
 
1022
1022
  careful:
@@ -1027,7 +1027,7 @@ capabilities:
1027
1027
  since: v3.0
1028
1028
  category: tool-slash-cmd
1029
1029
  description: safety mode / 谨慎模式 (限制高风险操作)
1030
- fires_when:
1030
+ routing_note:
1031
1031
  - user.explicit_signal includes 'careful'
1032
1032
  - user.explicit_signal includes 'guard mode'
1033
1033
 
@@ -1039,7 +1039,7 @@ capabilities:
1039
1039
  since: v3.0
1040
1040
  category: tool-slash-cmd
1041
1041
  description: guard mode (alias of careful, 限制 destructive ops)
1042
- fires_when:
1042
+ routing_note:
1043
1043
  - user.explicit_signal includes 'guard'
1044
1044
 
1045
1045
  freeze:
@@ -1050,7 +1050,7 @@ capabilities:
1050
1050
  since: v3.0
1051
1051
  category: tool-slash-cmd
1052
1052
  description: 限制编辑到特定目录 (防误改其他模块)
1053
- fires_when:
1053
+ routing_note:
1054
1054
  - user.explicit_signal includes 'freeze'
1055
1055
 
1056
1056
  unfreeze:
@@ -1061,7 +1061,7 @@ capabilities:
1061
1061
  since: v3.0
1062
1062
  category: tool-slash-cmd
1063
1063
  description: 解除 freeze 限制
1064
- fires_when:
1064
+ routing_note:
1065
1065
  - user.explicit_signal includes 'unfreeze'
1066
1066
 
1067
1067
  gstack-upgrade:
@@ -1072,7 +1072,7 @@ capabilities:
1072
1072
  since: v3.0
1073
1073
  category: tool-slash-cmd
1074
1074
  description: 升级 gstack 自身 (carrier name 自带 gstack 字符串, NOT prefix policy)
1075
- fires_when:
1075
+ routing_note:
1076
1076
  - user.explicit_signal includes 'upgrade gstack'
1077
1077
 
1078
1078
  learn:
@@ -1083,7 +1083,7 @@ capabilities:
1083
1083
  since: v3.0
1084
1084
  category: tool-slash-cmd
1085
1085
  description: 复盘 gstack 已学习到的项目 patterns
1086
- fires_when:
1086
+ routing_note:
1087
1087
  - user.explicit_signal includes 'what has gstack learned'
1088
1088
 
1089
1089
  health:
@@ -1094,7 +1094,7 @@ capabilities:
1094
1094
  since: v3.0
1095
1095
  category: tool-slash-cmd
1096
1096
  description: 项目健康检查 (gstack 整体诊断)
1097
- fires_when:
1097
+ routing_note:
1098
1098
  - user.explicit_signal includes 'health check'
1099
1099
 
1100
1100
  make-pdf:
@@ -1105,7 +1105,7 @@ capabilities:
1105
1105
  since: v3.0
1106
1106
  category: tool-slash-cmd
1107
1107
  description: 生成 PDF (文档 / 报告导出)
1108
- fires_when:
1108
+ routing_note:
1109
1109
  - subtask.needs_pdf_export == true
1110
1110
 
1111
1111
  # v13.0 P43 (upstream re-sync) — gstack 1.58.0.0 NEW skill (commit 14fc0866
@@ -1118,7 +1118,7 @@ capabilities:
1118
1118
  since: v13.0
1119
1119
  category: tool-slash-cmd
1120
1120
  description: 英文描述/mermaid → 可编辑架构图 (.mmd + .excalidraw + SVG; gstack 1.58 NEW)
1121
- fires_when:
1121
+ routing_note:
1122
1122
  - subtask.needs_diagram == true
1123
1123
 
1124
1124
  # 2 alias suffix `-gstack` (避免命名冲突 per Pattern A E.2)
@@ -1132,7 +1132,7 @@ capabilities:
1132
1132
  description: gstack 复盘 (alias to harnessed standalone /retro, 解决 namespace 冲突)
1133
1133
  aliases:
1134
1134
  - { impl: harnessed-bundled, cmd: /retro }
1135
- fires_when:
1135
+ routing_note:
1136
1136
  - phase.is_milestone_close == true
1137
1137
 
1138
1138
  investigate-gstack:
@@ -1145,7 +1145,7 @@ capabilities:
1145
1145
  # v4.16.3 — mattpocock alias 移除(上游重构后无 investigate skill);本 entry 现为
1146
1146
  # Bucket 1 investigate(同 gstack 实现)的 namespace-suffix 兼容别名。
1147
1147
  description: gstack bug investigation (namespace-suffix alias of investigate)
1148
- fires_when:
1148
+ routing_note:
1149
1149
  - subtask.bug_root_cause_unknown == true
1150
1150
 
1151
1151
  spec:
@@ -1156,7 +1156,7 @@ capabilities:
1156
1156
  since: v5.1
1157
1157
  category: tool-slash-cmd
1158
1158
  description: 5-stage spec → GitHub issue → 可选 agent 生成
1159
- fires_when:
1159
+ routing_note:
1160
1160
  - phase.stage == 'plan' AND phase.needs_spec_to_issues == true
1161
1161
 
1162
1162
  skillify:
@@ -1167,7 +1167,7 @@ capabilities:
1167
1167
  since: v5.1
1168
1168
  category: tool-slash-cmd
1169
1169
  description: 把现有流程蒸馏成新 gstack skill
1170
- fires_when:
1170
+ routing_note:
1171
1171
  - user.explicit_signal includes 'skillify'
1172
1172
 
1173
1173
  pair-agent:
@@ -1178,7 +1178,7 @@ capabilities:
1178
1178
  since: v5.1
1179
1179
  category: tool-slash-cmd
1180
1180
  description: 远程 agent 配对 + ngrok tunnel
1181
- fires_when:
1181
+ routing_note:
1182
1182
  - user.explicit_signal includes 'pair agent'
1183
1183
 
1184
1184
  scrape:
@@ -1189,7 +1189,7 @@ capabilities:
1189
1189
  since: v5.1
1190
1190
  category: tool-slash-cmd
1191
1191
  description: 批量页面抓取
1192
- fires_when:
1192
+ routing_note:
1193
1193
  - user.explicit_signal includes 'scrape'
1194
1194
 
1195
1195
  benchmark-models:
@@ -1200,7 +1200,7 @@ capabilities:
1200
1200
  since: v5.1
1201
1201
  category: tool-slash-cmd
1202
1202
  description: 跨模型基准对比 (Claude/GPT/Gemini)
1203
- fires_when:
1203
+ routing_note:
1204
1204
  - user.explicit_signal includes 'benchmark models'
1205
1205
 
1206
1206
  landing-report:
@@ -1211,7 +1211,7 @@ capabilities:
1211
1211
  since: v5.1
1212
1212
  category: tool-slash-cmd
1213
1213
  description: post-landing 落地报告
1214
- fires_when:
1214
+ routing_note:
1215
1215
  - phase.stage == 'verify' AND phase.needs_landing_report == true
1216
1216
 
1217
1217
  # ============================================================================
@@ -1225,7 +1225,7 @@ capabilities:
1225
1225
  since: v3.0
1226
1226
  category: tool-slash-cmd
1227
1227
  description: subagent 编排 (sister parallelism-gate.yaml v2 invokes 已 ref, v3 backfill K2)
1228
- fires_when:
1228
+ routing_note:
1229
1229
  - subtask.parallel_count <= 3
1230
1230
  - subtask.communication_needed == false
1231
1231
 
@@ -1236,7 +1236,7 @@ capabilities:
1236
1236
  since: v3.0
1237
1237
  category: tool-cli
1238
1238
  description: Google Workspace CLI (Gmail/Drive/Calendar/Sheets/Docs/Slides/Tasks/People/Chat/Forms/Keep/Meet/Classroom/Admin Reports)
1239
- fires_when:
1239
+ routing_note:
1240
1240
  - subtask.needs_google_workspace == true
1241
1241
 
1242
1242
  # ============================================================================
@@ -1256,7 +1256,7 @@ capabilities:
1256
1256
  since: v3.0
1257
1257
  category: tool-slash-cmd
1258
1258
  description: GSD explore (codebase + 多 source 调研, GSD Core 1.4.1 successor to dropped gsd-research-phase)
1259
- fires_when:
1259
+ routing_note:
1260
1260
  - phase.stage == 'research'
1261
1261
  - phase.requires_multi_source_research == true
1262
1262
 
@@ -1285,7 +1285,7 @@ capabilities:
1285
1285
  since: v5.1
1286
1286
  category: tool-slash-cmd
1287
1287
  description: GSD spec-phase SDD spec lock (sister judgments/stage-phase-gate.yaml)
1288
- fires_when:
1288
+ routing_note:
1289
1289
  - phase.stage == 'plan' and phase.requires_spec == true
1290
1290
 
1291
1291
  gsd-ui-phase:
@@ -1296,7 +1296,7 @@ capabilities:
1296
1296
  since: v5.1
1297
1297
  category: tool-slash-cmd
1298
1298
  description: GSD ui-phase UI design contract (sister judgments/stage-phase-gate.yaml)
1299
- fires_when:
1299
+ routing_note:
1300
1300
  - phase.has_ui_changes == true
1301
1301
 
1302
1302
  gsd-secure-phase:
@@ -1307,7 +1307,7 @@ capabilities:
1307
1307
  since: v5.1
1308
1308
  category: tool-slash-cmd
1309
1309
  description: GSD secure-phase security threat-model gate (sister judgments/stage-phase-gate.yaml)
1310
- fires_when:
1310
+ routing_note:
1311
1311
  - phase.has_auth_or_secrets == true
1312
1312
 
1313
1313
  gsd-ai-integration-phase:
@@ -1318,7 +1318,7 @@ capabilities:
1318
1318
  since: v5.1
1319
1319
  category: tool-slash-cmd
1320
1320
  description: GSD ai-integration-phase AI-SPEC design contract (sister judgments/stage-phase-gate.yaml)
1321
- fires_when:
1321
+ routing_note:
1322
1322
  - phase.builds_ai_system == true
1323
1323
 
1324
1324
  gsd-ingest-docs:
@@ -1329,7 +1329,7 @@ capabilities:
1329
1329
  since: v5.1
1330
1330
  category: tool-slash-cmd
1331
1331
  description: GSD ingest-docs bootstrap .planning from existing docs (cc-handoff Ideation→Onboarding)
1332
- fires_when:
1332
+ routing_note:
1333
1333
  - phase.type == 'onboarding'
1334
1334
 
1335
1335
  gsd-new-project:
@@ -1340,7 +1340,7 @@ capabilities:
1340
1340
  since: v5.1
1341
1341
  category: tool-slash-cmd
1342
1342
  description: GSD new-project greenfield project init
1343
- fires_when:
1343
+ routing_note:
1344
1344
  - phase.type == 'new_project'
1345
1345
 
1346
1346
  gsd-new-milestone:
@@ -1351,7 +1351,7 @@ capabilities:
1351
1351
  since: v5.1
1352
1352
  category: tool-slash-cmd
1353
1353
  description: GSD new-milestone brownfield milestone start
1354
- fires_when:
1354
+ routing_note:
1355
1355
  - phase.type == 'new_milestone'
1356
1356
 
1357
1357
  gsd-extract-learnings:
@@ -1362,7 +1362,7 @@ capabilities:
1362
1362
  since: v5.1
1363
1363
  category: tool-slash-cmd
1364
1364
  description: GSD extract-learnings 提取 decisions/lessons from completed phase
1365
- fires_when:
1365
+ routing_note:
1366
1366
  - phase.is_milestone_close == true
1367
1367
 
1368
1368
  gsd-audit-milestone:
@@ -1373,7 +1373,7 @@ capabilities:
1373
1373
  since: v5.1
1374
1374
  category: tool-slash-cmd
1375
1375
  description: GSD audit-milestone milestone completion audit
1376
- fires_when:
1376
+ routing_note:
1377
1377
  - phase.is_milestone_close == true
1378
1378
 
1379
1379
  gsd-complete-milestone:
@@ -1384,7 +1384,7 @@ capabilities:
1384
1384
  since: v5.1
1385
1385
  category: tool-slash-cmd
1386
1386
  description: GSD complete-milestone archive completed milestone
1387
- fires_when:
1387
+ routing_note:
1388
1388
  - phase.is_milestone_close == true
1389
1389
 
1390
1390
  gsd-milestone-summary:
@@ -1395,7 +1395,7 @@ capabilities:
1395
1395
  since: v5.1
1396
1396
  category: tool-slash-cmd
1397
1397
  description: GSD milestone-summary milestone summary
1398
- fires_when:
1398
+ routing_note:
1399
1399
  - phase.is_milestone_close == true
1400
1400
 
1401
1401
  gsd-docs-update:
@@ -1406,7 +1406,7 @@ capabilities:
1406
1406
  since: v5.1
1407
1407
  category: tool-slash-cmd
1408
1408
  description: GSD docs-update post-ship doc update
1409
- fires_when:
1409
+ routing_note:
1410
1410
  - phase.needs_doc_update == true
1411
1411
 
1412
1412
  # ============================================================================
@@ -1432,7 +1432,7 @@ capabilities:
1432
1432
  since: v7.1
1433
1433
  category: tool-slash-cmd
1434
1434
  description: MCP server design patterns (ECC domain library — CC-harness-builder core)
1435
- fires_when:
1435
+ routing_note:
1436
1436
  - subtask.domain == 'mcp_server'
1437
1437
 
1438
1438
  ecc-python-patterns:
@@ -1441,7 +1441,7 @@ capabilities:
1441
1441
  since: v7.1
1442
1442
  category: tool-slash-cmd
1443
1443
  description: Python idiom/structure patterns (ECC domain library)
1444
- fires_when:
1444
+ routing_note:
1445
1445
  - subtask.domain == 'python'
1446
1446
 
1447
1447
  ecc-rust-patterns:
@@ -1450,7 +1450,7 @@ capabilities:
1450
1450
  since: v7.1
1451
1451
  category: tool-slash-cmd
1452
1452
  description: Rust ownership/idiom patterns (ECC domain library)
1453
- fires_when:
1453
+ routing_note:
1454
1454
  - subtask.domain == 'rust'
1455
1455
 
1456
1456
  ecc-golang-patterns:
@@ -1459,7 +1459,7 @@ capabilities:
1459
1459
  since: v7.1
1460
1460
  category: tool-slash-cmd
1461
1461
  description: Go idiom/concurrency patterns (ECC domain library)
1462
- fires_when:
1462
+ routing_note:
1463
1463
  - subtask.domain == 'golang'
1464
1464
 
1465
1465
  ecc-postgres-patterns:
@@ -1468,7 +1468,7 @@ capabilities:
1468
1468
  since: v7.1
1469
1469
  category: tool-slash-cmd
1470
1470
  description: PostgreSQL schema/query/perf patterns (ECC domain library)
1471
- fires_when:
1471
+ routing_note:
1472
1472
  - subtask.domain == 'postgres'
1473
1473
 
1474
1474
  ecc-docker-patterns:
@@ -1477,7 +1477,7 @@ capabilities:
1477
1477
  since: v7.1
1478
1478
  category: tool-slash-cmd
1479
1479
  description: Docker/container build patterns (ECC domain library)
1480
- fires_when:
1480
+ routing_note:
1481
1481
  - subtask.domain == 'docker'
1482
1482
 
1483
1483
  ecc-nextjs-turbopack:
@@ -1486,7 +1486,7 @@ capabilities:
1486
1486
  since: v7.1
1487
1487
  category: tool-slash-cmd
1488
1488
  description: Next.js + Turbopack frontend patterns (ECC domain library)
1489
- fires_when:
1489
+ routing_note:
1490
1490
  - subtask.domain == 'nextjs'
1491
1491
 
1492
1492
  ecc-api-design:
@@ -1495,7 +1495,7 @@ capabilities:
1495
1495
  since: v7.1
1496
1496
  category: tool-slash-cmd
1497
1497
  description: API contract/versioning design patterns (ECC domain library)
1498
- fires_when:
1498
+ routing_note:
1499
1499
  - subtask.domain == 'api_design'
1500
1500
 
1501
1501
  ecc-cost-tracking:
@@ -1504,7 +1504,7 @@ capabilities:
1504
1504
  since: v7.1
1505
1505
  category: tool-slash-cmd
1506
1506
  description: LLM cost/token spend reporting (ECC additive — harnessed has no cost report)
1507
- fires_when:
1507
+ routing_note:
1508
1508
  - subtask.needs_cost_report == true
1509
1509
 
1510
1510
  ecc-hookify-rules:
@@ -1513,5 +1513,5 @@ capabilities:
1513
1513
  since: v7.1
1514
1514
  category: tool-slash-cmd
1515
1515
  description: Author CC hooks from observed behavior (ECC additive — no harnessed equivalent)
1516
- fires_when:
1516
+ routing_note:
1517
1517
  - subtask.needs_hook_authoring == true