claude-code-pilot 2.0.0 → 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 (455) hide show
  1. package/bin/install.js +267 -250
  2. package/manifest.json +5 -18
  3. package/package.json +5 -7
  4. package/src/agents/build-error-resolver.md +114 -0
  5. package/src/agents/ccp-advisor-researcher.md +104 -0
  6. package/src/agents/ccp-assumptions-analyzer.md +105 -0
  7. package/{gsd/agents/gsd-codebase-mapper.md → src/agents/ccp-codebase-mapper.md} +7 -7
  8. package/{gsd/agents/gsd-debugger.md → src/agents/ccp-debugger.md} +125 -8
  9. package/{gsd/agents/gsd-executor.md → src/agents/ccp-executor.md} +31 -20
  10. package/{gsd/agents/gsd-integration-checker.md → src/agents/ccp-integration-checker.md} +2 -2
  11. package/{gsd/agents/gsd-nyquist-auditor.md → src/agents/ccp-nyquist-auditor.md} +3 -3
  12. package/{gsd/agents/gsd-phase-researcher.md → src/agents/ccp-phase-researcher.md} +127 -13
  13. package/{gsd/agents/gsd-plan-checker.md → src/agents/ccp-plan-checker.md} +57 -21
  14. package/{gsd/agents/gsd-planner.md → src/agents/ccp-planner.md} +61 -23
  15. package/{gsd/agents/gsd-project-researcher.md → src/agents/ccp-project-researcher.md} +33 -6
  16. package/{gsd/agents/gsd-research-synthesizer.md → src/agents/ccp-research-synthesizer.md} +11 -11
  17. package/{gsd/agents/gsd-roadmapper.md → src/agents/ccp-roadmapper.md} +39 -10
  18. package/src/agents/ccp-ui-auditor.md +439 -0
  19. package/src/agents/ccp-ui-checker.md +300 -0
  20. package/src/agents/ccp-ui-researcher.md +357 -0
  21. package/{gsd/agents/gsd-verifier.md → src/agents/ccp-verifier.md} +81 -15
  22. package/src/agents/cpp-build-resolver.md +90 -0
  23. package/src/agents/cpp-reviewer.md +72 -0
  24. package/src/agents/database-reviewer.md +91 -0
  25. package/src/agents/docs-lookup.md +68 -0
  26. package/src/agents/flutter-reviewer.md +243 -0
  27. package/src/agents/go-build-resolver.md +94 -0
  28. package/src/agents/go-reviewer.md +76 -0
  29. package/src/agents/java-build-resolver.md +153 -0
  30. package/src/agents/java-reviewer.md +92 -0
  31. package/src/agents/kotlin-build-resolver.md +118 -0
  32. package/src/agents/kotlin-reviewer.md +159 -0
  33. package/src/agents/planner.md +212 -0
  34. package/src/agents/python-reviewer.md +98 -0
  35. package/src/agents/pytorch-build-resolver.md +120 -0
  36. package/src/agents/refactor-cleaner.md +85 -0
  37. package/src/agents/rust-build-resolver.md +148 -0
  38. package/src/agents/rust-reviewer.md +94 -0
  39. package/src/agents/typescript-reviewer.md +112 -0
  40. package/src/available-rules/README.md +80 -0
  41. package/src/available-rules/cpp/coding-style.md +44 -0
  42. package/src/available-rules/cpp/hooks.md +39 -0
  43. package/src/available-rules/cpp/patterns.md +51 -0
  44. package/src/available-rules/cpp/security.md +51 -0
  45. package/src/available-rules/cpp/testing.md +44 -0
  46. package/src/available-rules/csharp/coding-style.md +72 -0
  47. package/src/available-rules/csharp/hooks.md +25 -0
  48. package/src/available-rules/csharp/patterns.md +50 -0
  49. package/src/available-rules/csharp/security.md +58 -0
  50. package/src/available-rules/csharp/testing.md +46 -0
  51. package/src/available-rules/java/coding-style.md +114 -0
  52. package/src/available-rules/java/hooks.md +18 -0
  53. package/src/available-rules/java/patterns.md +146 -0
  54. package/src/available-rules/java/security.md +100 -0
  55. package/src/available-rules/java/testing.md +131 -0
  56. package/src/available-rules/kotlin/hooks.md +17 -0
  57. package/src/available-rules/rust/coding-style.md +151 -0
  58. package/src/available-rules/rust/hooks.md +16 -0
  59. package/src/available-rules/rust/patterns.md +168 -0
  60. package/src/available-rules/rust/security.md +141 -0
  61. package/src/available-rules/rust/testing.md +154 -0
  62. package/src/commands/aside.md +164 -0
  63. package/src/commands/build-fix.md +62 -0
  64. package/src/commands/ccp/add-backlog.md +76 -0
  65. package/{gsd/commands-gsd → src/commands/ccp}/add-phase.md +3 -3
  66. package/{gsd/commands-gsd → src/commands/ccp}/add-tests.md +5 -5
  67. package/{gsd/commands-gsd → src/commands/ccp}/add-todo.md +4 -4
  68. package/{gsd/commands-gsd → src/commands/ccp}/audit-milestone.md +3 -3
  69. package/src/commands/ccp/audit-uat.md +24 -0
  70. package/src/commands/ccp/autonomous.md +41 -0
  71. package/{gsd/commands-gsd → src/commands/ccp}/check-todos.md +3 -3
  72. package/{gsd/commands-gsd → src/commands/ccp}/cleanup.md +3 -3
  73. package/{gsd/commands-gsd → src/commands/ccp}/complete-milestone.md +9 -9
  74. package/{gsd/commands-gsd → src/commands/ccp}/debug.md +14 -9
  75. package/src/commands/ccp/discuss-phase.md +64 -0
  76. package/src/commands/ccp/do.md +30 -0
  77. package/src/commands/ccp/execute-phase.md +59 -0
  78. package/src/commands/ccp/fast.md +30 -0
  79. package/src/commands/ccp/forensics.md +56 -0
  80. package/{gsd/commands-gsd → src/commands/ccp}/health.md +3 -3
  81. package/{gsd/commands-gsd → src/commands/ccp}/help.md +5 -5
  82. package/{gsd/commands-gsd → src/commands/ccp}/insert-phase.md +3 -3
  83. package/{gsd/commands-gsd → src/commands/ccp}/list-phase-assumptions.md +2 -2
  84. package/src/commands/ccp/manager.md +39 -0
  85. package/{gsd/commands-gsd → src/commands/ccp}/map-codebase.md +7 -7
  86. package/src/commands/ccp/milestone-summary.md +51 -0
  87. package/{gsd/commands-gsd → src/commands/ccp}/new-milestone.md +8 -8
  88. package/{gsd/commands-gsd → src/commands/ccp}/new-project.md +8 -8
  89. package/src/commands/ccp/next.md +24 -0
  90. package/src/commands/ccp/note.md +34 -0
  91. package/{gsd/commands-gsd → src/commands/ccp}/pause-work.md +3 -3
  92. package/{gsd/commands-gsd → src/commands/ccp}/plan-milestone-gaps.md +5 -5
  93. package/{gsd/commands-gsd → src/commands/ccp}/plan-phase.md +9 -7
  94. package/src/commands/ccp/plant-seed.md +28 -0
  95. package/src/commands/ccp/pr-branch.md +25 -0
  96. package/{gsd/commands-gsd → src/commands/ccp}/progress.md +3 -3
  97. package/{gsd/commands-gsd → src/commands/ccp}/quick.md +10 -8
  98. package/{gsd/commands-gsd → src/commands/ccp}/remove-phase.md +3 -3
  99. package/{gsd/commands-gsd → src/commands/ccp}/research-phase.md +17 -12
  100. package/{gsd/commands-gsd → src/commands/ccp}/resume-work.md +3 -3
  101. package/src/commands/ccp/review-backlog.md +61 -0
  102. package/src/commands/ccp/session-report.md +19 -0
  103. package/src/commands/ccp/set-profile.md +12 -0
  104. package/{gsd/commands-gsd → src/commands/ccp}/settings.md +5 -5
  105. package/src/commands/ccp/ship.md +23 -0
  106. package/src/commands/ccp/stats.md +18 -0
  107. package/src/commands/ccp/thread.md +127 -0
  108. package/src/commands/ccp/ui-phase.md +34 -0
  109. package/src/commands/ccp/ui-review.md +32 -0
  110. package/{gsd/commands-gsd → src/commands/ccp}/update.md +5 -5
  111. package/{gsd/commands-gsd → src/commands/ccp}/validate-phase.md +3 -3
  112. package/{gsd/commands-gsd → src/commands/ccp}/verify-work.md +5 -5
  113. package/src/commands/code-review.md +40 -0
  114. package/src/commands/context-budget.md +29 -0
  115. package/src/commands/cpp-build.md +173 -0
  116. package/src/commands/cpp-review.md +132 -0
  117. package/src/commands/cpp-test.md +251 -0
  118. package/src/commands/docs.md +31 -0
  119. package/src/commands/e2e.md +364 -0
  120. package/src/commands/eval.md +120 -0
  121. package/{ecc → src}/commands/evolve.md +2 -2
  122. package/src/commands/go-build.md +183 -0
  123. package/src/commands/go-review.md +148 -0
  124. package/src/commands/go-test.md +268 -0
  125. package/src/commands/gradle-build.md +70 -0
  126. package/src/commands/harness-audit.md +71 -0
  127. package/src/commands/kotlin-build.md +174 -0
  128. package/src/commands/kotlin-review.md +140 -0
  129. package/src/commands/kotlin-test.md +312 -0
  130. package/src/commands/orchestrate.md +231 -0
  131. package/src/commands/plan.md +114 -0
  132. package/src/commands/prompt-optimize.md +38 -0
  133. package/src/commands/prune.md +25 -0
  134. package/src/commands/python-review.md +297 -0
  135. package/{ecc → src}/commands/quality-gate.md +1 -1
  136. package/src/commands/refactor-clean.md +80 -0
  137. package/src/commands/rules-distill.md +11 -0
  138. package/src/commands/rust-build.md +187 -0
  139. package/src/commands/rust-review.md +142 -0
  140. package/src/commands/rust-test.md +308 -0
  141. package/{ecc → src}/commands/sessions.md +10 -10
  142. package/src/commands/setup-pm.md +80 -0
  143. package/{kit → src}/commands/setup.md +45 -19
  144. package/src/commands/skill-create.md +172 -0
  145. package/src/commands/skill-health.md +51 -0
  146. package/src/commands/tdd.md +328 -0
  147. package/src/commands/test-coverage.md +69 -0
  148. package/src/commands/update-codemaps.md +72 -0
  149. package/src/commands/update-docs.md +84 -0
  150. package/{gsd/hooks/gsd-context-monitor.js → src/hooks/ccp-context-monitor.js} +3 -3
  151. package/src/hooks/ccp-prompt-guard.js +96 -0
  152. package/{gsd/hooks/gsd-statusline.js → src/hooks/ccp-statusline.js} +7 -7
  153. package/src/hooks/ccp-workflow-guard.js +94 -0
  154. package/src/hooks/config-protection.js +141 -0
  155. package/{kit → src}/hooks/kit-check-update.js +7 -4
  156. package/src/hooks/mcp-health-check.js +620 -0
  157. package/{ecc/scripts → src}/hooks/run-with-flags-shell.sh +1 -1
  158. package/{ecc/scripts → src}/hooks/run-with-flags.js +74 -13
  159. package/src/hooks/session-end-marker.js +29 -0
  160. package/{ecc/scripts → src}/hooks/session-end.js +83 -40
  161. package/{ecc/scripts → src}/hooks/session-start.js +75 -9
  162. package/{ecc/scripts → src}/lib/hook-flags.js +8 -4
  163. package/{ecc/scripts → src}/lib/project-detect.js +2 -1
  164. package/{ecc/scripts → src}/lib/session-manager.d.ts +5 -1
  165. package/{ecc/scripts → src}/lib/session-manager.js +202 -92
  166. package/{ecc/scripts → src}/lib/utils.d.ts +23 -1
  167. package/{ecc/scripts → src}/lib/utils.js +91 -3
  168. package/{gsd/get-shit-done/bin/gsd-tools.cjs → src/pilot/bin/ccp-tools.cjs} +257 -86
  169. package/{gsd/get-shit-done → src/pilot}/bin/lib/commands.cjs +1 -1
  170. package/src/pilot/bin/lib/config.cjs +444 -0
  171. package/src/pilot/bin/lib/core.cjs +1190 -0
  172. package/src/pilot/bin/lib/init.cjs +1281 -0
  173. package/src/pilot/bin/lib/model-profiles.cjs +67 -0
  174. package/{gsd/get-shit-done → src/pilot}/bin/lib/phase.cjs +2 -2
  175. package/src/pilot/bin/lib/security.cjs +382 -0
  176. package/{gsd/get-shit-done → src/pilot}/bin/lib/state.cjs +1 -1
  177. package/src/pilot/bin/lib/uat.cjs +282 -0
  178. package/{gsd/get-shit-done → src/pilot}/bin/lib/verify.cjs +10 -10
  179. package/{gsd/get-shit-done → src/pilot}/references/continuation-format.md +16 -16
  180. package/{gsd/get-shit-done → src/pilot}/references/decimal-phase-calculation.md +5 -5
  181. package/{gsd/get-shit-done → src/pilot}/references/git-integration.md +5 -5
  182. package/{gsd/get-shit-done → src/pilot}/references/git-planning-commit.md +4 -4
  183. package/src/pilot/references/mcp-servers.json +153 -0
  184. package/{gsd/get-shit-done → src/pilot}/references/model-profile-resolution.md +2 -2
  185. package/{gsd/get-shit-done → src/pilot}/references/model-profiles.md +20 -20
  186. package/{gsd/get-shit-done → src/pilot}/references/phase-argument-parsing.md +4 -4
  187. package/{gsd/get-shit-done → src/pilot}/references/planning-config.md +15 -15
  188. package/{gsd/get-shit-done → src/pilot}/references/ui-brand.md +5 -5
  189. package/{gsd/get-shit-done → src/pilot}/references/verification-patterns.md +1 -1
  190. package/{gsd/get-shit-done → src/pilot}/templates/DEBUG.md +1 -1
  191. package/{gsd/get-shit-done → src/pilot}/templates/UAT.md +3 -3
  192. package/src/pilot/templates/UI-SPEC.md +100 -0
  193. package/{gsd/get-shit-done → src/pilot}/templates/VALIDATION.md +1 -1
  194. package/src/pilot/templates/claude-md.md +122 -0
  195. package/{gsd/get-shit-done → src/pilot}/templates/codebase/architecture.md +2 -2
  196. package/{gsd/get-shit-done → src/pilot}/templates/codebase/structure.md +13 -13
  197. package/{gsd/get-shit-done → src/pilot}/templates/context.md +4 -4
  198. package/src/pilot/templates/copilot-instructions.md +7 -0
  199. package/{gsd/get-shit-done → src/pilot}/templates/debug-subagent-prompt.md +4 -4
  200. package/src/pilot/templates/dev-preferences.md +21 -0
  201. package/{gsd/get-shit-done → src/pilot}/templates/discovery.md +2 -2
  202. package/src/pilot/templates/discussion-log.md +63 -0
  203. package/{gsd/get-shit-done → src/pilot}/templates/phase-prompt.md +12 -12
  204. package/{gsd/get-shit-done → src/pilot}/templates/planner-subagent-prompt.md +7 -7
  205. package/{gsd/get-shit-done → src/pilot}/templates/project.md +1 -1
  206. package/{gsd/get-shit-done → src/pilot}/templates/research.md +2 -2
  207. package/{gsd/get-shit-done → src/pilot}/templates/state.md +2 -2
  208. package/{gsd/get-shit-done → src/pilot}/templates/summary-complex.md +1 -1
  209. package/{gsd/get-shit-done → src/pilot}/workflows/add-phase.md +11 -11
  210. package/{gsd/get-shit-done → src/pilot}/workflows/add-tests.md +15 -15
  211. package/{gsd/get-shit-done → src/pilot}/workflows/add-todo.md +7 -7
  212. package/{gsd/get-shit-done → src/pilot}/workflows/audit-milestone.md +24 -16
  213. package/src/pilot/workflows/audit-uat.md +109 -0
  214. package/src/pilot/workflows/autonomous.md +891 -0
  215. package/{gsd/get-shit-done → src/pilot}/workflows/check-todos.md +10 -10
  216. package/{gsd/get-shit-done → src/pilot}/workflows/cleanup.md +3 -3
  217. package/{gsd/get-shit-done → src/pilot}/workflows/complete-milestone.md +19 -16
  218. package/{gsd/get-shit-done → src/pilot}/workflows/diagnose-issues.md +9 -4
  219. package/{gsd/get-shit-done → src/pilot}/workflows/discovery-phase.md +8 -8
  220. package/src/pilot/workflows/discuss-phase-assumptions.md +653 -0
  221. package/{gsd/get-shit-done → src/pilot}/workflows/discuss-phase.md +407 -49
  222. package/src/pilot/workflows/do.md +104 -0
  223. package/src/pilot/workflows/execute-phase.md +821 -0
  224. package/{gsd/get-shit-done → src/pilot}/workflows/execute-plan.md +79 -28
  225. package/src/pilot/workflows/fast.md +105 -0
  226. package/src/pilot/workflows/forensics.md +265 -0
  227. package/{gsd/get-shit-done → src/pilot}/workflows/health.md +34 -11
  228. package/src/pilot/workflows/help.md +775 -0
  229. package/{gsd/get-shit-done → src/pilot}/workflows/insert-phase.md +10 -10
  230. package/{gsd/get-shit-done → src/pilot}/workflows/list-phase-assumptions.md +4 -4
  231. package/src/pilot/workflows/manager.md +362 -0
  232. package/{gsd/get-shit-done → src/pilot}/workflows/map-codebase.md +27 -17
  233. package/src/pilot/workflows/milestone-summary.md +223 -0
  234. package/{gsd/get-shit-done → src/pilot}/workflows/new-milestone.md +135 -33
  235. package/{gsd/get-shit-done → src/pilot}/workflows/new-project.md +152 -79
  236. package/src/pilot/workflows/next.md +97 -0
  237. package/src/pilot/workflows/node-repair.md +92 -0
  238. package/src/pilot/workflows/note.md +156 -0
  239. package/src/pilot/workflows/pause-work.md +177 -0
  240. package/{gsd/get-shit-done → src/pilot}/workflows/plan-milestone-gaps.md +10 -11
  241. package/src/pilot/workflows/plan-phase.md +859 -0
  242. package/src/pilot/workflows/plant-seed.md +169 -0
  243. package/src/pilot/workflows/pr-branch.md +129 -0
  244. package/{gsd/get-shit-done → src/pilot}/workflows/progress.md +95 -34
  245. package/{gsd/get-shit-done → src/pilot}/workflows/quick.md +33 -21
  246. package/{gsd/get-shit-done → src/pilot}/workflows/remove-phase.md +14 -14
  247. package/{gsd/get-shit-done → src/pilot}/workflows/research-phase.md +18 -10
  248. package/{gsd/get-shit-done → src/pilot}/workflows/resume-project.md +37 -18
  249. package/src/pilot/workflows/session-report.md +146 -0
  250. package/{gsd/get-shit-done → src/pilot}/workflows/set-profile.md +7 -7
  251. package/{gsd/get-shit-done → src/pilot}/workflows/settings.md +75 -22
  252. package/src/pilot/workflows/ship.md +228 -0
  253. package/src/pilot/workflows/stats.md +60 -0
  254. package/{gsd/get-shit-done → src/pilot}/workflows/transition.md +57 -17
  255. package/src/pilot/workflows/ui-phase.md +302 -0
  256. package/src/pilot/workflows/ui-review.md +165 -0
  257. package/{gsd/get-shit-done → src/pilot}/workflows/update.md +88 -58
  258. package/{gsd/get-shit-done → src/pilot}/workflows/validate-phase.md +24 -17
  259. package/{gsd/get-shit-done → src/pilot}/workflows/verify-phase.md +26 -15
  260. package/{gsd/get-shit-done → src/pilot}/workflows/verify-work.md +89 -37
  261. package/{ecc → src}/rules/common/agents.md +1 -0
  262. package/{ecc → src}/rules/common/coding-style.md +21 -0
  263. package/src/skills/agentic-engineering/SKILL.md +63 -0
  264. package/src/skills/ai-first-engineering/SKILL.md +51 -0
  265. package/src/skills/ai-regression-testing/SKILL.md +385 -0
  266. package/src/skills/api-design/SKILL.md +523 -0
  267. package/src/skills/architecture-decision-records/SKILL.md +179 -0
  268. package/src/skills/backend-patterns/SKILL.md +598 -0
  269. package/src/skills/benchmark/SKILL.md +87 -0
  270. package/src/skills/blueprint/SKILL.md +90 -0
  271. package/src/skills/browser-qa/SKILL.md +81 -0
  272. package/src/skills/claude-api/SKILL.md +337 -0
  273. package/src/skills/codebase-onboarding/SKILL.md +233 -0
  274. package/src/skills/coding-standards/SKILL.md +530 -0
  275. package/src/skills/context-budget/SKILL.md +135 -0
  276. package/{ecc → src}/skills/continuous-learning-v2/SKILL.md +2 -2
  277. package/{ecc → src}/skills/continuous-learning-v2/agents/observer-loop.sh +1 -1
  278. package/src/skills/cpp-coding-standards/SKILL.md +723 -0
  279. package/src/skills/cpp-testing/SKILL.md +324 -0
  280. package/src/skills/database-migrations/SKILL.md +429 -0
  281. package/src/skills/deep-research/SKILL.md +155 -0
  282. package/src/skills/deployment-patterns/SKILL.md +427 -0
  283. package/src/skills/django-patterns/SKILL.md +734 -0
  284. package/src/skills/django-security/SKILL.md +593 -0
  285. package/src/skills/django-tdd/SKILL.md +729 -0
  286. package/src/skills/django-verification/SKILL.md +469 -0
  287. package/src/skills/docker-patterns/SKILL.md +364 -0
  288. package/src/skills/documentation-lookup/SKILL.md +90 -0
  289. package/src/skills/e2e-testing/SKILL.md +326 -0
  290. package/src/skills/exa-search/SKILL.md +103 -0
  291. package/src/skills/frontend-patterns/SKILL.md +642 -0
  292. package/src/skills/golang-patterns/SKILL.md +674 -0
  293. package/src/skills/golang-testing/SKILL.md +720 -0
  294. package/src/skills/java-coding-standards/SKILL.md +147 -0
  295. package/src/skills/jpa-patterns/SKILL.md +151 -0
  296. package/src/skills/kotlin-coroutines-flows/SKILL.md +284 -0
  297. package/src/skills/kotlin-exposed-patterns/SKILL.md +719 -0
  298. package/src/skills/kotlin-ktor-patterns/SKILL.md +689 -0
  299. package/src/skills/kotlin-patterns/SKILL.md +711 -0
  300. package/src/skills/kotlin-testing/SKILL.md +824 -0
  301. package/src/skills/laravel-patterns/SKILL.md +415 -0
  302. package/src/skills/laravel-security/SKILL.md +285 -0
  303. package/src/skills/laravel-tdd/SKILL.md +283 -0
  304. package/src/skills/laravel-verification/SKILL.md +179 -0
  305. package/src/skills/mcp-server-patterns/SKILL.md +67 -0
  306. package/src/skills/perl-patterns/SKILL.md +504 -0
  307. package/src/skills/perl-testing/SKILL.md +475 -0
  308. package/src/skills/postgres-patterns/SKILL.md +147 -0
  309. package/src/skills/prompt-optimizer/SKILL.md +397 -0
  310. package/src/skills/python-patterns/SKILL.md +750 -0
  311. package/src/skills/python-testing/SKILL.md +816 -0
  312. package/src/skills/rust-patterns/SKILL.md +499 -0
  313. package/src/skills/rust-testing/SKILL.md +500 -0
  314. package/src/skills/safety-guard/SKILL.md +69 -0
  315. package/src/skills/search-first/SKILL.md +161 -0
  316. package/src/skills/security-review/SKILL.md +495 -0
  317. package/src/skills/security-review/cloud-infrastructure-security.md +361 -0
  318. package/src/skills/security-scan/SKILL.md +165 -0
  319. package/src/skills/springboot-patterns/SKILL.md +314 -0
  320. package/src/skills/springboot-security/SKILL.md +272 -0
  321. package/src/skills/springboot-tdd/SKILL.md +158 -0
  322. package/src/skills/springboot-verification/SKILL.md +231 -0
  323. package/src/skills/tdd-workflow/SKILL.md +410 -0
  324. package/ecc/scripts/hooks/session-end-marker.js +0 -15
  325. package/gsd/LICENSE +0 -21
  326. package/gsd/commands-gsd/discuss-phase.md +0 -90
  327. package/gsd/commands-gsd/execute-phase.md +0 -41
  328. package/gsd/commands-gsd/join-discord.md +0 -18
  329. package/gsd/commands-gsd/reapply-patches.md +0 -123
  330. package/gsd/commands-gsd/set-profile.md +0 -34
  331. package/gsd/get-shit-done/bin/lib/config.cjs +0 -169
  332. package/gsd/get-shit-done/bin/lib/core.cjs +0 -492
  333. package/gsd/get-shit-done/bin/lib/init.cjs +0 -710
  334. package/gsd/get-shit-done/workflows/execute-phase.md +0 -459
  335. package/gsd/get-shit-done/workflows/help.md +0 -489
  336. package/gsd/get-shit-done/workflows/pause-work.md +0 -122
  337. package/gsd/get-shit-done/workflows/plan-phase.md +0 -560
  338. package/gsd/hooks/gsd-check-update.js +0 -81
  339. package/kit/CLAUDE.md +0 -43
  340. package/kit/commands/kit/update.md +0 -46
  341. package/kit/mcp.json +0 -10
  342. package/kit/rules/code-style.md +0 -24
  343. /package/{ecc → src}/agents/architect.md +0 -0
  344. /package/{ecc → src}/agents/code-reviewer.md +0 -0
  345. /package/{ecc → src}/agents/doc-updater.md +0 -0
  346. /package/{ecc → src}/agents/e2e-runner.md +0 -0
  347. /package/{ecc → src}/agents/security-reviewer.md +0 -0
  348. /package/{ecc → src}/agents/tdd-guide.md +0 -0
  349. /package/{ecc/rules → src/available-rules}/golang/coding-style.md +0 -0
  350. /package/{ecc/rules → src/available-rules}/golang/hooks.md +0 -0
  351. /package/{ecc/rules → src/available-rules}/golang/patterns.md +0 -0
  352. /package/{ecc/rules → src/available-rules}/golang/security.md +0 -0
  353. /package/{ecc/rules → src/available-rules}/golang/testing.md +0 -0
  354. /package/{ecc/rules → src/available-rules}/kotlin/coding-style.md +0 -0
  355. /package/{ecc/rules → src/available-rules}/kotlin/patterns.md +0 -0
  356. /package/{ecc/rules → src/available-rules}/kotlin/security.md +0 -0
  357. /package/{ecc/rules → src/available-rules}/kotlin/testing.md +0 -0
  358. /package/{ecc/rules → src/available-rules}/perl/coding-style.md +0 -0
  359. /package/{ecc/rules → src/available-rules}/perl/hooks.md +0 -0
  360. /package/{ecc/rules → src/available-rules}/perl/patterns.md +0 -0
  361. /package/{ecc/rules → src/available-rules}/perl/security.md +0 -0
  362. /package/{ecc/rules → src/available-rules}/perl/testing.md +0 -0
  363. /package/{ecc/rules → src/available-rules}/php/coding-style.md +0 -0
  364. /package/{ecc/rules → src/available-rules}/php/hooks.md +0 -0
  365. /package/{ecc/rules → src/available-rules}/php/patterns.md +0 -0
  366. /package/{ecc/rules → src/available-rules}/php/security.md +0 -0
  367. /package/{ecc/rules → src/available-rules}/php/testing.md +0 -0
  368. /package/{ecc/rules → src/available-rules}/python/coding-style.md +0 -0
  369. /package/{ecc/rules → src/available-rules}/python/hooks.md +0 -0
  370. /package/{ecc/rules → src/available-rules}/python/patterns.md +0 -0
  371. /package/{ecc/rules → src/available-rules}/python/security.md +0 -0
  372. /package/{ecc/rules → src/available-rules}/python/testing.md +0 -0
  373. /package/{ecc/rules → src/available-rules}/swift/coding-style.md +0 -0
  374. /package/{ecc/rules → src/available-rules}/swift/hooks.md +0 -0
  375. /package/{ecc/rules → src/available-rules}/swift/patterns.md +0 -0
  376. /package/{ecc/rules → src/available-rules}/swift/security.md +0 -0
  377. /package/{ecc/rules → src/available-rules}/swift/testing.md +0 -0
  378. /package/{ecc/rules → src/available-rules}/typescript/coding-style.md +0 -0
  379. /package/{ecc/rules → src/available-rules}/typescript/hooks.md +0 -0
  380. /package/{ecc/rules → src/available-rules}/typescript/patterns.md +0 -0
  381. /package/{ecc/rules → src/available-rules}/typescript/security.md +0 -0
  382. /package/{ecc/rules → src/available-rules}/typescript/testing.md +0 -0
  383. /package/{ecc → src}/commands/checkpoint.md +0 -0
  384. /package/{ecc → src}/commands/learn.md +0 -0
  385. /package/{ecc → src}/commands/model-route.md +0 -0
  386. /package/{ecc → src}/commands/resume-session.md +0 -0
  387. /package/{ecc → src}/commands/save-session.md +0 -0
  388. /package/{kit → src}/commands/setup-refresh.md +0 -0
  389. /package/{kit → src}/commands/tool-guide.md +0 -0
  390. /package/{ecc → src}/commands/verify.md +0 -0
  391. /package/{ecc → src}/contexts/dev.md +0 -0
  392. /package/{ecc → src}/contexts/research.md +0 -0
  393. /package/{ecc → src}/contexts/review.md +0 -0
  394. /package/{ecc → src}/examples/CLAUDE.md +0 -0
  395. /package/{ecc → src}/examples/django-api-CLAUDE.md +0 -0
  396. /package/{ecc → src}/examples/go-microservice-CLAUDE.md +0 -0
  397. /package/{ecc → src}/examples/rust-api-CLAUDE.md +0 -0
  398. /package/{ecc → src}/examples/saas-nextjs-CLAUDE.md +0 -0
  399. /package/{ecc → src}/examples/user-CLAUDE.md +0 -0
  400. /package/{ecc/scripts → src}/hooks/check-hook-enabled.js +0 -0
  401. /package/{ecc/scripts → src}/hooks/evaluate-session.js +0 -0
  402. /package/{ecc/scripts → src}/hooks/pre-compact.js +0 -0
  403. /package/{ecc/scripts → src}/hooks/suggest-compact.js +0 -0
  404. /package/{ecc/scripts → src}/lib/package-manager.d.ts +0 -0
  405. /package/{ecc/scripts → src}/lib/package-manager.js +0 -0
  406. /package/{ecc/scripts → src}/lib/resolve-formatter.js +0 -0
  407. /package/{ecc/scripts → src}/lib/session-aliases.d.ts +0 -0
  408. /package/{ecc/scripts → src}/lib/session-aliases.js +0 -0
  409. /package/{ecc/scripts → src}/lib/shell-split.js +0 -0
  410. /package/{gsd/get-shit-done → src/pilot}/bin/lib/frontmatter.cjs +0 -0
  411. /package/{gsd/get-shit-done → src/pilot}/bin/lib/milestone.cjs +0 -0
  412. /package/{gsd/get-shit-done → src/pilot}/bin/lib/roadmap.cjs +0 -0
  413. /package/{gsd/get-shit-done → src/pilot}/bin/lib/template.cjs +0 -0
  414. /package/{gsd/get-shit-done → src/pilot}/references/checkpoints.md +0 -0
  415. /package/{gsd/get-shit-done → src/pilot}/references/questioning.md +0 -0
  416. /package/{gsd/get-shit-done → src/pilot}/references/tdd.md +0 -0
  417. /package/{gsd/get-shit-done → src/pilot}/templates/codebase/concerns.md +0 -0
  418. /package/{gsd/get-shit-done → src/pilot}/templates/codebase/conventions.md +0 -0
  419. /package/{gsd/get-shit-done → src/pilot}/templates/codebase/integrations.md +0 -0
  420. /package/{gsd/get-shit-done → src/pilot}/templates/codebase/stack.md +0 -0
  421. /package/{gsd/get-shit-done → src/pilot}/templates/codebase/testing.md +0 -0
  422. /package/{gsd/get-shit-done → src/pilot}/templates/config.json +0 -0
  423. /package/{gsd/get-shit-done → src/pilot}/templates/continue-here.md +0 -0
  424. /package/{gsd/get-shit-done → src/pilot}/templates/milestone-archive.md +0 -0
  425. /package/{gsd/get-shit-done → src/pilot}/templates/milestone.md +0 -0
  426. /package/{gsd/get-shit-done → src/pilot}/templates/requirements.md +0 -0
  427. /package/{gsd/get-shit-done → src/pilot}/templates/research-project/ARCHITECTURE.md +0 -0
  428. /package/{gsd/get-shit-done → src/pilot}/templates/research-project/FEATURES.md +0 -0
  429. /package/{gsd/get-shit-done → src/pilot}/templates/research-project/PITFALLS.md +0 -0
  430. /package/{gsd/get-shit-done → src/pilot}/templates/research-project/STACK.md +0 -0
  431. /package/{gsd/get-shit-done → src/pilot}/templates/research-project/SUMMARY.md +0 -0
  432. /package/{gsd/get-shit-done → src/pilot}/templates/retrospective.md +0 -0
  433. /package/{gsd/get-shit-done → src/pilot}/templates/roadmap.md +0 -0
  434. /package/{gsd/get-shit-done → src/pilot}/templates/summary-minimal.md +0 -0
  435. /package/{gsd/get-shit-done → src/pilot}/templates/summary-standard.md +0 -0
  436. /package/{gsd/get-shit-done → src/pilot}/templates/summary.md +0 -0
  437. /package/{gsd/get-shit-done → src/pilot}/templates/user-setup.md +0 -0
  438. /package/{gsd/get-shit-done → src/pilot}/templates/verification-report.md +0 -0
  439. /package/{ecc → src}/rules/common/development-workflow.md +0 -0
  440. /package/{ecc → src}/rules/common/git-workflow.md +0 -0
  441. /package/{ecc → src}/rules/common/hooks.md +0 -0
  442. /package/{ecc → src}/rules/common/patterns.md +0 -0
  443. /package/{ecc → src}/rules/common/performance.md +0 -0
  444. /package/{ecc → src}/rules/common/security.md +0 -0
  445. /package/{ecc → src}/rules/common/testing.md +0 -0
  446. /package/{ecc → src}/skills/continuous-learning-v2/agents/observer.md +0 -0
  447. /package/{ecc → src}/skills/continuous-learning-v2/agents/start-observer.sh +0 -0
  448. /package/{ecc → src}/skills/continuous-learning-v2/config.json +0 -0
  449. /package/{ecc → src}/skills/continuous-learning-v2/hooks/observe.sh +0 -0
  450. /package/{ecc → src}/skills/continuous-learning-v2/scripts/detect-project.sh +0 -0
  451. /package/{ecc → src}/skills/continuous-learning-v2/scripts/instinct-cli.py +0 -0
  452. /package/{ecc → src}/skills/continuous-learning-v2/scripts/test_parse_instinct.py +0 -0
  453. /package/{ecc → src}/skills/strategic-compact/SKILL.md +0 -0
  454. /package/{ecc → src}/skills/strategic-compact/suggest-compact.sh +0 -0
  455. /package/{ecc/skills/verification-loop-SKILL.md → src/skills/verification-loop/SKILL.md} +0 -0
