create-principles-disciple 1.73.0 → 1.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +24 -0
  3. package/console/dist/server/index.js +13 -1
  4. package/console/dist/server/routes/agents.js +3 -118
  5. package/console/dist/server/routes/update-history.d.ts +12 -0
  6. package/console/dist/server/routes/update-history.js +52 -0
  7. package/console/dist/server/routes/update.d.ts +10 -0
  8. package/console/dist/server/routes/update.js +435 -0
  9. package/console/dist/ui/App.js +2 -1
  10. package/console/dist/ui/components/UpdateBanner.d.ts +1 -0
  11. package/console/dist/ui/components/UpdateBanner.js +41 -0
  12. package/console/dist/ui/components/UpdateProgressDialog.d.ts +12 -0
  13. package/console/dist/ui/components/UpdateProgressDialog.js +28 -0
  14. package/console/dist/ui/i18n/en.json +0 -1
  15. package/console/dist/ui/i18n/zh-CN.json +0 -1
  16. package/console/dist/ui/pages/AgentsPage.js +3 -17
  17. package/console/dist/ui/pages/TasksPage.js +0 -1
  18. package/console/dist/ui/pages/UpdatePage.d.ts +1 -0
  19. package/console/dist/ui/pages/UpdatePage.js +142 -0
  20. package/console/dist/web/assets/app.css +7 -0
  21. package/console/dist/web/assets/app.js +456 -173
  22. package/console/package.json +2 -0
  23. package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.d.ts +2 -0
  24. package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.d.ts.map +1 -0
  25. package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js +270 -0
  26. package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js.map +1 -0
  27. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +1 -1
  28. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
  29. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +4 -3
  30. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -1
  31. package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts +13 -0
  32. package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts.map +1 -0
  33. package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js +266 -0
  34. package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js.map +1 -0
  35. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +3 -7
  36. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -1
  37. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js +7 -19
  38. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +1 -1
  39. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +97 -15
  40. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +1 -1
  41. package/core/dist/runtime-v2/diagnostician-output.d.ts +0 -10
  42. package/core/dist/runtime-v2/diagnostician-output.d.ts.map +1 -1
  43. package/core/dist/runtime-v2/diagnostician-output.js +5 -10
  44. package/core/dist/runtime-v2/diagnostician-output.js.map +1 -1
  45. package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts +6 -1
  46. package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -1
  47. package/core/dist/runtime-v2/diagnostician-prompt-builder.js +23 -15
  48. package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -1
  49. package/dist/index.js +0 -0
  50. package/dist/installer.d.ts.map +1 -1
  51. package/dist/installer.js +67 -0
  52. package/dist/installer.js.map +1 -1
  53. package/dist/uninstaller.d.ts +0 -5
  54. package/dist/uninstaller.d.ts.map +1 -1
  55. package/dist/uninstaller.js +53 -8
  56. package/dist/uninstaller.js.map +1 -1
  57. package/dist/updater.d.ts +45 -0
  58. package/dist/updater.d.ts.map +1 -0
  59. package/dist/updater.js +333 -0
  60. package/dist/updater.js.map +1 -0
  61. package/dist/utils/env.d.ts +6 -0
  62. package/dist/utils/env.d.ts.map +1 -1
  63. package/dist/utils/env.js +54 -0
  64. package/dist/utils/env.js.map +1 -1
  65. package/package.json +6 -2
  66. package/pd-cli/dist/index.js +4 -1
  67. package/pd-cli/dist/index.js.map +1 -1
  68. package/pd-cli/package.json +2 -2
  69. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +2 -2
  70. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +2 -2
  71. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts +0 -2
  72. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts.map +0 -1
  73. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js +0 -215
  74. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js.map +0 -1
  75. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts +0 -2
  76. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts.map +0 -1
  77. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js +0 -92
  78. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js.map +0 -1
  79. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts +0 -2
  80. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts.map +0 -1
  81. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js +0 -134
  82. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js.map +0 -1
  83. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts +0 -2
  84. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts.map +0 -1
  85. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js +0 -226
  86. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js.map +0 -1
  87. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts +0 -3
  88. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts.map +0 -1
  89. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.js +0 -5
  90. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.js.map +0 -1
  91. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts +0 -4
  92. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts.map +0 -1
  93. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.js +0 -81
  94. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.js.map +0 -1
  95. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts +0 -29
  96. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts.map +0 -1
  97. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.js +0 -15
  98. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.js.map +0 -1
  99. package/core/dist/runtime-v2/idle-trigger/index.d.ts +0 -5
  100. package/core/dist/runtime-v2/idle-trigger/index.d.ts.map +0 -1
  101. package/core/dist/runtime-v2/idle-trigger/index.js +0 -4
  102. package/core/dist/runtime-v2/idle-trigger/index.js.map +0 -1
  103. package/core/dist/runtime-v2/nocturnal/candidate-scoring.d.ts +0 -486
  104. package/core/dist/runtime-v2/nocturnal/candidate-scoring.d.ts.map +0 -1
  105. package/core/dist/runtime-v2/nocturnal/candidate-scoring.js +0 -493
  106. package/core/dist/runtime-v2/nocturnal/candidate-scoring.js.map +0 -1
  107. package/core/dist/runtime-v2/nocturnal/index.d.ts +0 -9
  108. package/core/dist/runtime-v2/nocturnal/index.d.ts.map +0 -1
  109. package/core/dist/runtime-v2/nocturnal/index.js +0 -5
  110. package/core/dist/runtime-v2/nocturnal/index.js.map +0 -1
  111. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts +0 -185
  112. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts.map +0 -1
  113. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.js +0 -912
  114. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.js.map +0 -1
  115. package/core/dist/runtime-v2/nocturnal/snapshot-contract.d.ts +0 -192
  116. package/core/dist/runtime-v2/nocturnal/snapshot-contract.d.ts.map +0 -1
  117. package/core/dist/runtime-v2/nocturnal/snapshot-contract.js +0 -185
  118. package/core/dist/runtime-v2/nocturnal/snapshot-contract.js.map +0 -1
  119. package/core/dist/runtime-v2/nocturnal/trinity-types.d.ts +0 -421
  120. package/core/dist/runtime-v2/nocturnal/trinity-types.d.ts.map +0 -1
  121. package/core/dist/runtime-v2/nocturnal/trinity-types.js +0 -182
  122. package/core/dist/runtime-v2/nocturnal/trinity-types.js.map +0 -1
  123. package/pd-cli/dist/commands/runtime-idle-trigger.d.ts +0 -12
  124. package/pd-cli/dist/commands/runtime-idle-trigger.d.ts.map +0 -1
  125. package/pd-cli/dist/commands/runtime-idle-trigger.js +0 -102
  126. package/pd-cli/dist/commands/runtime-idle-trigger.js.map +0 -1
  127. package/plugin/dist/bundle.js +0 -2424
  128. package/plugin/dist/core/trajectory/index.js +0 -1804
  129. package/plugin/dist/openclaw.plugin.json +0 -65
  130. package/plugin/dist/templates/langs/en/core/AGENTS.md +0 -205
  131. package/plugin/dist/templates/langs/en/core/BOOT.md +0 -60
  132. package/plugin/dist/templates/langs/en/core/BOOTSTRAP.md +0 -273
  133. package/plugin/dist/templates/langs/en/core/HEARTBEAT.md +0 -74
  134. package/plugin/dist/templates/langs/en/core/IDENTITY.md +0 -8
  135. package/plugin/dist/templates/langs/en/core/PRINCIPLES.md +0 -10
  136. package/plugin/dist/templates/langs/en/core/SOUL.md +0 -46
  137. package/plugin/dist/templates/langs/en/core/TOOLS.md +0 -15
  138. package/plugin/dist/templates/langs/en/core/USER.md +0 -10
  139. package/plugin/dist/templates/langs/en/pain/00_seed_samples.md +0 -23
  140. package/plugin/dist/templates/langs/en/pain_dictionary.json +0 -22
  141. package/plugin/dist/templates/langs/en/principles/THINKING_OS.md +0 -64
  142. package/plugin/dist/templates/langs/en/skills/admin/SKILL.md +0 -39
  143. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
  144. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
  145. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +0 -67
  146. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
  147. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
  148. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
  149. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
  150. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
  151. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
  152. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
  153. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +0 -2
  154. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
  155. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
  156. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
  157. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
  158. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
  159. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
  160. package/plugin/dist/templates/langs/en/skills/bootstrap-tools/SKILL.md +0 -53
  161. package/plugin/dist/templates/langs/en/skills/deductive-audit/SKILL.md +0 -36
  162. package/plugin/dist/templates/langs/en/skills/evolution-framework-update/SKILL.md +0 -31
  163. package/plugin/dist/templates/langs/en/skills/evolve-system/SKILL.md +0 -46
  164. package/plugin/dist/templates/langs/en/skills/evolve-task/SKILL.md +0 -83
  165. package/plugin/dist/templates/langs/en/skills/feedback/SKILL.md +0 -51
  166. package/plugin/dist/templates/langs/en/skills/init-strategy/SKILL.md +0 -54
  167. package/plugin/dist/templates/langs/en/skills/inject-rule/SKILL.md +0 -19
  168. package/plugin/dist/templates/langs/en/skills/manage-okr/SKILL.md +0 -96
  169. package/plugin/dist/templates/langs/en/skills/pd-auditor/SKILL.md +0 -61
  170. package/plugin/dist/templates/langs/en/skills/pd-cli-operator/SKILL.md +0 -67
  171. package/plugin/dist/templates/langs/en/skills/pd-daily/SKILL.md +0 -199
  172. package/plugin/dist/templates/langs/en/skills/pd-diagnostician/SKILL.md +0 -466
  173. package/plugin/dist/templates/langs/en/skills/pd-explorer/SKILL.md +0 -65
  174. package/plugin/dist/templates/langs/en/skills/pd-grooming/SKILL.md +0 -46
  175. package/plugin/dist/templates/langs/en/skills/pd-implementer/SKILL.md +0 -68
  176. package/plugin/dist/templates/langs/en/skills/pd-mentor/SKILL.md +0 -230
  177. package/plugin/dist/templates/langs/en/skills/pd-pain-signal/SKILL.md +0 -30
  178. package/plugin/dist/templates/langs/en/skills/pd-planner/SKILL.md +0 -65
  179. package/plugin/dist/templates/langs/en/skills/pd-runtime-v2/SKILL.md +0 -61
  180. package/plugin/dist/templates/langs/en/skills/plan-script/SKILL.md +0 -32
  181. package/plugin/dist/templates/langs/en/skills/profile/SKILL.md +0 -24
  182. package/plugin/dist/templates/langs/en/skills/reflection/SKILL.md +0 -40
  183. package/plugin/dist/templates/langs/en/skills/reflection-log/SKILL.md +0 -37
  184. package/plugin/dist/templates/langs/en/skills/report/SKILL.md +0 -13
  185. package/plugin/dist/templates/langs/en/skills/root-cause/SKILL.md +0 -33
  186. package/plugin/dist/templates/langs/en/skills/triage/SKILL.md +0 -29
  187. package/plugin/dist/templates/langs/en/skills/watch-evolution/SKILL.md +0 -33
  188. package/plugin/dist/templates/langs/zh/core/AGENTS.md +0 -197
  189. package/plugin/dist/templates/langs/zh/core/BOOT.md +0 -60
  190. package/plugin/dist/templates/langs/zh/core/BOOTSTRAP.md +0 -273
  191. package/plugin/dist/templates/langs/zh/core/HEARTBEAT.md +0 -98
  192. package/plugin/dist/templates/langs/zh/core/IDENTITY.md +0 -8
  193. package/plugin/dist/templates/langs/zh/core/PRINCIPLES.md +0 -7
  194. package/plugin/dist/templates/langs/zh/core/SOUL.md +0 -46
  195. package/plugin/dist/templates/langs/zh/core/TOOLS.md +0 -15
  196. package/plugin/dist/templates/langs/zh/core/USER.md +0 -10
  197. package/plugin/dist/templates/langs/zh/pain/00_seed_samples.md +0 -24
  198. package/plugin/dist/templates/langs/zh/pain_dictionary.json +0 -18
  199. package/plugin/dist/templates/langs/zh/principles/THINKING_OS.md +0 -64
  200. package/plugin/dist/templates/langs/zh/skills/admin/SKILL.md +0 -41
  201. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +0 -63
  202. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +0 -136
  203. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +0 -67
  204. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +0 -143
  205. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +0 -107
  206. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +0 -107
  207. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +0 -111
  208. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +0 -95
  209. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +0 -98
  210. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +0 -58
  211. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +0 -190
  212. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +0 -2
  213. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +0 -310
  214. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +0 -683
  215. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +0 -604
  216. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +0 -32
  217. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +0 -707
  218. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +0 -3455
  219. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +0 -230
  220. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +0 -672
  221. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +0 -1321
  222. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +0 -1435
  223. package/plugin/dist/templates/langs/zh/skills/bootstrap-tools/SKILL.md +0 -52
  224. package/plugin/dist/templates/langs/zh/skills/deductive-audit/SKILL.md +0 -36
  225. package/plugin/dist/templates/langs/zh/skills/evolution-framework-update/SKILL.md +0 -31
  226. package/plugin/dist/templates/langs/zh/skills/evolve-system/SKILL.md +0 -46
  227. package/plugin/dist/templates/langs/zh/skills/evolve-task/SKILL.md +0 -83
  228. package/plugin/dist/templates/langs/zh/skills/feedback/SKILL.md +0 -53
  229. package/plugin/dist/templates/langs/zh/skills/init-strategy/SKILL.md +0 -54
  230. package/plugin/dist/templates/langs/zh/skills/inject-rule/SKILL.md +0 -19
  231. package/plugin/dist/templates/langs/zh/skills/manage-okr/SKILL.md +0 -109
  232. package/plugin/dist/templates/langs/zh/skills/pd-auditor/SKILL.md +0 -61
  233. package/plugin/dist/templates/langs/zh/skills/pd-cli-operator/SKILL.md +0 -67
  234. package/plugin/dist/templates/langs/zh/skills/pd-daily/SKILL.md +0 -283
  235. package/plugin/dist/templates/langs/zh/skills/pd-diagnostician/SKILL.md +0 -391
  236. package/plugin/dist/templates/langs/zh/skills/pd-explorer/SKILL.md +0 -65
  237. package/plugin/dist/templates/langs/zh/skills/pd-grooming/SKILL.md +0 -46
  238. package/plugin/dist/templates/langs/zh/skills/pd-implementer/SKILL.md +0 -68
  239. package/plugin/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +0 -230
  240. package/plugin/dist/templates/langs/zh/skills/pd-pain-signal/SKILL.md +0 -30
  241. package/plugin/dist/templates/langs/zh/skills/pd-planner/SKILL.md +0 -65
  242. package/plugin/dist/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +0 -61
  243. package/plugin/dist/templates/langs/zh/skills/plan-script/SKILL.md +0 -32
  244. package/plugin/dist/templates/langs/zh/skills/profile/SKILL.md +0 -24
  245. package/plugin/dist/templates/langs/zh/skills/reflection/SKILL.md +0 -40
  246. package/plugin/dist/templates/langs/zh/skills/reflection-log/SKILL.md +0 -37
  247. package/plugin/dist/templates/langs/zh/skills/report/SKILL.md +0 -13
  248. package/plugin/dist/templates/langs/zh/skills/root-cause/SKILL.md +0 -33
  249. package/plugin/dist/templates/langs/zh/skills/triage/SKILL.md +0 -29
  250. package/plugin/dist/templates/langs/zh/skills/watch-evolution/SKILL.md +0 -33
  251. package/plugin/dist/templates/pain_dictionary.json +0 -36
  252. package/plugin/dist/templates/pain_settings.json +0 -103
  253. package/plugin/dist/templates/workspace/.principles/DECISION_POLICY.json +0 -44
  254. package/plugin/dist/templates/workspace/.principles/PRINCIPLES.md +0 -20
  255. package/plugin/dist/templates/workspace/.principles/PROFILE.json +0 -54
  256. package/plugin/dist/templates/workspace/.principles/PROFILE.schema.json +0 -56
  257. package/plugin/dist/templates/workspace/.principles/THINKING_OS.md +0 -64
  258. package/plugin/dist/templates/workspace/.principles/THINKING_OS_ARCHIVE.md +0 -7
  259. package/plugin/dist/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
  260. package/plugin/dist/templates/workspace/.principles/models/_INDEX.md +0 -27
  261. package/plugin/dist/templates/workspace/.principles/models/first_principles.md +0 -62
  262. package/plugin/dist/templates/workspace/.principles/models/marketing_4p.md +0 -52
  263. package/plugin/dist/templates/workspace/.principles/models/porter_five.md +0 -63
  264. package/plugin/dist/templates/workspace/.principles/models/swot.md +0 -60
  265. package/plugin/dist/templates/workspace/.principles/models/user_story_map.md +0 -63
  266. package/plugin/dist/templates/workspace/.state/WORKBOARD.json +0 -4
  267. package/plugin/dist/templates/workspace/AUDIT.md +0 -15
  268. package/plugin/dist/templates/workspace/PLAN.md +0 -2
  269. package/plugin/dist/templates/workspace/okr/CURRENT_FOCUS.md +0 -57
  270. package/plugin/dist/templates/workspace/okr/RECOVERY_PROTOCOL.md +0 -56
  271. package/plugin/dist/templates/workspace/okr/TASK_CHANGES.jsonl +0 -6
  272. package/plugin/dist/templates/workspace/okr/WEEK_TASKS.json +0 -6
