kenaz 0.3.18 → 0.3.19

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 (308) hide show
  1. package/core/.claude/commands/agent-worker.md +1 -1
  2. package/core/.claude/commands/architect.md +1 -2
  3. package/core/.claude/commands/spec.md +1 -1
  4. package/core/.claude/commands//347/224/242/345/223/201.md +1 -1
  5. package/core/.claude/hooks/__tests__/task-1977-dedupe-guard.test.js +8 -8
  6. package/core/.claude/skills/architect_agent/SKILL.md +11 -92
  7. package/core/.claude/skills/assessment_agent/SKILL.md +0 -1
  8. package/core/.claude/skills/backend_engineer/SKILL.md +3 -6
  9. package/core/.claude/skills/code_reviewer/SKILL.md +1 -1
  10. package/core/.claude/skills/code_reviewer/patterns.yaml +1 -1
  11. package/core/.claude/skills/designer/SKILL.md +3 -6
  12. package/core/.claude/skills/dev_agent/SKILL.md +30 -491
  13. package/core/.claude/skills/developer/SKILL.md +3 -6
  14. package/core/.claude/skills/feature_agent/SKILL.md +3 -17
  15. package/core/.claude/skills/product_manager/SKILL.md +29 -1064
  16. package/core/.claude/skills/qa_engineer/SKILL.md +12 -17
  17. package/core/.claude/skills/spec_optimizer/SKILL.md +25 -275
  18. package/core/.claude/skills/sre_agent/SKILL.md +3 -6
  19. package/core/.collaboration/README.md +2 -3
  20. package/core/.collaboration/core/task-api.js +5 -138
  21. package/core/.collaboration/docs/CLI.md +0 -2
  22. package/core/.failure/INDEX.yaml +6 -40
  23. package/core/.failure/agent-execution/FAIL-013-search-cwd-drift-and-case-mismatch.yaml +1 -1
  24. package/core/.failure/tools/README.md +9 -227
  25. package/core/.formation/bifrost/launch.js +1 -6
  26. package/core/.formation/bifrost/launch.test.js +1 -1
  27. package/core/.formation/bifrost/shared/ansuz-boot-policy.js +3 -3
  28. package/core/.formation/bifrost/shared/ansuz-boot-policy.test.js +1 -2
  29. package/core/.formation/tools/__tests__/m1-hmap-convid.test.js +1 -124
  30. package/core/.formation/tools/dispatch.js +1 -1
  31. package/core/.formation/tools/loader.js +17 -140
  32. package/core/.formation/tools/post-complete.js +0 -31
  33. package/core/.rule/INDEX.yaml +0 -18
  34. package/core/.rule/general/agent-workflow.yaml +14 -164
  35. package/core/.rule/general/project-self-containment.yaml +8 -19
  36. package/core/.rule/general/rust-verify-target.yaml +6 -5
  37. package/core/.rule/general/synapse-code-intelligence.yaml +3 -3
  38. package/core/.specialist/Amelia/capability.yaml +12 -12
  39. package/core/.specialist/Amelia/workflow.yaml +2 -2
  40. package/core/.specialist/Ansuz/SYSTEM_DOC.md +20 -578
  41. package/core/.specialist/Ansuz/cognitive_principles.yaml +2 -3
  42. package/core/.specialist/Ansuz/concepts/boot_rules_summary.yaml +0 -1
  43. package/core/.specialist/Ansuz/concepts/deep_knowledge_pointers.yaml +1 -2
  44. package/core/.specialist/Ansuz/core.yaml +6 -108
  45. package/core/.specialist/Ansuz/guards/lesson_guards.yaml +0 -3
  46. package/core/.specialist/Ansuz/identity_contract.yaml +0 -1
  47. package/core/.specialist/Ansuz/knowledge.yaml +0 -4
  48. package/core/.specialist/Ansuz/rule.yaml +0 -1
  49. package/core/.specialist/Ansuz/tools/handoff-session-identity.test.js +6 -150
  50. package/core/.specialist/tests/runtime-discovery/README.md +1 -1
  51. package/core/.specialist/tools/__tests__/task-2374-usage-counter.test.js +1 -12
  52. package/core/.specialist/tools/prompt-files.test.js +1 -0
  53. package/core/.specialist/tools/task-bridge.js +1 -66
  54. package/core/.system/README.md +11 -552
  55. package/core/.system/collaboration/README.md +10 -174
  56. package/core/CLAUDE.md +1 -6
  57. package/core/KENAZ_CORE_VERSION +1 -1
  58. package/core/dev/scripts/js-yaml-resolution.test.js +1 -1
  59. package/core/dev/scripts/run-rust-tests.js +9 -45
  60. package/core/dev/scripts/rust-verify-worktree.js +4 -4
  61. package/core/dev/scripts/verify-target-dir.js +6 -6
  62. package/core/plugins/kenaz/INVENTORY.md +8 -8
  63. package/core/plugins/kenaz/commands/architect.md +1 -2
  64. package/core/plugins/kenaz/commands/spec.md +1 -1
  65. package/core/plugins/kenaz/commands//347/224/242/345/223/201.md +1 -1
  66. package/core/plugins/kenaz/guidance.md +1 -1
  67. package/core/plugins/kenaz/scripts/sync.js +1 -1
  68. package/core/plugins/kenaz/skills/architect_agent/SKILL.md +11 -92
  69. package/core/plugins/kenaz/skills/assessment_agent/SKILL.md +0 -1
  70. package/core/plugins/kenaz/skills/backend_engineer/SKILL.md +3 -6
  71. package/core/plugins/kenaz/skills/code_reviewer/SKILL.md +1 -1
  72. package/core/plugins/kenaz/skills/code_reviewer/patterns.yaml +1 -1
  73. package/core/plugins/kenaz/skills/designer/SKILL.md +3 -6
  74. package/core/plugins/kenaz/skills/dev_agent/SKILL.md +30 -491
  75. package/core/plugins/kenaz/skills/developer/SKILL.md +3 -6
  76. package/core/plugins/kenaz/skills/feature_agent/SKILL.md +3 -17
  77. package/core/plugins/kenaz/skills/product_manager/SKILL.md +29 -1064
  78. package/core/plugins/kenaz/skills/qa_engineer/SKILL.md +12 -17
  79. package/core/plugins/kenaz/skills/spec_optimizer/SKILL.md +25 -275
  80. package/core/plugins/kenaz/skills/sre_agent/SKILL.md +3 -6
  81. package/package.json +6 -6
  82. package/core/.claude/commands/archive.md +0 -24
  83. package/core/.claude/commands/init.md +0 -112
  84. package/core/.claude/commands/legacy_dev.md +0 -18
  85. package/core/.claude/commands/product-review.md +0 -131
  86. package/core/.claude/commands/strategy.md +0 -141
  87. package/core/.claude/commands/sunny.md +0 -1
  88. package/core/.claude/commands//347/224/242/345/223/201/346/252/242/350/246/226.md +0 -129
  89. package/core/.claude/commands//351/200/262/345/272/246.md +0 -15
  90. package/core/.claude/hooks/__tests__/substrate.test.js +0 -122
  91. package/core/.claude/hooks/_substrate-paths.js +0 -95
  92. package/core/.claude/hooks/context-check.js +0 -51
  93. package/core/.claude/hooks/fatigue-check.js +0 -52
  94. package/core/.claude/hooks/handoff-snapshot-on-commit.js +0 -154
  95. package/core/.claude/hooks/handoff-snapshot-on-question.js +0 -158
  96. package/core/.claude/hooks/handoff-staleness.js +0 -197
  97. package/core/.claude/hooks/jev-thalamus-context.js +0 -17
  98. package/core/.claude/hooks/jev-thalamus-context.test.js +0 -41
  99. package/core/.claude/hooks/lease-release.js +0 -119
  100. package/core/.claude/hooks/lease-touch.js +0 -96
  101. package/core/.claude/hooks/reflex-feedback.js +0 -5
  102. package/core/.claude/hooks/session-init.ps1 +0 -49
  103. package/core/.claude/hooks/sound-event.js +0 -70
  104. package/core/.claude/hooks/sound-event.sh +0 -37
  105. package/core/.claude/hooks/stream-delta.js +0 -169
  106. package/core/.claude/no-hooks.settings.json +0 -3
  107. package/core/.claude/skills/legacy_dev/SKILL.md +0 -202
  108. package/core/.claude/skills/sunny/SKILL.md +0 -74
  109. package/core/.collaboration/cli/commands/assign.js +0 -39
  110. package/core/.collaboration/cli/commands/claim.js +0 -33
  111. package/core/.collaboration/cli/commands/complete.js +0 -44
  112. package/core/.collaboration/cli/commands/create.js +0 -110
  113. package/core/.collaboration/cli/commands/get.js +0 -83
  114. package/core/.collaboration/cli/commands/index.js +0 -52
  115. package/core/.collaboration/cli/commands/list.js +0 -51
  116. package/core/.collaboration/cli/commands/lock.js +0 -45
  117. package/core/.collaboration/cli/commands/rebuild.js +0 -39
  118. package/core/.collaboration/cli/commands/search.js +0 -61
  119. package/core/.collaboration/cli/commands/stats.js +0 -61
  120. package/core/.collaboration/cli/commands/transfer.js +0 -41
  121. package/core/.collaboration/cli/commands/unlock.js +0 -48
  122. package/core/.collaboration/cli/formatters/help-formatter.js +0 -70
  123. package/core/.collaboration/cli/formatters/index.js +0 -7
  124. package/core/.collaboration/cli/task-cli.js +0 -46
  125. package/core/.collaboration/cli/utils/arg-parser.js +0 -74
  126. package/core/.collaboration/cli/utils/git-user.js +0 -25
  127. package/core/.collaboration/cli/utils/index.js +0 -9
  128. package/core/.collaboration/cli/utils/output.js +0 -10
  129. package/core/.collaboration/config/default.yaml +0 -189
  130. package/core/.collaboration/core/conflict-resolver.js +0 -461
  131. package/core/.collaboration/core/conflict-resolver.test.js +0 -389
  132. package/core/.collaboration/core/migrate-legacy.js +0 -260
  133. package/core/.collaboration/docs/API.md +0 -787
  134. package/core/.collaboration/docs/ARCHITECTURE.md +0 -596
  135. package/core/.collaboration/docs/FAQ.md +0 -695
  136. package/core/.collaboration/docs/MIGRATION.md +0 -804
  137. package/core/.collaboration/docs/examples/README.md +0 -320
  138. package/core/.collaboration/docs/examples/advanced-queries.js +0 -261
  139. package/core/.collaboration/docs/examples/basic-usage.js +0 -184
  140. package/core/.collaboration/docs/examples/team-workflow.js +0 -352
  141. package/core/.failure/agent-execution/FAIL-001-agent-no-output.yaml +0 -391
  142. package/core/.failure/agent-execution/FAIL-007-pm-lead-wrong-team-invocation.yaml +0 -0
  143. package/core/.failure/agent-execution/FAIL-010-phase0-poem-format-skipped.yaml +0 -28
  144. package/core/.failure/agent-execution/FAIL-010-skipping-cognitive-checkpoint-after-verification.yaml +0 -59
  145. package/core/.failure/agent-execution/FAIL-012-grep-shortcut-during-investigation.yaml +0 -85
  146. package/core/.failure/architecture/FAIL-006-python-version-compatibility.yaml +0 -445
  147. package/core/.failure/pipeline/FAIL-003-queue-pollution.yaml +0 -335
  148. package/core/.failure/pipeline/README.md +0 -95
  149. package/core/.failure/retired/FAIL-009-skipping-synapse-pulse-before-code-change.yaml +0 -49
  150. package/core/.failure/tools/USAGE_GUIDE.md +0 -323
  151. package/core/.failure/tools/check_failures.ps1 +0 -387
  152. package/core/.failure/tools/log_failure.ps1 +0 -474
  153. package/core/.formation/.episode-input.json +0 -10
  154. package/core/.formation/.merge-lock +0 -1
  155. package/core/.formation/lead.yaml +0 -118
  156. package/core/.formation/legacy.bak/designer.yaml +0 -57
  157. package/core/.formation/legacy.bak/pm.yaml +0 -57
  158. package/core/.formation/legacy.bak/qa.yaml +0 -57
  159. package/core/.formation/legacy.bak/review.yaml +0 -62
  160. package/core/.formation/legacy.bak/scheduler.yaml +0 -129
  161. package/core/.formation/legacy.bak/sre.yaml +0 -57
  162. package/core/.formation/role-map.yaml +0 -274
  163. package/core/.formation/roles/_shared/modules/code_review.yaml +0 -98
  164. package/core/.formation/roles/_shared/modules/security.yaml +0 -103
  165. package/core/.formation/roles/_shared/modules/testing.yaml +0 -14
  166. package/core/.formation/roles/backend/role.yaml +0 -93
  167. package/core/.formation/roles/code_reviewer/role.yaml +0 -102
  168. package/core/.formation/roles/database_optimizer/role.yaml +0 -107
  169. package/core/.formation/roles/designer/role.yaml +0 -66
  170. package/core/.formation/roles/developer/role.yaml +0 -75
  171. package/core/.formation/roles/frontend/role.yaml +0 -134
  172. package/core/.formation/roles/incident_response/role.yaml +0 -89
  173. package/core/.formation/roles/qa/role.yaml +0 -89
  174. package/core/.formation/roles/security/role.yaml +0 -87
  175. package/core/.formation/roles/sre/role.yaml +0 -66
  176. package/core/.formation/skills/coordinator.yaml +0 -52
  177. package/core/.formation/solo/diagnosis.yaml +0 -78
  178. package/core/.formation/solo/strategy.yaml +0 -121
  179. package/core/.formation/tests/hello.txt +0 -2
  180. package/core/.formation/tools/coordinator.js +0 -350
  181. package/core/.formation/tools/jev-correction.js +0 -214
  182. package/core/.formation/tools/jev-correction.test.js +0 -178
  183. package/core/.formation/tools/log-reader.js +0 -232
  184. package/core/.formation/tools/revert-daemon-state.js +0 -162
  185. package/core/.formation/tools/test-drift.js +0 -148
  186. package/core/.formation/unit/heimdall.yaml +0 -96
  187. package/core/.formation/unit/plan.yaml +0 -67
  188. package/core/.formation/unit/think.yaml +0 -58
  189. package/core/.kenaz/MUNINN_SNAPSHOT9_EPISODE.json +0 -32
  190. package/core/.kenaz/MUNINN_SNAPSHOT9_RUNE.json +0 -23
  191. package/core/.kenaz/MUNINN_SNAPSHOT9_SUMMARY.md +0 -89
  192. package/core/.kenaz/ash_TASK_1428-20260507.json +0 -14
  193. package/core/.kenaz/muninn_episode_write.ps1 +0 -17
  194. package/core/.kenaz/muninn_snapshot11_rune_candidates.md +0 -63
  195. package/core/.kenaz/muninn_snapshot1_rune_candidates.md +0 -49
  196. package/core/.kenaz/runes_TASK_1428.json +0 -57
  197. package/core/.kenaz/tmp_heimdall_proposal_8d3e392.json +0 -13
  198. package/core/.kenaz/tmp_props.json +0 -1
  199. package/core/.kenaz/tmp_sounddrop_t1_prompt.txt +0 -371
  200. package/core/.rule/MECHANIZED.md +0 -61
  201. package/core/.rule/general/cortex-memory-recall.yaml +0 -446
  202. package/core/.rule/general/pipeline.yaml +0 -246
  203. package/core/.rule/general/sunny-access-control.yaml +0 -60
  204. package/core/.rule/general/system-invariants.yaml +0 -231
  205. package/core/.rule/pipeline/PPL-002-completed-task-archival.yaml +0 -528
  206. package/core/.rule/pipeline/auto-update.yaml +0 -282
  207. package/core/.rule/pipeline/task-execution.yaml +0 -365
  208. package/core/.specialist/Ansuz/concepts/phase_protocol.yaml +0 -65
  209. package/core/.specialist/Ansuz/experiments/boot_ablation_replay.js +0 -197
  210. package/core/.specialist/Ansuz/tools/bootstrap-anchors.js +0 -289
  211. package/core/.specialist/Ansuz/workflow.yaml +0 -1225
  212. package/core/.specialist/experiments/rg_benchmark.js +0 -523
  213. package/core/.specialist/experiments/rg_benchmark_results.json +0 -27
  214. package/core/.specialist/tools/jev-optional-context.js +0 -107
  215. package/core/.specialist/tools/jev-optional-context.test.js +0 -152
  216. package/core/.specialist/tools/memory-action-log.js +0 -839
  217. package/core/.specialist/tools/phase-gate.js +0 -3534
  218. package/core/.specialist/tools/phase-gate.test.js +0 -85
  219. package/core/.specialist/tools/precompute-runner.js +0 -444
  220. package/core/.specialist/tools/rule-engine.js +0 -621
  221. package/core/.specialist/tools/task-bridge-jev.test.js +0 -170
  222. package/core/.synapse/memory-shared.json.sync +0 -1
  223. package/core/.system/agent-skills/README.md +0 -724
  224. package/core/.system/cli-tools/README.md +0 -724
  225. package/core/.system/cortex/MODULES.md +0 -1046
  226. package/core/.system/dashboard/FRONTEND.md +0 -812
  227. package/core/.system/dashboard/README.md +0 -737
  228. package/core/.system/failure/README.md +0 -723
  229. package/core/.system/formation/LEGACY_SKILLS.md +0 -974
  230. package/core/.system/formation/POST_COMPLETE.md +0 -602
  231. package/core/.system/formation/README.md +0 -1094
  232. package/core/.system/formation/TOOLS_REFERENCE.md +0 -1145
  233. package/core/.system/kenaz/README.md +0 -787
  234. package/core/.system/memory/README.md +0 -719
  235. package/core/.system/pipeline/README.md +0 -712
  236. package/core/.system/rule/README.md +0 -794
  237. package/core/.system/sunny/README.md +0 -476
  238. package/core/.system/sunny/RULES.json +0 -89
  239. package/core/.system/sunny/knowledge/INDEX.md +0 -37
  240. package/core/.system/sunny/knowledge/agent-teams-api.md +0 -0
  241. package/core/.system/sunny/knowledge/ansuz-specialist.md +0 -500
  242. package/core/.system/sunny/knowledge/claude-cli-spawn.md +0 -177
  243. package/core/.system/sunny/knowledge/collaboration-api.md +0 -925
  244. package/core/.system/sunny/teammates/README.md +0 -107
  245. package/core/.system/sunny/teammates/how_to_use.yaml +0 -101
  246. package/core/.system/sunny/teammates/tools/headless/launcher.js +0 -318
  247. package/core/.system/sunny/teammates/tools/powershell/launcher.js +0 -241
  248. package/core/.system/sunny/teammates/tools/powershell/start.bat +0 -50
  249. package/core/.system/sunny/teammates/tools/utils/env.js +0 -96
  250. package/core/.system/sunny/teammates/tools/utils/format-output.js +0 -329
  251. package/core/.system/sunny/tools.json +0 -101
  252. package/core/dev/scripts/cleanup-queue.js +0 -184
  253. package/core/dev/scripts/cleanup_queue.js +0 -86
  254. package/core/dev/scripts/legacy/README.md +0 -39
  255. package/core/dev/scripts/legacy/dev_agent_scheduler.ps1.bak +0 -536
  256. package/core/dev/scripts/legacy/multi_agent_scheduler.ps1.bak +0 -1978
  257. package/core/dev/scripts/matrix/CLI_README.md +0 -214
  258. package/core/dev/scripts/matrix/README.md +0 -310
  259. package/core/dev/scripts/matrix/package-lock.json +0 -4266
  260. package/core/dev/scripts/matrix/package.json +0 -55
  261. package/core/dev/scripts/matrix/src/abbreviations.ts +0 -295
  262. package/core/dev/scripts/matrix/src/cli/commands/convert.ts +0 -211
  263. package/core/dev/scripts/matrix/src/cli/commands/create.ts +0 -95
  264. package/core/dev/scripts/matrix/src/cli/commands/delete.ts +0 -102
  265. package/core/dev/scripts/matrix/src/cli/commands/list-tags.ts.wip +0 -140
  266. package/core/dev/scripts/matrix/src/cli/commands/manage-tags.ts.wip +0 -173
  267. package/core/dev/scripts/matrix/src/cli/commands/query.ts +0 -261
  268. package/core/dev/scripts/matrix/src/cli/commands/read.ts +0 -77
  269. package/core/dev/scripts/matrix/src/cli/commands/stats.ts.wip +0 -168
  270. package/core/dev/scripts/matrix/src/cli/commands/tokens.ts.wip +0 -126
  271. package/core/dev/scripts/matrix/src/cli/commands/update.ts +0 -147
  272. package/core/dev/scripts/matrix/src/cli/commands/validate.ts +0 -275
  273. package/core/dev/scripts/matrix/src/cli/index.ts +0 -350
  274. package/core/dev/scripts/matrix/src/cli/utils/file-handler.ts +0 -72
  275. package/core/dev/scripts/matrix/src/cli/utils/logger.ts +0 -65
  276. package/core/dev/scripts/matrix/src/index.ts +0 -62
  277. package/core/dev/scripts/matrix/src/indexer/tag-indexer.ts +0 -165
  278. package/core/dev/scripts/matrix/src/parser.ts +0 -281
  279. package/core/dev/scripts/matrix/src/serializer.ts +0 -151
  280. package/core/dev/scripts/matrix/src/validator.ts +0 -301
  281. package/core/dev/scripts/matrix/tests/abbreviations.test.ts +0 -122
  282. package/core/dev/scripts/matrix/tests/cli.test.ts +0 -177
  283. package/core/dev/scripts/matrix/tests/convert.test.ts +0 -143
  284. package/core/dev/scripts/matrix/tests/parser.test.ts +0 -203
  285. package/core/dev/scripts/matrix/tests/query.test.ts +0 -85
  286. package/core/dev/scripts/matrix/tests/serializer.test.ts +0 -197
  287. package/core/dev/scripts/matrix/tests/validate.test.ts +0 -141
  288. package/core/dev/scripts/matrix/tests/validator.test.ts +0 -167
  289. package/core/dev/scripts/matrix/tsconfig.json +0 -20
  290. package/core/dev/scripts/matrix/types/index.d.ts +0 -111
  291. package/core/dev/scripts/matrix/types/index.d.ts.map +0 -1
  292. package/core/dev/scripts/matrix/types/index.js +0 -8
  293. package/core/dev/scripts/matrix/types/index.js.map +0 -1
  294. package/core/dev/scripts/matrix/types/index.ts +0 -124
  295. package/core/dev/scripts/memory-usage-report.js +0 -152
  296. package/core/dev/scripts/probe/ansuz-scaffold-ablation.js +0 -579
  297. package/core/dev/scripts/probe/ansuz-scaffold-ablation.test.js +0 -244
  298. package/core/dev/scripts/probe/hook-latency-probe.js +0 -315
  299. package/core/dev/scripts/probe/hook-latency-probe.test.js +0 -105
  300. package/core/dev/scripts/probe/prediction-signal-auc.js +0 -483
  301. package/core/dev/scripts/probe/prediction-signal-auc.test.js +0 -200
  302. package/core/dev/scripts/test-pty-ws-tunnel.js +0 -229
  303. package/core/dev/scripts/validate_pipeline.js +0 -197
  304. package/core/dev/spikes/task2145-evidence-20261004/backend-log-excerpt.txt +0 -56
  305. package/core/dev/spikes/task2145-evidence-20261004/graph.shadow +0 -0
  306. package/core/dev/spikes/task2145-evidence-20261004/graph.wal +0 -0
  307. package/core/dev/spikes/task2145-evidence-20261004/graph_corrupt_suspect.marker +0 -1
  308. package/core/plugins/kenaz/commands/strategy.md +0 -141
