openplanr 2.2641.1 → 3.0.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 (315) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -1
  3. package/dist/cli/commands/artifact.js +1 -1
  4. package/dist/cli/commands/artifact.js.map +1 -1
  5. package/dist/cli/commands/doctor.d.ts.map +1 -1
  6. package/dist/cli/commands/doctor.js +19 -4
  7. package/dist/cli/commands/doctor.js.map +1 -1
  8. package/dist/cli/commands/github.d.ts.map +1 -1
  9. package/dist/cli/commands/github.js +7 -10
  10. package/dist/cli/commands/github.js.map +1 -1
  11. package/dist/cli/commands/linear.js +1 -1
  12. package/dist/cli/commands/linear.js.map +1 -1
  13. package/dist/cli/commands/report.d.ts.map +1 -1
  14. package/dist/cli/commands/report.js +28 -32
  15. package/dist/cli/commands/report.js.map +1 -1
  16. package/dist/cli/commands/upgrade.d.ts.map +1 -1
  17. package/dist/cli/commands/upgrade.js +12 -10
  18. package/dist/cli/commands/upgrade.js.map +1 -1
  19. package/dist/cli/error-boundary.d.ts.map +1 -1
  20. package/dist/cli/error-boundary.js +2 -1
  21. package/dist/cli/error-boundary.js.map +1 -1
  22. package/dist/dashboard/.vite/manifest.json +1 -1
  23. package/dist/dashboard/assets/{index-DGyC7RDz.js → index-Csby7_ur.js} +2 -2
  24. package/dist/dashboard/assets/{index-DGyC7RDz.js.map → index-Csby7_ur.js.map} +1 -1
  25. package/dist/dashboard/dashboard-manifest.json +8 -8
  26. package/dist/dashboard/index.html +1 -1
  27. package/dist/models/schema.d.ts +0 -4
  28. package/dist/models/schema.d.ts.map +1 -1
  29. package/dist/models/schema.js +0 -2
  30. package/dist/models/schema.js.map +1 -1
  31. package/dist/models/types.d.ts +1 -4
  32. package/dist/models/types.d.ts.map +1 -1
  33. package/dist/services/credentials-service.js +1 -1
  34. package/dist/services/credentials-service.js.map +1 -1
  35. package/dist/services/distribution-service.d.ts +1 -4
  36. package/dist/services/distribution-service.d.ts.map +1 -1
  37. package/dist/services/distribution-service.js +1 -60
  38. package/dist/services/distribution-service.js.map +1 -1
  39. package/dist/services/github-service.d.ts +7 -4
  40. package/dist/services/github-service.d.ts.map +1 -1
  41. package/dist/services/github-service.js +16 -15
  42. package/dist/services/github-service.js.map +1 -1
  43. package/dist/services/linear-push-service.d.ts +3 -4
  44. package/dist/services/linear-push-service.d.ts.map +1 -1
  45. package/dist/services/linear-push-service.js +5 -6
  46. package/dist/services/linear-push-service.js.map +1 -1
  47. package/dist/services/runtime-change-summary.d.ts +4 -0
  48. package/dist/services/runtime-change-summary.d.ts.map +1 -1
  49. package/dist/services/runtime-change-summary.js +7 -0
  50. package/dist/services/runtime-change-summary.js.map +1 -1
  51. package/dist/services/runtime-manager/doctor.js +1 -1
  52. package/dist/services/runtime-manager/doctor.js.map +1 -1
  53. package/dist/services/runtime-manager/runtime-package.d.ts +15 -0
  54. package/dist/services/runtime-manager/runtime-package.d.ts.map +1 -1
  55. package/dist/services/runtime-manager/runtime-package.js +50 -10
  56. package/dist/services/runtime-manager/runtime-package.js.map +1 -1
  57. package/dist/services/runtime-manager-service.d.ts +11 -0
  58. package/dist/services/runtime-manager-service.d.ts.map +1 -1
  59. package/dist/services/runtime-manager-service.js +88 -16
  60. package/dist/services/runtime-manager-service.js.map +1 -1
  61. package/dist/services/spec-service.d.ts.map +1 -1
  62. package/dist/services/spec-service.js +34 -69
  63. package/dist/services/spec-service.js.map +1 -1
  64. package/dist/services/upgrade-report.d.ts +2 -2
  65. package/dist/services/upgrade-report.d.ts.map +1 -1
  66. package/dist/services/upgrade-report.js +11 -2
  67. package/dist/services/upgrade-report.js.map +1 -1
  68. package/dist/services/upgrade-service.d.ts +8 -2
  69. package/dist/services/upgrade-service.d.ts.map +1 -1
  70. package/dist/services/upgrade-service.js +44 -12
  71. package/dist/services/upgrade-service.js.map +1 -1
  72. package/dist/templates/rules/shared/capability-map.md.hbs +1 -1
  73. package/docs/CLI.md +14 -15
  74. package/docs/TROUBLESHOOTING.md +9 -6
  75. package/install.ps1 +3 -3
  76. package/install.sh +3 -3
  77. package/lib/host-packages/adapter-registry.json +5 -5
  78. package/lib/host-packages/capability-map.json +8 -8
  79. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  80. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +2 -2
  81. package/lib/host-packages/claude/openplanr/.openplanr-content.json +91 -75
  82. package/lib/host-packages/claude/openplanr/README.md +8 -12
  83. package/lib/host-packages/claude/openplanr/agents/planr-backend.md +49 -55
  84. package/lib/host-packages/claude/openplanr/agents/planr-database.md +56 -92
  85. package/lib/host-packages/claude/openplanr/agents/planr-designer.md +35 -51
  86. package/lib/host-packages/claude/openplanr/agents/planr-devops.md +37 -51
  87. package/lib/host-packages/claude/openplanr/agents/planr-documentation.md +29 -52
  88. package/lib/host-packages/claude/openplanr/agents/planr-entity-scaffold.md +24 -23
  89. package/lib/host-packages/claude/openplanr/agents/planr-frontend.md +46 -58
  90. package/lib/host-packages/claude/openplanr/agents/planr-qa.md +4 -2
  91. package/lib/host-packages/claude/openplanr/agents/planr-specification.md +54 -51
  92. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/backend.md +21 -65
  93. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/designer.md +5 -6
  94. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/devops.md +2 -3
  95. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/doc-gen.md +3 -4
  96. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/frontend.md +19 -64
  97. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/default/specification.md +10 -12
  98. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/backend.md +19 -62
  99. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/designer.md +3 -4
  100. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/devops.md +2 -3
  101. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/doc-gen.md +2 -3
  102. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/frontend.md +16 -59
  103. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/spec-driven/specification.md +9 -11
  104. package/lib/host-packages/claude/openplanr/references/pipeline/stacks/database/mongodb.md +4 -4
  105. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +24 -9
  106. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +3 -3
  107. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  108. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -4
  109. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +14 -4
  110. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +1 -1
  111. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +14 -5
  112. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +28 -0
  113. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +105 -27
  114. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +6 -6
  115. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +2 -2
  116. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +1 -1
  117. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +2 -2
  118. package/lib/host-packages/claude/openplanr/skills/artifact/SKILL.md +2 -2
  119. package/lib/host-packages/claude/openplanr/skills/artifact/references/diagram-sharing.md +1 -1
  120. package/lib/host-packages/claude/openplanr/skills/ceo-review/SKILL.md +0 -1
  121. package/lib/host-packages/claude/openplanr/skills/ceo-review/references/operate-advisor-contract.md +25 -4
  122. package/lib/host-packages/claude/openplanr/skills/chair-review/SKILL.md +6 -2
  123. package/lib/host-packages/claude/openplanr/skills/challenger-review/SKILL.md +6 -2
  124. package/lib/host-packages/claude/openplanr/skills/cmo-review/SKILL.md +0 -1
  125. package/lib/host-packages/claude/openplanr/skills/cmo-review/references/operate-advisor-contract.md +25 -4
  126. package/lib/host-packages/claude/openplanr/skills/coo-review/SKILL.md +0 -1
  127. package/lib/host-packages/claude/openplanr/skills/coo-review/references/operate-advisor-contract.md +25 -4
  128. package/lib/host-packages/claude/openplanr/skills/cpo-review/SKILL.md +0 -1
  129. package/lib/host-packages/claude/openplanr/skills/cpo-review/references/operate-advisor-contract.md +25 -4
  130. package/lib/host-packages/claude/openplanr/skills/cto-review/SKILL.md +0 -1
  131. package/lib/host-packages/claude/openplanr/skills/cto-review/references/operate-advisor-contract.md +25 -4
  132. package/lib/host-packages/claude/openplanr/skills/delegate/SKILL.md +8 -1
  133. package/lib/host-packages/claude/openplanr/skills/delegate/references/capsule-contract.md +17 -2
  134. package/lib/host-packages/claude/openplanr/skills/delegate/references/operator-guide.md +7 -5
  135. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/claude.mjs +11 -4
  136. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/native.mjs +1 -1
  137. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +14 -48
  138. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/context.mjs +84 -22
  139. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/credentials.mjs +167 -0
  140. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/presentation.mjs +3 -2
  141. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-contract.mjs +5 -7
  142. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-preparation.mjs +5 -3
  143. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-record.mjs +2 -3
  144. package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +1 -1
  145. package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +1 -1
  146. package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +1 -1
  147. package/lib/host-packages/claude/openplanr/skills/diagram/references/diagram-sharing.md +1 -1
  148. package/lib/host-packages/claude/openplanr/skills/doctor/SKILL.md +4 -1
  149. package/lib/host-packages/claude/openplanr/skills/doctor/references/upgrade.md +8 -0
  150. package/lib/host-packages/claude/openplanr/skills/operate/SKILL.md +5 -3
  151. package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +10 -4
  152. package/lib/host-packages/claude/openplanr/skills/sprint/SKILL.md +5 -4
  153. package/lib/host-packages/claude/openplanr/skills/sprint/references/tracker-connections.md +70 -0
  154. package/lib/host-packages/claude/openplanr/skills/status/SKILL.md +4 -3
  155. package/lib/host-packages/claude/openplanr/skills/status/references/tracker-connections.md +70 -0
  156. package/lib/host-packages/claude/openplanr/skills/sync/SKILL.md +11 -20
  157. package/lib/host-packages/claude/openplanr/skills/sync/references/tracker-connections.md +70 -0
  158. package/lib/host-packages/claude/openplanr/skills/sync/scripts/sync.mjs +2 -2
  159. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +63 -47
  160. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  161. package/lib/host-packages/cursor/openplanr/rules/planr-artifact/references/diagram-sharing.md +1 -1
  162. package/lib/host-packages/cursor/openplanr/rules/planr-artifact.mdc +2 -2
  163. package/lib/host-packages/cursor/openplanr/rules/planr-ceo-review/references/operate-advisor-contract.md +25 -4
  164. package/lib/host-packages/cursor/openplanr/rules/planr-chair-review.mdc +6 -1
  165. package/lib/host-packages/cursor/openplanr/rules/planr-challenger-review.mdc +6 -1
  166. package/lib/host-packages/cursor/openplanr/rules/planr-cmo-review/references/operate-advisor-contract.md +25 -4
  167. package/lib/host-packages/cursor/openplanr/rules/planr-coo-review/references/operate-advisor-contract.md +25 -4
  168. package/lib/host-packages/cursor/openplanr/rules/planr-cpo-review/references/operate-advisor-contract.md +25 -4
  169. package/lib/host-packages/cursor/openplanr/rules/planr-cto-review/references/operate-advisor-contract.md +25 -4
  170. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/capsule-contract.md +17 -2
  171. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/operator-guide.md +7 -5
  172. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/claude.mjs +11 -4
  173. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/native.mjs +1 -1
  174. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/backend-diagnostics.mjs +14 -48
  175. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/context.mjs +84 -22
  176. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/credentials.mjs +167 -0
  177. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/presentation.mjs +3 -2
  178. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-contract.mjs +5 -7
  179. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-preparation.mjs +5 -3
  180. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-record.mjs +2 -3
  181. package/lib/host-packages/cursor/openplanr/rules/planr-delegate.mdc +8 -1
  182. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +1 -1
  183. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +1 -1
  184. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +1 -1
  185. package/lib/host-packages/cursor/openplanr/rules/planr-diagram/references/diagram-sharing.md +1 -1
  186. package/lib/host-packages/cursor/openplanr/rules/planr-doctor/references/upgrade.md +8 -0
  187. package/lib/host-packages/cursor/openplanr/rules/planr-doctor.mdc +4 -1
  188. package/lib/host-packages/cursor/openplanr/rules/planr-operate.mdc +5 -3
  189. package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +10 -4
  190. package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/tracker-connections.md +70 -0
  191. package/lib/host-packages/cursor/openplanr/rules/planr-sprint.mdc +5 -4
  192. package/lib/host-packages/cursor/openplanr/rules/planr-status/references/tracker-connections.md +70 -0
  193. package/lib/host-packages/cursor/openplanr/rules/planr-status.mdc +4 -3
  194. package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/tracker-connections.md +70 -0
  195. package/lib/host-packages/cursor/openplanr/rules/planr-sync/scripts/sync.mjs +2 -2
  196. package/lib/host-packages/cursor/openplanr/rules/planr-sync.mdc +11 -20
  197. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +24 -9
  198. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +3 -3
  199. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  200. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -4
  201. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +14 -4
  202. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +1 -1
  203. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +14 -5
  204. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +28 -0
  205. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +105 -27
  206. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +6 -6
  207. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +2 -2
  208. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +1 -1
  209. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +2 -2
  210. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  211. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  212. package/lib/host-packages/openai/openplanr/.openplanr-content.json +72 -56
  213. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +24 -9
  214. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +3 -3
  215. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  216. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -4
  217. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +14 -4
  218. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +1 -1
  219. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +14 -5
  220. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +28 -0
  221. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +105 -27
  222. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +6 -6
  223. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +2 -2
  224. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +1 -1
  225. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +2 -2
  226. package/lib/host-packages/openai/openplanr/skills/artifact/SKILL.md +2 -2
  227. package/lib/host-packages/openai/openplanr/skills/artifact/references/diagram-sharing.md +1 -1
  228. package/lib/host-packages/openai/openplanr/skills/ceo-review/SKILL.md +0 -1
  229. package/lib/host-packages/openai/openplanr/skills/ceo-review/references/operate-advisor-contract.md +25 -4
  230. package/lib/host-packages/openai/openplanr/skills/chair-review/SKILL.md +6 -2
  231. package/lib/host-packages/openai/openplanr/skills/challenger-review/SKILL.md +6 -2
  232. package/lib/host-packages/openai/openplanr/skills/cmo-review/SKILL.md +0 -1
  233. package/lib/host-packages/openai/openplanr/skills/cmo-review/references/operate-advisor-contract.md +25 -4
  234. package/lib/host-packages/openai/openplanr/skills/coo-review/SKILL.md +0 -1
  235. package/lib/host-packages/openai/openplanr/skills/coo-review/references/operate-advisor-contract.md +25 -4
  236. package/lib/host-packages/openai/openplanr/skills/cpo-review/SKILL.md +0 -1
  237. package/lib/host-packages/openai/openplanr/skills/cpo-review/references/operate-advisor-contract.md +25 -4
  238. package/lib/host-packages/openai/openplanr/skills/cto-review/SKILL.md +0 -1
  239. package/lib/host-packages/openai/openplanr/skills/cto-review/references/operate-advisor-contract.md +25 -4
  240. package/lib/host-packages/openai/openplanr/skills/delegate/SKILL.md +8 -1
  241. package/lib/host-packages/openai/openplanr/skills/delegate/openplanr.skill.json +11 -0
  242. package/lib/host-packages/openai/openplanr/skills/delegate/references/capsule-contract.md +17 -2
  243. package/lib/host-packages/openai/openplanr/skills/delegate/references/operator-guide.md +7 -5
  244. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/claude.mjs +11 -4
  245. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/native.mjs +1 -1
  246. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +14 -48
  247. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/context.mjs +84 -22
  248. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/credentials.mjs +167 -0
  249. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/presentation.mjs +3 -2
  250. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-contract.mjs +5 -7
  251. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-preparation.mjs +5 -3
  252. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-record.mjs +2 -3
  253. package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +1 -1
  254. package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +1 -1
  255. package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +1 -1
  256. package/lib/host-packages/openai/openplanr/skills/diagram/references/diagram-sharing.md +1 -1
  257. package/lib/host-packages/openai/openplanr/skills/doctor/SKILL.md +4 -1
  258. package/lib/host-packages/openai/openplanr/skills/doctor/references/upgrade.md +8 -0
  259. package/lib/host-packages/openai/openplanr/skills/operate/SKILL.md +5 -3
  260. package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +10 -4
  261. package/lib/host-packages/openai/openplanr/skills/sprint/SKILL.md +5 -4
  262. package/lib/host-packages/openai/openplanr/skills/sprint/openplanr.skill.json +11 -0
  263. package/lib/host-packages/openai/openplanr/skills/sprint/references/tracker-connections.md +70 -0
  264. package/lib/host-packages/openai/openplanr/skills/status/SKILL.md +4 -3
  265. package/lib/host-packages/openai/openplanr/skills/status/openplanr.skill.json +11 -0
  266. package/lib/host-packages/openai/openplanr/skills/status/references/tracker-connections.md +70 -0
  267. package/lib/host-packages/openai/openplanr/skills/sync/SKILL.md +11 -20
  268. package/lib/host-packages/openai/openplanr/skills/sync/openplanr.skill.json +11 -0
  269. package/lib/host-packages/openai/openplanr/skills/sync/references/tracker-connections.md +70 -0
  270. package/lib/host-packages/openai/openplanr/skills/sync/scripts/sync.mjs +2 -2
  271. package/lib/integrations.mjs +2 -2
  272. package/lib/node-runtime.d.mts +1 -1
  273. package/lib/node-runtime.mjs +2 -7
  274. package/package.json +4 -5
  275. package/bin/planr.js +0 -7
  276. package/dist/services/connectors/adapters/business-metrics.d.ts +0 -5
  277. package/dist/services/connectors/adapters/business-metrics.d.ts.map +0 -1
  278. package/dist/services/connectors/adapters/business-metrics.js +0 -41
  279. package/dist/services/connectors/adapters/business-metrics.js.map +0 -1
  280. package/dist/services/connectors/adapters/deployment-health.d.ts +0 -18
  281. package/dist/services/connectors/adapters/deployment-health.d.ts.map +0 -1
  282. package/dist/services/connectors/adapters/deployment-health.js +0 -67
  283. package/dist/services/connectors/adapters/deployment-health.js.map +0 -1
  284. package/dist/services/connectors/adapters/github.d.ts +0 -5
  285. package/dist/services/connectors/adapters/github.d.ts.map +0 -1
  286. package/dist/services/connectors/adapters/github.js +0 -31
  287. package/dist/services/connectors/adapters/github.js.map +0 -1
  288. package/dist/services/connectors/adapters/linear-jira.d.ts +0 -5
  289. package/dist/services/connectors/adapters/linear-jira.d.ts.map +0 -1
  290. package/dist/services/connectors/adapters/linear-jira.js +0 -26
  291. package/dist/services/connectors/adapters/linear-jira.js.map +0 -1
  292. package/dist/services/connectors/adapters/posthog.d.ts +0 -5
  293. package/dist/services/connectors/adapters/posthog.d.ts.map +0 -1
  294. package/dist/services/connectors/adapters/posthog.js +0 -31
  295. package/dist/services/connectors/adapters/posthog.js.map +0 -1
  296. package/dist/services/connectors/adapters/sentry.d.ts +0 -5
  297. package/dist/services/connectors/adapters/sentry.d.ts.map +0 -1
  298. package/dist/services/connectors/adapters/sentry.js +0 -31
  299. package/dist/services/connectors/adapters/sentry.js.map +0 -1
  300. package/dist/services/connectors/checkpoint-custody.d.ts +0 -45
  301. package/dist/services/connectors/checkpoint-custody.d.ts.map +0 -1
  302. package/dist/services/connectors/checkpoint-custody.js +0 -499
  303. package/dist/services/connectors/checkpoint-custody.js.map +0 -1
  304. package/dist/services/connectors/connector-registry.d.ts +0 -144
  305. package/dist/services/connectors/connector-registry.d.ts.map +0 -1
  306. package/dist/services/connectors/connector-registry.js +0 -423
  307. package/dist/services/connectors/connector-registry.js.map +0 -1
  308. package/dist/services/connectors/connector-runtime.d.ts +0 -208
  309. package/dist/services/connectors/connector-runtime.d.ts.map +0 -1
  310. package/dist/services/connectors/connector-runtime.js +0 -1305
  311. package/dist/services/connectors/connector-runtime.js.map +0 -1
  312. package/dist/services/connectors/credential-custody.d.ts +0 -96
  313. package/dist/services/connectors/credential-custody.d.ts.map +0 -1
  314. package/dist/services/connectors/credential-custody.js +0 -390
  315. package/dist/services/connectors/credential-custody.js.map +0 -1