@@ -0,0 +1,223 @@
1
+ # Milestone Summary Workflow
2
+
3
+ Generate a comprehensive, human-friendly project summary from completed milestone artifacts.
4
+ Designed for team onboarding — a new contributor can read the output and understand the entire project.
5
+
6
+ ---
7
+
8
+ ## Step 1: Resolve Version
9
+
10
+ ```bash
11
+ VERSION="$ARGUMENTS"
12
+ ```
13
+
14
+ If `$ARGUMENTS` is empty:
15
+ 1. Check `.planning/STATE.md` for current milestone version
16
+ 2. Check `.planning/milestones/` for the latest archived version
17
+ 3. If neither found, check if `.planning/ROADMAP.md` exists (project may be mid-milestone)
18
+ 4. If nothing found: error "No milestone found. Run /ccp:new-project or /ccp:new-milestone first."
19
+
20
+ Set `VERSION` to the resolved version (e.g., "1.0").
21
+
22
+ ## Step 2: Locate Artifacts
23
+
24
+ Determine whether the milestone is **archived** or **current**:
25
+
26
+ **Archived milestone** (`.planning/milestones/v{VERSION}-ROADMAP.md` exists):
27
+ ```
28
+ ROADMAP_PATH=".planning/milestones/v${VERSION}-ROADMAP.md"
29
+ REQUIREMENTS_PATH=".planning/milestones/v${VERSION}-REQUIREMENTS.md"
30
+ AUDIT_PATH=".planning/milestones/v${VERSION}-MILESTONE-AUDIT.md"
31
+ ```
32
+
33
+ **Current/in-progress milestone** (no archive yet):
34
+ ```
35
+ ROADMAP_PATH=".planning/ROADMAP.md"
36
+ REQUIREMENTS_PATH=".planning/REQUIREMENTS.md"
37
+ AUDIT_PATH=".planning/v${VERSION}-MILESTONE-AUDIT.md"
38
+ ```
39
+
40
+ Note: The audit file moves to `.planning/milestones/` on archive (per `complete-milestone` workflow). Check both locations as a fallback.
41
+
42
+ **Always available:**
43
+ ```
44
+ PROJECT_PATH=".planning/PROJECT.md"
45
+ RETRO_PATH=".planning/RETROSPECTIVE.md"
46
+ STATE_PATH=".planning/STATE.md"
47
+ ```
48
+
49
+ Read all files that exist. Missing files are fine — the summary adapts to what's available.
50
+
51
+ ## Step 3: Discover Phase Artifacts
52
+
53
+ Find all phase directories:
54
+
55
+ ```bash
56
+ ccp-tools.cjs init progress
57
+ ```
58
+
59
+ This returns phase metadata. For each phase in the milestone scope:
60
+
61
+ - Read `{phase_dir}/{padded}-SUMMARY.md` if it exists — extract `one_liner`, `accomplishments`, `decisions`
62
+ - Read `{phase_dir}/{padded}-VERIFICATION.md` if it exists — extract status, gaps, deferred items
63
+ - Read `{phase_dir}/{padded}-CONTEXT.md` if it exists — extract key decisions from `<decisions>` section
64
+ - Read `{phase_dir}/{padded}-RESEARCH.md` if it exists — note what was researched
65
+
66
+ Track which phases have which artifacts.
67
+
68
+ **If no phase directories exist** (empty milestone or pre-build state): skip to Step 5 and generate a minimal summary noting "No phases have been executed yet." Do not error — the summary should still capture PROJECT.md and ROADMAP.md content.
69
+
70
+ ## Step 4: Gather Git Statistics
71
+
72
+ Try each method in order until one succeeds:
73
+
74
+ **Method 1 — Tagged milestone** (check first):
75
+ ```bash
76
+ git tag -l "v${VERSION}" | head -1
77
+ ```
78
+ If the tag exists:
79
+ ```bash
80
+ git log v${VERSION} --oneline | wc -l
81
+ git diff --stat $(git log --format=%H --reverse v${VERSION} | head -1)..v${VERSION}
82
+ ```
83
+
84
+ **Method 2 — STATE.md date range** (if no tag):
85
+ Read STATE.md and extract the `started_at` or earliest session date. Use it as the `--since` boundary:
86
+ ```bash
87
+ git log --oneline --since="<started_at_date>" | wc -l
88
+ ```
89
+
90
+ **Method 3 — Earliest phase commit** (if STATE.md has no date):
91
+ Find the earliest `.planning/phases/` commit:
92
+ ```bash
93
+ git log --oneline --diff-filter=A -- ".planning/phases/" | tail -1
94
+ ```
95
+ Use that commit's date as the start boundary.
96
+
97
+ **Method 4 — Skip stats** (if none of the above work):
98
+ Report "Git statistics unavailable — no tag or date range could be determined." This is not an error — the summary continues without the Stats section.
99
+
100
+ Extract (when available):
101
+ - Total commits in milestone
102
+ - Files changed, insertions, deletions
103
+ - Timeline (start date → end date)
104
+ - Contributors (from git log authors)
105
+
106
+ ## Step 5: Generate Summary Document
107
+
108
+ Write to `.planning/reports/MILESTONE_SUMMARY-v${VERSION}.md`:
109
+
110
+ ```markdown
111
+ # Milestone v{VERSION} — Project Summary
112
+
113
+ **Generated:** {date}
114
+ **Purpose:** Team onboarding and project review
115
+
116
+ ---
117
+
118
+ ## 1. Project Overview
119
+
120
+ {From PROJECT.md: "What This Is", core value proposition, target users}
121
+ {If mid-milestone: note which phases are complete vs in-progress}
122
+
123
+ ## 2. Architecture & Technical Decisions
124
+
125
+ {From CONTEXT.md files across phases: key technical choices}
126
+ {From SUMMARY.md decisions: patterns, libraries, frameworks chosen}
127
+ {From PROJECT.md: tech stack if documented}
128
+
129
+ Present as a bulleted list of decisions with brief rationale:
130
+ - **Decision:** {what was chosen}
131
+ - **Why:** {rationale from CONTEXT.md}
132
+ - **Phase:** {which phase made this decision}
133
+
134
+ ## 3. Phases Delivered
135
+
136
+ | Phase | Name | Status | One-Liner |
137
+ |-------|------|--------|-----------|
138
+ {For each phase: number, name, status (complete/in-progress/planned), one_liner from SUMMARY.md}
139
+
140
+ ## 4. Requirements Coverage
141
+
142
+ {From REQUIREMENTS.md: list each requirement with status}
143
+ - ✅ {Requirement met}
144
+ - ⚠️ {Requirement partially met — note gap}
145
+ - ❌ {Requirement not met — note reason}
146
+
147
+ {If MILESTONE-AUDIT.md exists: include audit verdict}
148
+
149
+ ## 5. Key Decisions Log
150
+
151
+ {Aggregate from all CONTEXT.md <decisions> sections}
152
+ {Each decision with: ID, description, phase, rationale}
153
+
154
+ ## 6. Tech Debt & Deferred Items
155
+
156
+ {From VERIFICATION.md files: gaps found, anti-patterns noted}
157
+ {From RETROSPECTIVE.md: lessons learned, what to improve}
158
+ {From CONTEXT.md <deferred> sections: ideas parked for later}
159
+
160
+ ## 7. Getting Started
161
+
162
+ {Entry points for new contributors:}
163
+ - **Run the project:** {from PROJECT.md or SUMMARY.md}
164
+ - **Key directories:** {from codebase structure}
165
+ - **Tests:** {test command from PROJECT.md or CLAUDE.md}
166
+ - **Where to look first:** {main entry points, core modules}
167
+
168
+ ---
169
+
170
+ ## Stats
171
+
172
+ - **Timeline:** {start} → {end} ({duration})
173
+ - **Phases:** {count complete} / {count total}
174
+ - **Commits:** {count}
175
+ - **Files changed:** {count} (+{insertions} / -{deletions})
176
+ - **Contributors:** {list}
177
+ ```
178
+
179
+ ## Step 6: Write and Commit
180
+
181
+ **Overwrite guard:** If `.planning/reports/MILESTONE_SUMMARY-v${VERSION}.md` already exists, ask the user:
182
+ > "A milestone summary for v{VERSION} already exists. Overwrite it, or view the existing one?"
183
+ If "view": display existing file and skip to Step 8 (interactive mode). If "overwrite": proceed.
184
+
185
+ Create the reports directory if needed:
186
+ ```bash
187
+ mkdir -p .planning/reports
188
+ ```
189
+
190
+ Write the summary, then commit:
191
+ ```bash
192
+ ccp-tools.cjs commit "docs(v${VERSION}): generate milestone summary for onboarding" \
193
+ --files ".planning/reports/MILESTONE_SUMMARY-v${VERSION}.md"
194
+ ```
195
+
196
+ ## Step 7: Present Summary
197
+
198
+ Display the full summary document inline.
199
+
200
+ ## Step 8: Offer Interactive Mode
201
+
202
+ After presenting the summary:
203
+
204
+ > "Summary written to `.planning/reports/MILESTONE_SUMMARY-v{VERSION}.md`.
205
+ >
206
+ > I have full context from the build artifacts. Want to ask anything about the project?
207
+ > Architecture decisions, specific phases, requirements, tech debt — ask away."
208
+
209
+ If the user asks questions:
210
+ - Answer from the artifacts already loaded (CONTEXT.md, SUMMARY.md, VERIFICATION.md, etc.)
211
+ - Reference specific files and decisions
212
+ - Stay grounded in what was actually built (not speculation)
213
+
214
+ If the user is done:
215
+ - Suggest next steps: `/ccp:new-milestone`, `/ccp:progress`, or sharing the summary with the team
216
+
217
+ ## Step 9: Update STATE.md
218
+
219
+ ```bash
220
+ ccp-tools.cjs state record-session \
221
+ --stopped-at "Milestone v${VERSION} summary generated" \
222
+ --resume-file ".planning/reports/MILESTONE_SUMMARY-v${VERSION}.md"
223
+ ```
@@ -10,14 +10,27 @@ Read all files referenced by the invoking prompt's execution_context before star
10
10
 
