kenaz 0.3.17 → 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 (316) 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/hooks/synapse-first-investigation.js +15 -0
  7. package/core/.claude/skills/architect_agent/SKILL.md +11 -92
  8. package/core/.claude/skills/assessment_agent/SKILL.md +0 -1
  9. package/core/.claude/skills/backend_engineer/SKILL.md +3 -6
  10. package/core/.claude/skills/code_reviewer/SKILL.md +1 -1
  11. package/core/.claude/skills/code_reviewer/patterns.yaml +1 -1
  12. package/core/.claude/skills/designer/SKILL.md +3 -6
  13. package/core/.claude/skills/dev_agent/SKILL.md +30 -491
  14. package/core/.claude/skills/developer/SKILL.md +3 -6
  15. package/core/.claude/skills/feature_agent/SKILL.md +3 -17
  16. package/core/.claude/skills/product_manager/SKILL.md +29 -1064
  17. package/core/.claude/skills/qa_engineer/SKILL.md +12 -17
  18. package/core/.claude/skills/spec_optimizer/SKILL.md +25 -275
  19. package/core/.claude/skills/sre_agent/SKILL.md +3 -6
  20. package/core/.collaboration/README.md +2 -3
  21. package/core/.collaboration/core/task-api.js +5 -138
  22. package/core/.collaboration/docs/CLI.md +0 -2
  23. package/core/.failure/INDEX.yaml +6 -40
  24. package/core/.failure/agent-execution/FAIL-013-search-cwd-drift-and-case-mismatch.yaml +1 -1
  25. package/core/.failure/tools/README.md +9 -227
  26. package/core/.formation/bifrost/exec.js +29 -4
  27. package/core/.formation/bifrost/launch.js +1 -6
  28. package/core/.formation/bifrost/launch.test.js +1 -1
  29. package/core/.formation/bifrost/provider-launch.js +18 -11
  30. package/core/.formation/bifrost/provider-launch.test.js +26 -2
  31. package/core/.formation/bifrost/shared/ansuz-boot-policy.js +3 -3
  32. package/core/.formation/bifrost/shared/ansuz-boot-policy.test.js +1 -2
  33. package/core/.formation/tools/__tests__/dispatch-cwd-project.test.js +42 -0
  34. package/core/.formation/tools/__tests__/m1-hmap-convid.test.js +1 -124
  35. package/core/.formation/tools/__tests__/subagent-executor.test.js +3 -2
  36. package/core/.formation/tools/dispatch.js +15 -2
  37. package/core/.formation/tools/loader.js +17 -140
  38. package/core/.formation/tools/post-complete.js +0 -31
  39. package/core/.rule/INDEX.yaml +0 -18
  40. package/core/.rule/general/agent-workflow.yaml +14 -164
  41. package/core/.rule/general/project-self-containment.yaml +8 -19
  42. package/core/.rule/general/rust-verify-target.yaml +6 -5
  43. package/core/.rule/general/synapse-code-intelligence.yaml +3 -3
  44. package/core/.specialist/Amelia/capability.yaml +12 -12
  45. package/core/.specialist/Amelia/workflow.yaml +2 -2
  46. package/core/.specialist/Ansuz/SYSTEM_DOC.md +20 -578
  47. package/core/.specialist/Ansuz/cognitive_principles.yaml +2 -3
  48. package/core/.specialist/Ansuz/concepts/boot_rules_summary.yaml +0 -1
  49. package/core/.specialist/Ansuz/concepts/deep_knowledge_pointers.yaml +1 -2
  50. package/core/.specialist/Ansuz/core.yaml +6 -108
  51. package/core/.specialist/Ansuz/guards/lesson_guards.yaml +0 -3
  52. package/core/.specialist/Ansuz/identity_contract.yaml +0 -1
  53. package/core/.specialist/Ansuz/knowledge.yaml +0 -4
  54. package/core/.specialist/Ansuz/rule.yaml +0 -1
  55. package/core/.specialist/Ansuz/tools/handoff-session-identity.test.js +6 -150
  56. package/core/.specialist/tests/runtime-discovery/README.md +1 -1
  57. package/core/.specialist/tools/__tests__/task-2374-usage-counter.test.js +1 -12
  58. package/core/.specialist/tools/prompt-files.test.js +1 -0
  59. package/core/.specialist/tools/task-bridge.js +1 -66
  60. package/core/.system/README.md +11 -552
  61. package/core/.system/collaboration/README.md +10 -174
  62. package/core/CLAUDE.md +1 -6
  63. package/core/KENAZ_CORE_VERSION +1 -1
  64. package/core/dev/scripts/js-yaml-resolution.test.js +1 -1
  65. package/core/dev/scripts/run-rust-tests.js +30 -46
  66. package/core/dev/scripts/run-rust-tests.test.js +17 -0
  67. package/core/dev/scripts/rust-verify-worktree.js +4 -4
  68. package/core/dev/scripts/verify-target-dir.js +6 -6
  69. package/core/plugins/kenaz/INVENTORY.md +8 -8
  70. package/core/plugins/kenaz/commands/architect.md +1 -2
  71. package/core/plugins/kenaz/commands/spec.md +1 -1
  72. package/core/plugins/kenaz/commands//347/224/242/345/223/201.md +1 -1
  73. package/core/plugins/kenaz/guidance.md +1 -1
  74. package/core/plugins/kenaz/scripts/sync.js +1 -1
  75. package/core/plugins/kenaz/scripts/ygg.js +6 -0
  76. package/core/plugins/kenaz/skills/architect_agent/SKILL.md +11 -92
  77. package/core/plugins/kenaz/skills/assessment_agent/SKILL.md +0 -1
  78. package/core/plugins/kenaz/skills/backend_engineer/SKILL.md +3 -6
  79. package/core/plugins/kenaz/skills/code_reviewer/SKILL.md +1 -1
  80. package/core/plugins/kenaz/skills/code_reviewer/patterns.yaml +1 -1
  81. package/core/plugins/kenaz/skills/designer/SKILL.md +3 -6
  82. package/core/plugins/kenaz/skills/dev_agent/SKILL.md +30 -491
  83. package/core/plugins/kenaz/skills/developer/SKILL.md +3 -6
  84. package/core/plugins/kenaz/skills/feature_agent/SKILL.md +3 -17
  85. package/core/plugins/kenaz/skills/product_manager/SKILL.md +29 -1064
  86. package/core/plugins/kenaz/skills/qa_engineer/SKILL.md +12 -17
  87. package/core/plugins/kenaz/skills/spec_optimizer/SKILL.md +25 -275
  88. package/core/plugins/kenaz/skills/sre_agent/SKILL.md +3 -6
  89. package/package.json +6 -6
  90. package/core/.claude/commands/archive.md +0 -24
  91. package/core/.claude/commands/init.md +0 -112
  92. package/core/.claude/commands/legacy_dev.md +0 -18
  93. package/core/.claude/commands/product-review.md +0 -131
  94. package/core/.claude/commands/strategy.md +0 -141
  95. package/core/.claude/commands/sunny.md +0 -1
  96. package/core/.claude/commands//347/224/242/345/223/201/346/252/242/350/246/226.md +0 -129
  97. package/core/.claude/commands//351/200/262/345/272/246.md +0 -15
  98. package/core/.claude/hooks/__tests__/substrate.test.js +0 -122
  99. package/core/.claude/hooks/_substrate-paths.js +0 -95
  100. package/core/.claude/hooks/context-check.js +0 -51
  101. package/core/.claude/hooks/fatigue-check.js +0 -52
  102. package/core/.claude/hooks/handoff-snapshot-on-commit.js +0 -154
  103. package/core/.claude/hooks/handoff-snapshot-on-question.js +0 -158
  104. package/core/.claude/hooks/handoff-staleness.js +0 -197
  105. package/core/.claude/hooks/jev-thalamus-context.js +0 -17
  106. package/core/.claude/hooks/jev-thalamus-context.test.js +0 -41
  107. package/core/.claude/hooks/lease-release.js +0 -119
  108. package/core/.claude/hooks/lease-touch.js +0 -96
  109. package/core/.claude/hooks/reflex-feedback.js +0 -5
  110. package/core/.claude/hooks/session-init.ps1 +0 -49
  111. package/core/.claude/hooks/sound-event.js +0 -70
  112. package/core/.claude/hooks/sound-event.sh +0 -37
  113. package/core/.claude/hooks/stream-delta.js +0 -169
  114. package/core/.claude/no-hooks.settings.json +0 -3
  115. package/core/.claude/skills/legacy_dev/SKILL.md +0 -202
  116. package/core/.claude/skills/sunny/SKILL.md +0 -74
  117. package/core/.collaboration/cli/commands/assign.js +0 -39
  118. package/core/.collaboration/cli/commands/claim.js +0 -33
  119. package/core/.collaboration/cli/commands/complete.js +0 -44
  120. package/core/.collaboration/cli/commands/create.js +0 -110
  121. package/core/.collaboration/cli/commands/get.js +0 -83
  122. package/core/.collaboration/cli/commands/index.js +0 -52
  123. package/core/.collaboration/cli/commands/list.js +0 -51
  124. package/core/.collaboration/cli/commands/lock.js +0 -45
  125. package/core/.collaboration/cli/commands/rebuild.js +0 -39
  126. package/core/.collaboration/cli/commands/search.js +0 -61
  127. package/core/.collaboration/cli/commands/stats.js +0 -61
  128. package/core/.collaboration/cli/commands/transfer.js +0 -41
  129. package/core/.collaboration/cli/commands/unlock.js +0 -48
  130. package/core/.collaboration/cli/formatters/help-formatter.js +0 -70
  131. package/core/.collaboration/cli/formatters/index.js +0 -7
  132. package/core/.collaboration/cli/task-cli.js +0 -46
  133. package/core/.collaboration/cli/utils/arg-parser.js +0 -74
  134. package/core/.collaboration/cli/utils/git-user.js +0 -25
  135. package/core/.collaboration/cli/utils/index.js +0 -9
  136. package/core/.collaboration/cli/utils/output.js +0 -10
  137. package/core/.collaboration/config/default.yaml +0 -189
  138. package/core/.collaboration/core/conflict-resolver.js +0 -461
  139. package/core/.collaboration/core/conflict-resolver.test.js +0 -389
  140. package/core/.collaboration/core/migrate-legacy.js +0 -260
  141. package/core/.collaboration/docs/API.md +0 -787
  142. package/core/.collaboration/docs/ARCHITECTURE.md +0 -596
  143. package/core/.collaboration/docs/FAQ.md +0 -695
  144. package/core/.collaboration/docs/MIGRATION.md +0 -804
  145. package/core/.collaboration/docs/examples/README.md +0 -320
  146. package/core/.collaboration/docs/examples/advanced-queries.js +0 -261
  147. package/core/.collaboration/docs/examples/basic-usage.js +0 -184
  148. package/core/.collaboration/docs/examples/team-workflow.js +0 -352
  149. package/core/.failure/agent-execution/FAIL-001-agent-no-output.yaml +0 -391
  150. package/core/.failure/agent-execution/FAIL-007-pm-lead-wrong-team-invocation.yaml +0 -0
  151. package/core/.failure/agent-execution/FAIL-010-phase0-poem-format-skipped.yaml +0 -28
  152. package/core/.failure/agent-execution/FAIL-010-skipping-cognitive-checkpoint-after-verification.yaml +0 -59
  153. package/core/.failure/agent-execution/FAIL-012-grep-shortcut-during-investigation.yaml +0 -85
  154. package/core/.failure/architecture/FAIL-006-python-version-compatibility.yaml +0 -445
  155. package/core/.failure/pipeline/FAIL-003-queue-pollution.yaml +0 -335
  156. package/core/.failure/pipeline/README.md +0 -95
  157. package/core/.failure/retired/FAIL-009-skipping-synapse-pulse-before-code-change.yaml +0 -49
  158. package/core/.failure/tools/USAGE_GUIDE.md +0 -323
  159. package/core/.failure/tools/check_failures.ps1 +0 -387
  160. package/core/.failure/tools/log_failure.ps1 +0 -474
  161. package/core/.formation/.episode-input.json +0 -10
  162. package/core/.formation/.merge-lock +0 -1
  163. package/core/.formation/lead.yaml +0 -118
  164. package/core/.formation/legacy.bak/designer.yaml +0 -57
  165. package/core/.formation/legacy.bak/pm.yaml +0 -57
  166. package/core/.formation/legacy.bak/qa.yaml +0 -57
  167. package/core/.formation/legacy.bak/review.yaml +0 -62
  168. package/core/.formation/legacy.bak/scheduler.yaml +0 -129
  169. package/core/.formation/legacy.bak/sre.yaml +0 -57
  170. package/core/.formation/role-map.yaml +0 -274
  171. package/core/.formation/roles/_shared/modules/code_review.yaml +0 -98
  172. package/core/.formation/roles/_shared/modules/security.yaml +0 -103
  173. package/core/.formation/roles/_shared/modules/testing.yaml +0 -14
  174. package/core/.formation/roles/backend/role.yaml +0 -93
  175. package/core/.formation/roles/code_reviewer/role.yaml +0 -102
  176. package/core/.formation/roles/database_optimizer/role.yaml +0 -107
  177. package/core/.formation/roles/designer/role.yaml +0 -66
  178. package/core/.formation/roles/developer/role.yaml +0 -75
  179. package/core/.formation/roles/frontend/role.yaml +0 -134
  180. package/core/.formation/roles/incident_response/role.yaml +0 -89
  181. package/core/.formation/roles/qa/role.yaml +0 -89
  182. package/core/.formation/roles/security/role.yaml +0 -87
  183. package/core/.formation/roles/sre/role.yaml +0 -66
  184. package/core/.formation/skills/coordinator.yaml +0 -52
  185. package/core/.formation/solo/diagnosis.yaml +0 -78
  186. package/core/.formation/solo/strategy.yaml +0 -121
  187. package/core/.formation/tests/hello.txt +0 -2
  188. package/core/.formation/tools/coordinator.js +0 -350
  189. package/core/.formation/tools/jev-correction.js +0 -214
  190. package/core/.formation/tools/jev-correction.test.js +0 -178
  191. package/core/.formation/tools/log-reader.js +0 -232
  192. package/core/.formation/tools/revert-daemon-state.js +0 -162
  193. package/core/.formation/tools/test-drift.js +0 -148
  194. package/core/.formation/unit/heimdall.yaml +0 -96
  195. package/core/.formation/unit/plan.yaml +0 -67
  196. package/core/.formation/unit/think.yaml +0 -58
  197. package/core/.kenaz/MUNINN_SNAPSHOT9_EPISODE.json +0 -32
  198. package/core/.kenaz/MUNINN_SNAPSHOT9_RUNE.json +0 -23
  199. package/core/.kenaz/MUNINN_SNAPSHOT9_SUMMARY.md +0 -89
  200. package/core/.kenaz/ash_TASK_1428-20260507.json +0 -14
  201. package/core/.kenaz/muninn_episode_write.ps1 +0 -17
  202. package/core/.kenaz/muninn_snapshot11_rune_candidates.md +0 -63
  203. package/core/.kenaz/muninn_snapshot1_rune_candidates.md +0 -49
  204. package/core/.kenaz/runes_TASK_1428.json +0 -57
  205. package/core/.kenaz/tmp_heimdall_proposal_8d3e392.json +0 -13
  206. package/core/.kenaz/tmp_props.json +0 -1
  207. package/core/.kenaz/tmp_sounddrop_t1_prompt.txt +0 -371
  208. package/core/.rule/MECHANIZED.md +0 -61
  209. package/core/.rule/general/cortex-memory-recall.yaml +0 -446
  210. package/core/.rule/general/pipeline.yaml +0 -246
  211. package/core/.rule/general/sunny-access-control.yaml +0 -60
  212. package/core/.rule/general/system-invariants.yaml +0 -231
  213. package/core/.rule/pipeline/PPL-002-completed-task-archival.yaml +0 -528
  214. package/core/.rule/pipeline/auto-update.yaml +0 -282
  215. package/core/.rule/pipeline/task-execution.yaml +0 -365
  216. package/core/.specialist/Ansuz/concepts/phase_protocol.yaml +0 -65
  217. package/core/.specialist/Ansuz/experiments/boot_ablation_replay.js +0 -197
  218. package/core/.specialist/Ansuz/tools/bootstrap-anchors.js +0 -289
  219. package/core/.specialist/Ansuz/workflow.yaml +0 -1225
  220. package/core/.specialist/experiments/rg_benchmark.js +0 -523
  221. package/core/.specialist/experiments/rg_benchmark_results.json +0 -27
  222. package/core/.specialist/tools/jev-optional-context.js +0 -107
  223. package/core/.specialist/tools/jev-optional-context.test.js +0 -152
  224. package/core/.specialist/tools/memory-action-log.js +0 -839
  225. package/core/.specialist/tools/phase-gate.js +0 -3534
  226. package/core/.specialist/tools/phase-gate.test.js +0 -85
  227. package/core/.specialist/tools/precompute-runner.js +0 -444
  228. package/core/.specialist/tools/rule-engine.js +0 -621
  229. package/core/.specialist/tools/task-bridge-jev.test.js +0 -170
  230. package/core/.synapse/memory-shared.json.sync +0 -1
  231. package/core/.system/agent-skills/README.md +0 -724
  232. package/core/.system/cli-tools/README.md +0 -724
  233. package/core/.system/cortex/MODULES.md +0 -1046
  234. package/core/.system/dashboard/FRONTEND.md +0 -812
  235. package/core/.system/dashboard/README.md +0 -737
  236. package/core/.system/failure/README.md +0 -723
  237. package/core/.system/formation/LEGACY_SKILLS.md +0 -974
  238. package/core/.system/formation/POST_COMPLETE.md +0 -602
  239. package/core/.system/formation/README.md +0 -1094
  240. package/core/.system/formation/TOOLS_REFERENCE.md +0 -1145
  241. package/core/.system/kenaz/README.md +0 -787
  242. package/core/.system/memory/README.md +0 -719
  243. package/core/.system/pipeline/README.md +0 -712
  244. package/core/.system/rule/README.md +0 -794
  245. package/core/.system/sunny/README.md +0 -476
  246. package/core/.system/sunny/RULES.json +0 -89
  247. package/core/.system/sunny/knowledge/INDEX.md +0 -37
  248. package/core/.system/sunny/knowledge/agent-teams-api.md +0 -0
  249. package/core/.system/sunny/knowledge/ansuz-specialist.md +0 -500
  250. package/core/.system/sunny/knowledge/claude-cli-spawn.md +0 -177
  251. package/core/.system/sunny/knowledge/collaboration-api.md +0 -925
  252. package/core/.system/sunny/teammates/README.md +0 -107
  253. package/core/.system/sunny/teammates/how_to_use.yaml +0 -101
  254. package/core/.system/sunny/teammates/tools/headless/launcher.js +0 -318
  255. package/core/.system/sunny/teammates/tools/powershell/launcher.js +0 -241
  256. package/core/.system/sunny/teammates/tools/powershell/start.bat +0 -50
  257. package/core/.system/sunny/teammates/tools/utils/env.js +0 -96
  258. package/core/.system/sunny/teammates/tools/utils/format-output.js +0 -329
  259. package/core/.system/sunny/tools.json +0 -101
  260. package/core/dev/scripts/cleanup-queue.js +0 -184
  261. package/core/dev/scripts/cleanup_queue.js +0 -86
  262. package/core/dev/scripts/legacy/README.md +0 -39
  263. package/core/dev/scripts/legacy/dev_agent_scheduler.ps1.bak +0 -536
  264. package/core/dev/scripts/legacy/multi_agent_scheduler.ps1.bak +0 -1978
  265. package/core/dev/scripts/matrix/CLI_README.md +0 -214
  266. package/core/dev/scripts/matrix/README.md +0 -310
  267. package/core/dev/scripts/matrix/package-lock.json +0 -4266
  268. package/core/dev/scripts/matrix/package.json +0 -55
  269. package/core/dev/scripts/matrix/src/abbreviations.ts +0 -295
  270. package/core/dev/scripts/matrix/src/cli/commands/convert.ts +0 -211
  271. package/core/dev/scripts/matrix/src/cli/commands/create.ts +0 -95
  272. package/core/dev/scripts/matrix/src/cli/commands/delete.ts +0 -102
  273. package/core/dev/scripts/matrix/src/cli/commands/list-tags.ts.wip +0 -140
  274. package/core/dev/scripts/matrix/src/cli/commands/manage-tags.ts.wip +0 -173
  275. package/core/dev/scripts/matrix/src/cli/commands/query.ts +0 -261
  276. package/core/dev/scripts/matrix/src/cli/commands/read.ts +0 -77
  277. package/core/dev/scripts/matrix/src/cli/commands/stats.ts.wip +0 -168
  278. package/core/dev/scripts/matrix/src/cli/commands/tokens.ts.wip +0 -126
  279. package/core/dev/scripts/matrix/src/cli/commands/update.ts +0 -147
  280. package/core/dev/scripts/matrix/src/cli/commands/validate.ts +0 -275
  281. package/core/dev/scripts/matrix/src/cli/index.ts +0 -350
  282. package/core/dev/scripts/matrix/src/cli/utils/file-handler.ts +0 -72
  283. package/core/dev/scripts/matrix/src/cli/utils/logger.ts +0 -65
  284. package/core/dev/scripts/matrix/src/index.ts +0 -62
  285. package/core/dev/scripts/matrix/src/indexer/tag-indexer.ts +0 -165
  286. package/core/dev/scripts/matrix/src/parser.ts +0 -281
  287. package/core/dev/scripts/matrix/src/serializer.ts +0 -151
  288. package/core/dev/scripts/matrix/src/validator.ts +0 -301
  289. package/core/dev/scripts/matrix/tests/abbreviations.test.ts +0 -122
  290. package/core/dev/scripts/matrix/tests/cli.test.ts +0 -177
  291. package/core/dev/scripts/matrix/tests/convert.test.ts +0 -143
  292. package/core/dev/scripts/matrix/tests/parser.test.ts +0 -203
  293. package/core/dev/scripts/matrix/tests/query.test.ts +0 -85
  294. package/core/dev/scripts/matrix/tests/serializer.test.ts +0 -197
  295. package/core/dev/scripts/matrix/tests/validate.test.ts +0 -141
  296. package/core/dev/scripts/matrix/tests/validator.test.ts +0 -167
  297. package/core/dev/scripts/matrix/tsconfig.json +0 -20
  298. package/core/dev/scripts/matrix/types/index.d.ts +0 -111
  299. package/core/dev/scripts/matrix/types/index.d.ts.map +0 -1
  300. package/core/dev/scripts/matrix/types/index.js +0 -8
  301. package/core/dev/scripts/matrix/types/index.js.map +0 -1
  302. package/core/dev/scripts/matrix/types/index.ts +0 -124
  303. package/core/dev/scripts/memory-usage-report.js +0 -152
  304. package/core/dev/scripts/probe/ansuz-scaffold-ablation.js +0 -579
  305. package/core/dev/scripts/probe/ansuz-scaffold-ablation.test.js +0 -244
  306. package/core/dev/scripts/probe/hook-latency-probe.js +0 -315
  307. package/core/dev/scripts/probe/hook-latency-probe.test.js +0 -105
  308. package/core/dev/scripts/probe/prediction-signal-auc.js +0 -483
  309. package/core/dev/scripts/probe/prediction-signal-auc.test.js +0 -200
  310. package/core/dev/scripts/test-pty-ws-tunnel.js +0 -229
  311. package/core/dev/scripts/validate_pipeline.js +0 -197
  312. package/core/dev/spikes/task2145-evidence-20261004/backend-log-excerpt.txt +0 -56
  313. package/core/dev/spikes/task2145-evidence-20261004/graph.shadow +0 -0
  314. package/core/dev/spikes/task2145-evidence-20261004/graph.wal +0 -0
  315. package/core/dev/spikes/task2145-evidence-20261004/graph_corrupt_suspect.marker +0 -1
  316. package/core/plugins/kenaz/commands/strategy.md +0 -141