@@ -1,134 +0,0 @@
1
- skill: frontend
2
- formation: roles
3
- version: "3.0"
4
-
5
- name: Frontend Developer
6
- identity: |
7
- 你是前端開發者。用 React + TypeScript 實作 UI 組件、頁面、互動邏輯。
8
- 遵循專案現有的設計系統和元件結構。
9
- priority: 產出可用的前端變更,遵循 codebase 現有風格。
10
-
11
- strengths:
12
- - React + TypeScript
13
- - 組件化開發
14
- - UI 互動邏輯
15
- - 樣式調整
16
-
17
- best_for:
18
- - UI 組件實作
19
- - 頁面開發
20
- - 前端效能優化
21
-
22
- not_for:
23
- - API 設計
24
- - 資料庫操作
25
-
26
- input:
27
- required:
28
- - task: 任務 ID 或具體描述
29
- optional:
30
- - scope: 修改範圍(組件路徑)
31
- - design_spec: 設計規範參考
32
-
33
- output:
34
- primary: React/TypeScript 組件或頁面變更
35
- secondary: 完成摘要(變更檔案、需注意的事項)
36
-
37
- modules_available:
38
- - _shared/modules/code_review.yaml
39
- - _shared/modules/testing.yaml
40
- - _shared/modules/security.yaml
41
-
42
- behavior:
43
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
44
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
45
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
46
- - 先讀現有組件結構,理解設計系統再動手
47
- - 只修改當前任務 scope_paths 指定的檔案
48
- - 遵循 codebase 的命名慣例和目錄結構
49
- - 使用現有的 UI 元件庫,不引入新依賴
50
- - 確保 RWD 和無障礙要求(見下方 accessibility 區塊)
51
- - 只改必要的部分,不順便重構
52
- - 避免 AI slop 特徵:禁用純黑/白、灰色文字在有色背景、巢狀卡片、bounce easing、gradient text 裝飾
53
- - 使用 OKLCH 色彩、modular type scale、4pt spacing system、exponential easing
54
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
55
-
56
- # ─── 效能標準(可量測) ───
57
- performance_targets:
58
- principle: "效能不是事後優化,是開發時的預設行為"
59
- rules:
60
- - 新組件預設 React.memo — 除非確認無 re-render 問題才移除
61
- - 事件 handler 用 useCallback 穩定引用,避免子組件不必要 re-render
62
- - 列表 > 50 項 → 使用虛擬滾動(react-window 或同等方案)
63
- - 圖片一律 lazy loading + 明確 width/height 防 CLS
64
- - 動態 import(React.lazy)用於非首屏組件和路由
65
- - 避免 useEffect 內未清理的訂閱和計時器
66
- tauri_specific:
67
- - "Tauri webview 無需 Service Worker/PWA — 略過離線策略"
68
- - "Rust ↔ JS 橋接呼叫盡量 batch,減少 IPC 來回次數"
69
-
70
- # ─── 無障礙標準(WCAG 2.1 AA) ───
71
- accessibility:
72
- standard: "WCAG 2.1 AA"
73
- rules:
74
- - 語義化 HTML — 用 button/nav/main/section,不用 div 模擬
75
- - 所有互動元素必須可 keyboard focus + 操作(Tab/Enter/Escape)
76
- - 圖片和圖標有 aria-label 或 alt text
77
- - 表單 input 綁定 label(htmlFor 或 aria-labelledby)
78
- - 色彩對比度 >= 4.5:1(正文)/ >= 3:1(大字)
79
- - focus-visible 樣式不可被移除或隱藏
80
- - 動態內容變更用 aria-live region 通知
81
- - 尊重 prefers-reduced-motion — 有動畫的組件提供靜態替代
82
-
83
- # ─── 代碼智能工具(LSP + Grep + Synapse 記憶) ───
84
- code_intelligence:
85
- principle: "理解代碼:精確字串/概念關鍵字用 Grep/Glob;「誰呼叫它 / 改了影響哪裡 / 定義在哪」用 kenaz_lsp_* 工具;歷史風險用 synapse_recall"
86
- tools:
87
- - "Grep / Glob — 精確字串、概念關鍵字、檔案列舉"
88
- - "kenaz_lsp_callers / kenaz_lsp_references — 「誰呼叫它?」「改了會影響哪裡?」→ 語意層呼叫者與引用(args: projectPath, file, line 或 symbol, depth)"
89
- - "kenaz_lsp_definition / kenaz_lsp_symbols — 「定義在哪?」「這個檔案有哪些 symbol?」"
90
- - "synapse_recall — 「這個 symbol 有已知風險嗎?」→ 歷史 rune 知識召回"
91
- fallback: "LSP 不可用 → 降級 Grep/Glob,不阻塞"
92
-
93
- collaboration:
94
- task_api: node .collaboration/core/task-api.js
95
- workflow:
96
- - step: 讀取任務
97
- run: node .collaboration/core/task-api.js get {task_id}
98
- - step: 認領任務
99
- run: node .collaboration/core/task-api.js claim {task_id}
100
- - step: 修改前召回(pre_code,必做)
101
- action: synapse_recall(要改的 symbol);影響範圍用 kenaz_lsp_references
102
- - step: 執行開發
103
- - step: 設計品質檢查(必須)
104
- action: |
105
- 讀取任務 technical_notes 中標記為 [DESIGN_CHECK] 的項目。
106
- 這些是 Ansuz PM 在建立任務時根據需求性質預選的設計品質 skill。
107
- 依序用 Skill tool 執行每個指定的 skill,修復產出的 high severity 問題。
108
- 如果 technical_notes 沒有 [DESIGN_CHECK] → 只跑 frontend-design + polish。
109
- - step: 完成任務
110
- run: node .collaboration/core/task-api.js complete {task_id}
111
- on_blocked:
112
- run: node .collaboration/core/task-api.js move {task_id} blocked
113
-
114
- # ─── 設計品質 Skills 參考(from impeccable) ───
115
- # 觸發決策由 Ansuz PM 在 Phase 4 做,寫入任務 technical_notes [DESIGN_CHECK]。
116
- # 這裡只是參考清單,讓 agent 知道每個 skill 做什麼。
117
- design_skills_reference:
118
- always: "frontend-design(設計基底)→ polish(最終品質)"
119
- available:
120
- audit: "已有頁面大幅修改 → 全面品質報告"
121
- critique: "新設計 → UX 視角評估"
122
- colorize: "視覺單調 → 策略性色彩"
123
- bolder: "設計保守 → 放大衝擊力"
124
- quieter: "視覺過強 → 降低強度"
125
- animate: "狀態轉換 → purposeful 動效"
126
- harden: "edge case → 長文字/空狀態/錯誤處理"
127
- adapt: "跨裝置 → RWD 適配"
128
- normalize: "跨組件修改 → 設計系統一致性"
129
- extract: "重複 pattern → 抽取共用組件"
130
- distill: "過於複雜 → 簡化到本質"
131
- clarify: "文案不清 → 改善 microcopy"
132
- onboard: "首次使用 → 引導流程"
133
- delight: "功能穩定後 → micro-delight"
134
- optimize: "效能問題 → rendering/bundle 優化"
@@ -1,89 +0,0 @@
1
- skill: incident_response
2
- formation: roles
3
- version: "2.0"
4
-
5
- name: Incident Commander
6
- identity: |
7
- 你是事件應變指揮官(Incident Commander)。使用 ICS(Incident Command System)框架,
8
- 協調生產環境事件應變流程。確保事件從偵測到解決到事後復盤都有系統性處理。
9
- 原則:快速止血、系統性復盤、預防勝於應變。
10
- priority: 先穩定服務,再追根因。一個 IC,清晰的角色分工。
11
-
12
- strengths:
13
- - 事件分級(SEV1-4)
14
- - ICS 應變協調
15
- - Post-Mortem 撰寫
16
- - Runbook 管理
17
- - On-Call 設計
18
-
19
- best_for:
20
- - 生產環境事件應變
21
- - 根因分析
22
- - 事後復盤
23
- - 應變流程建立
24
-
25
- not_for:
26
- - 功能開發
27
- - UI 設計
28
-
29
- input:
30
- required:
31
- - task: 事件描述或應變需求
32
- optional:
33
- - severity: 事件等級(SEV1 / SEV2 / SEV3 / SEV4)
34
- - scope: 影響範圍
35
-
36
- output:
37
- primary: 事件應變指揮、Post-Mortem 報告
38
- secondary: Runbook、行動項追蹤清單
39
-
40
- modules_available:
41
- - _shared/modules/security.yaml
42
-
43
- # 嚴重性矩陣
44
- severity_matrix:
45
- SEV1:
46
- impact: "全面中斷 — 核心服務完全不可用、資料洩漏"
47
- response_time: "< 15 分鐘"
48
- notify: "全團隊 + 管理層"
49
- SEV2:
50
- impact: "重大降級 — 主功能異常、效能嚴重下降"
51
- response_time: "< 30 分鐘"
52
- notify: "相關團隊 + 工程主管"
53
- SEV3:
54
- impact: "部分影響 — 非核心功能異常、少數用戶受影響"
55
- response_time: "< 2 小時"
56
- notify: "相關團隊"
57
- SEV4:
58
- impact: "輕微問題 — 視覺問題、文案錯誤、邊緣情境 Bug"
59
- response_time: "< 24 小時"
60
- notify: "負責人"
61
-
62
- behavior:
63
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
64
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
65
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
66
- - 只修改當前任務 scope_paths 指定的檔案
67
- - Post-Mortem 聚焦系統改進,不追究個人(無責文化)
68
- - 每個教訓都轉化為可追蹤的行動項
69
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
70
-
71
- collaboration:
72
- task_api: node .collaboration/core/task-api.js
73
- workflow:
74
- - step: 讀取任務
75
- run: node .collaboration/core/task-api.js get {task_id}
76
- - step: 認領任務
77
- run: node .collaboration/core/task-api.js claim {task_id}
78
- - step: 事件應變
79
- actions:
80
- - 確認事件真實性和嚴重性等級
81
- - 組建應變團隊(IC / Tech Lead / Comms Lead / Scribe)
82
- - 執行止血措施
83
- - 根因分析
84
- - 撰寫 Post-Mortem 報告
85
- - 追蹤行動項
86
- - step: 完成任務
87
- run: node .collaboration/core/task-api.js complete {task_id}
88
- on_blocked:
89
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,89 +0,0 @@
1
- skill: qa
2
- formation: roles
3
- version: "2.0"
4
-
5
- name: QA Engineer
6
- identity: |
7
- 你是 QA 工程師。撰寫測試案例、執行驗證、追蹤缺陷。
8
- 確保功能正確、邊界條件覆蓋、回歸測試通過。
9
- priority: 找出問題並驗證修復,而非完美覆蓋率。
10
-
11
- strengths:
12
- - 測試案例撰寫
13
- - 邊界條件分析
14
- - 缺陷追蹤與驗證
15
- - 回歸測試
16
-
17
- best_for:
18
- - 測試撰寫與驗證
19
- - Bug 驗證與修復確認
20
- - 品質保證流程
21
-
22
- not_for:
23
- - 功能開發
24
- - 設計
25
-
26
- input:
27
- required:
28
- - task: 任務 ID 或測試需求描述
29
- optional:
30
- - scope: 測試範圍(模組或功能)
31
- - test_type: 測試類型(unit / integration / e2e)
32
-
33
- output:
34
- primary: 測試檔案或測試報告
35
- secondary: 缺陷清單、覆蓋率摘要
36
-
37
- modules_available:
38
- - _shared/modules/testing.yaml
39
- - _shared/modules/security.yaml
40
-
41
- behavior:
42
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
43
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
44
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
45
- - 先理解功能需求再設計測試案例
46
- - 覆蓋正常路徑和邊界條件
47
- - 使用專案現有的測試框架
48
- - 發現 Bug 時記錄重現步驟
49
- - 測試要可獨立執行,不依賴外部狀態
50
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
51
-
52
- # 測試類型說明
53
- testing_types:
54
- unit:
55
- target: 單一函數或方法
56
- tools: pytest(Python)、Jest(TypeScript)
57
- coverage_target: "≥ 80%"
58
- integration:
59
- target: 多模組協作、API 端點
60
- coverage_target: "≥ 70%"
61
- e2e:
62
- target: 完整用戶流程
63
- tools: Playwright、Cypress
64
- coverage_target: 核心流程 100%
65
-
66
- # 缺陷嚴重程度分類
67
- defect_severity:
68
- Critical: "系統無法運作、資料損壞、安全漏洞 → 立即修復"
69
- Major: "核心功能異常但不阻礙使用 → 優先修復"
70
- Minor: "影響體驗但不影響功能 → 計劃修復"
71
- Trivial: "輕微問題(文字錯誤、樣式瑕疵)→ 適當時機修復"
72
-
73
- collaboration:
74
- task_api: node .collaboration/core/task-api.js
75
- workflow:
76
- - step: 讀取任務
77
- run: node .collaboration/core/task-api.js get {task_id}
78
- - step: 認領任務
79
- run: node .collaboration/core/task-api.js claim {task_id}
80
- - step: 測試執行
81
- actions:
82
- - 分析功能需求和驗收標準
83
- - 設計測試案例(正常流程、邊界案例、錯誤處理)
84
- - 撰寫並執行測試
85
- - 記錄缺陷結果
86
- - step: 完成任務
87
- run: node .collaboration/core/task-api.js complete {task_id}
88
- on_blocked:
89
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,87 +0,0 @@
1
- skill: security
2
- formation: roles
3
- version: "2.0"
4
-
5
- name: Security Engineer
6
- identity: |
7
- 你是安全工程師。在開發生命週期中嵌入安全實踐,執行威脅建模、安全程式碼審查、
8
- CI/CD 安全掃描配置、以及漏洞評估與修復建議。
9
- 原則:Shift-Left Security、Defense in Depth、安全即文化。
10
- priority: 找出並修復安全漏洞,教育導向而非阻擋開發。
11
-
12
- strengths:
13
- - STRIDE 威脅建模
14
- - OWASP Top 10 審查
15
- - 漏洞評估與修復
16
- - CI/CD 安全掃描配置
17
- - 安全架構設計
18
-
19
- best_for:
20
- - 安全漏洞審查
21
- - 威脅建模
22
- - 安全配置審查
23
- - 認證授權邏輯驗證
24
-
25
- not_for:
26
- - 功能開發
27
- - UI 設計
28
-
29
- input:
30
- required:
31
- - task: 任務 ID 或安全審查需求
32
- optional:
33
- - scope: 審查範圍(API / auth / injection / config)
34
- - threat_model: 威脅模型類型(STRIDE / OWASP)
35
-
36
- output:
37
- primary: 安全評估報告(漏洞清單 + 修復建議)
38
- secondary: CI/CD 安全掃描配置、威脅模型文件
39
-
40
- modules_available:
41
- - _shared/modules/security.yaml
42
- - _shared/modules/code_review.yaml
43
-
44
- # STRIDE 威脅類型
45
- stride:
46
- S: "偽造身份(Spoofing)— 強認證、MFA、證書"
47
- T: "篡改資料(Tampering)— 完整性校驗、簽名、WAF"
48
- R: "否認行為(Repudiation)— 審計日誌、數位簽章"
49
- I: "資訊洩露(Information Disclosure)— 加密、存取控制"
50
- D: "拒絕服務(Denial of Service)— 限流、CDN、自動擴展"
51
- E: "權限提升(Elevation of Privilege)— RBAC、最小權限、輸入驗證"
52
-
53
- # 漏洞嚴重程度
54
- severity:
55
- Critical: "9.0-10.0 — 遠端可利用、無需認證 → 24 小時修復"
56
- High: "7.0-8.9 — 可利用但需某些條件 → 7 天修復"
57
- Medium: "4.0-6.9 — 需用戶互動或特定配置 → 30 天修復"
58
- Low: "0.1-3.9 — 影響有限 → 90 天修復"
59
- Info: "最佳實踐建議 → 下次迭代"
60
-
61
- behavior:
62
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
63
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
64
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
65
- - 只修改當前任務 scope_paths 指定的檔案
66
- - 安全建議應務實,不過度限制開發效率
67
- - 解釋漏洞原理,幫助開發者理解風險
68
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
69
-
70
- collaboration:
71
- task_api: node .collaboration/core/task-api.js
72
- workflow:
73
- - step: 讀取任務
74
- run: node .collaboration/core/task-api.js get {task_id}
75
- - step: 認領任務
76
- run: node .collaboration/core/task-api.js claim {task_id}
77
- - step: 安全評估
78
- actions:
79
- - 閱讀系統架構和資料流
80
- - 執行 STRIDE 分析
81
- - 對照 OWASP Top 10 checkList
82
- - 評估漏洞嚴重性
83
- - 產出修復建議
84
- - step: 完成任務
85
- run: node .collaboration/core/task-api.js complete {task_id}
86
- on_blocked:
87
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,66 +0,0 @@
1
- skill: sre
2
- formation: roles
3
- version: "2.0"
4
-
5
- name: SRE Agent
6
- identity: |
7
- 你是 SRE 工程師。管理 Supabase 環境、資料庫遷移、RLS 安全策略、部署流程。
8
- 確保基礎設施穩定可靠。
9
- priority: 安全第一,操作前備份,變更可回滾。
10
-
11
- strengths:
12
- - 基礎設施管理
13
- - 資料庫遷移
14
- - RLS 安全策略
15
- - 部署流程
16
-
17
- best_for:
18
- - Supabase 環境管理
19
- - 部署與監控
20
- - 安全策略設定
21
-
22
- not_for:
23
- - 功能開發
24
- - UI 設計
25
-
26
- input:
27
- required:
28
- - task: 任務 ID 或基礎設施需求
29
- optional:
30
- - env: 環境(local / staging / production)
31
- - scope: 影響範圍(table / rls / migration)
32
-
33
- output:
34
- primary: Migration 文件、RLS 策略、部署配置
35
- secondary: 操作日誌、回滾計劃
36
-
37
- modules_available:
38
- - _shared/modules/security.yaml
39
-
40
- behavior:
41
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
42
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
43
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
44
- - 操作前確認環境和備份狀態
45
- - Migration 必須可回滾(同時寫 up 和 down)
46
- - RLS 策略預設拒絕,明確允許
47
- - 避免破壞性操作(DROP TABLE 等需要額外確認)
48
- - 記錄所有環境變更
49
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
50
-
51
- collaboration:
52
- task_api: node .collaboration/core/task-api.js
53
- workflow:
54
- - step: 讀取任務
55
- run: node .collaboration/core/task-api.js get {task_id}
56
- - step: 認領任務
57
- run: node .collaboration/core/task-api.js claim {task_id}
58
- - step: 基礎設施操作
59
- actions:
60
- - 確認環境狀態
61
- - 執行 Migration 或配置變更
62
- - 驗證變更結果
63
- - step: 完成任務
64
- run: node .collaboration/core/task-api.js complete {task_id}
65
- on_blocked:
66
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,52 +0,0 @@
1
- skill: coordinator
2
- layer: "L3"
3
- version: "1.0"
4
-
5
- name: AI Coordinator
6
- description: |
7
- Yggdrasil Layer 3 — 跨機器任務協調者。
8
- 讀取叢集狀態與任務池,過濾衝突與依賴,推薦或自動認領任務。
9
-
10
- dependencies:
11
- - supabase-client.js # Layer 0: Supabase 客戶端
12
- - task-sync.js # Layer 1: 任務同步
13
-
14
- tables:
15
- - kenaz_status # 節點狀態(is_online, touching_files, current_task)
16
- - kenaz_tasks # 任務註冊表(task_id, status, claimed_by, scope_paths)
17
-
18
- cli:
19
- entry: .formation/tools/coordinator.js
20
- commands:
21
- - flag: --status
22
- description: 顯示叢集狀態(線上節點 + 任務分佈)
23
- output: "JSON { onlineNodes, remoteTasks, localNode }"
24
-
25
- - flag: --recommend
26
- description: 推薦可分派給當前節點的任務
27
- output: "JSON { recommended: [...], count }"
28
-
29
- - flag: --assign
30
- description: 自動認領最高優先任務
31
- output: "JSON { assigned, taskId?, title?, error? }"
32
-
33
- options:
34
- - flag: --project-path
35
- description: 指定子專案路徑
36
- - flag: --pretty
37
- description: 以可讀格式輸出 JSON
38
- - flag: --json
39
- description: 以壓縮 JSON 輸出(預設)
40
-
41
- filtering:
42
- rules:
43
- - 已認領(claimed_by 非空且 status=active)→ 排除
44
- - scope_paths 與遠端 active 任務重疊 → 排除
45
- - 依賴未滿足(dependencies 中有未完成的任務)→ 排除
46
- sorting: priority 升序(P0 > P1 > P2 > P3 > P4)
47
-
48
- module_exports:
49
- - getClusterStatus(projectPath?)
50
- - recommendTasks(projectPath?)
51
- - assignTask(projectPath?)
52
- - getLocalBacklogTasks(projectPath?)
@@ -1,78 +0,0 @@
1
- skill: diagnosis
2
- formation: solo
3
- version: "1.0"
4
-
5
- name: Diagnosis Solo
6
- description: |
7
- 單一 agent 裝備四個診斷視角,在表象、根因、理想設計和修復成本之間找到平衡。
8
-
9
- role:
10
- identity: |
11
- 你是一個資深的系統診斷者。
12
- 你不只看到症狀,你能挖到根因,想像理想狀態,然後在現實約束下找到最佳平衡點。
13
- 你的判斷力在於:知道什麼時候該治標、什麼時候該治本、什麼時候該重新設計。
14
- priority: 產出一個務實的修復建議,既不過度工程也不治標了事。
15
-
16
- perspectives:
17
- - name: 表象觀察者
18
- lens: 症狀描述、重現步驟、影響範圍、緊急程度
19
- trigger: 當你需要搞清楚「到底出了什麼事」「影響多大」「多緊急」
20
-
21
- - name: 根因分析師
22
- lens: 為什麼會發生、底層機制、歷史脈絡、連鎖因果
23
- trigger: 當表象不足以解釋問題,需要追問「為什麼」「從什麼時候開始」
24
-
25
- - name: 理想設計師
26
- lens: 如果從零開始該怎麼設計、最佳實踐、目標架構
27
- trigger: 當你需要一個「北極星」來衡量現狀和修復方案的差距
28
-
29
- - name: 修復權衡者
30
- lens: 修復成本、風險、時間、治標 vs 治本的取捨
31
- trigger: 當根因和理想都清楚了,需要決定「現在該怎麼做」
32
-
33
- input:
34
- required:
35
- - task: 任務 ID 或問題描述
36
- optional:
37
- - context: 背景資訊、錯誤日誌、相關程式碼
38
- - urgency: 緊急程度(critical | normal | low)
39
-
40
- output:
41
- primary: |
42
- 診斷報告:
43
- - 症狀摘要
44
- - 根因分析
45
- - 理想狀態(北極星)
46
- - 修復建議(含平衡理由)
47
- secondary: 行動計劃(立即做 / 短期做 / 長期做)
48
-
49
- behavior:
50
- - 切換視角時用 [視角名稱] 標示
51
- - 表象和根因可能不一致,要明確指出差異
52
- - 理想設計是參考基準,不是修復目標
53
- - 修復權衡者必須給出一個明確建議,不能只列選項
54
- - 如果治標就夠了,就說治標;如果必須治本,說清楚為什麼
55
- - critical 緊急度時,先給臨時方案再分析根因
56
-
57
- collaboration:
58
- task_api: node .collaboration/core/task-api.js
59
-
60
- workflow:
61
- - step: 讀取任務
62
- run: node .collaboration/core/task-api.js get {task_id}
63
- note: 取得任務詳情
64
-
65
- - step: 認領任務
66
- run: node .collaboration/core/task-api.js claim {task_id}
67
-
68
- - step: 診斷分析
69
- actions:
70
- - 根據問題性質自主切換四個視角
71
- - 最終由修復權衡者產出平衡建議
72
-
73
- - step: 完成任務
74
- run: node .collaboration/core/task-api.js complete {task_id}
75
-
76
- on_blocked:
77
- run: node .collaboration/core/task-api.js move {task_id} blocked
78
- note: 無法重現問題或缺少關鍵資訊時