11
11
  </required_reading>
12
12
 
13
+ <available_agent_types>
14
+ Valid CCP subagent types (use exact names — do not fall back to 'general-purpose'):
15
+ - ccp-project-researcher — Researches project-level technical decisions
16
+ - ccp-research-synthesizer — Synthesizes findings from parallel research agents
17
+ - ccp-roadmapper — Creates phased execution roadmaps
18
+ </available_agent_types>
19
+
13
20
  <process>
14
21
 
15
22
  ## 1. Load Context
16
23
 
24
+ Parse `$ARGUMENTS` before doing anything else:
25
+ - `--reset-phase-numbers` flag → opt into restarting roadmap phase numbering at `1`
26
+ - remaining text → use as milestone name if present
27
+
28
+ If the flag is absent, keep the current behavior of continuing phase numbering from the previous milestone.
29
+
17
30
  - Read PROJECT.md (existing project, validated requirements, decisions)
18
31
  - Read MILESTONES.md (what shipped previously)
19
32
  - Read STATE.md (pending todos, blockers)
20
- - Check for MILESTONE-CONTEXT.md (from /gsd:discuss-milestone)
33
+ - Check for MILESTONE-CONTEXT.md (from /ccp:discuss-milestone)
21
34
 
22
35
  ## 2. Gather Milestone Goals
