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,724 +0,0 @@
1
- # CLI Tools - Development Scripts Reference
2
-
3
- 本文檔涵蓋所有位於 `dev/scripts/` 的 CLI 工具,包含初始化、排程、維護三大類,並提供 PowerShell 與 Bash 雙平台對照表。
4
-
5
- ---
6
-
7
- ## 目錄
8
-
9
- - [工具分類](#工具分類)
10
- - [初始化類工具](#初始化類工具)
11
- - [INIT_PROJECT](#init_project)
12
- - [INIT_GIT](#init_git)
13
- - [SETUP_RAG](#setup_rag)
14
- - [SETUP_MCP](#setup_mcp)
15
- - [SETUP_GIT_HOOKS](#setup_git_hooks)
16
- - [排程類工具](#排程類工具)
17
- - [START_DEV_AGENT](#start_dev_agent)
18
- - [START_MULTI_AGENT](#start_multi_agent)
19
- - [RUN_ONCE](#run_once)
20
- - [維護類工具](#維護類工具)
21
- - [CLEAN_TASK_QUEUE](#clean_task_queue)
22
- - [ARCHIVE_TASKS](#archive_tasks)
23
- - [SYNC_TASKS](#sync_tasks)
24
- - [參數對照表](#參數對照表)
25
- - [平台兼容性](#平台兼容性)
26
-
27
- ---
28
-
29
- ## 工具分類
30
-
31
- | 類別 | 工具 | 用途 |
32
- |------|------|------|
33
- | **初始化** | INIT_PROJECT | 初始化新專案(清理 Pipeline、重置狀態) |
34
- | | INIT_GIT | 初始化 Git 倉庫(.gitignore、.gitattributes、aliases) |
35
- | | SETUP_RAG | 設置 RAG 引擎(安裝 kenaz-cortex、配置 Git hooks) |
36
- | | SETUP_MCP | 設置 MCP Server(讓 Claude Code 自動使用 RAG) |
37
- | | SETUP_GIT_HOOKS | 配置 Git hooks(RAG 自動索引) |
38
- | **排程** | START_DEV_AGENT | 單 Agent 開發(自我增強迭代模式) |
39
- | | START_MULTI_AGENT | 多 Agent 並行開發(路徑鎖定防衝突) |
40
- | | RUN_ONCE | 單次執行 /dev(不含自我增強循環) |
41
- | **維護** | CLEAN_TASK_QUEUE | 清理 TASK_QUEUE.json 中的已完成任務 |
42
- | | ARCHIVE_TASKS | 封存已完成任務到 .memory/ |
43
- | | SYNC_TASKS | 同步 markdown 任務文件到 TASK_QUEUE.json |
44
-
45
- ---
46
-
47
- ## 初始化類工具
48
-
49
- ### INIT_PROJECT
50
-
51
- **用途**:初始化新專案,清理舊狀態並重置 Pipeline。
52
-
53
- #### 基本使用
54
-
55
- ```powershell
56
- # Windows(批處理腳本)
57
- .\dev\scripts\INIT_PROJECT.bat
58
-
59
- # PowerShell 直接調用
60
- .\dev\scripts\init_project.ps1
61
- ```
62
-
63
- #### PowerShell 參數
64
-
65
- | 參數 | 類型 | 預設值 | 說明 |
66
- |------|------|--------|------|
67
- | `-SkipRAG` | switch | false | 跳過 RAG 環境設置 |
68
- | `-SkipCleanup` | switch | false | 跳過清理舊任務 |
69
- | `-AutoStart` | switch | false | 自動啟動 /產品 流程 |
70
- | `-Quiet` | switch | false | 靜默模式(無互動確認) |
71
- | `-WorkingDirectory` | string | - | 指定工作目錄 |
72
- | `-nopause` | switch | false | 跳過暫停(從 Tauri 調用時使用) |
73
-
74
- #### 範例
75
-
76
- ```powershell
77
- # 跳過 RAG 設置並靜默執行
78
- .\dev\scripts\init_project.ps1 -SkipRAG -Quiet
79
-
80
- # 指定工作目錄
81
- .\dev\scripts\init_project.ps1 -WorkingDirectory "C:\Projects\MyApp"
82
-
83
- # 完整初始化並自動啟動產品流程
84
- .\dev\scripts\init_project.ps1 -AutoStart
85
- ```
86
-
87
- #### 執行內容
88
-
89
- 1. **清理舊 Pipeline 狀態**
90
- - 清空 `dev/pipeline/tasks/`
91
- - 備份並清空 `dev/pipeline/completed/`
92
- - 刪除 `SELF_ENHANCEMENT_STATUS.json`
93
- - 重置 `PROGRESS.md`
94
-
95
- 2. **建立必要目錄**
96
- - `dev/pipeline/tasks/`
97
- - `dev/pipeline/completed/`
98
- - `dev/pipeline/logs/`
99
- - `dev/pipeline/archive/`
100
-
101
- 3. **初始化狀態文件**
102
- - `TASK_QUEUE.json`(空佇列)
103
- - `AGENT_STATE.json`(scheduler status: stopped)
104
- - `LOCK_STATE.json`(空鎖定)
105
- - `PIPELINE_CONFIG.json`(預設配置)
106
-
107
- 4. **複製 Claude Code 配置**(如果來源可用)
108
- - `.claude/`(commands、skills、hooks)
109
- - `.agents/`(外部 skills)
110
- - `.githooks/`(Git hooks)
111
- - `CLAUDE.md`(專案指令)
112
-
113
- 5. **檢查 PRODUCT_SPEC**
114
- - 保留現有 spec 或建立新模板
115
-
116
- ---
117
-
118
- ### INIT_GIT
119
-
120
- **用途**:初始化 Git 倉庫並配置標準化設定。
121
-
122
- #### 基本使用
123
-
124
- ```powershell
125
- # Windows(批處理腳本)
126
- .\dev\scripts\INIT_GIT.bat
127
-
128
- # PowerShell 直接調用
129
- .\dev\scripts\init_git.ps1
130
- ```
131
-
132
- #### PowerShell 參數
133
-
134
- | 參數 | 類型 | 預設值 | 說明 |
135
- |------|------|--------|------|
136
- | `-RemoteUrl` | string | "" | 遠端倉庫 URL |
137
- | `-SkipInitialCommit` | switch | false | 跳過初始 commit |
138
- | `-Force` | switch | false | 強制重新初始化(刪除現有 .git) |
139
- | `-Quiet` | switch | false | 靜默模式 |
140
- | `-WorkingDirectory` | string | - | 工作目錄 |
141
- | `-nopause` | switch | false | 跳過暫停 |
142
-
143
- #### 範例
144
-
145
- ```powershell
146
- # 初始化並設置遠端倉庫
147
- .\dev\scripts\init_git.ps1 -RemoteUrl "https://github.com/user/repo.git"
148
-
149
- # 強制重新初始化
150
- .\dev\scripts\init_git.ps1 -Force
151
-
152
- # 靜默模式,跳過初始 commit
153
- .\dev\scripts\init_git.ps1 -Quiet -SkipInitialCommit
154
- ```
155
-
156
- #### 自動配置內容
157
-
158
- 1. **`.gitignore`**
159
- - Python(`__pycache__/`, `*.pyc`, `venv/`, `.env`)
160
- - Node.js(`node_modules/`, `dist/`, `build/`)
161
- - IDE(`.vscode/`, `.idea/`, `*.swp`)
162
- - Kenaz AI 特定(`.cortex/db/`, `dev/pipeline/logs/`)
163
-
164
- 2. **`.gitattributes`**
165
- - 跨平台換行符標準化
166
- - 二進制文件處理
167
-
168
- 3. **Git aliases**
169
- - `st` = status
170
- - `co` = checkout
171
- - `br` = branch
172
- - `ci` = commit
173
- - `lg` = log --graph --oneline
174
-
175
- ---
176
-
177
- ### SETUP_RAG
178
-
179
- **用途**:設置 RAG 引擎(kenaz-cortex),啟用語義代碼搜索。
180
-
181
- #### 基本使用
182
-
183
- ```powershell
184
- # Windows(批處理腳本)
185
- .\dev\scripts\SETUP_RAG.bat
186
-
187
- # PowerShell 直接調用
188
- .\dev\scripts\setup_rag.ps1
189
- ```
190
-
191
- #### PowerShell 參數
192
-
193
- | 參數 | 類型 | 預設值 | 說明 |
194
- |------|------|--------|------|
195
- | `-SkipInstall` | switch | false | 跳過 pip install |
196
- | `-SkipHooks` | switch | false | 跳過 Git hooks 配置 |
197
- | `-SkipIndex` | switch | false | 跳過初始索引 |
198
- | `-Reindex` | switch | false | 強制重新索引 |
199
- | `-Quiet` | switch | false | 靜默模式 |
200
- | `-WorkingDirectory` | string | - | 工作目錄 |
201
- | `-nopause` | switch | false | 跳過暫停 |
202
-
203
- #### 範例
204
-
205
- ```powershell
206
- # 完整設置 RAG 引擎
207
- .\dev\scripts\setup_rag.ps1
208
-
209
- # 只安裝套件,跳過索引
210
- .\dev\scripts\setup_rag.ps1 -SkipIndex
211
-
212
- # 強制重新索引
213
- .\dev\scripts\setup_rag.ps1 -Reindex
214
-
215
- # 靜默模式完整設置
216
- .\dev\scripts\setup_rag.ps1 -Quiet
217
- ```
218
-
219
- #### 執行內容
220
-
221
- 1. **檢查 Python 環境**(Python 3.10+)
222
- 2. **安裝 kenaz-cortex**(`pip install -e kenaz-cortex/`)
223
- 3. **配置 Git Hooks**(`git config core.hooksPath .githooks`)
224
- 4. **初始化向量索引**(索引代碼庫到 ChromaDB)
225
-
226
- ---
227
-
228
- ### SETUP_MCP
229
-
230
- **用途**:設置 MCP Server,讓 Claude Code 自動使用 RAG。
231
-
232
- #### 基本使用
233
-
234
- ```powershell
235
- # Windows(批處理腳本)
236
- .\dev\scripts\SETUP_MCP.bat
237
-
238
- # PowerShell 直接調用
239
- .\dev\scripts\setup_mcp.ps1
240
- ```
241
-
242
- #### PowerShell 參數
243
-
244
- | 參數 | 類型 | 預設值 | 說明 |
245
- |------|------|--------|------|
246
- | `-WorkingDirectory` | string | - | 工作目錄 |
247
- | `-nopause` | switch | false | 跳過暫停 |
248
-
249
- #### MCP 工具功能
250
-
251
- 設置後,Claude Code 會自動使用以下 MCP 工具:
252
-
253
- | 工具 | 用途 |
254
- |------|------|
255
- | `cortex_search` | 語義代碼搜索 |
256
- | `cortex_context` | 專案結構 Context(自動切換全量/RAG) |
257
- | `cortex_file_chunks` | 文件切片查詢 |
258
- | `cortex_status` | RAG 引擎狀態 |
259
-
260
- #### 自動切換策略
261
-
262
- - **小型專案**(<40k tokens, <20 files)→ 全量 Context
263
- - **大型專案**(>40k tokens 或 >20 files)→ RAG 模式
264
-
265
- ---
266
-
267
- ### SETUP_GIT_HOOKS
268
-
269
- **用途**:配置 Git hooks,實現 RAG 自動索引(post-commit 時更新向量資料庫)。
270
-
271
- #### 基本使用
272
-
273
- ```powershell
274
- # Windows(批處理腳本)
275
- .\dev\scripts\SETUP_GIT_HOOKS.bat
276
-
277
- # PowerShell 直接調用
278
- .\dev\scripts\setup_git_hooks.ps1
279
- ```
280
-
281
- #### 執行內容
282
-
283
- - 設置 `git config core.hooksPath .githooks`
284
- - 啟用 `.githooks/post-commit`(自動更新 RAG 索引)
285
-
286
- ---
287
-
288
- ## 排程類工具
289
-
290
- ### START_DEV_AGENT
291
-
292
- **用途**:啟動單 Agent 開發排程器(自我增強迭代模式)。
293
-
294
- #### 基本使用
295
-
296
- ```powershell
297
- # Windows(批處理腳本)
298
- .\dev\scripts\START_DEV_AGENT.bat
299
-
300
- # PowerShell 直接調用
301
- .\dev\scripts\dev_agent_scheduler.ps1
302
- ```
303
-
304
- #### PowerShell 參數
305
-
306
- | 參數 | 類型 | 預設值 | 說明 |
307
- |------|------|--------|------|
308
- | `-InitialDelaySeconds` | int | 30 | 首次執行前等待秒數 |
309
- | `-IntervalMinutes` | int | 20 | 任務間隔分鐘數 |
310
- | `-EarlyFinishDelaySeconds` | int | 30 | 提早完成時等待秒數 |
311
- | `-TotalRuns` | int | 16 | 最大開發執行次數 |
312
- | `-MaxEnhancementCycles` | int | 3 | 最大自我增強循環次數 |
313
- | `-WorkingDirectory` | string | - | 工作目錄 |
314
- | `-nopause` | switch | false | 跳過暫停 |
315
-
316
- #### 範例
317
-
318
- ```powershell
319
- # 自訂配置:首次等待 60 秒,間隔 30 分鐘,最多 20 次
320
- .\dev\scripts\dev_agent_scheduler.ps1 `
321
- -InitialDelaySeconds 60 `
322
- -IntervalMinutes 30 `
323
- -TotalRuns 20
324
-
325
- # 最多執行 5 輪自我增強循環
326
- .\dev\scripts\dev_agent_scheduler.ps1 -MaxEnhancementCycles 5
327
-
328
- # 快速測試模式(間隔 5 分鐘)
329
- .\dev\scripts\dev_agent_scheduler.ps1 `
330
- -InitialDelaySeconds 10 `
331
- -IntervalMinutes 5 `
332
- -TotalRuns 3
333
- ```
334
-
335
- #### 自我增強流程
336
-
337
- ```
338
- [執行 /dev 開發任務] → [任務完成?]
339
- ↓ 是
340
- [/product-review 分析 PRODUCT_SPEC]
341
- ↓
342
- ┌──────┴──────┐
343
- [需要新功能/測試] [專案已完成]
344
- ↓ ↓
345
- [建立任務,繼續] [結束排程]
346
- ```
347
-
348
- #### 關鍵限制
349
-
350
- - **緊貼 PRODUCT_SPEC**:不可天馬行空開發,只能實現規格中定義的功能
351
- - **最大循環次數**:預設 3 次,防止無限迭代
352
- - **狀態文件**:`dev/pipeline/SELF_ENHANCEMENT_STATUS.json`
353
-
354
- ---
355
-
356
- ### START_MULTI_AGENT
357
-
358
- **用途**:啟動多 Agent 並行開發(路徑鎖定防衝突)。
359
-
360
- #### 基本使用
361
-
362
- ```powershell
363
- # Windows(批處理腳本)
364
- .\dev\scripts\START_MULTI_AGENT.bat
365
-
366
- # PowerShell 直接調用
367
- .\dev\scripts\multi_agent_scheduler.ps1
368
- ```
369
-
370
- #### PowerShell 參數
371
-
372
- | 參數 | 類型 | 預設值 | 說明 |
373
- |------|------|--------|------|
374
- | `-MaxAgents` | int | 3 | 最大並行 Agent 數量 |
375
- | `-PollIntervalSeconds` | int | 30 | 輪詢間隔 |
376
- | `-TaskTimeoutMinutes` | int | 60 | 單任務超時 |
377
- | `-DryRun` | switch | false | 模擬運行(不實際啟動) |
378
- | `-SingleRun` | switch | false | 單次運行(不循環) |
379
- | `-WorkingDirectory` | string | - | 工作目錄 |
380
- | `-nopause` | switch | false | 跳過暫停 |
381
- | `-Standalone` | switch | false | 獨立模式(忽略 Dashboard heartbeat) |
382
-
383
- #### 範例
384
-
385
- ```powershell
386
- # 最多 5 個並行 Agent,每 60 秒輪詢一次
387
- .\dev\scripts\multi_agent_scheduler.ps1 `
388
- -MaxAgents 5 `
389
- -PollIntervalSeconds 60
390
-
391
- # 模擬運行(檢查任務分配邏輯)
392
- .\dev\scripts\multi_agent_scheduler.ps1 -DryRun
393
-
394
- # 單次運行,不循環
395
- .\dev\scripts\multi_agent_scheduler.ps1 -SingleRun
396
-
397
- # 獨立模式(不需要 Dashboard)
398
- .\dev\scripts\multi_agent_scheduler.ps1 -Standalone
399
- ```
400
-
401
- #### 多 Agent 運作原理
402
-
403
- ```
404
- [Task Queue] → [Scheduler 分配無衝突任務]
405
- ↓
406
- ┌───────────────┼───────────────┐
407
- ↓ ↓ ↓
408
- [Agent 1] [Agent 2] [Agent 3]
409
- Branch A Branch B Branch C
410
- Scope: src/api Scope: src/ui Scope: tests/
411
- ↓ ↓ ↓
412
- [路徑鎖定防止衝突,完成後自動釋放]
413
- ```
414
-
415
- #### 路徑衝突檢測規則
416
-
417
- - 路徑包含或被包含 = 衝突
418
- - 範例:`dev/pipeline/` 與 `dev/pipeline/tasks/` 衝突
419
- - 無衝突任務可並行執行
420
-
421
- ---
422
-
423
- ### RUN_ONCE
424
-
425
- **用途**:單次執行 /dev(不含自我增強循環)。
426
-
427
- #### 基本使用
428
-
429
- ```powershell
430
- # Windows(批處理腳本)
431
- .\dev\scripts\RUN_ONCE.bat
432
- ```
433
-
434
- #### 適用場景
435
-
436
- - 測試 /dev 指令
437
- - 手動觸發單次開發循環
438
- - 不需要自我增強的快速開發
439
-
440
- ---
441
-
442
- ## 維護類工具
443
-
444
- ### CLEAN_TASK_QUEUE
445
-
446
- **用途**:清理 `TASK_QUEUE.json` 中的已完成任務。
447
-
448
- #### 基本使用
449
-
450
- ```powershell
451
- # Windows(批處理腳本)
452
- .\dev\scripts\CLEAN_TASK_QUEUE.bat
453
-
454
- # PowerShell 直接調用
455
- .\dev\scripts\clean_task_queue.ps1
456
- ```
457
-
458
- #### PowerShell 參數
459
-
460
- | 參數 | 類型 | 預設值 | 說明 |
461
- |------|------|--------|------|
462
- | `-DryRun` | switch | false | 模擬運行(不修改文件) |
463
- | `-Verbose` | switch | false | 顯示詳細資訊 |
464
- | `-SkipBackup` | switch | false | 跳過備份 |
465
-
466
- #### 範例
467
-
468
- ```powershell
469
- # 模擬運行,查看將清理哪些任務
470
- .\dev\scripts\clean_task_queue.ps1 -DryRun
471
-
472
- # 清理並顯示詳細過程
473
- .\dev\scripts\clean_task_queue.ps1 -Verbose
474
-
475
- # 不備份直接清理(謹慎使用)
476
- .\dev\scripts\clean_task_queue.ps1 -SkipBackup
477
- ```
478
-
479
- #### 執行內容
480
-
481
- 1. 備份 `TASK_QUEUE.json` 到 `dev/pipeline/backups/`
482
- 2. 移除 status = "completed" 的任務
483
- 3. 驗證 JSON 格式
484
-
485
- ---
486
-
487
- ### ARCHIVE_TASKS
488
-
489
- **用途**:封存已完成任務到 `.memory/COMPLETED_TASKS.json`。
490
-
491
- #### 基本使用
492
-
493
- ```powershell
494
- # Windows(批處理腳本)
495
- .\dev\scripts\ARCHIVE_TASKS.bat
496
-
497
- # PowerShell 直接調用
498
- .\dev\scripts\archive_completed_tasks.ps1
499
- ```
500
-
501
- #### PowerShell 參數
502
-
503
- | 參數 | 類型 | 預設值 | 說明 |
504
- |------|------|--------|------|
505
- | `-DryRun` | switch | false | 模擬運行(不實際封存) |
506
- | `-Quiet` | switch | false | 靜默模式(不顯示任務列表) |
507
-
508
- #### 範例
509
-
510
- ```powershell
511
- # 模擬運行,查看將封存哪些任務
512
- .\dev\scripts\archive_completed_tasks.ps1 -DryRun
513
-
514
- # 靜默封存
515
- .\dev\scripts\archive_completed_tasks.ps1 -Quiet
516
- ```
517
-
518
- #### 執行內容
519
-
520
- 1. 讀取 `TASK_QUEUE.json` 中的 completed 任務
521
- 2. 追加到 `.memory/COMPLETED_TASKS.json`
522
- 3. 從 `TASK_QUEUE.json` 移除這些任務
523
-
524
- ---
525
-
526
- ### SYNC_TASKS
527
-
528
- **用途**:同步 markdown 任務文件到 `TASK_QUEUE.json`。
529
-
530
- #### 基本使用
531
-
532
- ```powershell
533
- # Windows(批處理腳本)
534
- .\dev\scripts\SYNC_TASKS.bat
535
-
536
- # PowerShell 直接調用
537
- .\dev\scripts\sync_task_queue.ps1
538
- ```
539
-
540
- #### PowerShell 參數
541
-
542
- | 參數 | 類型 | 預設值 | 說明 |
543
- |------|------|--------|------|
544
- | `-WorkingDirectory` | string | - | 工作目錄 |
545
- | `-nopause` | switch | false | 跳過暫停 |
546
-
547
- #### 執行內容
548
-
549
- - 掃描 `dev/pipeline/tasks/` 的 markdown 文件
550
- - 解析任務 metadata(frontmatter)
551
- - 更新 `TASK_QUEUE.json`
552
-
553
- ---
554
-
555
- ## 參數對照表
556
-
557
- ### 通用參數(所有腳本都支援)
558
-
559
- | 參數 | 說明 | 腳本覆蓋範圍 |
560
- |------|------|-------------|
561
- | `-WorkingDirectory` | 指定工作目錄 | 所有 Tauri 可調用的腳本 |
562
- | `-nopause` | 跳過暫停(非互動模式) | 所有批處理腳本 |
563
- | `-Quiet` | 靜默模式(無確認提示) | 初始化類、維護類 |
564
-
565
- ### 初始化參數對照
566
-
567
- | 功能 | INIT_PROJECT | INIT_GIT | SETUP_RAG |
568
- |------|--------------|----------|-----------|
569
- | 跳過步驟 | `-SkipRAG`, `-SkipCleanup` | `-SkipInitialCommit` | `-SkipInstall`, `-SkipHooks`, `-SkipIndex` |
570
- | 強制執行 | - | `-Force` | `-Reindex` |
571
- | 自動啟動 | `-AutoStart` | - | - |
572
- | 遠端 URL | - | `-RemoteUrl` | - |
573
-
574
- ### 排程參數對照
575
-
576
- | 功能 | START_DEV_AGENT | START_MULTI_AGENT |
577
- |------|-----------------|-------------------|
578
- | 執行頻率 | `-InitialDelaySeconds`, `-IntervalMinutes` | `-PollIntervalSeconds` |
579
- | 執行次數 | `-TotalRuns`, `-MaxEnhancementCycles` | `-SingleRun` |
580
- | 並行控制 | - | `-MaxAgents`, `-TaskTimeoutMinutes` |
581
- | 測試模式 | - | `-DryRun`, `-Standalone` |
582
-
583
- ### 維護參數對照
584
-
585
- | 功能 | CLEAN_TASK_QUEUE | ARCHIVE_TASKS |
586
- |------|------------------|---------------|
587
- | 模擬運行 | `-DryRun` | `-DryRun` |
588
- | 顯示控制 | `-Verbose` | `-Quiet` |
589
- | 備份控制 | `-SkipBackup` | - |
590
-
591
- ---
592
-
593
- ## 平台兼容性
594
-
595
- ### Windows
596
-
597
- 所有腳本提供 `.bat` 批處理包裝器:
598
-
599
- ```powershell
600
- # 批處理腳本(推薦)
601
- .\dev\scripts\INIT_PROJECT.bat
602
- .\dev\scripts\START_DEV_AGENT.bat
603
-
604
- # 直接調用 PowerShell 腳本(進階用法)
605
- powershell -ExecutionPolicy Bypass -File "dev\scripts\init_project.ps1" -Quiet
606
- ```
607
-
608
- ### Linux / macOS
609
-
610
- 直接調用 PowerShell 腳本(需安裝 PowerShell Core):
611
-
612
- ```bash
613
- # 安裝 PowerShell(Ubuntu)
614
- sudo apt-get install -y powershell
615
-
616
- # 安裝 PowerShell(macOS)
617
- brew install --cask powershell
618
-
619
- # 執行腳本
620
- pwsh dev/scripts/init_project.ps1 -Quiet
621
- ```
622
-
623
- ### Git Bash(Windows)
624
-
625
- 可使用批處理腳本或 PowerShell:
626
-
627
- ```bash
628
- # 批處理腳本(推薦)
629
- ./dev/scripts/INIT_PROJECT.bat
630
-
631
- # PowerShell 腳本
632
- powershell -ExecutionPolicy Bypass -File "dev/scripts/init_project.ps1"
633
- ```
634
-
635
- ---
636
-
637
- ## 快速參考
638
-
639
- ### 新專案初始化流程
640
-
641
- ```powershell
642
- # 1. 初始化 Git 倉庫
643
- .\dev\scripts\INIT_GIT.bat
644
-
645
- # 2. 初始化專案
646
- .\dev\scripts\INIT_PROJECT.bat
647
-
648
- # 3. 設置 RAG 引擎(可選)
649
- .\dev\scripts\SETUP_RAG.bat
650
-
651
- # 4. 設置 MCP Server(可選)
652
- .\dev\scripts\SETUP_MCP.bat
653
- ```
654
-
655
- ### 開發排程流程
656
-
657
- ```powershell
658
- # 單 Agent 開發(自我增強模式)
659
- .\dev\scripts\START_DEV_AGENT.bat
660
-
661
- # 多 Agent 並行開發
662
- .\dev\scripts\START_MULTI_AGENT.bat
663
- ```
664
-
665
- ### 維護流程
666
-
667
- ```powershell
668
- # 清理 TASK_QUEUE.json
669
- .\dev\scripts\CLEAN_TASK_QUEUE.bat
670
-
671
- # 封存已完成任務
672
- .\dev\scripts\ARCHIVE_TASKS.bat
673
-
674
- # 同步任務文件
675
- .\dev\scripts\SYNC_TASKS.bat
676
- ```
677
-
678
- ---
679
-
680
- ## 故障排除
681
-
682
- ### PowerShell 執行策略錯誤
683
-
684
- ```powershell
685
- # 臨時解除限制
686
- Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
687
-
688
- # 或使用批處理腳本(自動繞過)
689
- .\dev\scripts\INIT_PROJECT.bat
690
- ```
691
-
692
- ### Tauri 調用失敗
693
-
694
- 檢查以下項目:
695
-
696
- 1. 確保使用 `-nopause` 參數(避免腳本等待輸入)
697
- 2. 確保 `KENAZ_PROJECT_PATH` 環境變數正確設置
698
- 3. 檢查 `multi_agent_batch.log` 或 `multi_agent_startup.log`
699
-
700
- ### Git Hooks 不生效
701
-
702
- ```powershell
703
- # 重新配置 Git hooks
704
- .\dev\scripts\SETUP_GIT_HOOKS.bat
705
-
706
- # 驗證配置
707
- git config --get core.hooksPath
708
- # 應該輸出:.githooks
709
- ```
710
-
711
- ---
712
-
713
- ## 相關文檔
714
-
715
- - **初始化指南**:`CLAUDE.md#CLI 工具`
716
- - **排程系統**:`CLAUDE.md#排程腳本(自我增強模式)`
717
- - **多 Agent 開發**:`CLAUDE.md#多 Agent 並行開發`
718
- - **RAG 系統**:`.system/rag/README.md`(待建立)
719
- - **Pipeline 系統**:`.system/pipeline/README.md`
720
-
721
- ---
722
-
723
- **最後更新**:2026-02-19
724
- **維護者**:Kenaz AI Team