@@ -1,57 +0,0 @@
1
- skill: pm
2
- formation: legacy
3
- version: "1.0"
4
-
5
- name: Product Manager
6
- description: 需求分析。PRD 撰寫、任務拆解、用戶故事、驗收標準定義。
7
-
8
- role:
9
- identity: |
10
- 你是產品經理。分析需求、撰寫 PRD、拆解任務、定義驗收標準。
11
- 確保需求清晰、可執行、有明確的完成定義。
12
- priority: 產出可執行的任務定義,而非完美的文檔。
13
-
14
- input:
15
- required:
16
- - task: 任務 ID 或需求描述
17
- optional:
18
- - spec: 產品規格參考(dev/PRODUCT_SPEC.md)
19
- - context: 背景資訊
20
-
21
- output:
22
- primary: 任務拆解(TASK_XXX.yaml 格式)或 PRD 文件
23
- secondary: 優先級建議、依賴分析
24
-
25
- behavior:
26
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
27
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
28
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
29
- - 先理解用戶目標再拆解任務
30
- - 每個任務有明確的驗收標準
31
- - 任務粒度適中(15-20 分鐘可完成)
32
- - 標示依賴關係和 scope_paths
33
- - 使用 task-api.js 建立任務卡
34
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
35
-
36
- collaboration:
37
- task_api: node .collaboration/core/task-api.js
38
-
39
- workflow:
40
- - step: 讀取任務
41
- run: node .collaboration/core/task-api.js get {task_id}
42
-
43
- - step: 認領任務
44
- run: node .collaboration/core/task-api.js claim {task_id}
45
-
46
- - step: 需求分析
47
- actions:
48
- - 閱讀 dev/PRODUCT_SPEC.md 了解產品目標
49
- - 分析需求並拆解為可執行任務
50
- - 使用 task-api.js create 建立子任務
51
- - 定義依賴和優先級
52
-
53
- - step: 完成任務
54
- run: node .collaboration/core/task-api.js complete {task_id}
55
-
56
- on_blocked:
57
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,57 +0,0 @@
1
- skill: qa
2
- formation: legacy
3
- version: "1.0"
4
-
5
- name: QA Engineer
6
- description: 測試與品質保證。測試策略、單元測試、整合測試、缺陷追蹤。
7
-
8
- role:
9
- identity: |
10
- 你是 QA 工程師。撰寫測試案例、執行驗證、追蹤缺陷。
11
- 確保功能正確、邊界條件覆蓋、回歸測試通過。
12
- priority: 找出問題並驗證修復,而非完美覆蓋率。
13
-
14
- input:
15
- required:
16
- - task: 任務 ID 或測試需求描述
17
- optional:
18
- - scope: 測試範圍(模組或功能)
19
- - test_type: 測試類型(unit / integration / e2e)
20
-
21
- output:
22
- primary: 測試檔案或測試報告
23
- secondary: 缺陷清單、覆蓋率摘要
24
-
25
- behavior:
26
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
27
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
28
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
29
- - 先理解功能需求再設計測試案例
30
- - 覆蓋正常路徑和邊界條件
31
- - 使用專案現有的測試框架
32
- - 發現 Bug 時記錄重現步驟
33
- - 測試要可獨立執行,不依賴外部狀態
34
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
35
-
36
- collaboration:
37
- task_api: node .collaboration/core/task-api.js
38
-
39
- workflow:
40
- - step: 讀取任務
41
- run: node .collaboration/core/task-api.js get {task_id}
42
-
43
- - step: 認領任務
44
- run: node .collaboration/core/task-api.js claim {task_id}
45
-
46
- - step: 測試執行
47
- actions:
48
- - 分析功能需求和驗收標準
49
- - 設計測試案例
50
- - 撰寫並執行測試
51
- - 記錄結果
52
-
53
- - step: 完成任務
54
- run: node .collaboration/core/task-api.js complete {task_id}
55
-
56
- on_blocked:
57
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,62 +0,0 @@
1
- skill: review
2
- formation: legacy
3
- version: "1.0"
4
-
5
- name: Product Review
6
- description: |
7
- 專案檢視。分析 PRODUCT_SPEC 與當前實作狀態,判斷是否需要新任務或已完成。
8
- 用於 self-enhancement 模式的自動化循環。
9
-
10
- role:
11
- identity: |
12
- 你是專案檢視員。你的工作是分析產品規格與當前進度,
13
- 判斷是否需要建立新任務、或專案已達成目標。
14
- priority: 精準判斷專案完成度,避免過度開發或遺漏功能。
15
-
16
- input:
17
- required:
18
- - spec: 產品規格(dev/PRODUCT_SPEC.md)
19
- optional:
20
- - progress: 進度追蹤(dev/pipeline/PROGRESS.md)
21
- - status: 自我增強狀態(dev/pipeline/SELF_ENHANCEMENT_STATUS.json)
22
-
23
- output:
24
- primary: 更新 SELF_ENHANCEMENT_STATUS.json 的 decision 欄位
25
- secondary: 如有需要,建立新任務到 .collaboration/tasks/backlog/
26
-
27
- behavior:
28
- - 讀取 dev/PRODUCT_SPEC.md 了解產品目標
29
- - 掃描 .collaboration/tasks/ 的各狀態目錄,統計進度
30
- - 比對已完成功能與規格要求
31
- - 判斷:
32
- - "continue" — 有未完成功能,建立新任務
33
- - "complete" — 所有功能已實現
34
- - "complete_with_suggestions" — 核心完成,有優化建議
35
- - 更新 dev/pipeline/SELF_ENHANCEMENT_STATUS.json
36
- - 使用 task-api.js 建立新任務(如需要)
37
-
38
- collaboration:
39
- task_api: node .collaboration/core/task-api.js
40
-
41
- workflow:
42
- - step: 分析產品規格
43
- actions:
44
- - 讀取 dev/PRODUCT_SPEC.md
45
- - 讀取 dev/pipeline/PROGRESS.md(如存在)
46
-
47
- - step: 統計專案進度
48
- run: node .collaboration/core/task-api.js stats
49
-
50
- - step: 比對並判斷
51
- actions:
52
- - 列出已完成的功能
53
- - 找出規格中尚未實現的部分
54
- - 決定 decision 值
55
-
56
- - step: 建立新任務(如需要)
57
- run: node .collaboration/core/task-api.js create --title "..." --priority P1
58
-
59
- - step: 更新狀態
60
- actions:
61
- - 寫入 decision 到 SELF_ENHANCEMENT_STATUS.json
62
- - '格式:{"decision": "continue|complete|complete_with_suggestions", ...}'
@@ -1,129 +0,0 @@
1
- skill: scheduler
2
- formation: legacy
3
- version: "2.0"
4
-
5
- name: Formation Legacy Scheduler
6
- description: |
7
- Formation Lead 排程器 — 以 Formation Lead 身份連續調度任務。
8
- 所有任務透過 Formation Legacy Skill 調度,不使用 /dev 或 /product-review CLI。
9
- 支援 self-enhancement 模式:無待辦時使用 review skill 分析專案。
10
-
11
- role:
12
- identity: |
13
- 你是 Formation Lead 排程器。你的工作是連續調度 Formation subagent 處理待辦任務,
14
- 直到所有任務完成或收到停止信號。
15
- 任務完成由 subagent 自行處理(task-api.js complete),
16
- 你負責 post-complete(archive + git)。
17
- priority: 持續推進任務佇列,確保每個任務都被 Formation 系統執行。
18
-
19
- # 排程器配置
20
- config:
21
- # 並行執行數(同時處理的任務數)
22
- concurrency: 3
23
- # 最大並行上限(安全限制)
24
- max_concurrency: 5
25
- # 首次執行前等待秒數
26
- initial_delay_secs: 5
27
- # 執行間隔(分鐘)— 一輪所有 slot 填滿或完成後到下一輪的間隔
28
- interval_minutes: 20
29
- # 無任務時輪詢間隔(秒)
30
- idle_check_secs: 20
31
- # 提前完成時的等待秒數
32
- early_finish_delay_secs: 30
33
- # 任務超時(分鐘)
34
- dev_timeout_minutes: 60
35
- # review skill 超時(分鐘)
36
- review_timeout_minutes: 30
37
- # Idle watchdog:agent 超過此秒數無 log 輸出則強制終止(0=停用)
38
- idle_timeout_secs: 600
39
- # 是否啟用 self-enhancement(review skill + 自動建立任務)
40
- enable_self_enhancement: false
41
- # 是否啟用遠端任務拉取(Yggdrasil task pool + 直接指派)
42
- enable_remote_pull: false
43
-
44
- # 任務來源路徑
45
- paths:
46
- # Primary(新系統)
47
- collab_base: ".collaboration/tasks"
48
- collab_pending:
49
- - ".collaboration/tasks/backlog"
50
- - ".collaboration/tasks/todo"
51
- collab_done: ".collaboration/tasks/done"
52
- # Legacy(舊系統,仍掃描)
53
- legacy_tasks_dir: "dev/pipeline/tasks"
54
- legacy_completed_dir: "dev/pipeline/completed"
55
- # Scheduler 自身
56
- log_dir: ".formation/logs/legacy"
57
- status_file: "dev/pipeline/SELF_ENHANCEMENT_STATUS.json"
58
- progress_file: "dev/pipeline/PROGRESS.md"
59
-
60
- # 狀態機
61
- states:
62
- - stopped # 未啟動
63
- - waiting # 等待初始延遲或下一輪
64
- - running # 有 slot 正在執行任務(1~N 個並行)
65
- - running_review # 正在執行 review skill
66
- - paused # 執行間隔中
67
- - completed # 所有任務完成
68
- - error # 發生錯誤
69
- - idle # 無待辦且未啟用 self-enhancement
70
-
71
- # 任務選擇策略
72
- task_selector:
73
- # 優先級排序:P0 > P1 > P2 > P3
74
- priority_order: ["P0", "P1", "P2", "P3"]
75
- # 只選擇 status=pending 的任務
76
- status_filter: "pending"
77
- # 檔案格式
78
- file_pattern: "TASK_*.yaml"
79
- # 並行選取:一次選取最多 concurrency 個任務(按優先級排序)
80
- batch_select: true
81
-
82
- # Formation Skill 調度(取代 claude_args)
83
- formation_dispatch:
84
- # 任務角色 → Legacy Skill 對應
85
- role_skill_map:
86
- developer: developer
87
- frontend: frontend
88
- backend: backend
89
- designer: designer
90
- qa: qa
91
- qa_engineer: qa
92
- sre: sre
93
- pm: pm
94
- product_manager: pm
95
- # 預設 skill(未匹配角色時使用)
96
- default_skill: developer
97
- # Self-enhancement 專用
98
- review_skill: review
99
-
100
- # post-complete(Formation Lead 職責)
101
- post_complete:
102
- # archive 保留數量
103
- keep: 10
104
- # 雙系統 archive
105
- archive_new: ".collaboration/tasks/done → archived"
106
- archive_legacy: "dev/pipeline/completed → archived"
107
- # git 分支管理
108
- git_flow: "task/task_xxx → user_branch → (手動) main"
109
-
110
- behavior:
111
- - 掃描 .collaboration + dev/pipeline 按優先級選取最多 concurrency 個 pending 任務
112
- - 並行啟動多個 Formation Legacy Skill subagent(headless 模式)
113
- - 每個 subagent 獨立執行,自行完成任務移動(task-api.js complete)
114
- - 任一 subagent 完成時,Scheduler 立即執行 post-complete(archive + git)
115
- - 空出的 slot 可補入新的 pending 任務(滑動窗口模式)
116
- - 失敗的任務重置為 pending 可重試
117
- - 所有 slot 空閒且無待辦時進入 waiting 或使用 review skill 分析專案
118
-
119
- parallel_execution:
120
- # 滑動窗口:slot 完成即補新任務,不等全部完成
121
- sliding_window: true
122
- # 衝突避免:同一檔案路徑不會被兩個並行任務同時修改
123
- conflict_check: true
124
- # 衝突策略:skip(跳過衝突任務)| queue(排隊等待)
125
- conflict_strategy: queue
126
-
127
- output:
128
- primary: ".formation/logs/legacy/scheduler_YYYY-MM-DD.log"
129
- secondary: "dev/pipeline/SELF_ENHANCEMENT_STATUS.json"
@@ -1,57 +0,0 @@
1
- skill: sre
2
- formation: legacy
3
- version: "1.0"
4
-
5
- name: SRE Agent
6
- description: 基礎設施與部署。Supabase 管理、資料庫遷移、RLS 策略、監控。
7
-
8
- role:
9
- identity: |
10
- 你是 SRE 工程師。管理 Supabase 環境、資料庫遷移、RLS 安全策略、部署流程。
11
- 確保基礎設施穩定可靠。
12
- priority: 安全第一,操作前備份,變更可回滾。
13
-
14
- input:
15
- required:
16
- - task: 任務 ID 或基礎設施需求
17
- optional:
18
- - env: 環境(local / staging / production)
19
- - scope: 影響範圍(table / rls / migration)
20
-
21
- output:
22
- primary: Migration 文件、RLS 策略、部署配置
23
- secondary: 操作日誌、回滾計劃
24
-
25
- behavior:
26
- - 先完成指派的任務(## Task),完成後可用 task-api.js claim 認領下一個任務繼續工作
27
- - 嚴禁直接讀取 .collaboration/tasks/ 目錄。所有任務操作必須透過 task-api.js(list/claim/complete)
28
- - 只能 complete 你自己認領的任務,不要標記其他 agent 的任務為完成
29
- - 操作前確認環境和備份狀態
30
- - Migration 必須可回滾(同時寫 up 和 down)
31
- - RLS 策略預設拒絕,明確允許
32
- - 避免破壞性操作(DROP TABLE 等需要額外確認)
33
- - 記錄所有環境變更
34
- - 禁止執行任何 git 操作(commit、branch、merge)— Git 由 Formation Lead 統一管理
35
-
36
- collaboration:
37
- task_api: node .collaboration/core/task-api.js
38
-
39
- workflow:
40
- - step: 讀取任務
41
- run: node .collaboration/core/task-api.js get {task_id}
42
-
43
- - step: 認領任務
44
- run: node .collaboration/core/task-api.js claim {task_id}
45
-
46
- - step: 基礎設施操作
47
- actions:
48
- - 確認環境狀態
49
- - 執行 Migration 或配置變更
50
- - 驗證變更結果
51
- - 注意:禁止 git 操作,由 Formation Lead 統一管理
52
-
53
- - step: 完成任務
54
- run: node .collaboration/core/task-api.js complete {task_id}
55
-
56
- on_blocked:
57
- run: node .collaboration/core/task-api.js move {task_id} blocked
@@ -1,274 +0,0 @@
1
- # Formation Role Map — 角色對照表
2
- # 所有可用 role 及其對應的 formation skill YAML
3
- # Amelia 判斷 role 時參考此表,dispatch 時用此表解析 --role 路徑
4
- #
5
- # Usage:
6
- # node .formation/tools/dispatch.js --skill=do --task=TASK_XXX --dispatch-mode=subagent
7
- # (此表僅供 Amelia 判斷 role 參考;dispatch.js 不讀取它。headless-v2 已退役)
8
-
9
- version: "2.0"
10
-
11
- # ─────────────────────────────────────────
12
- # Execution Roles(任務執行角色)
13
- # skill_path 指向 roles/{role}/role.yaml(single source of truth)
14
- # ─────────────────────────────────────────
15
-
16
- roles:
17
- developer:
18
- skill_path: roles/developer/role.yaml
19
- name: Developer
20
- identity: 泛用開發者 — 不限前後端,根據任務需求實作變更
21
- strengths:
22
- - 全棧開發能力
23
- - codebase 理解與重構
24
- - 跨模組修改
25
- best_for:
26
- - 跨前後端的功能開發
27
- - 系統整合、工具腳本
28
- - 無法歸類到特定領域的開發任務
29
- not_for:
30
- - 純 UI 設計
31
- - 純基礎設施操作
32
-
33
- frontend:
34
- skill_path: roles/frontend/role.yaml
35
- name: Frontend Developer
36
- identity: 前端開發者 — React/TypeScript、組件實作、UI 整合
37
- strengths:
38
- - React + TypeScript
39
- - 組件化開發
40
- - UI 互動邏輯
41
- - 樣式調整
42
- best_for:
43
- - UI 組件實作
44
- - 頁面開發
45
- - 前端效能優化
46
- not_for:
47
- - API 設計
48
- - 資料庫操作
49
-
50
- backend:
51
- skill_path: roles/backend/role.yaml
52
- name: Backend Engineer
53
- identity: 後端工程師 — API 設計、資料庫 Schema、Python/FastAPI
54
- strengths:
55
- - API 設計與實作
56
- - 資料庫 Schema 設計
57
- - 後端業務邏輯
58
- - 安全性與效能
59
- best_for:
60
- - API 開發
61
- - 資料庫遷移
62
- - 後端邏輯實作
63
- not_for:
64
- - UI 開發
65
- - 設計規範
66
-
67
- designer:
68
- skill_path: roles/designer/role.yaml
69
- name: Designer
70
- identity: UI/UX 設計師 — 設計規範、視覺稿、互動設計
71
- strengths:
72
- - 設計規範產出
73
- - 組件規格定義
74
- - 視覺風格設計
75
- - 用戶體驗分析
76
- best_for:
77
- - 設計系統維護
78
- - 新功能設計規範
79
- - UI 審查
80
- not_for:
81
- - 程式碼實作
82
- - 基礎設施操作
83
-
84
- qa:
85
- skill_path: roles/qa/role.yaml
86
- name: QA Engineer
87
- identity: QA 工程師 — 測試策略、單元測試、整合測試
88
- strengths:
89
- - 測試案例撰寫
90
- - 邊界條件分析
91
- - 缺陷追蹤與驗證
92
- - 回歸測試
93
- best_for:
94
- - 測試撰寫與驗證
95
- - Bug 驗證與修復確認
96
- - 品質保證流程
97
- not_for:
98
- - 功能開發
99
- - 設計
100
-
101
- sre:
102
- skill_path: roles/sre/role.yaml
103
- name: SRE Agent
104
- identity: SRE 工程師 — Supabase 管理、資料庫遷移、RLS 策略
105
- strengths:
106
- - 基礎設施管理
107
- - 資料庫遷移
108
- - RLS 安全策略
109
- - 部署流程
110
- best_for:
111
- - Supabase 環境管理
112
- - 部署與監控
113
- - 安全策略設定
114
- not_for:
115
- - 功能開發
116
- - UI 設計
117
-
118
- security:
119
- skill_path: roles/security/role.yaml
120
- name: Security Engineer
121
- identity: 安全工程師 — STRIDE 威脅建模、OWASP 審查、漏洞評估
122
- strengths:
123
- - STRIDE 威脅建模
124
- - OWASP Top 10 審查
125
- - 漏洞評估與修復
126
- - CI/CD 安全掃描
127
- best_for:
128
- - 安全漏洞審查
129
- - 威脅建模
130
- - 認證授權邏輯驗證
131
- not_for:
132
- - 功能開發
133
- - UI 設計
134
-
135
- code_reviewer:
136
- skill_path: roles/code_reviewer/role.yaml
137
- name: Code Reviewer
138
- identity: 資深程式碼審查者 — 三級問題分類(Blocker/Suggestion/Nit)、六維度審查
139
- strengths:
140
- - 三級問題分類系統
141
- - 六維度程式碼審查
142
- - 教育式回饋
143
- - 品質守門
144
- best_for:
145
- - PR/MR 程式碼審查
146
- - 架構設計評估
147
- - 品質標準守門
148
- not_for:
149
- - 功能開發
150
- - 基礎設施操作
151
-
152
- incident_response:
153
- skill_path: roles/incident_response/role.yaml
154
- name: Incident Commander
155
- identity: 事件應變指揮官 — SEV1-4 分級、ICS 框架、Post-Mortem
156
- strengths:
157
- - 事件分級(SEV1-4)
158
- - ICS 應變協調
159
- - Post-Mortem 撰寫
160
- - Runbook 管理
161
- best_for:
162
- - 生產環境事件應變
163
- - 根因分析
164
- - 事後復盤
165
- not_for:
166
- - 功能開發
167
- - UI 設計
168
-
169
- database_optimizer:
170
- skill_path: roles/database_optimizer/role.yaml
171
- name: Database Optimizer
172
- identity: 資料庫效能專家 — PostgreSQL 查詢優化、索引策略、連線池配置
173
- strengths:
174
- - EXPLAIN ANALYZE 解讀與查詢優化
175
- - 索引策略(B-tree、GIN、GiST、partial index)
176
- - N+1 查詢偵測與修復
177
- - 零停機遷移(CONCURRENTLY、reversible migration)
178
- - RLS 效能影響評估
179
- best_for:
180
- - 查詢效能優化(慢查詢修復)
181
- - 索引設計與調優
182
- - 資料庫遷移效能審查
183
- - 連線池與資料庫配置調優
184
- not_for:
185
- - API 業務邏輯開發
186
- - UI 開發
187
- - 基礎設施部署(→ sre)
188
- - Schema 初始設計(→ backend,除非效能相關)
189
-
190
- # ─────────────────────────────────────────
191
- # Solo/Analysis Roles(不遷移 — 非執行 agent)
192
- # ─────────────────────────────────────────
193
-
194
- pm:
195
- skill_path: legacy.bak/pm.yaml
196
- name: Product Manager
197
- identity: 產品經理 — 需求分析、PRD 撰寫、任務拆解
198
- strengths:
199
- - 需求分析
200
- - PRD 撰寫
201
- - 任務拆解
202
- - 驗收標準定義
203
- best_for:
204
- - 產品規劃
205
- - 需求分析
206
- - 任務建立
207
- not_for:
208
- - 程式碼實作
209
- - 基礎設施
210
-
211
- review:
212
- skill_path: legacy.bak/review.yaml
213
- name: Product Review
214
- identity: 專案檢視員 — 分析產品規格與實作狀態
215
- strengths:
216
- - 專案完成度判斷
217
- - 規格對照分析
218
- - 改善建議
219
- best_for:
220
- - 專案檢視
221
- - 進度評估
222
- - self-enhancement 循環
223
- not_for:
224
- - 功能開發
225
-
226
- # ─────────────────────────────────────────
227
- # Advanced Roles(進階分析角色)
228
- # 可搭配 --base=think 或 --base=plan 使用
229
- # ─────────────────────────────────────────
230
-
231
- strategy:
232
- skill_path: solo/strategy.yaml
233
- name: Strategy Solo
234
- identity: 策略分析師 — 六視角深度策略分析
235
- strengths:
236
- - 多角度策略分析
237
- - 風險評估
238
- - 架構決策
239
- best_for:
240
- - 技術方案評估
241
- - 架構決策
242
- - 策略規劃
243
- not_for:
244
- - 直接程式碼實作
245
-
246
- diagnosis:
247
- skill_path: solo/diagnosis.yaml
248
- name: Diagnosis Solo
249
- identity: 診斷分析師 — 四視角根因診斷
250
- strengths:
251
- - 根因分析
252
- - 表象 vs 本質區分
253
- - 修復成本評估
254
- best_for:
255
- - Bug 根因診斷
256
- - 效能問題分析
257
- - 系統異常調查
258
- not_for:
259
- - 新功能開發
260
-
261
- # ─────────────────────────────────────────
262
- # Base Skills(歷史:原 headless-v2 的 --base 選項)
263
- # ─────────────────────────────────────────
264
-
265
- bases:
266
- do:
267
- skill_path: unit/do.yaml
268
- description: 重心在「做」— 接到任務,交付可用的成果
269
- plan:
270
- skill_path: unit/plan.yaml
271
- description: 重心在「規劃」— 拆解問題,交付可執行的行動方案
272
- think:
273
- skill_path: unit/think.yaml
274
- description: 重心在「想」— 深入分析問題,交付有依據的結論