23
36
 
@@ -37,6 +50,38 @@ Read all files referenced by the invoking prompt's execution_context before star
37
50
  - Suggest next version (v1.0 → v1.1, or v2.0 for major)
38
51
  - Confirm with user
39
52
 
53
+ ## 3.5. Verify Milestone Understanding
54
+
55
+ Before writing any files, present a summary of what was gathered and ask for confirmation.
56
+
57
+ ```
58
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
59
+ Pilot ► MILESTONE SUMMARY
60
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
61
+
62
+ **Milestone v[X.Y]: [Name]**
63
+
64
+ **Goal:** [One sentence]
65
+
66
+ **Target features:**
67
+ - [Feature 1]
68
+ - [Feature 2]
69
+ - [Feature 3]
70
+
71
+ **Key context:** [Any important constraints, decisions, or notes from questioning]
72
+ ```
73
+
74
+ AskUserQuestion:
75
+ - header: "Confirm?"
76
+ - question: "Does this capture what you want to build in this milestone?"
77
+ - options:
78
+ - "Looks good" — Proceed to write PROJECT.md
79
+ - "Adjust" — Let me correct or add details
80
+
81
+ **If "Adjust":** Ask what needs changing (plain text, NOT AskUserQuestion). Incorporate changes, re-present the summary. Loop until "Looks good" is selected.
82
+
83
+ **If "Looks good":** Proceed to Step 4.
84
+
40
85
  ## 4. Update PROJECT.md