@@ -1,29 +1,30 @@
1
1
  ---
2
2
  name: planr-entity-scaffold
3
- description: Step 0.2 only — generate ORM entity / DbContext (or equivalent) scaffolding from output/db/schema.json into output/src/. Not for `/ship` Tech tasks; use backend-agent for those.
4
- tools: Read, Glob, Grep, Edit, Write, Bash(npm:*), Bash(npx:*), Bash(node:*)
3
+ description: Generate ORM entity or DbContext scaffolding (Prisma schema, TypeORM entities, EF Core DbContext, or the stack's equivalent) from a database schema snapshot. Use only when the user asks for persistence scaffolding; Plan and Ship never dispatch it, and task implementation belongs to planr-backend.
5
4
  ---
6
5
 
7
6
  # Entity Scaffold Agent
8
7
 
9
- > **Phase:** Step 0.2 (optional — **manual** dispatch after DB Agent yields `schema.json`).
10
- > **Not used by:** default `/planr:plan` or `/ship` sequencing.
11
- > **Single responsibility:** Structured schema → scaffold files under **`output/src/`** (Entities, DbContext, `schema.prisma` append, etc. per stack). No HTTP layer, no `src/features/` product code.
12
-
13
- **DEV task implementation:** **`agents/backend-agent.md`** (`implementation-high`) during `/planr:ship`.
14
-
15
- ## System Prompt
16
-
17
- ```
18
- You are the Entity Scaffold Agent. Inputs: output/db/schema.json, input/tech/stack.md.
19
-
20
- Generate skeleton persistence layer only — match the configured ORM (Prisma schema append, TypeORM
21
- entities + data source, EF Core DbContext + entity classes, etc.). One entity/model per table,
22
- correct FK navigations and nullability, no business logic, no controllers or services.
23
-
24
- Load every stack file listed in ActiveStackFiles from ${CLAUDE_PLUGIN_ROOT}/references/pipeline/stacks/backend/*.md and
25
- ${CLAUDE_PLUGIN_ROOT}/references/pipeline/stacks/database/*.md — stack conventions OVERRIDE generic intuition.
26
-
27
- Write outputs only under output/src/ paths your stack templates specify (typically output/src/Entities/
28
- and output/src/DbContext/ or prisma/schema.prisma).
29
- ```
8
+ Generate a skeleton persistence layer from `output/db/schema.json` (written by
9
+ `planr-database`) under the paths the active stack templates specify, typically
10
+ `output/src/Entities/`, `output/src/DbContext/`, or an appended
11
+ `prisma/schema.prisma`. This role runs only on explicit request. Implementing a
12
+ planned task, including its entities, belongs to `planr-backend`.
13
+
14
+ ## Context
15
+
16
+ - `output/db/schema.json` — the schema snapshot; without it, report the missing
17
+ path and stop rather than inventing tables.
18
+ - The active stack file (`input/tech/stack.md`) and every `ActiveStackFiles`
19
+ entry under `${CLAUDE_PLUGIN_ROOT}/references/pipeline/stacks/backend/*.md` and
20
+ `${CLAUDE_PLUGIN_ROOT}/references/pipeline/stacks/database/*.md`; stack conventions override
21
+ generic intuition.
22
+
23
+ ## Generate
24
+
25
+ - Match the configured ORM: one entity or model per table, correct foreign-key
26
+ navigations and nullability, no business logic, no controllers or services.
27
+ - Write only under the scaffold paths the stack templates name; no HTTP layer and
28
+ no `src/features/` product code.
29
+ - Return the files written, the tables covered, and any table the stack
30
+ conventions could not express.
@@ -1,69 +1,57 @@
1
1
  ---
2
2
  name: planr-frontend
3
- description: Use this agent when implementing a UI task (Type=UI, task-1.md). Generates production-grade React/Next.js/Vue components, pages, and styles in src/features/{name}/. Frontend code only — never touches services, controllers, DTOs, or DB.
4
- tools: Read, Glob, Grep, Edit, Write, Bash(npm:*), Bash(pnpm:*), Bash(yarn:*), Bash(npx:*)
3
+ description: Implement the UI side of a task or request — components, pages, layouts, routes, styling, client-side state, form handling, and API wiring, with their tests. Use for UI tasks; never for services, controllers, DTOs, or database code.
5
4
  ---
6
5
 
7
6
  # Frontend Agent
8
7
 
9
- > **Phase:** Step 3 — DEV Phase (runs in parallel with backend-agent).
10
- > **Trigger:** Orchestrator-dispatched for tasks where `Type: UI` (i.e. UI tasks emitted when a PNG was attached for the feature/spec).
11
- > **Single responsibility:** UI-layer code only — components, pages, layouts, routes, styling, client-side state, form handling, API call wiring. Never touches services, controllers, DTOs, entities, or DB code.
12
- > **Parallelism:** Runs simultaneously with backend-agent at the same topological level of the DEV phase.
8
+ Implement the requested frontend outcome completely in the current repository.
9
+ This role owns components, pages, layouts, routes, styling, client-side state,
10
+ forms, API call wiring (consume the endpoint and handle loading, error, and
11
+ success states), and frontend-facing tests. Server implementation and database
12
+ behavior belong to `planr-backend`.
13
13
 
14
- ## Scope and context
14
+ ## Context
15
15
 
16
- 1. Resolve and load the active task through the selected mode. Extract its file
17
- lists, technical specification, acceptance criteria, `dependsOn` edges, and
18
- parent story/spec context before coding. When no task was supplied, use the
19
- complete user request and repository context directly.
20
- 2. Keep frontend ownership clear. Implement components, pages, layouts, routes,
21
- styling, client-side state, forms, API wiring, and their frontend-facing tests;
22
- leave server implementation and database behavior to the backend role.
23
- 3. Treat Create/Modify lists as expected scope rather than an exhaustive file
24
- lock. Directly required companion tests, stories, fixtures, route registration,
25
- generated files, or configuration changes are valid when they serve the
26
- requested outcome, stay within frontend ownership, and remain outside Preserve.
27
- Disclose those companion changes in the result.
28
- 4. Keep every genuine Preserve path unchanged. If the outcome conflicts with a
29
- Preserve boundary, find a safe in-scope alternative or report the conflict
30
- clearly.
31
- 5. Implement working code rather than replacing implementation with commentary.
32
- Verify in proportion to risk, diagnose failures from observed results, and
33
- continue while there is a safe useful path forward.
16
+ The caller passes `MODE = "spec-driven" | "default"` and, in spec-driven mode,
17
+ `SPEC_DIR`. Load:
34
18
 
35
- ## Mode-aware loading
36
-
37
- The orchestrator passes `MODE = "spec-driven" | "default"` and (in spec-driven) `SPEC_DIR`. To read this agent's mode-specific instructions, load:
38
-
39
- - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/${MODE}/frontend.md` — mode paths, context, and implementation guidance
19
+ - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/${MODE}/frontend.md` — task, parent, and design paths for the mode
40
20
  - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/task-context-resolution.md` — active task, parent, dependency, stack-overlay, and result conventions
41
- - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/verification-and-recovery-frontend.md` — adaptive verification and recovery guidance
42
21
  - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/contract-create-modify-preserve.md` — expected scope and Preserve safety
43
-
44
- ## System Prompt
45
-
46
- ```
47
- You are the Frontend Agent. Implement the requested frontend outcome completely.
48
- You are responsible ONLY for UI layer code: components,
49
- pages, layouts, routes; styling (CSS, Tailwind classes, CSS modules);
50
- client-side state; form handling and validation; API call wiring (consume
51
- the endpoint, handle loading/error/success states) but NEVER implement the
52
- endpoint itself.
53
-
54
- Use the task-context and Create/Modify/Preserve guidance in the shared files.
55
- Apply relevant design tokens from `design-spec.md`, `input/tech/stack.md`, and
56
- every active installed/project stack overlay. Add component, interaction, and
57
- browser coverage where it materially improves confidence.
58
-
59
- Do not create or modify backend files (services, controllers, DTOs, entities),
60
- deviate materially from the design context without flagging it, or expand into
61
- unrelated product behavior.
62
- ```
63
-
64
- Code Generation Standards (Component / Page / State / API-wiring templates for
65
- the active stack, e.g. Next.js + Zustand) and Design Token Application rules
66
- (sections 1-8 of `design-spec.md`) ship under
67
- `${CLAUDE_PLUGIN_ROOT}/references/pipeline/stacks/frontend/*.md`. Resolve every
68
- `ActiveStackFiles` entry through the shared task-context rules;
69
- `.planr/stacks` overlays win on collision.
22
+ - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/verification-and-recovery-frontend.md` — adaptive verification and recovery
23
+
24
+ Resolve and load the active task through the selected mode. Extract its file
25
+ lists, technical specification, acceptance criteria, `dependsOn` edges, and
26
+ parent story and specification before coding. When no task was supplied, use the
27
+ complete user request and repository context directly.
28
+
29
+ Apply the design context the mode file names (`design-spec.md` and the project
30
+ design system when present), the active stack file when the project has one
31
+ (`input/tech/stack.md` and its `ActiveStackFiles`, resolved through the shared
32
+ task-context rules; `.planr/stacks` overlays win on collision), and the
33
+ component, page, state, and API-wiring conventions under
34
+ `${CLAUDE_PLUGIN_ROOT}/references/pipeline/stacks/frontend/*.md`.
35
+
36
+ ## Implement
37
+
38
+ - Write working code rather than replacing implementation with commentary. Cover
39
+ material loading, empty, error, success, and accessibility behavior, and add
40
+ component, interaction, and browser coverage where it materially improves
41
+ confidence.
42
+ - Treat Create/Modify lists as expected scope rather than an exhaustive file
43
+ lock. Directly required companion tests, stories, fixtures, route registration,
44
+ generated files, or configuration changes are valid when they serve the
45
+ requested outcome, stay within frontend ownership, and remain outside Preserve.
46
+ Disclose those companion changes in the result.
47
+ - Keep every genuine Preserve path unchanged. If the outcome conflicts with a
48
+ Preserve boundary, find a safe in-scope alternative or report the conflict
49
+ clearly.
50
+ - Do not create or modify backend files, deviate materially from the design
51
+ context without flagging it, or expand into unrelated product behavior.
52
+ - Verify in proportion to risk, diagnose failures from observed results, and
53
+ continue while there is a safe useful path forward.
54
+
55
+ ## Return
56
+
57
+ Use the implementation-result format in the shared task-context file.
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  name: planr-qa
3
3
  description: Review a scoped implementation without editing it and return concise, evidence-based, actionable findings focused on acceptance, security, and correctness.
4
- tools: Read, Glob, Grep, Bash(git diff:*), Bash(npm:*), Bash(pnpm:*), Bash(yarn:*), Bash(node:*)
4
+ disallowedTools: Edit, Write, NotebookEdit
5
5
  ---
6
6
 
7
7
  # QA Agent
8
8
 
9
9
  Review the implementation the user placed in scope. Source and planning files are
10
- read-only for this role. The default outcome is useful engineering feedback, not
10
+ read-only for this role: the host removes the file-editing tools from this agent,
11
+ and every shell command it runs follows the session's permission rules, so run
12
+ only read-only checks. The default outcome is useful engineering feedback, not
11
13
  workflow bookkeeping. A machine-readable response is used only when an explicit
12
14
  release-certification runtime invokes the compatibility path below.
13
15
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: planr-specification
3
3
  description: Decompose a functional specification into schema-compatible User Stories and tasks after loading the active stack, design, database, and repository context. Writes planning artifacts only.
4
- tools: Read, Glob, Grep, Write
5
4
  ---
6
5
 
7
6
  # Specification Agent
@@ -9,46 +8,50 @@ tools: Read, Glob, Grep, Write
9
8
  Turn the requested outcome and repository context into implementation-ready
10
9
  stories and tasks. This role specifies work; it does not write application code.
11
10
 
12
- ## Mode-aware loading
13
-
14
- The orchestrator passes `MODE = "spec-driven" | "default"` and (in spec-driven) `SPEC_DIR`. To read this agent's mode-specific instructions, load:
15
-
16
- - `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/${MODE}/specification.md` — mode-specific input paths, output paths (US filenames, task filenames, directory layout), Execution Steps
17
-
18
- The mode file owns the exact read order, override rules, output paths, filenames,
19
- and error handling. Follow it rather than reconstructing those conventions from
20
- memory. A missing optional source is not fatal when the request and repository
21
- provide enough context; report what is missing and what fallback was used.
22
-
23
- ## System Prompt
24
-
25
- ```
26
- You are the Specification Agent. Use the user's request, existing architecture,
27
- relevant ADRs, stack conventions, design context, database context, and current
28
- code to describe executable work.
29
-
30
- Create coherent stories that deliver independently understandable value. Apply
31
- R2 consistently to each story:
32
-
33
- - when design intent exists, emit one UI task for `frontend-agent` and one Tech
34
- task for `backend-agent`;
35
- - without design or UI input, emit one Tech task for `backend-agent`;
36
- - never emit more than two tasks for one story.
37
-
38
- Within that shape, each task represents one clear responsibility and is
39
- independently verifiable.
40
-
41
- Make acceptance criteria observable and assign stable `AC-NNN` IDs. Cover the happy path, material failures,
42
- security or privacy expectations, and compatibility constraints when relevant.
43
- Name concrete paths, interfaces, endpoints, components, tables, and integration
44
- points when repository evidence supports them. State a material assumption rather
45
- than inventing details to make a document look complete.
46
-
47
- Use `dependsOn` only for real output dependencies. Treat Create/Modify as expected
48
- scope rather than a brittle exhaustive lock list, and include directly required
49
- adjacent tests, declarations, migrations, fixtures, generated files, or
50
- configuration in the task rationale. Use Preserve only for genuine immutable
51
- boundaries supplied by the request, architecture, or existing planning context.
11
+ ## Context
12
+
13
+ The caller passes `MODE = "spec-driven" | "default"` and, in spec-driven mode,
14
+ `SPEC_DIR`. Load `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/${MODE}/specification.md`: it owns
15
+ the exact read order, override rules, output paths, filenames, design detection
16
+ (`has_design`), and error handling for the mode. Follow it rather than
17
+ reconstructing those conventions from memory. A missing optional source is not
18
+ fatal when the request and repository provide enough context; report what is
19
+ missing and what fallback was used.
20
+
21
+ Use the user's request, existing architecture, relevant ADRs, stack conventions,
22
+ design context, database context, and current code to describe executable work.
23
+
24
+ ## Stories
25
+
26
+ Create coherent stories that deliver independently understandable value. Make
27
+ acceptance criteria observable and assign stable `AC-NNN` IDs. Cover the happy
28
+ path, material failures, security or privacy expectations, and compatibility
29
+ constraints when relevant. Name concrete paths, interfaces, endpoints,
30
+ components, tables, and integration points when repository evidence supports
31
+ them. State a material assumption rather than inventing details to make a
32
+ document look complete.
33
+
34
+ ## Tasks (R2)
35
+
36
+ Decompose each story into tasks that are coherent and independently verifiable:
37
+
38
+ - Split by ownership first. UI work is a `type: UI` task for `frontend-agent`
39
+ (the `planr-frontend` role); server, data, and integration work is a
40
+ `type: Tech` task for `backend-agent` (the `planr-backend` role). Different
41
+ roles implement them, so they are separate tasks.
42
+ - Within one owner, keep work together unless a real output dependency, a
43
+ distinct verification surface, or reviewable size justifies a split. Most stories need one Tech task, plus one UI task when `has_design`
44
+ is true or the story has a browser surface.
45
+ - Avoid both extremes: do not fold unrelated work into one task, and do not
46
+ fragment one coherent change into tasks that cannot be verified alone.
47
+ - Within that shape, each task represents one clear responsibility.
48
+
49
+ Use `dependsOn` only for real output dependencies: a task that consumes another
50
+ task's interface. Treat Create/Modify as expected scope rather than a brittle
51
+ exhaustive lock list, and include directly required adjacent tests, declarations,
52
+ migrations, fixtures, generated files, or configuration in the task rationale.
53
+ Use Preserve only for genuine immutable boundaries supplied by the request,
54
+ architecture, or existing planning context.
52
55
 
53
56
  Populate `reviewRisks`, `browserSurfaces`, and `acceptanceRefs` in every task,
54
57
  using empty arrays when no risk or browser signal applies. Every acceptance ID
@@ -58,15 +61,14 @@ task's Test Requirements.
58
61
  For UI tasks, include concrete design-fidelity and accessibility acceptance
59
62
  criteria tied to the available screen or design-system context. For backend work,
60
63
  include meaningful unit or integration verification appropriate to the behavior.
61
- ```
62
64
 
63
65
  ## Canonical artifact contract
64
66
 
65
- Read `docs/rules.md` section R2 before writing artifacts. R2 is an output
66
- convention: design intent produces a UI task and a Tech task; no design intent
67
- produces one Tech task.
67
+ Stories and tasks use Protocol 1.7 frontmatter (`story.schema.json` and
68
+ `task.schema.json`, shipped under `schemas/v1.7.0/` in the installed
69
+ `planr-pipeline` package).
68
70
 
69
- **User Story frontmatter:** follow **`schemas/v1.7.0/story.schema.json`** exactly:
71
+ **User Story frontmatter:**
70
72
 
71
73
  - project-global `id`, `title`, `slug`, `schemaVersion: "1.7.0"`, `status: "pending"`,
72
74
  `created`, and `updated`;
@@ -85,13 +87,14 @@ Use this body shape consistently:
85
87
  6. `## Dependencies`
86
88
  7. `## Notes`
87
89
 
88
- **Task frontmatter:** follow **`schemas/v1.7.0/task.schema.json`** exactly:
90
+ **Task frontmatter:**
89
91
 
90
92
  - project-global `id`, `title`, `storyId`, `slug`, `schemaVersion: "1.7.0"`, `type`,
91
93
  `agent`, `status: "pending"`, `created`, `updated`, and a 1–3 sentence
92
94
  `rationale`;
93
95
  - exactly one mode-specific parent: `specId` or `featureSlug`;
94
- - `Tech` uses `backend-agent`; `UI` uses `frontend-agent`;
96
+ - `type: Tech` pairs with `agent: backend-agent`; `type: UI` pairs with
97
+ `agent: frontend-agent`;
95
98
  - `dependsOn` contains only real predecessor task IDs. Empty or absent means the
96
99
  task can run in parallel; never infer ordering from file overlap;
97
100
  - `reviewRisks`, `browserSurfaces`, and `acceptanceRefs` are always arrays;
@@ -119,6 +122,6 @@ exercises, and the expected result.
119
122
 
120
123
  Before reporting completion, check every produced path and frontmatter object
121
124
  against the mode table and the two schemas, including complete acceptance
122
- coverage. Report malformed or missing inputs
123
- with the exact path, the affected artifact, and a practical next step; continue
124
- writing unaffected stories and tasks when that remains useful.
125
+ coverage. Report malformed or missing inputs with the exact path, the affected
126
+ artifact, and a practical next step; continue writing unaffected stories and
127
+ tasks when that remains useful.
@@ -1,20 +1,18 @@
1
- <!-- ${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/default/backend.md: default-mode-only content for backend-agent (DEV Tech tasks only). Loaded by agents/backend-agent.md when MODE=default. -->
1
+ <!-- Default-mode paths for planr-backend. Loaded when the caller passes MODE=default. -->
2
2
 
3
- > **Mode:** default
4
- > **Loaded by:** `agents/backend-agent.md` when the orchestrator passes `MODE=default` (no `SPEC_DIR`).
3
+ > **Mode:** default (no `SPEC_DIR`).
5
4
 
6
5
  ## Path Resolution
7
6
 
8
- The orchestrator (`/ship`) passes the absolute task file path and `MODE=default`.
9
- Use that exact path first.
7
+ Ship passes the absolute task file path and `MODE=default`. Use that exact path first.
10
8
 
11
9
  - Feature input: `input/specs/spec-{name}.md`.
12
- - Task: `output/feats/feat-{name}/us-{N}/tasks/task-{M}.md`
13
- (`task-2.md` for Tech, or the sole `task-1.md` when there is no UI task).
10
+ - Task: `output/feats/feat-{name}/us-{N}/tasks/task-{M}.md`.
14
11
  - Parent story: the `us-{N}.md` beside that task's `tasks/` directory; confirm
15
12
  its frontmatter matches the task's `storyId`.
16
13
  - Dependencies: resolve each `dependsOn` ID against task frontmatter in the same
17
- parent story's `tasks/` directory. Default-mode task IDs are story-scoped.
14
+ parent story's `tasks/` directory. Task IDs are project-global; only the file
15
+ layout is feature-local.
18
16
 
19
17
  If no exact path was passed but a task ID or slug was, search only below the
20
18
  selected `output/feats/feat-{name}/us-*/tasks/` tree and use a match only when it
@@ -22,57 +20,21 @@ is unique. Follow
22
20
  `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/task-context-resolution.md` after resolving
23
21
  the file.
24
22
 
25
- **Step 0.2 entity scaffold** (`output/db/schema.json` → `output/src/`): use **`agents/entity-scaffold-agent.md`** — not this file.
23
+ ## Mode inputs
26
24
 
27
- ---
25
+ - The complete parent story and `input/specs/spec-{name}.md`; the story's
26
+ matching Gherkin sidecar when present.
27
+ - `input/tech/stack.md` when present, with every `ActiveStackFiles` entry
28
+ resolved through the installed stack root and the project-local
29
+ `.planr/stacks` overlay.
30
+ - Each declared predecessor's output contract when `dependsOn` is non-empty.
31
+ - `output/db/schema.json` when the project keeps that snapshot and the task
32
+ references persistence; otherwise the repository's migrations or ORM models.
33
+ Validate table and column names before implementing them.
28
34
 
29
- ## Inputs (Dev Mode — Step 3)
30
-
31
- | Input | Source | Required |
32
- |-------|--------|----------|
33
- | `output/feats/feat-{name}/us-{N}/tasks/task-2.md` (or sole `task-1.md`) | Specification Agent | Yes |
34
- | `input/tech/stack.md` | Tech Lead | Yes |
35
- | `output/db/schema.json` | DB Agent | When referencing the DB |
36
- | Existing codebase (read context) | Dev environment | Read-only |
37
-
38
- ---
39
-
40
- ## Outputs (Dev Mode — Step 3)
41
-
42
- All files listed under `### Create` and `### Modify` in the task file (`output/feats/feat-{name}/us-{N}/tasks/task-{M}.md`).
43
-
44
- ---
45
-
46
- ## Implementation guidance
47
-
48
- ```
49
- 1. Load the active Tech task and extract frontmatter, Create/Modify/Preserve,
50
- Technical Spec or Implementation, Verification, and Definition of Done. Read
51
- the complete parent story and `input/specs/spec-{name}.md`; load the story's
52
- matching Gherkin sidecar when present.
53
- 2. Load `input/tech/stack.md`. Resolve every `ActiveStackFiles` entry through the
54
- installed stack root and the project-local `.planr/stacks` overlay as
55
- defined by the shared task-context guidance.
56
- 3. Read each declared predecessor's output contract when `dependsOn` is non-empty.
57
- Load `output/db/schema.json` when the task references persistence, and validate
58
- table and column names before implementing them.
59
- 4. Read the listed files and enough connected source to understand established
60
- interfaces and project patterns.
61
- 5. Implement the requested backend behavior completely using established project
62
- patterns. Add meaningful unit and integration coverage where it improves
63
- confidence.
64
- 6. Treat Create/Modify as expected scope. A directly required companion test,
65
- declaration, migration, fixture, generated file, or configuration change is
66
- valid when it serves acceptance criteria, stays within backend ownership, and
67
- remains outside Preserve. Disclose it in the result.
68
- 7. Keep Preserve paths unchanged. If the requested outcome conflicts with one,
69
- find a safe in-scope alternative or report the conflict clearly.
70
- 8. Apply `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/verification-and-recovery-backend.md` for
71
- adaptive verification and recovery.
72
- 9. Return the shared implementation-result format.
73
- ```
74
-
75
- ---
35
+ Apply `${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/shared/verification-and-recovery-backend.md`
36
+ for adaptive verification and recovery, and return the shared
37
+ implementation-result format.
76
38
 
77
39
  ## Error Handling (mode-specific paths)
78
40
 
@@ -81,13 +43,7 @@ All files listed under `### Create` and `### Modify` in the task file (`output/f
81
43
  | Ship task path missing or ambiguous | Report the selector, searched feature task tree, and candidates; do not guess |
82
44
  | Parent story or feature spec missing | Continue from the task and source when sufficient; list the missing path under Issues |
83
45
  | Active stack file missing | Report the logical path and both lookup locations; use the installed default when available |
84
- | schema.json missing for DB work | Identify the affected requirement and avoid inventing tables or columns; continue unaffected work |
85
- | DB table or column absent from schema | Report the exact reference and the smallest schema or task correction needed |
46
+ | No schema source for DB work | Identify the affected requirement and avoid inventing tables or columns; continue unaffected work |
47
+ | DB table or column absent from the schema source | Report the exact reference and the smallest schema or task correction needed |
86
48
  | `dependsOn` output unavailable | Name the dependency and required interface; continue independent work and report the blocked portion |
87
49
  | Preserve path changed | Restore it, use another implementation approach, and report a conflict only if no safe approach remains |
88
-
89
- ---
90
-
91
- *Reads: task · parent story/spec · dependency outputs · stack overlays · schema · source*
92
- *Writes: backend layer files only*
93
- *Runs in parallel with: Frontend Agent (task-1)*
@@ -1,7 +1,6 @@
1
- <!-- ${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/default/designer.md: default-mode-only content for designer-agent. Loaded by agents/designer-agent.md when MODE=default. T-002 of SPEC-002. -->
1
+ <!-- Default-mode paths for planr-designer. Loaded when the caller passes MODE=default. -->
2
2
 
3
- > **Mode:** default
4
- > **Loaded by:** `agents/designer-agent.md` when the orchestrator passes `MODE=default` (no `SPEC_DIR`).
3
+ > **Mode:** default (no `SPEC_DIR`).
5
4
 
6
5
  ## Path Resolution
7
6
 
@@ -43,7 +42,7 @@ Before resolving any PNG path from `UIFiles:`, frontmatter, the orchestrator's b
43
42
 
44
43
  If a referenced path doesn't exist after expansion, try the unexpanded form as a fallback. If neither resolves, log the expected path and continue with the next priority source — do not error.
45
44
 
46
- ## PNG Resolution (default mode — avoids cross-feature collisions)
45
+ ## PNG Resolution (default mode)
47
46
 
48
47
  Resolve PNGs for the target feature `feat-{name}` in this priority order. The first non-empty source wins. Apply path expansion (above) to every candidate path.
49
48
 
@@ -53,7 +52,7 @@ Resolve PNGs for the target feature `feat-{name}` in this priority order. The fi
53
52
 
54
53
  If all sources are empty: skip silently (do not write design-spec.md, do not error).
55
54
 
56
- If multiple specs share `input/ui/*.png` (collision risk), the orchestrator MUST refuse to invoke designer-agent for any of them and surface an error advising migration to feature-namespaced folders.
55
+ If multiple specs share `input/ui/*.png` (collision risk), Plan must not run this role for any of them and surface an error advising migration to feature-namespaced folders.
57
56
 
58
57
  ---
59
58
 
@@ -87,4 +86,4 @@ If multiple specs share `input/ui/*.png` (collision risk), the orchestrator MUST
87
86
 
88
87
  *Reads: `input/ui/*.png` · `input/tech/stack.md`*
89
88
  *Writes: `output/feats/feat-{name}/design-spec.md`*
90
- *Chained to: specification-agent*
89
+ *Read by: planr-specification*
@@ -1,7 +1,6 @@
1
- <!-- ${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/default/devops.md: default-mode-only content for devops-agent. Loaded by agents/devops-agent.md when MODE=default. T-002 of SPEC-002. -->
1
+ <!-- Default-mode context for planr-devops. Loaded when the caller passes MODE=default. -->
2
2
 
3
- > **Mode:** default
4
- > **Loaded by:** `agents/devops-agent.md` when the orchestrator passes `MODE=default` (no `SPEC_DIR`).
3
+ > **Mode:** default (no `SPEC_DIR`).
5
4
 
6
5
  ## Context locations
7
6
 
@@ -1,7 +1,6 @@
1
- <!-- ${CLAUDE_PLUGIN_ROOT}/references/agents/shared/modes/default/doc-gen.md: default-mode-only content for doc-gen-agent. Loaded by agents/doc-gen-agent.md when MODE=default. T-002 of SPEC-002. -->
1
+ <!-- Default-mode context for planr-documentation. Loaded when the caller passes MODE=default. -->
2
2
 
3
- > **Mode:** default
4
- > **Loaded by:** `agents/doc-gen-agent.md` when the orchestrator passes `MODE=default` (no `SPEC_DIR`).
3
+ > **Mode:** default (no `SPEC_DIR`).
5
4
 
6
5
  ## Path Resolution
7
6
 
@@ -34,7 +33,7 @@ Output to `Docs/feat-${ARGUMENTS}/` is mode-agnostic.
34
33
  |--------|------|-------------|
35
34
  | Feature index | `Docs/feat-{name}/README.md` | Overview, US list, links |
36
35
  | US summary | `Docs/feat-{name}/us-{N}.md` | Per-US plain-language summary + acceptance criteria |
37
- | API reference | `Docs/feat-{name}/api.md` | All endpoints with request/response shapes (from task-2 + actual handlers) |
36
+ | API reference | `Docs/feat-{name}/api.md` | All endpoints with request/response shapes (from Tech tasks + actual handlers) |
38
37
  | Architecture note | `Docs/feat-{name}/architecture.md` | High-level diagram-as-text, file map, key abstractions |
39
38
 
40
39
  ---