@openrig/cli 0.5.6 → 0.5.7

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 (303) hide show
  1. package/daemon/assets/plugins/openrig-core/README.md +1 -1
  2. package/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md +34 -0
  3. package/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs +170 -0
  4. package/daemon/assets/plugins/openrig-core/skills/openrig-skills/SKILL.md +1 -4
  5. package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +3 -3
  6. package/daemon/assets/plugins/openrig-core/skills/software-for-agents/SKILL.md +4 -9
  7. package/daemon/assets/vm-preview-fixtures/workflows/sample-basic-loop.yaml +3 -3
  8. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  9. package/daemon/context-packs/skills/applying-a-permission-policy/SKILL.md +120 -0
  10. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +10 -0
  11. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +166 -0
  12. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +18 -0
  13. package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +174 -0
  14. package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +487 -0
  15. package/daemon/context-packs/skills/claude-compaction-restore/templates/compact-instruction.md +1 -0
  16. package/daemon/context-packs/skills/claude-compaction-restore/templates/post-compact-restore-instruction.md +1 -0
  17. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/SKILL.md +1 -1
  19. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-skills/SKILL.md +1 -4
  27. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/delegating-work/SKILL.md +43 -0
  36. package/daemon/context-packs/skills/delegating-work/manifest.yaml +10 -0
  37. package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +318 -0
  38. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +10 -0
  39. package/daemon/context-packs/skills/loading-addressable-markdown/SKILL.md +34 -0
  40. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +12 -0
  41. package/daemon/context-packs/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs +170 -0
  42. package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +94 -0
  43. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +10 -0
  44. package/daemon/context-packs/skills/openrig-operating-model/SKILL.md +397 -0
  45. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +30 -0
  46. package/daemon/context-packs/skills/openrig-operating-model/scripts/compose.py +572 -0
  47. package/daemon/context-packs/skills/openrig-operating-model/scripts/scaffold.sh +34 -0
  48. package/daemon/context-packs/skills/openrig-operating-model/scripts/trace-due.sh +32 -0
  49. package/daemon/context-packs/skills/openrig-operating-model/scripts/trace-stamp.sh +5 -0
  50. package/daemon/context-packs/skills/openrig-operating-model/scripts/trunk-diff.sh +18 -0
  51. package/daemon/context-packs/skills/openrig-operating-model/templates/LEARNED.md +40 -0
  52. package/daemon/context-packs/skills/openrig-operating-model/templates/NOTES.md +9 -0
  53. package/daemon/context-packs/skills/openrig-operating-model/templates/PLAYBOOK.md +5 -0
  54. package/daemon/context-packs/skills/openrig-operating-model/templates/SOP.md +24 -0
  55. package/daemon/context-packs/skills/openrig-operating-model/templates/SPEC.md +54 -0
  56. package/daemon/context-packs/skills/openrig-user/SKILL.md +1374 -0
  57. package/daemon/context-packs/skills/openrig-user/manifest.yaml +10 -0
  58. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/CHANGELOG.md +64 -0
  59. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/SKILL.md +250 -0
  60. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +12 -0
  61. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pm/requirements-writer/SKILL.md +21 -15
  67. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +3 -3
  68. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/pods/orchestration-team/SKILL.md +1 -1
  71. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/pods/review-team/SKILL.md +1 -1
  74. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/queue-handoff/SKILL.md +192 -0
  83. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +10 -0
  84. package/daemon/context-packs/skills/refocusing/SKILL.md +31 -0
  85. package/daemon/context-packs/skills/refocusing/manifest.yaml +14 -0
  86. package/daemon/context-packs/skills/refocusing/references/refocus.md +22 -0
  87. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +264 -0
  88. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/CHANGELOG.md +48 -0
  89. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/SKILL.md +231 -0
  90. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +12 -0
  91. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +151 -0
  92. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +16 -0
  93. package/daemon/context-packs/skills/seat-continuity-and-handover/references/apprentice-evidence-toolkit.md +32 -0
  94. package/daemon/context-packs/skills/seat-continuity-and-handover/references/apprentice-successor-seat-cutover.md +256 -0
  95. package/daemon/context-packs/skills/seat-continuity-and-handover/references/orchestrator-role.md +40 -0
  96. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +163 -0
  97. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +10 -0
  98. package/daemon/context-packs/skills/software-for-agents/SKILL.md +187 -0
  99. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +10 -0
  100. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  101. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  102. package/daemon/dist/build-info.js +3 -3
  103. package/daemon/dist/builtins/workflow-specs/basic-loop.yaml +3 -3
  104. package/daemon/dist/builtins/workflow-specs/conveyor.yaml +1 -1
  105. package/daemon/dist/builtins/workflow-specs/factory-rsi.yaml +1 -1
  106. package/daemon/dist/db/all-migrations.d.ts +1 -1
  107. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  108. package/daemon/dist/db/all-migrations.js +4 -2
  109. package/daemon/dist/db/all-migrations.js.map +1 -1
  110. package/daemon/dist/db/migrations/077_node_session_source.d.ts +4 -0
  111. package/daemon/dist/db/migrations/077_node_session_source.d.ts.map +1 -0
  112. package/daemon/dist/db/migrations/077_node_session_source.js +6 -0
  113. package/daemon/dist/db/migrations/077_node_session_source.js.map +1 -0
  114. package/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
  115. package/daemon/dist/domain/context-packs/manifest-parser.js +5 -6
  116. package/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
  117. package/daemon/dist/domain/context-packs/profile-composer.d.ts +1 -1
  118. package/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
  119. package/daemon/dist/domain/context-packs/profile-composer.js +2 -2
  120. package/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
  121. package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +3 -1
  122. package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -1
  123. package/daemon/dist/domain/context-packs/profile-source-resolver.js +3 -2
  124. package/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -1
  125. package/daemon/dist/domain/rig-lifecycle-service.d.ts +24 -4
  126. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  127. package/daemon/dist/domain/rig-lifecycle-service.js +116 -6
  128. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  129. package/daemon/dist/domain/rig-repository.d.ts +2 -1
  130. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  131. package/daemon/dist/domain/rig-repository.js +7 -0
  132. package/daemon/dist/domain/rig-repository.js.map +1 -1
  133. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  134. package/daemon/dist/domain/rigspec-exporter.js +2 -0
  135. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  136. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  137. package/daemon/dist/domain/rigspec-instantiator.js +2 -0
  138. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  139. package/daemon/dist/domain/types.d.ts +2 -0
  140. package/daemon/dist/domain/types.d.ts.map +1 -1
  141. package/daemon/dist/domain/types.js.map +1 -1
  142. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  143. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +37 -2
  144. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  145. package/daemon/dist/routes/context-packs.d.ts.map +1 -1
  146. package/daemon/dist/routes/context-packs.js +146 -6
  147. package/daemon/dist/routes/context-packs.js.map +1 -1
  148. package/daemon/dist/routes/rigs.js +7 -3
  149. package/daemon/dist/routes/rigs.js.map +1 -1
  150. package/daemon/dist/routes/sessions.js +7 -3
  151. package/daemon/dist/routes/sessions.js.map +1 -1
  152. package/daemon/dist/startup.d.ts.map +1 -1
  153. package/daemon/dist/startup.js +3 -1
  154. package/daemon/dist/startup.js.map +1 -1
  155. package/daemon/docs/reference/agent-spec.md +1 -1
  156. package/daemon/docs/reference/mission-install.md +23 -2
  157. package/daemon/docs/reference/product-journey-sdlc.md +305 -0
  158. package/daemon/docs/reference/sdlc-conventions.md +9 -2
  159. package/daemon/specs/agents/apps/vault-specialist/agent.yaml +1 -1
  160. package/daemon/specs/agents/apps/vault-specialist/guidance/role.md +0 -1
  161. package/daemon/specs/agents/conveyor/builder/agent.yaml +1 -1
  162. package/daemon/specs/agents/conveyor/builder/guidance/role.md +0 -1
  163. package/daemon/specs/agents/conveyor/lead/agent.yaml +1 -1
  164. package/daemon/specs/agents/conveyor/lead/guidance/role.md +0 -3
  165. package/daemon/specs/agents/conveyor/planner/agent.yaml +1 -1
  166. package/daemon/specs/agents/conveyor/planner/guidance/role.md +0 -1
  167. package/daemon/specs/agents/design/product-designer/agent.yaml +3 -4
  168. package/daemon/specs/agents/design/product-designer/guidance/role.md +0 -3
  169. package/daemon/specs/agents/development/implementer/agent.yaml +3 -4
  170. package/daemon/specs/agents/development/implementer/guidance/role.md +0 -3
  171. package/daemon/specs/agents/development/qa/agent.yaml +4 -4
  172. package/daemon/specs/agents/development/qa/guidance/role.md +1 -4
  173. package/daemon/specs/agents/factory-rsi/dogfood/agent.yaml +1 -1
  174. package/daemon/specs/agents/factory-rsi/release-manager/agent.yaml +1 -1
  175. package/daemon/specs/agents/orchestration/orchestrator/agent.yaml +3 -4
  176. package/daemon/specs/agents/orchestration/orchestrator/guidance/role.md +0 -4
  177. package/daemon/specs/agents/review/independent-reviewer/agent.yaml +3 -4
  178. package/daemon/specs/agents/review/independent-reviewer/guidance/role.md +0 -3
  179. package/daemon/specs/agents/shared/agent.yaml +2 -10
  180. package/daemon/specs/agents/shared/skills/core/agent-startup-and-context-ingestion/SKILL.md +1 -1
  181. package/daemon/specs/agents/shared/skills/core/openrig-skills/SKILL.md +1 -4
  182. package/daemon/specs/agents/shared/skills/pm/requirements-writer/SKILL.md +21 -15
  183. package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +1 -1
  184. package/daemon/specs/agents/shared/skills/pods/review-team/SKILL.md +1 -1
  185. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/agent.yaml +1 -1
  186. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/guidance/role.md +2 -3
  187. package/dist/build-info.js +3 -3
  188. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  189. package/dist/commands/config-init-workspace.js +38 -3
  190. package/dist/commands/config-init-workspace.js.map +1 -1
  191. package/dist/commands/context.d.ts.map +1 -1
  192. package/dist/commands/context.js +37 -0
  193. package/dist/commands/context.js.map +1 -1
  194. package/dist/commands/create.d.ts +4 -0
  195. package/dist/commands/create.d.ts.map +1 -0
  196. package/dist/commands/create.js +84 -0
  197. package/dist/commands/create.js.map +1 -0
  198. package/dist/commands/grow.d.ts +4 -0
  199. package/dist/commands/grow.d.ts.map +1 -0
  200. package/dist/commands/grow.js +182 -0
  201. package/dist/commands/grow.js.map +1 -0
  202. package/dist/commands/remove.d.ts.map +1 -1
  203. package/dist/commands/remove.js +9 -1
  204. package/dist/commands/remove.js.map +1 -1
  205. package/dist/commands/rig.d.ts.map +1 -1
  206. package/dist/commands/rig.js +48 -1
  207. package/dist/commands/rig.js.map +1 -1
  208. package/dist/commands/scope.d.ts.map +1 -1
  209. package/dist/commands/scope.js +21 -2
  210. package/dist/commands/scope.js.map +1 -1
  211. package/dist/commands/shrink.d.ts.map +1 -1
  212. package/dist/commands/shrink.js +6 -1
  213. package/dist/commands/shrink.js.map +1 -1
  214. package/dist/commands/topology-default-agent.d.ts +4 -0
  215. package/dist/commands/topology-default-agent.d.ts.map +1 -0
  216. package/dist/commands/topology-default-agent.js +13 -0
  217. package/dist/commands/topology-default-agent.js.map +1 -0
  218. package/dist/commands/walk.d.ts.map +1 -1
  219. package/dist/commands/walk.js +3 -0
  220. package/dist/commands/walk.js.map +1 -1
  221. package/dist/index.d.ts +2 -0
  222. package/dist/index.d.ts.map +1 -1
  223. package/dist/index.js +4 -0
  224. package/dist/index.js.map +1 -1
  225. package/dist/lib/work-install.d.ts +39 -0
  226. package/dist/lib/work-install.d.ts.map +1 -0
  227. package/dist/lib/work-install.js +278 -0
  228. package/dist/lib/work-install.js.map +1 -0
  229. package/node_modules/@openrig/daemon/dist/build-info.js +3 -3
  230. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/basic-loop.yaml +3 -3
  231. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/conveyor.yaml +1 -1
  232. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/factory-rsi.yaml +1 -1
  233. package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts +1 -1
  234. package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts.map +1 -1
  235. package/node_modules/@openrig/daemon/dist/db/all-migrations.js +4 -2
  236. package/node_modules/@openrig/daemon/dist/db/all-migrations.js.map +1 -1
  237. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.d.ts +4 -0
  238. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.d.ts.map +1 -0
  239. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.js +6 -0
  240. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.js.map +1 -0
  241. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
  242. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js +5 -6
  243. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
  244. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts +1 -1
  245. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
  246. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js +2 -2
  247. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
  248. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +3 -1
  249. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -1
  250. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js +3 -2
  251. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -1
  252. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts +24 -4
  253. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  254. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js +116 -6
  255. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  256. package/node_modules/@openrig/daemon/dist/domain/rig-repository.d.ts +2 -1
  257. package/node_modules/@openrig/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  258. package/node_modules/@openrig/daemon/dist/domain/rig-repository.js +7 -0
  259. package/node_modules/@openrig/daemon/dist/domain/rig-repository.js.map +1 -1
  260. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  261. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.js +2 -0
  262. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  263. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  264. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js +2 -0
  265. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  266. package/node_modules/@openrig/daemon/dist/domain/types.d.ts +2 -0
  267. package/node_modules/@openrig/daemon/dist/domain/types.d.ts.map +1 -1
  268. package/node_modules/@openrig/daemon/dist/domain/types.js.map +1 -1
  269. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  270. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js +37 -2
  271. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  272. package/node_modules/@openrig/daemon/dist/routes/context-packs.d.ts.map +1 -1
  273. package/node_modules/@openrig/daemon/dist/routes/context-packs.js +146 -6
  274. package/node_modules/@openrig/daemon/dist/routes/context-packs.js.map +1 -1
  275. package/node_modules/@openrig/daemon/dist/routes/rigs.js +7 -3
  276. package/node_modules/@openrig/daemon/dist/routes/rigs.js.map +1 -1
  277. package/node_modules/@openrig/daemon/dist/routes/sessions.js +7 -3
  278. package/node_modules/@openrig/daemon/dist/routes/sessions.js.map +1 -1
  279. package/node_modules/@openrig/daemon/dist/startup.d.ts.map +1 -1
  280. package/node_modules/@openrig/daemon/dist/startup.js +3 -1
  281. package/node_modules/@openrig/daemon/dist/startup.js.map +1 -1
  282. package/node_modules/@openrig/daemon/package.json +1 -1
  283. package/package.json +1 -1
  284. package/daemon/context-packs/skills/process/brainstorming/OPENRIG.md +0 -48
  285. package/daemon/context-packs/skills/process/brainstorming/SKILL.md +0 -107
  286. package/daemon/context-packs/skills/process/brainstorming/manifest.yaml +0 -12
  287. package/daemon/context-packs/skills/process/executing-plans/OPENRIG.md +0 -56
  288. package/daemon/context-packs/skills/process/executing-plans/SKILL.md +0 -94
  289. package/daemon/context-packs/skills/process/executing-plans/manifest.yaml +0 -12
  290. package/daemon/context-packs/skills/process/using-superpowers/OPENRIG.md +0 -48
  291. package/daemon/context-packs/skills/process/using-superpowers/SKILL.md +0 -106
  292. package/daemon/context-packs/skills/process/using-superpowers/manifest.yaml +0 -12
  293. package/daemon/context-packs/skills/process/writing-plans/OPENRIG.md +0 -52
  294. package/daemon/context-packs/skills/process/writing-plans/SKILL.md +0 -126
  295. package/daemon/context-packs/skills/process/writing-plans/manifest.yaml +0 -12
  296. package/daemon/specs/agents/shared/skills/process/brainstorming/OPENRIG.md +0 -48
  297. package/daemon/specs/agents/shared/skills/process/brainstorming/SKILL.md +0 -107
  298. package/daemon/specs/agents/shared/skills/process/executing-plans/OPENRIG.md +0 -56
  299. package/daemon/specs/agents/shared/skills/process/executing-plans/SKILL.md +0 -94
  300. package/daemon/specs/agents/shared/skills/process/using-superpowers/OPENRIG.md +0 -48
  301. package/daemon/specs/agents/shared/skills/process/using-superpowers/SKILL.md +0 -106
  302. package/daemon/specs/agents/shared/skills/process/writing-plans/OPENRIG.md +0 -52
  303. package/daemon/specs/agents/shared/skills/process/writing-plans/SKILL.md +0 -126