41
86
 
42
87
  Add/update:
@@ -54,6 +99,27 @@ Add/update:
54
99
 
55
100
  Update Active requirements section and "Last updated" footer.
56
101
 
102
+ Ensure the `## Evolution` section exists in PROJECT.md. If missing (projects created before this feature), add it before the footer:
103
+
104
+ ```markdown
105
+ ## Evolution
106
+
107
+ This document evolves at phase transitions and milestone boundaries.
108
+
109
+ **After each phase transition** (via transition workflow):
110
+ 1. Requirements invalidated? → Move to Out of Scope with reason
111
+ 2. Requirements validated? → Move to Validated with phase reference
112
+ 3. New requirements emerged? → Add to Active
113
+ 4. Decisions to log? → Add to Key Decisions
114
+ 5. "What This Is" still accurate? → Update if drifted
115
+
116
+ **After each milestone** (via `/ccp:complete-milestone`):
117
+ 1. Full review of all sections
118
+ 2. Core Value check — still the right priority?
119
+ 3. Audit Out of Scope — reasons still valid?
120
+ 4. Update Context with current state
121
+ ```
122
+
57
123
  ## 5. Update STATE.md
58
124
 
59
125
  ```markdown
@@ -72,39 +138,64 @@ Keep Accumulated Context section from previous milestone.
72
138
  Delete MILESTONE-CONTEXT.md if exists (consumed).
73
139
 
74
140
  ```bash