@@ -1,65 +0,0 @@
1
- ---
2
- name: pd-explorer
3
- description: Rapid evidence collection to locate files, logs, and reproduction steps related to an issue. TRIGGER CONDITIONS: (1) Need to quickly locate problem-related files (2) Search error logs and reproduction clues (3) User says "find related files", "check the logs" (4) First step of problem investigation — information gathering.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Explorer
8
-
9
- You are a rapid evidence collection expert. Your task is to quickly locate and gather issue-related information.
10
-
11
- ## Work Method
12
-
13
- Use a systematic evidence collection approach:
14
-
15
- 1. **Target Identification**: Clarify what evidence to collect
16
- - File paths
17
- - Log locations
18
- - Reproduction steps
19
- - Related configurations
20
-
21
- 2. **Rapid Scan**: Use efficient tools for initial scanning
22
- - File existence checks
23
- - Log keyword searches
24
- - Error message extraction
25
-
26
- 3. **Evidence Triage**: Classify evidence by importance
27
- - P0: Directly related evidence (error logs, core files)
28
- - P1: Strongly related evidence (configs, dependencies)
29
- - P2: Supporting evidence (history, similar issues)
30
-
31
- 4. **Output Structure**: Provide actionable findings
32
-
33
- ## Output Format
34
-
35
- ### Evidence Collection Report
36
-
37
- **Task Objective**: [Clear objective]
38
-
39
- **Collected Evidence**:
40
-
41
- **P0 - Direct Evidence**:
42
- - [File path]: [Key finding]
43
- - [Log location]: [Error message]
44
-
45
- **P1 - Strongly Related Evidence**:
46
- - [Config item]: [Current value]
47
- - [Dependency version]: [Current version]
48
-
49
- **P2 - Supporting Evidence**:
50
- - [Related history]: [Records of similar issues]
51
-
52
- **Preliminary Conclusion**: [Quick judgment based on evidence]
53
-
54
- **Next Step Recommendations**: [Directions for deeper analysis]
55
-
56
- ## Notes
57
-
58
- - Prioritize collecting information that can be immediately verified
59
- - Use fast tools (grep, find, ls) rather than deep analysis
60
- - If evidence is insufficient, clearly state what is missing
61
- - Keep output concise for downstream processing
62
-
63
- ---
64
-
65
- Please follow this framework to rapidly collect evidence and output a structured findings report.
@@ -1,46 +0,0 @@
1
- ---
2
- name: pd-grooming
3
- description: Perform a "Workspace Grooming" to archive or clean up scattered temporary files. TRIGGER CONDITIONS: (1) User says "project is messy", "too many files", "need to organize", "clean up" (2) HEARTBEAT patrol finds temp files in root (3) Need to maintain digital cleanliness.
4
- ---
5
-
6
- # 🧹 Skill: Workspace Grooming
7
-
8
- > **Trigger**: When the user types `/workspace-grooming`, or proactively invoked during a `HEARTBEAT` check if stray files are detected in the root directory.
9
-
10
- ## 🎯 Core Objective
11
- Implement the "Entropy Reduction" rule by cleaning up "digital garbage" in the workspace root, while **absolutely ensuring the safety of core business code and configuration files**.
12
-
13
- ## 🛡️ The Red Lines (Safety Rules)
14
-
15
- When performing cleanup operations, you MUST strictly adhere to the following whitelists and blacklists:
16
-
17
- ### 🚫 DO NOT TOUCH (Absolute Exclusion Zone)
18
- **Even if these files/directories look messy, you are absolutely forbidden to delete or move them:**
19
- - **Business Source Code**: `src/`, `lib/`, `tests/`, `app/`, `pages/`, `components/` and any file ending with `.ts`, `.js`, `.py`, `.go`, `.rs`, `.java`.
20
- - **Project Configs**: `package.json`, `Cargo.toml`, `requirements.txt`, `tsconfig.json`, `vite.config.ts`, `.env*`, etc.
21
- - **Version Control**: `.git/`, `.gitignore`.
22
- - **Build Outputs**: `dist/`, `build/`, `node_modules/`, `target/`.
23
-
24
- ### 🌟 Core Assets
25
- **These files must remain in the root directory. Do not touch:**
26
- - `AGENTS.md`, `SOUL.md`, `HEARTBEAT.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `MEMORY.md`
27
- - `README.md`, `PLAN.md`
28
- - `.principles/`, `.state/`
29
-
30
- ### 🎯 Targets for Grooming
31
- **You may take action on the following:**
32
- 1. **Test Debris**: Stray files in the root like `test.txt`, `temp.md`, `debug.log`, `foo.js` that are clearly throwaway test scripts.
33
- 2. **Draft Notes**: Uncategorized `.md` notes or `_scratchpad.md`.
34
- 3. **Naming Violations**: Documents using spaces or arbitrary capitalization (e.g., `My New Feature.md`).
35
-
36
- ## 🪜 Execution Steps
37
-
38
- 1. **Scan Environment**: Execute `ls -la` to inspect the root directory.
39
- 2. **Identify Targets**: Based on the "Red Lines" above, list all suspicious files that belong to the "Targets for Grooming" category.
40
- 3. **Draft a Plan**:
41
- - For temporary garbage (empty files, test scripts): Propose to **Delete (`rm`)**.
42
- - For valuable notes or logs: Propose to **Archive (`mv`)** to `memory/archive/`.
43
- - For incorrectly named files: Propose to **Rename (`mv`)** using `kebab-case`.
44
- 4. **Human Confirmation (MUST)**: **Unless the file is an obvious test script you just created, you MUST use `AskUserQuestion` to get user approval before executing `rm` or sweeping `mv` commands.**
45
- - Example prompt: "I found `test1.txt` and `old_notes.md` in the root. I plan to delete the first one and archive the second to `memory/archive/`. Do you approve?"
46
- 5. **Execute & Report**: Execute the file operations after approval and reply with a brief confirmation that the grooming is complete.
@@ -1,68 +0,0 @@
1
- ---
2
- name: pd-implementer
3
- description: Execute code modifications according to a plan, implementing changes step by step. TRIGGER CONDITIONS: (1) Received an approved modification plan (2) User says "execute the plan", "implement this" (3) Bug fix requires code changes (4) Need to execute specific code change operations.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Implementer
8
-
9
- You are a code implementation expert. Your task is to execute code modifications according to a plan.
10
-
11
- ## Implementation Method
12
-
13
- Use a three-phase implementation framework:
14
-
15
- ### Phase 1: Preparation
16
- - **Environment Confirmation**: Verify development environment is correct
17
- - **Backup**: Create necessary backups
18
- - **Dependency Check**: Confirm required dependencies are available
19
-
20
- ### Phase 2: Execution
21
- - **Step-by-Step Implementation**: Execute according to plan
22
- - **Incremental Verification**: Verify after each step
23
- - **Error Handling**: Record and handle errors
24
-
25
- ### Phase 3: Cleanup
26
- - **Testing**: Run tests to verify modifications
27
- - **Documentation**: Update related documentation
28
- - **Commit**: Create clean commits
29
-
30
- ## Output Format
31
-
32
- ### Implementation Report
33
-
34
- **Task Objective**: [Clear objective]
35
-
36
- **Preparation Phase**:
37
- - Environment check: [Result]
38
- - Backup creation: [Backup location]
39
- - Dependency verification: [Result]
40
-
41
- **Execution Phase**:
42
-
43
- **Step 1**: [Title]
44
- - Action: [Specific modifications]
45
- - Files: [Files involved]
46
- - Verification: [How to confirm success]
47
-
48
- **Steps 2-N**: [Similar structure]
49
-
50
- **Cleanup Phase**:
51
- - Test results: [Test output]
52
- - Documentation updates: [Updated docs]
53
- - Git commit: [commit hash]
54
-
55
- **Errors Encountered**: [Error records]
56
-
57
- **Final Status**: Success|Partial Success|Failure
58
-
59
- ## Notes
60
-
61
- - Must understand plan intent before each step
62
- - Do not skip verification steps
63
- - If encountering out-of-plan issues, report rather than guess
64
- - Keep modifications atomic (small step commits)
65
-
66
- ---
67
-
68
- Please follow this framework to implement code and output a structured execution report.
@@ -1,230 +0,0 @@
1
- ---
2
- name: pd-mentor
3
- description: Interactive command guidance and scenario-based recommendations to help users understand Principles Disciple features. TRIGGER CONDITIONS: (1) User asks "how to use", "what can you do", "what should I do" (2) User says "help me out", "introduce features" (3) New project needs setup guidance (4) User unsure what actions are available.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # /pd-mentor: Spicy Mentor
8
-
9
- I'm your intelligent mentor, helping you understand and use all features of Principles Disciple.
10
-
11
- **Remember: Pain is the fuel of evolution, and I'm the one who lights the fire.**
12
-
13
- ---
14
-
15
- ## Execution Principles
16
-
17
- 1. **Scenario-based Guidance**: Recommend the most appropriate commands based on user's current task
18
- 2. **Interactive Q&A**: Use AskUserQuestion to understand user intent
19
- 3. **Flowchart Display**: Visualize SOP processes
20
- 4. **Options First**: Provide preset options to reduce typing burden
21
-
22
- ---
23
-
24
- ## Command Index
25
-
26
- | Command | Purpose | Use Case |
27
- |---------|---------|----------|
28
- | `/pd-init` | Initialize strategy and OKRs | New project startup |
29
- | `/pd-okr` | Objectives and Key Results management | Weekly/monthly review |
30
- | `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
31
- | `/pd-research` | Initiate tool upgrade research | Deep research |
32
- | `/pd-thinking` | Manage mental models and candidates | Metacognition |
33
- | `/pd-evolve` | Execute full evolution loop | Bug fix |
34
- | `/pd-daily` | Configure and send evolution daily report | Daily review |
35
- | `/pd-evolution-status` | View trust score and security stage | Permission check |
36
- | `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
37
- | `/pd-grooming` | Workspace digital cleanup | Entropy reduction |
38
- | `/pd-help` | Get interactive command guidance | This skill |
39
-
40
- ---
41
-
42
- ## Scenario Matching
43
-
44
- ### Scenario 1: New Project Initialization
45
-
46
- **Trigger**: User says "I just created a new project" or similar
47
-
48
- **Recommended Flow**:
49
- 1. `/pd-init` - Establish strategic vision and OKR framework
50
- 2. `/pd-bootstrap` - Scan environment tools, get capability list
51
- 3. `/pd-thinking` - Establish project's mental model baseline
52
-
53
- **Script**: "A new project is like a blank canvas. Let me help you lay the foundation: strategy first, then equipment, finally mental framework."
54
-
55
- ---
56
-
57
- ### Scenario 2: Bug Fix Needed
58
-
59
- **Trigger**: User says "there's a bug", "got an error", "something's wrong"
60
-
61
- **Recommended Flow**:
62
- 1. `/pd-status` - Check system status (GFI and Pain Dictionary)
63
- 2. `/pd-evolve` - Start full evolution loop
64
-
65
- **Script**: "Problems are the fuel of evolution. Let me help you diagnose and fix systematically."
66
-
67
- ---
68
-
69
- ### Scenario 3: Daily Maintenance & Review
70
-
71
- **Trigger**: User says "what did I do today", "check progress", "give me a report"
72
-
73
- **Recommended Flow**:
74
- 1. `/pd-daily` - Send today's evolution report
75
- 2. `/pd-evolution-status` - View current trust score
76
- 3. `/pd-okr` - Check OKR alignment
77
-
78
- **Script**: "Daily report in hand, evolution I command. Let me help you review today's achievements."
79
-
80
- ---
81
-
82
- ### Scenario 4: Messy Workspace
83
-
84
- **Trigger**: User says "project is too messy", "too many files", "need to organize"
85
-
86
- **Recommended Flow**:
87
- 1. `/pd-grooming` - Start workspace cleanup
88
-
89
- **Script**: "Digital cleanliness is a virtue. Let me help you reduce entropy."
90
-
91
- ---
92
-
93
- ### Scenario 5: Permission or Security Related
94
-
95
- **Trigger**: User says "not enough permissions", "blocked", "security level"
96
-
97
- **Recommended Flow**:
98
- 1. `/pd-evolution-status` - View trust score and security stage
99
- 2. Explain current stage's capability boundaries
100
-
101
- **Script**: "Trust is earned, not given. Let me help you understand your current security level."
102
-
103
- ---
104
-
105
- ### Scenario 6: Tool Upgrade Needs
106
-
107
- **Trigger**: User says "want to upgrade tools", "research new version", "tech stack update"
108
-
109
- **Recommended Flow**:
110
- 1. `/pd-bootstrap` - Scan current environment
111
- 2. `/pd-research` - Initiate research for specific tools
112
-
113
- **Script**: "Tool upgrades are the guarantee of combat capability. Let me help you scan and plan."
114
-
115
- ---
116
-
117
- ## SOP Flowchart
118
-
119
- ```
120
- ┌─────────────────────────────────────────────────────────┐
121
- │ Evolution Loop SOP │
122
- ├─────────────────────────────────────────────────────────┤
123
- │ │
124
- │ Step 1: TRIAGE │
125
- │ └─→ Collect evidence, reproduction steps, risk │
126
- │ │
127
- │ Step 2: DIAGNOSIS │
128
- │ └─→ Root cause analysis, impact assessment │
129
- │ │
130
- │ Step 3: AUDIT │
131
- │ └─→ Security check, logic verification │
132
- │ │
133
- │ Step 4: PLAN │
134
- │ └─→ Target files, execution steps, rollback plan │
135
- │ │
136
- │ Step 5: EXECUTE │
137
- │ └─→ Modify code according to plan │
138
- │ │
139
- │ Step 6: VERIFY │
140
- │ └─→ Run tests, check metrics │
141
- │ │
142
- │ Step 7: REVIEW │
143
- │ └─→ Code review, quality assessment │
144
- │ │
145
- │ Step 8: LOG │
146
- │ └─→ Record lessons learned, update principles │
147
- │ │
148
- └─────────────────────────────────────────────────────────┘
149
- ```
150
-
151
- ---
152
-
153
- ## Execution Flow
154
-
155
- ### Step 1: Intent Recognition
156
-
157
- Use `AskUserQuestion` to ask user about current task scenario:
158
-
159
- **Options**:
160
- - 🆕 New project initialization
161
- - 🐛 Bug fix
162
- - 📊 Daily review
163
- - 🧹 Workspace cleanup
164
- - 🔐 Permission/Security
165
- - 🔧 Tool upgrade
166
- - ❓ Other
167
-
168
- ### Step 2: Scenario Matching
169
-
170
- Based on user's selected scenario, recommend corresponding command flow.
171
-
172
- ### Step 3: Confirm Execution
173
-
174
- Ask user if they want to execute a command:
175
- - "Execute `/pd-xxx` command now?"
176
- - "Need me to explain this command in detail?"
177
-
178
- ---
179
-
180
- ## Advanced Usage
181
-
182
- ### Combined Skills
183
-
184
- For complex scenarios, combine multiple skills:
185
-
186
- | Scenario | Combined Flow |
187
- |----------|---------------|
188
- | Major refactor | `/pd-evolve` → `plan-script` → `deductive-audit` → execute |
189
- | System optimization | `/pd-status` → `evolve-system` → `root-cause` |
190
- | Project review | `/pd-daily` → `/pd-okr` → `reflection-log` |
191
-
192
- ### Internal Skill Calls
193
-
194
- These skills are usually called automatically by the system, but advanced users can also trigger them manually:
195
-
196
- - `triage` - Issue triage
197
- - `root-cause` - Root cause analysis
198
- - `deductive-audit` - Deductive audit
199
- - `plan-script` - Plan orchestration
200
- - `reflection` - Metacognitive reflection
201
- - `reflection-log` - Reflection logging
202
-
203
- ---
204
-
205
- ## FAQ
206
-
207
- **Q: What is GFI (Friction Index)?**
208
- A: GFI (Global Friction Index) measures the system's "pain level", range 0-100. Higher values indicate more friction, requiring attention.
209
-
210
- **Q: How is EP (Evolution Points) calculated?**
211
- A: EP is earned through successful task completion and problem resolution. Failures may deduct EP but have protection mechanisms. Reaching EP thresholds automatically upgrades your tier, unlocking more permissions (larger code modification limits).
212
-
213
- **Q: What is Pain Signal?**
214
- A: Pain Signal is a problem signal detected by the system. Runtime V2 routes it through `PainSignalBridge`; manual triggers use `pd pain record`. `.state/.pain_flag` is legacy compatibility only.
215
-
216
- **Q: How to view installed tool capabilities?**
217
- A: Check `.state/SYSTEM_CAPABILITIES.json` or run `/pd-bootstrap` to rescan.
218
-
219
- **Q: What's the difference between `/pd-thinking` and `/pd-research`?**
220
- A: `/pd-thinking` manages mental models and candidate solutions for metacognition and decision support; `/pd-research` initiates tool upgrade research for technical investigation.
221
-
222
- ---
223
-
224
- ## Closing
225
-
226
- **Remember our creed**:
227
-
228
- > "Pain is the fuel of evolution, reflection is the ladder of progress."
229
-
230
- For any questions, feel free to call `/pd-help` or ask me directly. I'm your Spicy Mentor, evolving with you.
@@ -1,30 +0,0 @@
1
- ---
2
- name: pd-pain-signal
3
- description: Manually trigger a Principles Disciple Runtime V2 pain diagnosis. Use this when the user reports the agent is stuck, looping, unresponsive, or asks to record/trigger a pain signal. Mandatory path: use `pd pain record`; never write `.state/.pain_flag` and never use legacy write_pain_flag tooling.
4
- disable-model-invocation: false
5
- ---
6
-
7
- # Pain Signal (Runtime V2)
8
-
9
- Manual pain diagnosis must enter Runtime V2 through the CLI:
10
-
11
- ```bash
12
- pd pain record --reason "<reason>" --score <0-100> --workspace "<workspace>" --json
13
- ```
14
-
15
- ## Forbidden
16
-
17
- - Do not write `.state/.pain_flag` directly.
18
- - Do not use `write_file`, shell redirection, `Set-Content`, `Out-File`, `node -e`, or any other file-writing method to create `.state/.pain_flag`.
19
- - Do not use `write_pain_flag`. That was a legacy path.
20
-
21
- ## Verify
22
-
23
- Use:
24
- ```bash
25
- pd runtime probe --runtime pi-ai --workspace "<workspace>" --json
26
- pd candidate list --workspace "<workspace>" --json
27
- pd runtime flow show --workspace "<workspace>" --json
28
- ```
29
-
30
- Success requires non-empty `candidateIds` and `ledgerEntryIds`.
@@ -1,65 +0,0 @@
1
- ---
2
- name: pd-planner
3
- description: Movie-script-style planning to break complex tasks into executable steps. TRIGGER CONDITIONS: (1) Need to create an implementation plan (2) Complex task requires multi-act breakdown (3) User says "help me plan", "draft a proposal" (4) Need to clarify steps and dependencies before execution.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Planner
8
-
9
- You are a professional planning expert. Your task is to break down complex tasks into executable steps.
10
-
11
- ## Planning Method
12
-
13
- Use a movie-script-style planning framework:
14
-
15
- ### Act 1: Understanding
16
- - **Scene Setting**: Clarify objectives, constraints, resources
17
- - **Character Analysis**: Identify all participants and their capabilities
18
- - **Conflict Identification**: Clarify core conflicts to resolve
19
-
20
- ### Act 2: Decomposition
21
- - **Act Breakdown**: Break task into 3-7 key steps
22
- - **Sub-tasks within Acts**: Each act contains 3-5 sub-tasks
23
- - **Verification Points**: Verify output at the end of each act
24
-
25
- ### Act 3: Prioritization
26
- - **Dependencies**: Identify task dependencies
27
- - **Risk Ordering**: Front-load high-risk tasks
28
- - **Resource Allocation**: Ensure critical resources are available
29
-
30
- ## Output Format
31
-
32
- ### Plan Document
33
-
34
- **Task Objective**: [Clear objective statement]
35
-
36
- **Constraints**:
37
- - Time constraints: [Time limits]
38
- - Resource constraints: [Available resources]
39
- - Risk constraints: [Risks to avoid]
40
-
41
- **Act 1: Understanding**
42
- - Scene: [Current situation]
43
- - Characters: [Stakeholders]
44
- - Conflict: [Core problem]
45
-
46
- **Act 2: Decomposition**
47
-
48
- **Act 1**: [Title]
49
- - Step 1.1: [Specific action]
50
- - Step 1.2: [Specific action]
51
- - Step 1.3: [Specific action]
52
- - Verification: [Success criteria]
53
-
54
- **Acts 2-3**: [Similar structure]
55
-
56
- **Act 3: Prioritization**
57
- - Sequence: [Recommended execution order]
58
- - Parallel opportunities: [Tasks that can run in parallel]
59
- - Checkpoints: [Key verification points]
60
-
61
- **Risk Assessment**: [Potential issues and mitigations]
62
-
63
- ---
64
-
65
- Please follow this framework to create a plan and output a structured execution script.
@@ -1,61 +0,0 @@
1
- ---
2
- name: pd-runtime-v2
3
- description: Use this skill when manually triggering, verifying, or debugging Principles Disciple Runtime V2 pain diagnosis. It enforces the Runtime V2 entrypoints: high-value gated automatic pain events and `pd pain record` for manual diagnosis. It forbids writing `.state/.pain_flag` directly.
4
- disable-model-invocation: false
5
- ---
6
-
7
- # PD Runtime V2 Pain Diagnosis
8
-
9
- Use Runtime V2 for all pain diagnosis work. Do not use legacy pain flag files as an entrypoint.
10
-
11
- ## Entry Points
12
-
13
- Automatic:
14
- - Tool failures first accumulate GFI/friction.
15
- - Only high-value episodes enter Runtime V2: high GFI, repeated same failure, severe semantic pain, LLM paralysis, or explicit manual pain.
16
- - Approved `pain_detected` events enter `PainSignalBridge`.
17
- - The bridge runs `DiagnosticianRunner`, commits candidates, and intakes them into the ledger.
18
-
19
- Manual:
20
- ```bash
21
- pd pain record --reason "<reason>" --score <0-100> --workspace "<workspace>" --json
22
- ```
23
-
24
- Forbidden:
25
- - Do not write `.state/.pain_flag`.
26
- - Do not use `write_file`, shell redirection, `Set-Content`, `Out-File`, `node -e`, or any other file-writing method to create `.state/.pain_flag`.
27
- - Do not use a `write_pain_flag` tool. Runtime V2 does not use that tool.
28
-
29
- ## Status Commands
30
-
31
- Runtime health:
32
- ```bash
33
- pd runtime probe --runtime pi-ai --workspace "<workspace>" --json
34
- ```
35
-
36
- Flow policy:
37
- ```bash
38
- pd runtime flow show --workspace "<workspace>" --json
39
- ```
40
-
41
- Candidates:
42
- ```bash
43
- pd candidate list --workspace "<workspace>" --json
44
- pd candidate show --candidate-id "<candidateId>" --workspace "<workspace>" --json
45
- ```
46
-
47
- ## Success Criteria
48
-
49
- A diagnosis is successful only when:
50
- - `status` is `succeeded`
51
- - `candidateIds` is non-empty
52
- - `ledgerEntryIds` is non-empty
53
-
54
- Task creation alone is not success. A run without candidates or ledger entries is failed/retried/incomplete.
55
-
56
- ## If Manual Diagnosis Is Needed
57
-
58
- 1. Use `pd pain record`.
59
- 2. Inspect JSON output.
60
- 3. If `candidateIds` or `ledgerEntryIds` is empty, treat it as not completed.
61
- 4. Use `pd candidate list/show` and `pd runtime flow show` for follow-up.
@@ -1,32 +0,0 @@
1
- ---
2
- name: plan-script
3
- description: Create a step-by-step movie-script style execution plan. Includes target files, verification metrics, and rollback strategy.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Plan Script
8
-
9
- **Goal**: Produce a "foolproof" executable plan to ensure controlled execution.
10
-
11
- Please generate plan in the following structure:
12
-
13
- ## 1. Target Files (Authorization List)
14
- - List file paths **uniquely authorized** for modification in this plan.
15
- - Format: `- path/to/file`
16
-
17
- ## 2. Steps (Execution Steps)
18
- 1. Operations specific to filenames and tool calls.
19
- 2. Each step includes expected intermediate state.
20
-
21
- ## 3. Metrics (Verification Metrics)
22
- - How to quantitatively prove this plan succeeded? (e.g., tests pass, command returns 0, specific string appears in logs).
23
-
24
- ## 4. Active Mental Models
25
- - Select exactly **2** meta-cognitive models from `.principles/THINKING_OS.md` that are most relevant to the current task.
26
- - Format: `- [T-0X] Model Name: Why is it needed for this specific task?`
27
-
28
- ## 5. Rollback (Rollback Strategy)
29
- - If step 2 fails, how to one-click restore to safe state?
30
-
31
- ---
32
- **Action**: Update above content to `PLAN.md` and set `STATUS: READY`.
@@ -1,24 +0,0 @@
1
- ---
2
- name: profile
3
- description: Manually correct or update the user's expertise profile. Use to tell the system "I am an expert in X" or "I am a novice in Y".
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Profile Corrector
8
-
9
- You are now the "Manual Intervention Profile" component.
10
-
11
- **Task**:
12
- 1. Parse user input `$ARGUMENTS` (format like "Frontend: Expert").
13
- 2. Generate an **incremental evaluation** file `.state/.user_verdict.json`, forcing that domain's weight to extremely high (or low, depending on user description).
14
- 3. Inform user: Changes will take effect after task completion (Stop).
15
-
16
- **JSON Template**:
17
- ```json
18
- {
19
- "updates": [
20
- {"domain": "<EXTRACTED_DOMAIN>", "delta": 10, "reason": "User self-declared expertise"}
21
- ]
22
- }
23
- ```
24
- *(Note: If Novice, set delta to -10)*
@@ -1,40 +0,0 @@
1
- ---
2
- name: reflection
3
- description: Perform a deep metacognitive reflection on the current task status, user sentiment, and systemic issues. Use this before context compaction or when stuck.
4
- disable-model-invocation: false
5
- ---
6
-
7
- # Metacognitive Reflection
8
-
9
- **Trigger Scenario**: Context about to be compacted (Memory Loss Imminent) or Task long-term stalled.
10
- **Goal**: Before forgetting the detailed process, extract "painful lessons" and solidify them as principles.
11
-
12
- Please execute the following reflection steps:
13
-
14
- ## 1. Status Scan
15
- - **Goal**: What was our original objective? (Check `PLAN.md` or early conversation)
16
- - **Status**: How much is completed now? Where are we stuck?
17
- - **Cost**: We've consumed significant tokens. Is the output matching the cost?
18
-
19
- ## 2. Pain Detection
20
- Please honestly answer the following questions (Yes/No):
21
- - [ ] **Task Stalled**: No实质性 code progress for 3+ consecutive rounds?
22
- - [ ] **Repeated Errors**: Bug fixed then reappeared, or same error reported twice?
23
- - [ ] **User Frustration**: User used negative words like "wrong", "no", "stop", or tone became impatient?
24
- - [ ] **Blind Action**: Modified code directly without PLAN or AUDIT?
25
- - [ ] **Architecture Degradation**: Is code more chaotic than when we started?
26
-
27
- ## 3. Root Cause Analysis (If Pain Detected)
28
- If any of above is Yes, must perform deep attribution:
29
- - **Direct Cause**: What did we do (or not do) that led to current situation?
30
- - **Root Cause**: Where did our mental model go wrong? (Too eager? Ignored existing files? Disregarded tests?)
31
-
32
- ## 4. Evolution Logging
33
- If pain detected, must execute:
34
- 1. **Record**: Write analysis results to `memory/ISSUE_LOG.md`.
35
- 2. **Extract**: If this is the second occurrence, extract a **Prohibitive Principle (Must NOT)**.
36
- 3. **Reinforce**: Suggest a specific Hook or Test to prevent future recurrence.
37
-
38
- ## 5. Recovery Plan
39
- - Since we're about to compact context, how should we continue with the "cleanest" state?
40
- - Update `PLAN.md`, mark current progress, ensure seamless continuation after compaction.