@@ -1,56 +0,0 @@
1
- ---
2
- skill: executing-plans
3
- openrig-relationship: vendored-modified
4
- ---
5
-
6
- # OpenRig and this skill
7
-
8
- ## Origin
9
-
10
- - **Upstream**: Obra Superpowers (https://github.com/obra/superpowers)
11
- - **Vendoring pattern**: `modify-the-file`
12
- - **Last upstream check**: 2026-05-13 (initial relationship declaration)
13
-
14
- ## How OpenRig uses this skill
15
-
16
- This is the canonical "execute a plan that another seat wrote" skill for OpenRig implementation agents. The driver/guard/qa pattern depends on this skill to keep plan-execution checkpointable and reviewable. Without the batch-with-checkpoint structure, the orchestration loop loses its in-flight review surface.
17
-
18
- ## OpenRig-specific modifications
19
-
20
- The skill was restructured from upstream's all-tasks-at-once execution shape into a batch-with-checkpoint shape:
21
-
22
- | Aspect | Upstream | OpenRig |
23
- |---|---|---|
24
- | Execution unit | All tasks in plan, sequentially | Batch (default 3 tasks per batch) |
25
- | Reporting cadence | Once at end (after all tasks complete) | Between every batch |
26
- | Architect-review surface | None inside the skill | Step 3 "Report" + Step 4 "Continue" cycle |
27
- | Subagent alternative | Suggests `superpowers:subagent-driven-development` as a better choice when subagents are available | **Removed**. OpenRig topologies already supply separate pods for review; the subagent pointer added cognitive overhead with no win. |
28
- | Stop conditions | "Hit a blocker" | "Hit a blocker **mid-batch**" |
29
- | Step 5 "Complete Development" | Step 3 in upstream | Renumbered to Step 5 to make room for the batch-and-report cycle |
30
-
31
- The `## Integration` section preserves the upstream sub-skill pointers (`using-git-worktrees`, `writing-plans`, `finishing-a-development-branch`) — those are also vendored from obra-superpowers and present in OpenRig under the same names.
32
-
33
- ## Why these modifications
34
-
35
- - **Batch-and-report cadence fits the OpenRig driver/guard/qa rhythm.** Architect feedback is in-the-loop rather than after-the-fact. A driver who reports between batches gives guard + qa room to surface direction corrections before more work compounds the wrong direction.
36
- - **The subagent-driven-development pointer doesn't fit the OpenRig posture.** OpenRig already provides parallel-pod review via separate seats; routing through subagents is structurally redundant.
37
- - **"Mid-batch" precision in stop conditions** matches the batch unit. A driver hitting a blocker between tasks should still report — the unit of "stop and ask" is the batch, not the whole plan.
38
-
39
- ## Companion files
40
-
41
- None at the moment.
42
-
43
- ## When to re-sync upstream
44
-
45
- Watch for upstream changes to:
46
-
47
- - **Plan-execution discipline** — stop conditions, verification rules, blocker-handling cadence.
48
- - **The relationship to writing-plans + finishing-a-development-branch** — if upstream changes how these compose, OpenRig should consider whether the new shape is worth adopting.
49
-
50
- When upstream changes:
51
-
52
- 1. Pull non-conflicting changes into the OpenRig copy.
53
- 2. Preserve the batch-with-checkpoint structure unless operator direction reverses.
54
- 3. Re-check that the subagent-alternative pointer hasn't crept back in.
55
- 4. Bump `last_upstream_check` in `SKILL.md` frontmatter.
56
- 5. Note any structural shape changes in `divergence_notes`.
@@ -1,94 +0,0 @@
1
- ---
2
- name: executing-plans
3
- description: Use when you have a written implementation plan to execute in a separate session with review checkpoints
4
- metadata:
5
- openrig:
6
- vendored_from: "Obra Superpowers (https://github.com/obra/superpowers)"
7
- vendoring_pattern: modify-the-file
8
- last_upstream_check: "2026-05-13 (initial vendoring declaration)"
9
- divergence_notes: |
10
- Restructured from upstream's all-tasks-at-once execution into batch-with-
11
- checkpoint execution (default 3 tasks per batch + report + continue cycle).
12
- Removed the upstream suggestion to use superpowers:subagent-driven-development
13
- as an alternative. See OPENRIG.md for full divergence details.
14
- ---
15
-
16
- # Executing Plans
17
-
18
- ## Overview
19
-
20
- Load plan, review critically, execute tasks in batches, report for review between batches.
21
-
22
- **Core principle:** Batch execution with checkpoints for architect review.
23
-
24
- **Announce at start:** "I'm using the executing-plans skill to implement this plan."
25
-
26
- ## The Process
27
-
28
- ### Step 1: Load and Review Plan
29
- 1. Read plan file
30
- 2. Review critically - identify any questions or concerns about the plan
31
- 3. If concerns: Raise them with your human partner before starting
32
- 4. If no concerns: Create TodoWrite and proceed
33
-
34
- ### Step 2: Execute Batch
35
- **Default: First 3 tasks**
36
-
37
- For each task:
38
- 1. Mark as in_progress
39
- 2. Follow each step exactly (plan has bite-sized steps)
40
- 3. Run verifications as specified
41
- 4. Mark as completed
42
-
43
- ### Step 3: Report
44
- When batch complete:
45
- - Show what was implemented
46
- - Show verification output
47
- - Say: "Ready for feedback."
48
-
49
- ### Step 4: Continue
50
- Based on feedback:
51
- - Apply changes if needed
52
- - Execute next batch
53
- - Repeat until complete
54
-
55
- ### Step 5: Complete Development
56
-
57
- After all tasks complete and verified:
58
- - Announce: "I'm using the finishing-a-development-branch skill to complete this work."
59
- - **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
60
- - Follow that skill to verify tests, present options, execute choice
61
-
62
- ## When to Stop and Ask for Help
63
-
64
- **STOP executing immediately when:**
65
- - Hit a blocker mid-batch (missing dependency, test fails, instruction unclear)
66
- - Plan has critical gaps preventing starting
67
- - You don't understand an instruction
68
- - Verification fails repeatedly
69
-
70
- **Ask for clarification rather than guessing.**
71
-
72
- ## When to Revisit Earlier Steps
73
-
74
- **Return to Review (Step 1) when:**
75
- - Partner updates the plan based on your feedback
76
- - Fundamental approach needs rethinking
77
-
78
- **Don't force through blockers** - stop and ask.
79
-
80
- ## Remember
81
- - Review plan critically first
82
- - Follow plan steps exactly
83
- - Don't skip verifications
84
- - Reference skills when plan says to
85
- - Between batches: just report and wait
86
- - Stop when blocked, don't guess
87
- - Never start implementation on main/master branch without explicit user consent
88
-
89
- ## Integration
90
-
91
- **Required workflow skills:**
92
- - **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
93
- - **superpowers:writing-plans** - Creates the plan this skill executes
94
- - **superpowers:finishing-a-development-branch** - Complete development after all tasks
@@ -1,48 +0,0 @@
1
- ---
2
- skill: using-superpowers
3
- openrig-relationship: vendored-modified
4
- ---
5
-
6
- # OpenRig and this skill
7
-
8
- ## Origin
9
-
10
- - **Upstream**: Obra Superpowers (https://github.com/obra/superpowers)
11
- - **Vendoring pattern**: `modify-the-file`
12
- - **Last upstream check**: 2026-05-13 (diff against plugin source pulled 2026-05-11)
13
-
14
- ## How OpenRig uses this skill
15
-
16
- `using-superpowers` is the catalog-aware "always reach for a skill before answering" bootstrap. It's loaded into every OpenRig agent's startup context to enforce the discipline that skills must be invoked through the `Skill` tool (not Read'd directly), and that the agent should pattern-match descriptions against the work at hand before producing free-form output.
17
-
18
- ## OpenRig-specific modifications
19
-
20
- | Surface | Upstream | OpenRig |
21
- |---|---|---|
22
- | `<SUBAGENT-STOP>` block | Skip the skill if dispatched as a subagent | **Removed.** OpenRig doesn't use the upstream subagent-dispatch pattern; this directive doesn't fit the rig/pod/seat topology. |
23
- | Instruction Priority section | 3-tier priority: user > skills > system | **Removed.** OpenRig handles priority at the AgentSpec + agent-startup-content layer, not inside this skill. |
24
- | Platform-specific sections (Copilot CLI, Gemini CLI) | Each platform gets its own paragraph for how to access skills | **Removed.** OpenRig targets Claude Code + Codex specifically. The Claude Code paragraph is preserved. |
25
- | Platform Adaptation section | Points to `references/copilot-tools.md` and `references/codex-tools.md` for tool mapping | **Removed.** OpenRig agents don't need the upstream tool-mapping references; the rig spec lists tools directly. |
26
-
27
- ## Why these modifications (inferred)
28
-
29
- - **Topology mismatch**: OpenRig's subagent model is the rig/pod/seat structure, not the upstream's "dispatch a subagent" pattern. The `<SUBAGENT-STOP>` block would silently skip the skill in seats that should be loading it.
30
- - **OpenRig is opinionated about target runtimes**: Claude Code + Codex are the supported pair. Multi-platform copy adds cognitive overhead without product value for OpenRig users.
31
- - **Priority lives at the spec layer**: OpenRig's AgentSpec + startup content (role.md, guidance/, CULTURE.md) is where instruction precedence is encoded; baking it into this skill duplicates the layering.
32
-
33
- ## Companion files
34
-
35
- None. (Upstream ships `references/copilot-tools.md` and `references/codex-tools.md` but these reference the upstream Copilot tool surface, not OpenRig's. They are not vendored.)
36
-
37
- ## When to re-sync upstream
38
-
39
- Watch upstream for:
40
-
41
- - Changes to the core "always invoke a skill" discipline (the heart of the skill).
42
- - New platforms upstream supports that OpenRig might also want to support — would need to add a corresponding paragraph here.
43
-
44
- When upstream changes:
45
-
46
- 1. Pull non-conflicting changes into the OpenRig copy.
47
- 2. Do NOT re-introduce the multi-platform sections, SUBAGENT-STOP block, or Instruction Priority section unless operator direction reverses.
48
- 3. Bump `last_upstream_check` in `SKILL.md` frontmatter.
@@ -1,106 +0,0 @@
1
- ---
2
- name: using-superpowers
3
- description: Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
4
- metadata:
5
- openrig:
6
- vendored_from: "Obra Superpowers (https://github.com/obra/superpowers)"
7
- vendoring_pattern: modify-the-file
8
- last_upstream_check: "2026-05-13 (diff against plugin source pulled 2026-05-11)"
9
- divergence_notes: |
10
- Removed multi-platform-specific sections (Copilot CLI, Gemini CLI,
11
- Platform Adaptation) — OpenRig targets Claude Code + Codex. Removed
12
- the SUBAGENT-STOP block and Instruction Priority section — OpenRig
13
- handles those concerns at the rig/agent-spec layer.
14
- See OPENRIG.md for full divergence details.
15
- ---
16
-
17
- <EXTREMELY-IMPORTANT>
18
- If you think there is even a 1% chance a skill might apply to what you are doing, you ABSOLUTELY MUST invoke the skill.
19
-
20
- IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
21
-
22
- This is not negotiable. This is not optional. You cannot rationalize your way out of this.
23
- </EXTREMELY-IMPORTANT>
24
-
25
- ## How to Access Skills
26
-
27
- **In Claude Code:** Use the `Skill` tool. When you invoke a skill, its content is loaded and presented to you—follow it directly. Never use the Read tool on skill files.
28
-
29
- **In other environments:** Check your platform's documentation for how skills are loaded.
30
-
31
- # Using Skills
32
-
33
- ## The Rule
34
-
35
- **Invoke relevant or requested skills BEFORE any response or action.** Even a 1% chance a skill might apply means that you should invoke the skill to check. If an invoked skill turns out to be wrong for the situation, you don't need to use it.
36
-
37
- ```dot
38
- digraph skill_flow {
39
- "User message received" [shape=doublecircle];
40
- "About to EnterPlanMode?" [shape=doublecircle];
41
- "Already brainstormed?" [shape=diamond];
42
- "Invoke brainstorming skill" [shape=box];
43
- "Might any skill apply?" [shape=diamond];
44
- "Invoke Skill tool" [shape=box];
45
- "Announce: 'Using [skill] to [purpose]'" [shape=box];
46
- "Has checklist?" [shape=diamond];
47
- "Create TodoWrite todo per item" [shape=box];
48
- "Follow skill exactly" [shape=box];
49
- "Respond (including clarifications)" [shape=doublecircle];
50
-
51
- "About to EnterPlanMode?" -> "Already brainstormed?";
52
- "Already brainstormed?" -> "Invoke brainstorming skill" [label="no"];
53
- "Already brainstormed?" -> "Might any skill apply?" [label="yes"];
54
- "Invoke brainstorming skill" -> "Might any skill apply?";
55
-
56
- "User message received" -> "Might any skill apply?";
57
- "Might any skill apply?" -> "Invoke Skill tool" [label="yes, even 1%"];
58
- "Might any skill apply?" -> "Respond (including clarifications)" [label="definitely not"];
59
- "Invoke Skill tool" -> "Announce: 'Using [skill] to [purpose]'";
60
- "Announce: 'Using [skill] to [purpose]'" -> "Has checklist?";
61
- "Has checklist?" -> "Create TodoWrite todo per item" [label="yes"];
62
- "Has checklist?" -> "Follow skill exactly" [label="no"];
63
- "Create TodoWrite todo per item" -> "Follow skill exactly";
64
- }
65
- ```
66
-
67
- ## Red Flags
68
-
69
- These thoughts mean STOP—you're rationalizing:
70
-
71
- | Thought | Reality |
72
- |---------|---------|
73
- | "This is just a simple question" | Questions are tasks. Check for skills. |
74
- | "I need more context first" | Skill check comes BEFORE clarifying questions. |
75
- | "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
76
- | "I can check git/files quickly" | Files lack conversation context. Check for skills. |
77
- | "Let me gather information first" | Skills tell you HOW to gather information. |
78
- | "This doesn't need a formal skill" | If a skill exists, use it. |
79
- | "I remember this skill" | Skills evolve. Read current version. |
80
- | "This doesn't count as a task" | Action = task. Check for skills. |
81
- | "The skill is overkill" | Simple things become complex. Use it. |
82
- | "I'll just do this one thing first" | Check BEFORE doing anything. |
83
- | "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
84
- | "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
85
-
86
- ## Skill Priority
87
-
88
- When multiple skills could apply, use this order:
89
-
90
- 1. **Process skills first** (brainstorming, debugging) - these determine HOW to approach the task
91
- 2. **Implementation skills second** (frontend-design, mcp-builder) - these guide execution
92
-
93
- "Let's build X" → brainstorming first, then implementation skills.
94
- "Fix this bug" → debugging first, then domain-specific skills.
95
-
96
- ## Skill Types
97
-
98
- **Rigid** (TDD, debugging): Follow exactly. Don't adapt away discipline.
99
-
100
- **Flexible** (patterns): Adapt principles to context.
101
-
102
- The skill itself tells you which.
103
-
104
- ## User Instructions
105
-
106
- Instructions say WHAT, not HOW. "Add X" or "Fix Y" doesn't mean skip workflows.
@@ -1,52 +0,0 @@
1
- ---
2
- skill: writing-plans
3
- openrig-relationship: vendored-modified
4
- ---
5
-
6
- # OpenRig and this skill
7
-
8
- ## Origin
9
-
10
- - **Upstream**: Obra Superpowers (https://github.com/obra/superpowers)
11
- - **Vendoring pattern**: `modify-the-file`
12
- - **Last upstream check**: 2026-05-13 (diff against plugin source pulled 2026-05-11)
13
-
14
- ## How OpenRig uses this skill
15
-
16
- `writing-plans` is the middle step of OpenRig's three-stage implementation flow: `brainstorming` produces the design, `writing-plans` turns the design into a bite-sized task plan, and `executing-plans` (also OpenRig-modified) drives the plan to completion in batches. Driver seats use this skill when authoring plans for guard + qa to review and for downstream drivers to execute.
17
-
18
- ## OpenRig-specific modifications
19
-
20
- | Surface | Upstream | OpenRig |
21
- |---|---|---|
22
- | Plan save path | `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md` | `docs/plans/YYYY-MM-DD-<feature-name>.md` (matches OpenRig's `docs/plans/` convention; coordinated with the matching change in `brainstorming`) |
23
- | Scope Check section | Explicit step to break multi-subsystem specs into sub-project specs | **Removed.** OpenRig's slice + mission decomposition (handled at the orchestration layer) already enforces single-coherence scope per plan. |
24
- | File Structure section | Explicit step to map files-to-be-created/modified with responsibilities before defining tasks | **Removed.** OpenRig drivers work inside an already-scoped slice; file-decomposition decisions live in the slice spec, not the plan. |
25
- | Worktree context hint | "If working in an isolated worktree, it should have been created via the `superpowers:using-git-worktrees` skill at execution time." | "This should be run in a dedicated worktree (created by brainstorming skill)." — less explicit cross-skill dependency. |
26
- | "For agentic workers" plan-header pointer | Suggests `superpowers:subagent-driven-development` (recommended) or `superpowers:executing-plans` | "For Claude: REQUIRED SUB-SKILL: Use `superpowers:executing-plans` to implement this plan task-by-task." Removed the subagent-driven-development pointer (consistent with the `executing-plans` modification). |
27
- | Step tracking syntax | `- [ ] **Step 1: ...**` (checkbox for TodoWrite tracking) | `**Step 1: ...**` (bare bold; OpenRig drivers use their own task-tracking) |
28
-
29
- ## Why these modifications (inferred)
30
-
31
- - **Path coordination**: `docs/plans/` is OpenRig's canonical home for plan documents. The `brainstorming` skill produces designs at `docs/plans/...-design.md`; `writing-plans` produces plans at `docs/plans/...-feature-name.md`. Same root.
32
- - **Scope + structure handled higher**: OpenRig's slice spec already constrains scope (one coherent slice) and identifies the touched-file surface. Repeating those checks inside the plan-authoring skill double-gates the work.
33
- - **No subagent-driven-development pointer**: same reason as the `executing-plans` modification — OpenRig topologies provide parallel-pod review via separate seats; routing through subagents is structurally redundant.
34
- - **Bare bold step syntax**: OpenRig drivers track progress via the orchestration queue + their own task tooling, not via in-file TodoWrite checkboxes.
35
-
36
- ## Companion files
37
-
38
- None.
39
-
40
- ## When to re-sync upstream
41
-
42
- Watch upstream for:
43
-
44
- - Changes to plan structure or task-granularity guidance.
45
- - Coordination changes with `brainstorming` and `executing-plans` (this skill is the middle of a 3-skill chain; changes to either end may require this skill to follow).
46
-
47
- When upstream changes:
48
-
49
- 1. Pull non-conflicting changes into the OpenRig copy.
50
- 2. Preserve the `docs/plans/` save path and the absence of the Scope Check + File Structure sections unless operator direction reverses.
51
- 3. Re-check that the subagent-driven-development pointer hasn't crept back in.
52
- 4. Bump `last_upstream_check` in `SKILL.md` frontmatter.
@@ -1,126 +0,0 @@
1
- ---
2
- name: writing-plans
3
- description: Use when you have a spec or requirements for a multi-step task, before touching code
4
- metadata:
5
- openrig:
6
- vendored_from: "Obra Superpowers (https://github.com/obra/superpowers)"
7
- vendoring_pattern: modify-the-file
8
- last_upstream_check: "2026-05-13 (diff against plugin source pulled 2026-05-11)"
9
- divergence_notes: |
10
- Removed the Scope Check + File Structure sections, the subagent-driven-
11
- development sub-skill pointer, and the checkbox-tracking syntax for
12
- steps. Changed plan-doc save path from docs/superpowers/plans/ to
13
- docs/plans/. See OPENRIG.md for full divergence details.
14
- ---
15
-
16
- # Writing Plans
17
-
18
- ## Overview
19
-
20
- Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
21
-
22
- Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
23
-
24
- **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
25
-
26
- **Context:** This should be run in a dedicated worktree (created by brainstorming skill).
27
-
28
- **Save plans to:** `docs/plans/YYYY-MM-DD-<feature-name>.md`
29
-
30
- ## Bite-Sized Task Granularity
31
-
32
- **Each step is one action (2-5 minutes):**
33
- - "Write the failing test" - step
34
- - "Run it to make sure it fails" - step
35
- - "Implement the minimal code to make the test pass" - step
36
- - "Run the tests and make sure they pass" - step
37
- - "Commit" - step
38
-
39
- ## Plan Document Header
40
-
41
- **Every plan MUST start with this header:**
42
-
43
- ```markdown
44
- # [Feature Name] Implementation Plan
45
-
46
- > **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
47
-
48
- **Goal:** [One sentence describing what this builds]
49
-
50
- **Architecture:** [2-3 sentences about approach]
51
-
52
- **Tech Stack:** [Key technologies/libraries]
53
-
54
- ---
55
- ```
56
-
57
- ## Task Structure
58
-
59
- ````markdown
60
- ### Task N: [Component Name]
61
-
62
- **Files:**
63
- - Create: `exact/path/to/file.py`
64
- - Modify: `exact/path/to/existing.py:123-145`
65
- - Test: `tests/exact/path/to/test.py`
66
-
67
- **Step 1: Write the failing test**
68
-
69
- ```python
70
- def test_specific_behavior():
71
- result = function(input)
72
- assert result == expected
73
- ```
74
-
75
- **Step 2: Run test to verify it fails**
76
-
77
- Run: `pytest tests/path/test.py::test_name -v`
78
- Expected: FAIL with "function not defined"
79
-
80
- **Step 3: Write minimal implementation**
81
-
82
- ```python
83
- def function(input):
84
- return expected
85
- ```
86
-
87
- **Step 4: Run test to verify it passes**
88
-
89
- Run: `pytest tests/path/test.py::test_name -v`
90
- Expected: PASS
91
-
92
- **Step 5: Commit**
93
-
94
- ```bash
95
- git add tests/path/test.py src/path/file.py
96
- git commit -m "feat: add specific feature"
97
- ```
98
- ````
99
-
100
- ## Remember
101
- - Exact file paths always
102
- - Complete code in plan (not "add validation")
103
- - Exact commands with expected output
104
- - Reference relevant skills with @ syntax
105
- - DRY, YAGNI, TDD, frequent commits
106
-
107
- ## Execution Handoff
108
-
109
- After saving the plan, offer execution choice:
110
-
111
- **"Plan complete and saved to `docs/plans/<filename>.md`. Two execution options:**
112
-
113
- **1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration
114
-
115
- **2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints
116
-
117
- **Which approach?"**
118
-
119
- **If Subagent-Driven chosen:**
120
- - Spawn a fresh subagent for each task; code-review the result before merging
121
- - Stay in this session
122
- - Pair with whatever subagent-orchestration skill your runtime provides (e.g., the Obra Superpowers plugin ships one if you have that plugin installed)
123
-
124
- **If Parallel Session chosen:**
125
- - Guide them to open new session in worktree
126
- - **REQUIRED SUB-SKILL:** New session uses superpowers:executing-plans