75
- node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" commit "docs: start milestone v[X.Y] [Name]" --files .planning/PROJECT.md .planning/STATE.md
141
+ node "$HOME/.claude/pilot/bin/ccp-tools.cjs" commit "docs: start milestone v[X.Y] [Name]" --files .planning/PROJECT.md .planning/STATE.md
76
142
  ```
77
143
 
78
144
  ## 7. Load Context and Resolve Models
79
145
 
80
146
  ```bash
81
- INIT=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" init new-milestone)
147
+ INIT=$(node "$HOME/.claude/pilot/bin/ccp-tools.cjs" init new-milestone)
82
148
  if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
149
+ AGENT_SKILLS_RESEARCHER=$(node "$HOME/.claude/pilot/bin/ccp-tools.cjs" agent-skills ccp-project-researcher 2>/dev/null)
150
+ AGENT_SKILLS_SYNTHESIZER=$(node "$HOME/.claude/pilot/bin/ccp-tools.cjs" agent-skills ccp-synthesizer 2>/dev/null)
151
+ AGENT_SKILLS_ROADMAPPER=$(node "$HOME/.claude/pilot/bin/ccp-tools.cjs" agent-skills ccp-roadmapper 2>/dev/null)
152
+ ```
153
+
154
+ Extract from init JSON: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `research_enabled`, `current_milestone`, `project_exists`, `roadmap_exists`, `latest_completed_milestone`, `phase_dir_count`, `phase_archive_path`.
155
+
156
+ ## 7.5 Reset-phase safety (only when `--reset-phase-numbers`)
157
+
158
+ If `--reset-phase-numbers` is active:
159
+
160
+ 1. Set starting phase number to `1` for the upcoming roadmap.
161
+ 2. If `phase_dir_count > 0`, archive the old phase directories before roadmapping so new `01-*` / `02-*` directories cannot collide with stale milestone directories.
162
+
163
+ If `phase_dir_count > 0` and `phase_archive_path` is available:
164
+
165
+ ```bash
166
+ mkdir -p "${phase_archive_path}"
167
+ find .planning/phases -mindepth 1 -maxdepth 1 -type d -exec mv {} "${phase_archive_path}/" \;
83
168
  ```
84
169
 
85
- Extract from init JSON: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `research_enabled`, `current_milestone`, `project_exists`, `roadmap_exists`.
170
+ Then verify `.planning/phases/` no longer contains old milestone directories before continuing.
171
+
172
+ If `phase_dir_count > 0` but `phase_archive_path` is missing:
173
+ - Stop and explain that reset numbering is unsafe without a completed milestone archive target.
174
+ - Tell the user to complete/archive the previous milestone first, then rerun `/ccp:new-milestone --reset-phase-numbers`.
86
175
 
87
176
  ## 8. Research Decision
88
177
 
178
+ Check `research_enabled` from init JSON (loaded from config).
179
+
180
+ **If `research_enabled` is `true`:**
181
+
89
182
  AskUserQuestion: "Research the domain ecosystem for new features before defining requirements?"
90
183
  - "Research first (Recommended)" — Discover patterns, features, architecture for NEW capabilities
91
- - "Skip research" — Go straight to requirements
184
+ - "Skip research for this milestone" — Go straight to requirements (does not change your default)
92
185
 
93
- **Persist choice to config** (so future `/gsd:plan-phase` honors it):
186
+ **If `research_enabled` is `false`:**
94
187
 
95
- ```bash
96
- # If "Research first": persist true
97
- node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" config-set workflow.research true
188
+ AskUserQuestion: "Research the domain ecosystem for new features before defining requirements?"
189
+ - "Skip research (current default)" Go straight to requirements
190
+ - "Research first" Discover patterns, features, architecture for NEW capabilities
98
191
 
99
- # If "Skip research": persist false
100
- node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" config-set workflow.research false
101
- ```
192
+ **IMPORTANT:** Do NOT persist this choice to config.json. The `workflow.research` setting is a persistent user preference that controls plan-phase behavior across the project. Changing it here would silently alter future `/ccp:plan-phase` behavior. To change the default, use `/ccp:settings`.
102
193
 
103
- **If "Research first":**
194
+ **If user chose "Research first":**
104
195
 
105
196
  ```
106
197
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
107
- GSD ► RESEARCHING
198
+ Pilot ► RESEARCHING
108
199
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
109
200
 
110
201
  ◆ Spawning 4 researchers in parallel...
@@ -115,7 +206,7 @@ node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" config-set workflow.researc
115
206
  mkdir -p .planning/research
116
207
  ```
117
208
 
118
- Spawn 4 parallel gsd-project-researcher agents. Each uses this template with dimension-specific fields:
209
+ Spawn 4 parallel ccp-project-researcher agents. Each uses this template with dimension-specific fields:
119
210
 
120
211
  **Common structure for all 4 researchers:**
121
212
  ```
@@ -134,15 +225,17 @@ Focus ONLY on what's needed for the NEW features.
134
225
  - .planning/PROJECT.md (Project context)
135
226
  </files_to_read>
136
227
 
228
+ ${AGENT_SKILLS_RESEARCHER}
229
+
137
230
  <downstream_consumer>{CONSUMER}</downstream_consumer>
138
231
 
139
232
  <quality_gate>{GATES}</quality_gate>
140
233
 
141
234
  <output>
142
235
  Write to: .planning/research/{FILE}
143
- Use template: ~/.claude/get-shit-done/templates/research-project/{FILE}
236
+ Use template: ~/.claude/pilot/templates/research-project/{FILE}
144
237
  </output>
145
- ", subagent_type="gsd-project-researcher", model="{researcher_model}", description="{DIMENSION} research")
238
+ ", subagent_type="ccp-project-researcher", model="{researcher_model}", description="{DIMENSION} research")
146
239
  ```
147
240
 
148
241
  **Dimension-specific fields:**
@@ -168,16 +261,18 @@ Synthesize research outputs into SUMMARY.md.
168
261
  - .planning/research/PITFALLS.md
169
262
  </files_to_read>
170
263
 
264
+ ${AGENT_SKILLS_SYNTHESIZER}
265
+
171
266
  Write to: .planning/research/SUMMARY.md
172
- Use template: ~/.claude/get-shit-done/templates/research-project/SUMMARY.md
267
+ Use template: ~/.claude/pilot/templates/research-project/SUMMARY.md
173
268
  Commit after writing.
174
- ", subagent_type="gsd-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
269
+ ", subagent_type="ccp-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
175
270
  ```
176
271
 
177
272
  Display key findings from SUMMARY.md:
178
273
  ```
179
274
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
180
- GSD ► RESEARCH COMPLETE ✓
275
+ Pilot ► RESEARCH COMPLETE ✓
181
276
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
182
277
 
183
278
  **Stack additions:** [from SUMMARY.md]
@@ -191,7 +286,7 @@ Display key findings from SUMMARY.md:
191
286
 
192
287
  ```
193
288
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
194
- GSD ► DEFINING REQUIREMENTS
289
+ Pilot ► DEFINING REQUIREMENTS
195
290
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
196
291
  ```
197
292
 
@@ -255,20 +350,22 @@ If "adjust": Return to scoping.
255
350
 
256
351
  **Commit requirements:**
257
352
  ```bash
258
- node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" commit "docs: define milestone v[X.Y] requirements" --files .planning/REQUIREMENTS.md
353
+ node "$HOME/.claude/pilot/bin/ccp-tools.cjs" commit "docs: define milestone v[X.Y] requirements" --files .planning/REQUIREMENTS.md
259
354
  ```
260
355
 
261
356
  ## 10. Create Roadmap
262
357
 
263
358
  ```
264
359
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
265
- GSD ► CREATING ROADMAP
360
+ Pilot ► CREATING ROADMAP
266
361
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
267
362
 
268
363
  ◆ Spawning roadmapper...
269
364
  ```
270
365
 
271
- **Starting phase number:** Read MILESTONES.md for last phase number. Continue from there (v1.0 ended at phase 5 → v1.1 starts at phase 6).
366
+ **Starting phase number:**
367
+ - If `--reset-phase-numbers` is active, start at **Phase 1**
368
+ - Otherwise, continue from the previous milestone's last phase number (v1.0 ended at phase 5 → v1.1 starts at phase 6)
272
369
 
273
370
  ```
274
371
  Task(prompt="
@@ -280,11 +377,16 @@ Task(prompt="
280
377
  - .planning/config.json
281
378
  - .planning/MILESTONES.md
282
379
  </files_to_read>
380
+
381
+ ${AGENT_SKILLS_ROADMAPPER}
382
+
283
383
  </planning_context>
284
384
 
285
385
  <instructions>
286
386
  Create roadmap for milestone v[X.Y]:
287
- 1. Start phase numbering from [N]
387
+ 1. Respect the selected numbering mode:
388
+ - `--reset-phase-numbers` → start at Phase 1
389
+ - default behavior → continue from the previous milestone's last phase number
288
390
  2. Derive phases from THIS MILESTONE's requirements only
289
391
  3. Map every requirement to exactly one phase
290
392
  4. Derive 2-5 success criteria per phase (observable user behaviors)
@@ -294,7 +396,7 @@ Create roadmap for milestone v[X.Y]:
294
396
 
295
397
  Write files first, then return.
296
398
  </instructions>
297
- ", subagent_type="gsd-roadmapper", model="{roadmapper_model}", description="Create roadmap")
399
+ ", subagent_type="ccp-roadmapper", model="{roadmapper_model}", description="Create roadmap")
298
400
  ```
299
401
 
300
402
  **Handle return:**
@@ -332,14 +434,14 @@ Success criteria:
332
434
 
333
435
  **Commit roadmap** (after approval):
334
436
  ```bash
335
- node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" commit "docs: create milestone v[X.Y] roadmap ([N] phases)" --files .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md
437
+ node "$HOME/.claude/pilot/bin/ccp-tools.cjs" commit "docs: create milestone v[X.Y] roadmap ([N] phases)" --files .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md
336
438
  ```
337
439
 
338
440
  ## 11. Done
339
441
 
340
442
  ```
341
443
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
342
- GSD ► MILESTONE INITIALIZED ✓
444
+ Pilot ► MILESTONE INITIALIZED ✓
343
445
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
344
446
 
345
447
  **Milestone v[X.Y]: [Name]**
@@ -357,11 +459,11 @@ node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" commit "docs: create milest
357
459
 
358
460
  **Phase [N]: [Phase Name]** — [Goal]
359
461
 
360
- `/gsd:discuss-phase [N]` — gather context and clarify approach
462
+ `/ccp:discuss-phase [N]` — gather context and clarify approach
361
463
 
362
464
  <sub>`/clear` first → fresh context window</sub>
363
465
 
364
- Also: `/gsd:plan-phase [N]` — skip discussion, plan directly
466
+ Also: `/ccp:plan-phase [N]` — skip discussion, plan directly
365
467
  ```
366
468
 
367
469
  </process>
@@ -373,12 +475,12 @@ Also: `/gsd:plan-phase [N]` — skip discussion, plan directly
373
475
  - [ ] Research completed (if selected) — 4 parallel agents, milestone-aware
374
476
  - [ ] Requirements gathered and scoped per category
375
477
  - [ ] REQUIREMENTS.md created with REQ-IDs
376
- - [ ] gsd-roadmapper spawned with phase numbering context
478
+ - [ ] ccp-roadmapper spawned with phase numbering context
377
479
  - [ ] Roadmap files written immediately (not draft)
378
480
  - [ ] User feedback incorporated (if any)
379
- - [ ] ROADMAP.md phases continue from previous milestone
481
+ - [ ] Phase numbering mode respected (continued or reset)
380
482
  - [ ] All commits made (if planning docs committed)
381
- - [ ] User knows next step: `/gsd:discuss-phase [N]`
483
+ - [ ] User knows next step: `/ccp:discuss-phase [N]`
382
484
 
383
485
  **Atomic commits:** Each phase commits its artifacts immediately.
384
486
  </success_criteria>