@the-bearded-bear/claude-craft 8.23.3 → 8.26.0-next.2a54921

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 (466) hide show
  1. package/Dev/i18n/base/Common/commands/aliases.md +7 -13
  2. package/Dev/i18n/base/Common/commands/init.md +89 -1
  3. package/Dev/i18n/base/Common/commands/pack-repo.md +1 -1
  4. package/Dev/i18n/base/Common/commands/search.md +2 -2
  5. package/Dev/i18n/base/Common/skills/dynamic-workflows/SKILL.md +1 -1
  6. package/Dev/i18n/{en/Common/commands/sub-agents-patterns.md → base/Common/skills/sub-agents-patterns/SKILL.md} +6 -1
  7. package/Dev/i18n/de/Common/agents/data-analyst.md +1 -1
  8. package/Dev/i18n/de/Common/agents/ralph-conductor.md +1 -1
  9. package/Dev/i18n/de/Common/commands/daily-standup.md +5 -212
  10. package/Dev/i18n/de/Common/commands/getting-started.md +3 -2
  11. package/Dev/i18n/de/Common/commands/pre-commit-check.md +5 -201
  12. package/Dev/i18n/de/Common/commands/pre-merge-check.md +5 -233
  13. package/Dev/i18n/de/Common/commands/ralph-run.md +47 -1
  14. package/Dev/i18n/de/Common/commands/release-checklist.md +5 -241
  15. package/Dev/i18n/de/Common/commands/setup-project-context.md +5 -286
  16. package/Dev/i18n/de/Common/rules/12-context-management.md +1 -1
  17. package/Dev/i18n/de/QA/commands/fix.md +8 -8
  18. package/Dev/i18n/de/QA/commands/recette.md +7 -8
  19. package/Dev/i18n/de/QA/commands/regression.md +11 -11
  20. package/Dev/i18n/de/QA/commands/report.md +5 -162
  21. package/Dev/i18n/de/QA/commands/status.md +140 -13
  22. package/Dev/i18n/de/QA/commands/tdd.md +1 -1
  23. package/Dev/i18n/de/Workflow/commands/analyze.md +5 -205
  24. package/Dev/i18n/de/Workflow/commands/auto-sprint.md +16 -8
  25. package/Dev/i18n/de/Workflow/commands/design.md +151 -209
  26. package/Dev/i18n/de/Workflow/commands/implement.md +310 -209
  27. package/Dev/i18n/de/Workflow/commands/init.md +42 -14
  28. package/Dev/i18n/de/Workflow/commands/plan.md +156 -169
  29. package/Dev/i18n/de/Workflow/commands/retro.md +1 -1
  30. package/Dev/i18n/de/Workflow/commands/review.md +1 -1
  31. package/Dev/i18n/de/Workflow/commands/start.md +115 -25
  32. package/Dev/i18n/de/Workflow/commands/status.md +275 -201
  33. package/Dev/i18n/en/Common/agents/data-analyst.md +1 -1
  34. package/Dev/i18n/en/Common/agents/ralph-conductor.md +1 -1
  35. package/Dev/i18n/en/Common/commands/daily-standup.md +5 -212
  36. package/Dev/i18n/en/Common/commands/getting-started.md +3 -2
  37. package/Dev/i18n/en/Common/commands/pre-commit-check.md +5 -201
  38. package/Dev/i18n/en/Common/commands/pre-merge-check.md +5 -233
  39. package/Dev/i18n/en/Common/commands/ralph-run.md +47 -1
  40. package/Dev/i18n/en/Common/commands/release-checklist.md +5 -241
  41. package/Dev/i18n/en/Common/commands/setup-project-context.md +5 -286
  42. package/Dev/i18n/en/Common/rules/12-context-management.md +1 -1
  43. package/Dev/i18n/en/QA/commands/fix.md +8 -8
  44. package/Dev/i18n/en/QA/commands/recette.md +7 -8
  45. package/Dev/i18n/en/QA/commands/regression.md +11 -11
  46. package/Dev/i18n/en/QA/commands/report.md +5 -221
  47. package/Dev/i18n/en/QA/commands/status.md +140 -13
  48. package/Dev/i18n/en/QA/commands/tdd.md +1 -1
  49. package/Dev/i18n/en/Workflow/commands/analyze.md +5 -204
  50. package/Dev/i18n/en/Workflow/commands/auto-sprint.md +16 -8
  51. package/Dev/i18n/en/Workflow/commands/design.md +143 -200
  52. package/Dev/i18n/en/Workflow/commands/implement.md +307 -206
  53. package/Dev/i18n/en/Workflow/commands/init.md +42 -14
  54. package/Dev/i18n/en/Workflow/commands/plan.md +153 -165
  55. package/Dev/i18n/en/Workflow/commands/retro.md +1 -1
  56. package/Dev/i18n/en/Workflow/commands/review.md +1 -1
  57. package/Dev/i18n/en/Workflow/commands/start.md +107 -17
  58. package/Dev/i18n/en/Workflow/commands/status.md +265 -191
  59. package/Dev/i18n/es/Common/agents/data-analyst.md +1 -1
  60. package/Dev/i18n/es/Common/agents/ralph-conductor.md +1 -1
  61. package/Dev/i18n/es/Common/commands/daily-standup.md +5 -212
  62. package/Dev/i18n/es/Common/commands/getting-started.md +3 -2
  63. package/Dev/i18n/es/Common/commands/pre-commit-check.md +5 -201
  64. package/Dev/i18n/es/Common/commands/pre-merge-check.md +5 -233
  65. package/Dev/i18n/es/Common/commands/ralph-run.md +47 -1
  66. package/Dev/i18n/es/Common/commands/release-checklist.md +5 -241
  67. package/Dev/i18n/es/Common/commands/setup-project-context.md +5 -286
  68. package/Dev/i18n/es/Common/rules/12-context-management.md +1 -1
  69. package/Dev/i18n/es/QA/commands/fix.md +8 -8
  70. package/Dev/i18n/es/QA/commands/recette.md +7 -8
  71. package/Dev/i18n/es/QA/commands/regression.md +11 -11
  72. package/Dev/i18n/es/QA/commands/report.md +5 -162
  73. package/Dev/i18n/es/QA/commands/status.md +140 -13
  74. package/Dev/i18n/es/QA/commands/tdd.md +1 -1
  75. package/Dev/i18n/es/Workflow/commands/analyze.md +5 -205
  76. package/Dev/i18n/es/Workflow/commands/auto-sprint.md +16 -8
  77. package/Dev/i18n/es/Workflow/commands/design.md +158 -218
  78. package/Dev/i18n/es/Workflow/commands/implement.md +323 -222
  79. package/Dev/i18n/es/Workflow/commands/init.md +42 -14
  80. package/Dev/i18n/es/Workflow/commands/plan.md +160 -175
  81. package/Dev/i18n/es/Workflow/commands/retro.md +1 -1
  82. package/Dev/i18n/es/Workflow/commands/review.md +1 -1
  83. package/Dev/i18n/es/Workflow/commands/start.md +113 -23
  84. package/Dev/i18n/es/Workflow/commands/status.md +284 -210
  85. package/Dev/i18n/fr/Common/agents/data-analyst.md +1 -1
  86. package/Dev/i18n/fr/Common/agents/ralph-conductor.md +1 -1
  87. package/Dev/i18n/fr/Common/commands/daily-standup.md +5 -212
  88. package/Dev/i18n/fr/Common/commands/getting-started.md +3 -2
  89. package/Dev/i18n/fr/Common/commands/pre-commit-check.md +5 -201
  90. package/Dev/i18n/fr/Common/commands/pre-merge-check.md +5 -233
  91. package/Dev/i18n/fr/Common/commands/ralph-run.md +47 -1
  92. package/Dev/i18n/fr/Common/commands/release-checklist.md +5 -241
  93. package/Dev/i18n/fr/Common/commands/setup-project-context.md +5 -286
  94. package/Dev/i18n/fr/Common/rules/12-context-management.md +1 -1
  95. package/Dev/i18n/fr/QA/commands/fix.md +8 -8
  96. package/Dev/i18n/fr/QA/commands/recette.md +7 -8
  97. package/Dev/i18n/fr/QA/commands/regression.md +11 -11
  98. package/Dev/i18n/fr/QA/commands/report.md +5 -163
  99. package/Dev/i18n/fr/QA/commands/status.md +140 -13
  100. package/Dev/i18n/fr/QA/commands/tdd.md +1 -1
  101. package/Dev/i18n/fr/Workflow/commands/analyze.md +5 -204
  102. package/Dev/i18n/fr/Workflow/commands/auto-sprint.md +16 -8
  103. package/Dev/i18n/fr/Workflow/commands/design.md +153 -214
  104. package/Dev/i18n/fr/Workflow/commands/implement.md +312 -213
  105. package/Dev/i18n/fr/Workflow/commands/init.md +42 -15
  106. package/Dev/i18n/fr/Workflow/commands/plan.md +155 -169
  107. package/Dev/i18n/fr/Workflow/commands/retro.md +1 -1
  108. package/Dev/i18n/fr/Workflow/commands/review.md +1 -1
  109. package/Dev/i18n/fr/Workflow/commands/start.md +109 -19
  110. package/Dev/i18n/fr/Workflow/commands/status.md +274 -200
  111. package/Dev/i18n/pt/Common/agents/data-analyst.md +1 -1
  112. package/Dev/i18n/pt/Common/agents/ralph-conductor.md +1 -1
  113. package/Dev/i18n/pt/Common/commands/daily-standup.md +5 -212
  114. package/Dev/i18n/pt/Common/commands/getting-started.md +3 -2
  115. package/Dev/i18n/pt/Common/commands/pre-commit-check.md +5 -201
  116. package/Dev/i18n/pt/Common/commands/pre-merge-check.md +5 -233
  117. package/Dev/i18n/pt/Common/commands/ralph-run.md +47 -1
  118. package/Dev/i18n/pt/Common/commands/release-checklist.md +5 -241
  119. package/Dev/i18n/pt/Common/commands/setup-project-context.md +5 -286
  120. package/Dev/i18n/pt/Common/rules/12-context-management.md +1 -1
  121. package/Dev/i18n/pt/QA/commands/fix.md +8 -8
  122. package/Dev/i18n/pt/QA/commands/recette.md +7 -8
  123. package/Dev/i18n/pt/QA/commands/regression.md +11 -11
  124. package/Dev/i18n/pt/QA/commands/report.md +5 -162
  125. package/Dev/i18n/pt/QA/commands/status.md +140 -13
  126. package/Dev/i18n/pt/QA/commands/tdd.md +1 -1
  127. package/Dev/i18n/pt/Workflow/commands/analyze.md +5 -205
  128. package/Dev/i18n/pt/Workflow/commands/auto-sprint.md +16 -8
  129. package/Dev/i18n/pt/Workflow/commands/design.md +161 -219
  130. package/Dev/i18n/pt/Workflow/commands/implement.md +323 -222
  131. package/Dev/i18n/pt/Workflow/commands/init.md +42 -14
  132. package/Dev/i18n/pt/Workflow/commands/plan.md +160 -172
  133. package/Dev/i18n/pt/Workflow/commands/retro.md +1 -1
  134. package/Dev/i18n/pt/Workflow/commands/review.md +1 -1
  135. package/Dev/i18n/pt/Workflow/commands/start.md +112 -22
  136. package/Dev/i18n/pt/Workflow/commands/status.md +294 -220
  137. package/Dev/scripts/install-common-rules.sh +7 -10
  138. package/Dev/scripts/prune-removed-commands.sh +22 -0
  139. package/Project/i18n/de/Gate/commands/check.md +392 -0
  140. package/Project/i18n/de/Gate/commands/report.md +5 -230
  141. package/Project/i18n/de/Gate/commands/validate-alignment.md +5 -119
  142. package/Project/i18n/de/Gate/commands/validate-backlog.md +5 -231
  143. package/Project/i18n/de/Gate/commands/validate-prd.md +5 -121
  144. package/Project/i18n/de/Gate/commands/validate-sprint.md +5 -220
  145. package/Project/i18n/de/Gate/commands/validate-story.md +5 -200
  146. package/Project/i18n/de/Gate/commands/validate-techspec.md +5 -199
  147. package/Project/i18n/de/Sprint/commands/auto-route.md +5 -229
  148. package/Project/i18n/de/Sprint/commands/dev.md +5 -443
  149. package/Project/i18n/de/Sprint/commands/next-story.md +5 -153
  150. package/Project/i18n/de/Sprint/commands/status.md +5 -173
  151. package/Project/i18n/de/Sprint/commands/transition.md +5 -259
  152. package/Project/i18n/de/agents/product-owner.md +5 -5
  153. package/Project/i18n/de/agents/tech-lead.md +8 -8
  154. package/Project/i18n/de/commands/add-epic.md +5 -88
  155. package/Project/i18n/de/commands/add-story.md +5 -112
  156. package/Project/i18n/de/commands/add-task.md +5 -127
  157. package/Project/i18n/de/commands/analyze-backlog.md +5 -110
  158. package/Project/i18n/de/commands/backlog.md +653 -0
  159. package/Project/i18n/de/commands/batch-status.md +5 -209
  160. package/Project/i18n/de/commands/board.md +5 -130
  161. package/Project/i18n/de/commands/burndown.md +5 -120
  162. package/Project/i18n/de/commands/checkpoint.md +5 -239
  163. package/Project/i18n/de/commands/coverage-map.md +5 -217
  164. package/Project/i18n/de/commands/critical-path.md +5 -123
  165. package/Project/i18n/de/commands/decompose-tasks.md +5 -600
  166. package/Project/i18n/de/commands/dependencies.md +5 -139
  167. package/Project/i18n/de/commands/gap-analysis.md +5 -290
  168. package/Project/i18n/de/commands/generate-backlog.md +5 -378
  169. package/Project/i18n/de/commands/generate-constitution.md +5 -223
  170. package/Project/i18n/de/commands/generate-prd.md +5 -210
  171. package/Project/i18n/de/commands/generate-tech-spec.md +5 -285
  172. package/Project/i18n/de/commands/list-epics.md +5 -91
  173. package/Project/i18n/de/commands/list-stories.md +5 -116
  174. package/Project/i18n/de/commands/list-tasks.md +5 -128
  175. package/Project/i18n/de/commands/metrics.md +5 -223
  176. package/Project/i18n/de/commands/migrate-backlog.md +5 -144
  177. package/Project/i18n/de/commands/migrate.md +158 -0
  178. package/Project/i18n/de/commands/move-task.md +5 -200
  179. package/Project/i18n/de/commands/report.md +156 -0
  180. package/Project/i18n/de/commands/reverse-prd.md +5 -284
  181. package/Project/i18n/de/commands/reverse-stories.md +5 -301
  182. package/Project/i18n/de/commands/reverse.md +249 -0
  183. package/Project/i18n/de/commands/run-epic.md +5 -187
  184. package/Project/i18n/de/commands/run-queue.md +5 -250
  185. package/Project/i18n/de/commands/run-sprint.md +5 -262
  186. package/Project/i18n/de/commands/scan.md +5 -267
  187. package/Project/i18n/de/commands/sync-backlog.md +5 -161
  188. package/Project/i18n/de/commands/trace.md +126 -174
  189. package/Project/i18n/de/commands/update-epic.md +5 -101
  190. package/Project/i18n/de/commands/update-stories.md +5 -190
  191. package/Project/i18n/de/commands/update-story.md +5 -146
  192. package/Project/i18n/de/scaffold/CLAUDE.md +47 -47
  193. package/Project/i18n/de/scaffold/project-management__README.md +7 -7
  194. package/Project/i18n/de/templates/board.md +22 -9
  195. package/Project/i18n/de/templates/epic.md +4 -4
  196. package/Project/i18n/de/templates/prd.md +1 -1
  197. package/Project/i18n/de/templates/sprint-status.md +60 -0
  198. package/Project/i18n/de/templates/task.md +1 -1
  199. package/Project/i18n/de/templates/user-story.md +8 -6
  200. package/Project/i18n/en/Gate/commands/check.md +392 -0
  201. package/Project/i18n/en/Gate/commands/report.md +5 -261
  202. package/Project/i18n/en/Gate/commands/validate-alignment.md +5 -119
  203. package/Project/i18n/en/Gate/commands/validate-backlog.md +5 -236
  204. package/Project/i18n/en/Gate/commands/validate-prd.md +5 -168
  205. package/Project/i18n/en/Gate/commands/validate-sprint.md +5 -220
  206. package/Project/i18n/en/Gate/commands/validate-story.md +5 -200
  207. package/Project/i18n/en/Gate/commands/validate-techspec.md +5 -199
  208. package/Project/i18n/en/Sprint/commands/auto-route.md +5 -229
  209. package/Project/i18n/en/Sprint/commands/dev.md +5 -441
  210. package/Project/i18n/en/Sprint/commands/next-story.md +5 -153
  211. package/Project/i18n/en/Sprint/commands/status.md +5 -214
  212. package/Project/i18n/en/Sprint/commands/transition.md +5 -259
  213. package/Project/i18n/en/agents/product-owner.md +5 -5
  214. package/Project/i18n/en/agents/tech-lead.md +8 -8
  215. package/Project/i18n/en/commands/add-epic.md +5 -88
  216. package/Project/i18n/en/commands/add-story.md +5 -112
  217. package/Project/i18n/en/commands/add-task.md +5 -127
  218. package/Project/i18n/en/commands/analyze-backlog.md +5 -133
  219. package/Project/i18n/en/commands/backlog.md +653 -0
  220. package/Project/i18n/en/commands/batch-status.md +5 -209
  221. package/Project/i18n/en/commands/board.md +5 -130
  222. package/Project/i18n/en/commands/burndown.md +5 -120
  223. package/Project/i18n/en/commands/checkpoint.md +5 -239
  224. package/Project/i18n/en/commands/coverage-map.md +5 -217
  225. package/Project/i18n/en/commands/critical-path.md +5 -123
  226. package/Project/i18n/en/commands/decompose-tasks.md +5 -600
  227. package/Project/i18n/en/commands/dependencies.md +5 -139
  228. package/Project/i18n/en/commands/gap-analysis.md +5 -290
  229. package/Project/i18n/en/commands/generate-backlog.md +5 -378
  230. package/Project/i18n/en/commands/generate-constitution.md +5 -223
  231. package/Project/i18n/en/commands/generate-prd.md +5 -210
  232. package/Project/i18n/en/commands/generate-tech-spec.md +5 -285
  233. package/Project/i18n/en/commands/list-epics.md +5 -91
  234. package/Project/i18n/en/commands/list-stories.md +5 -116
  235. package/Project/i18n/en/commands/list-tasks.md +5 -128
  236. package/Project/i18n/en/commands/metrics.md +5 -223
  237. package/Project/i18n/en/commands/migrate-backlog.md +5 -186
  238. package/Project/i18n/en/commands/migrate.md +158 -0
  239. package/Project/i18n/en/commands/move-task.md +5 -200
  240. package/Project/i18n/en/commands/report.md +156 -0
  241. package/Project/i18n/en/commands/reverse-prd.md +5 -284
  242. package/Project/i18n/en/commands/reverse-stories.md +5 -301
  243. package/Project/i18n/en/commands/reverse.md +249 -0
  244. package/Project/i18n/en/commands/run-epic.md +5 -187
  245. package/Project/i18n/en/commands/run-queue.md +5 -250
  246. package/Project/i18n/en/commands/run-sprint.md +5 -262
  247. package/Project/i18n/en/commands/scan.md +5 -267
  248. package/Project/i18n/en/commands/sync-backlog.md +5 -161
  249. package/Project/i18n/en/commands/trace.md +119 -167
  250. package/Project/i18n/en/commands/update-epic.md +5 -101
  251. package/Project/i18n/en/commands/update-stories.md +5 -190
  252. package/Project/i18n/en/commands/update-story.md +5 -146
  253. package/Project/i18n/en/scaffold/CLAUDE.md +47 -47
  254. package/Project/i18n/en/scaffold/project-management__README.md +7 -7
  255. package/Project/i18n/en/templates/board.md +22 -9
  256. package/Project/i18n/en/templates/epic.md +4 -4
  257. package/Project/i18n/en/templates/prd.md +1 -1
  258. package/Project/i18n/en/templates/sprint-status.md +60 -0
  259. package/Project/i18n/en/templates/task.md +1 -1
  260. package/Project/i18n/en/templates/user-story.md +7 -5
  261. package/Project/i18n/es/Gate/commands/check.md +392 -0
  262. package/Project/i18n/es/Gate/commands/report.md +5 -229
  263. package/Project/i18n/es/Gate/commands/validate-alignment.md +5 -119
  264. package/Project/i18n/es/Gate/commands/validate-backlog.md +5 -231
  265. package/Project/i18n/es/Gate/commands/validate-prd.md +5 -121
  266. package/Project/i18n/es/Gate/commands/validate-sprint.md +5 -220
  267. package/Project/i18n/es/Gate/commands/validate-story.md +5 -200
  268. package/Project/i18n/es/Gate/commands/validate-techspec.md +5 -199
  269. package/Project/i18n/es/Sprint/commands/auto-route.md +5 -229
  270. package/Project/i18n/es/Sprint/commands/dev.md +5 -441
  271. package/Project/i18n/es/Sprint/commands/next-story.md +5 -153
  272. package/Project/i18n/es/Sprint/commands/status.md +5 -172
  273. package/Project/i18n/es/Sprint/commands/transition.md +5 -259
  274. package/Project/i18n/es/agents/product-owner.md +5 -5
  275. package/Project/i18n/es/agents/tech-lead.md +8 -8
  276. package/Project/i18n/es/commands/add-epic.md +5 -88
  277. package/Project/i18n/es/commands/add-story.md +5 -112
  278. package/Project/i18n/es/commands/add-task.md +5 -127
  279. package/Project/i18n/es/commands/analyze-backlog.md +5 -110
  280. package/Project/i18n/es/commands/backlog.md +653 -0
  281. package/Project/i18n/es/commands/batch-status.md +5 -209
  282. package/Project/i18n/es/commands/board.md +5 -130
  283. package/Project/i18n/es/commands/burndown.md +5 -120
  284. package/Project/i18n/es/commands/checkpoint.md +5 -239
  285. package/Project/i18n/es/commands/coverage-map.md +5 -217
  286. package/Project/i18n/es/commands/critical-path.md +5 -123
  287. package/Project/i18n/es/commands/decompose-tasks.md +5 -600
  288. package/Project/i18n/es/commands/dependencies.md +5 -139
  289. package/Project/i18n/es/commands/gap-analysis.md +5 -290
  290. package/Project/i18n/es/commands/generate-backlog.md +5 -378
  291. package/Project/i18n/es/commands/generate-constitution.md +5 -223
  292. package/Project/i18n/es/commands/generate-prd.md +5 -210
  293. package/Project/i18n/es/commands/generate-tech-spec.md +5 -285
  294. package/Project/i18n/es/commands/list-epics.md +5 -91
  295. package/Project/i18n/es/commands/list-stories.md +5 -116
  296. package/Project/i18n/es/commands/list-tasks.md +5 -128
  297. package/Project/i18n/es/commands/metrics.md +5 -223
  298. package/Project/i18n/es/commands/migrate-backlog.md +5 -144
  299. package/Project/i18n/es/commands/migrate.md +158 -0
  300. package/Project/i18n/es/commands/move-task.md +5 -200
  301. package/Project/i18n/es/commands/report.md +156 -0
  302. package/Project/i18n/es/commands/reverse-prd.md +5 -284
  303. package/Project/i18n/es/commands/reverse-stories.md +5 -301
  304. package/Project/i18n/es/commands/reverse.md +249 -0
  305. package/Project/i18n/es/commands/run-epic.md +5 -187
  306. package/Project/i18n/es/commands/run-queue.md +5 -250
  307. package/Project/i18n/es/commands/run-sprint.md +5 -262
  308. package/Project/i18n/es/commands/scan.md +5 -267
  309. package/Project/i18n/es/commands/sync-backlog.md +5 -161
  310. package/Project/i18n/es/commands/trace.md +126 -174
  311. package/Project/i18n/es/commands/update-epic.md +5 -101
  312. package/Project/i18n/es/commands/update-stories.md +5 -190
  313. package/Project/i18n/es/commands/update-story.md +5 -146
  314. package/Project/i18n/es/scaffold/CLAUDE.md +47 -47
  315. package/Project/i18n/es/scaffold/project-management__README.md +7 -7
  316. package/Project/i18n/es/templates/board.md +22 -9
  317. package/Project/i18n/es/templates/epic.md +4 -4
  318. package/Project/i18n/es/templates/prd.md +1 -1
  319. package/Project/i18n/es/templates/sprint-status.md +60 -0
  320. package/Project/i18n/es/templates/task.md +1 -1
  321. package/Project/i18n/es/templates/user-story.md +8 -6
  322. package/Project/i18n/fr/Gate/commands/check.md +392 -0
  323. package/Project/i18n/fr/Gate/commands/report.md +5 -196
  324. package/Project/i18n/fr/Gate/commands/validate-alignment.md +5 -121
  325. package/Project/i18n/fr/Gate/commands/validate-backlog.md +5 -231
  326. package/Project/i18n/fr/Gate/commands/validate-prd.md +5 -121
  327. package/Project/i18n/fr/Gate/commands/validate-sprint.md +5 -220
  328. package/Project/i18n/fr/Gate/commands/validate-story.md +5 -200
  329. package/Project/i18n/fr/Gate/commands/validate-techspec.md +5 -199
  330. package/Project/i18n/fr/Sprint/commands/auto-route.md +5 -229
  331. package/Project/i18n/fr/Sprint/commands/dev.md +5 -441
  332. package/Project/i18n/fr/Sprint/commands/next-story.md +5 -153
  333. package/Project/i18n/fr/Sprint/commands/status.md +5 -172
  334. package/Project/i18n/fr/Sprint/commands/transition.md +5 -259
  335. package/Project/i18n/fr/agents/product-owner.md +5 -5
  336. package/Project/i18n/fr/agents/tech-lead.md +8 -8
  337. package/Project/i18n/fr/commands/add-epic.md +5 -88
  338. package/Project/i18n/fr/commands/add-story.md +5 -112
  339. package/Project/i18n/fr/commands/add-task.md +5 -127
  340. package/Project/i18n/fr/commands/analyze-backlog.md +5 -110
  341. package/Project/i18n/fr/commands/backlog.md +653 -0
  342. package/Project/i18n/fr/commands/batch-status.md +5 -209
  343. package/Project/i18n/fr/commands/board.md +5 -130
  344. package/Project/i18n/fr/commands/burndown.md +5 -120
  345. package/Project/i18n/fr/commands/checkpoint.md +5 -239
  346. package/Project/i18n/fr/commands/coverage-map.md +5 -217
  347. package/Project/i18n/fr/commands/critical-path.md +5 -123
  348. package/Project/i18n/fr/commands/decompose-tasks.md +5 -600
  349. package/Project/i18n/fr/commands/dependencies.md +5 -139
  350. package/Project/i18n/fr/commands/gap-analysis.md +5 -290
  351. package/Project/i18n/fr/commands/generate-backlog.md +5 -378
  352. package/Project/i18n/fr/commands/generate-constitution.md +5 -223
  353. package/Project/i18n/fr/commands/generate-prd.md +5 -210
  354. package/Project/i18n/fr/commands/generate-tech-spec.md +5 -285
  355. package/Project/i18n/fr/commands/list-epics.md +5 -91
  356. package/Project/i18n/fr/commands/list-stories.md +5 -116
  357. package/Project/i18n/fr/commands/list-tasks.md +5 -128
  358. package/Project/i18n/fr/commands/metrics.md +5 -223
  359. package/Project/i18n/fr/commands/migrate-backlog.md +5 -144
  360. package/Project/i18n/fr/commands/migrate.md +158 -0
  361. package/Project/i18n/fr/commands/move-task.md +5 -200
  362. package/Project/i18n/fr/commands/report.md +156 -0
  363. package/Project/i18n/fr/commands/reverse-prd.md +5 -284
  364. package/Project/i18n/fr/commands/reverse-stories.md +5 -301
  365. package/Project/i18n/fr/commands/reverse.md +249 -0
  366. package/Project/i18n/fr/commands/run-epic.md +5 -187
  367. package/Project/i18n/fr/commands/run-queue.md +5 -250
  368. package/Project/i18n/fr/commands/run-sprint.md +5 -262
  369. package/Project/i18n/fr/commands/scan.md +5 -267
  370. package/Project/i18n/fr/commands/sync-backlog.md +5 -161
  371. package/Project/i18n/fr/commands/trace.md +125 -173
  372. package/Project/i18n/fr/commands/update-epic.md +5 -101
  373. package/Project/i18n/fr/commands/update-stories.md +5 -190
  374. package/Project/i18n/fr/commands/update-story.md +5 -146
  375. package/Project/i18n/fr/scaffold/CLAUDE.md +47 -47
  376. package/Project/i18n/fr/scaffold/project-management__README.md +7 -7
  377. package/Project/i18n/fr/templates/board.md +22 -9
  378. package/Project/i18n/fr/templates/epic.md +4 -4
  379. package/Project/i18n/fr/templates/prd.md +1 -1
  380. package/Project/i18n/fr/templates/sprint-status.md +60 -0
  381. package/Project/i18n/fr/templates/task.md +1 -1
  382. package/Project/i18n/fr/templates/user-story.md +8 -6
  383. package/Project/i18n/pt/Gate/commands/check.md +392 -0
  384. package/Project/i18n/pt/Gate/commands/report.md +5 -229
  385. package/Project/i18n/pt/Gate/commands/validate-alignment.md +5 -120
  386. package/Project/i18n/pt/Gate/commands/validate-backlog.md +5 -231
  387. package/Project/i18n/pt/Gate/commands/validate-prd.md +5 -121
  388. package/Project/i18n/pt/Gate/commands/validate-sprint.md +5 -220
  389. package/Project/i18n/pt/Gate/commands/validate-story.md +5 -200
  390. package/Project/i18n/pt/Gate/commands/validate-techspec.md +5 -199
  391. package/Project/i18n/pt/Sprint/commands/auto-route.md +5 -229
  392. package/Project/i18n/pt/Sprint/commands/dev.md +5 -441
  393. package/Project/i18n/pt/Sprint/commands/next-story.md +5 -153
  394. package/Project/i18n/pt/Sprint/commands/status.md +5 -172
  395. package/Project/i18n/pt/Sprint/commands/transition.md +5 -259
  396. package/Project/i18n/pt/agents/product-owner.md +5 -5
  397. package/Project/i18n/pt/agents/tech-lead.md +8 -8
  398. package/Project/i18n/pt/commands/add-epic.md +5 -88
  399. package/Project/i18n/pt/commands/add-story.md +5 -112
  400. package/Project/i18n/pt/commands/add-task.md +5 -127
  401. package/Project/i18n/pt/commands/analyze-backlog.md +5 -110
  402. package/Project/i18n/pt/commands/backlog.md +653 -0
  403. package/Project/i18n/pt/commands/batch-status.md +5 -209
  404. package/Project/i18n/pt/commands/board.md +5 -130
  405. package/Project/i18n/pt/commands/burndown.md +5 -120
  406. package/Project/i18n/pt/commands/checkpoint.md +5 -239
  407. package/Project/i18n/pt/commands/coverage-map.md +5 -217
  408. package/Project/i18n/pt/commands/critical-path.md +5 -123
  409. package/Project/i18n/pt/commands/decompose-tasks.md +5 -600
  410. package/Project/i18n/pt/commands/dependencies.md +5 -139
  411. package/Project/i18n/pt/commands/gap-analysis.md +5 -290
  412. package/Project/i18n/pt/commands/generate-backlog.md +5 -378
  413. package/Project/i18n/pt/commands/generate-constitution.md +5 -223
  414. package/Project/i18n/pt/commands/generate-prd.md +5 -210
  415. package/Project/i18n/pt/commands/generate-tech-spec.md +5 -285
  416. package/Project/i18n/pt/commands/list-epics.md +5 -91
  417. package/Project/i18n/pt/commands/list-stories.md +5 -116
  418. package/Project/i18n/pt/commands/list-tasks.md +5 -128
  419. package/Project/i18n/pt/commands/metrics.md +5 -223
  420. package/Project/i18n/pt/commands/migrate-backlog.md +5 -144
  421. package/Project/i18n/pt/commands/migrate.md +158 -0
  422. package/Project/i18n/pt/commands/move-task.md +5 -200
  423. package/Project/i18n/pt/commands/report.md +156 -0
  424. package/Project/i18n/pt/commands/reverse-prd.md +5 -284
  425. package/Project/i18n/pt/commands/reverse-stories.md +5 -301
  426. package/Project/i18n/pt/commands/reverse.md +249 -0
  427. package/Project/i18n/pt/commands/run-epic.md +5 -187
  428. package/Project/i18n/pt/commands/run-queue.md +5 -250
  429. package/Project/i18n/pt/commands/run-sprint.md +5 -262
  430. package/Project/i18n/pt/commands/scan.md +5 -267
  431. package/Project/i18n/pt/commands/sync-backlog.md +5 -161
  432. package/Project/i18n/pt/commands/trace.md +126 -174
  433. package/Project/i18n/pt/commands/update-epic.md +5 -101
  434. package/Project/i18n/pt/commands/update-stories.md +5 -190
  435. package/Project/i18n/pt/commands/update-story.md +5 -146
  436. package/Project/i18n/pt/scaffold/CLAUDE.md +47 -47
  437. package/Project/i18n/pt/scaffold/project-management__README.md +7 -7
  438. package/Project/i18n/pt/templates/board.md +22 -9
  439. package/Project/i18n/pt/templates/epic.md +4 -4
  440. package/Project/i18n/pt/templates/prd.md +1 -1
  441. package/Project/i18n/pt/templates/sprint-status.md +60 -0
  442. package/Project/i18n/pt/templates/task.md +1 -1
  443. package/Project/i18n/pt/templates/user-story.md +8 -6
  444. package/Project/install-project-commands.sh +33 -52
  445. package/README.md +22 -5
  446. package/Tools/Ralph/README.md +9 -9
  447. package/bundles/cursor/.cursorrules +2 -2
  448. package/bundles/windsurf/.windsurfrules +2 -2
  449. package/cli/kanban/server/app.js +9 -4
  450. package/cli/kanban/server/services/repository.js +35 -8
  451. package/cli/kanban/server/services/sprint-cache.js +45 -1
  452. package/cli/kanban/shared/schemas.js +2 -0
  453. package/cli/lib/update.js +15 -0
  454. package/config/removed-commands.yaml +14 -0
  455. package/package.json +4 -2
  456. package/Dev/i18n/base/Common/commands/audit-claude-alignment.md +0 -201
  457. package/Dev/i18n/base/Common/commands/audit-freshness.md +0 -176
  458. package/Dev/i18n/de/Common/commands/add-technology.md +0 -297
  459. package/Dev/i18n/de/Common/commands/sub-agents-patterns.md +0 -167
  460. package/Dev/i18n/en/Common/commands/add-technology.md +0 -297
  461. package/Dev/i18n/es/Common/commands/add-technology.md +0 -297
  462. package/Dev/i18n/es/Common/commands/sub-agents-patterns.md +0 -200
  463. package/Dev/i18n/fr/Common/commands/add-technology.md +0 -297
  464. package/Dev/i18n/fr/Common/commands/sub-agents-patterns.md +0 -167
  465. package/Dev/i18n/pt/Common/commands/add-technology.md +0 -297
  466. package/Dev/i18n/pt/Common/commands/sub-agents-patterns.md +0 -167
@@ -1,288 +1,9 @@
1
1
  ---
2
- name: reverse-prd
3
- description: Generate a PRD from an existing codebase by analyzing implemented features and business logic
4
- arguments:
5
- - name: scan-report
6
- description: Path to scan report (default project-management/scan-report.md)
7
- required: false
8
- - name: output
9
- description: Output path (default project-management/prd.md)
10
- required: false
2
+ description: "Deprecated (removed in 9.0): use /project:reverse prd"
3
+ deprecated: true
4
+ replaced-by: /project:reverse
11
5
  ---
12
6
 
13
- # /project:reverse-prd
7
+ > ⚠️ `/project:reverse-prd` is deprecated and will be removed in 9.0. Use `/project:reverse prd`.
14
8
 
15
- ## Mission
16
-
17
- Generate a DRAFT Product Requirements Document (PRD) from an existing codebase by analyzing implemented features, business logic, authentication patterns, and infrastructure. This is the brownfield counterpart to `/project:generate-prd` for projects that already have working code but lack formal specifications.
18
-
19
- **IMPORTANT:** The output is always a DRAFT. All inferred sections are marked as requiring human validation. This command does NOT create authoritative specifications -- it creates a starting point for discussion and refinement.
20
-
21
- ## Prerequisites
22
-
23
- - Scan report exists at `project-management/scan-report.md` (or run `/project:scan` first)
24
- - Codebase is accessible for analysis
25
- - Optional: Existing documentation in `./docs/`
26
- - Optional: `README.md` with project description
27
-
28
- ## Plan Mode
29
-
30
- > **Plan mode is mandatory.** Before executing, Claude activates plan mode to analyze impacted code, propose an implementation plan, and wait for your validation before making any changes.
31
-
32
- ## Workflow
33
-
34
- ### Step 1: Load Scan Report
35
-
36
- ```
37
- +--------------------------------------------------------------+
38
- | REVERSE PRD - LOADING SCAN |
39
- +--------------------------------------------------------------+
40
- | Loading scan report... |
41
- +--------------------------------------------------------------+
42
- ```
43
-
44
- **Actions:**
45
- 1. Load `project-management/scan-report.md`
46
- 2. If scan report does not exist, prompt user to run `/project:scan` first
47
- 3. Parse technology stack, modules, endpoints, entities, and services
48
- 4. Load any existing documentation from `./docs/` and `README.md`
49
-
50
- ### Step 2: Business Logic Analysis
51
-
52
- ```
53
- +--------------------------------------------------------------+
54
- | REVERSE PRD - BUSINESS ANALYSIS |
55
- +--------------------------------------------------------------+
56
- | Analyzing business logic from code... |
57
- +--------------------------------------------------------------+
58
- ```
59
-
60
- **For each module/bounded context, analyze:**
61
-
62
- 1. **Domain Events**: What business events are dispatched?
63
- - Event classes and their payloads
64
- - Event listeners and subscribers
65
- - Event-driven workflows
66
-
67
- 2. **Use Cases / Commands / Queries**: What operations exist?
68
- - Command handlers (write operations)
69
- - Query handlers (read operations)
70
- - Service methods with business logic
71
-
72
- 3. **Validation Rules**: What constraints exist?
73
- - Entity validation (annotations, attributes)
74
- - Form/request validation
75
- - Business rule assertions
76
-
77
- 4. **State Machines**: What status transitions exist?
78
- - Enum types for statuses
79
- - Workflow/state machine configurations
80
- - Guard conditions
81
-
82
- 5. **External Integrations**: What third-party services are used?
83
- - Payment gateways
84
- - Email/notification services
85
- - Storage providers
86
- - External APIs
87
-
88
- ### Step 3: Requirement Inference
89
-
90
- ```
91
- +--------------------------------------------------------------+
92
- | REVERSE PRD - INFERENCE |
93
- +--------------------------------------------------------------+
94
- | Inferring requirements from code... |
95
- +--------------------------------------------------------------+
96
- ```
97
-
98
- **Inference Rules:**
99
-
100
- | Code Pattern | Inferred Requirement |
101
- |-------------|---------------------|
102
- | Auth middleware / JWT | User authentication required |
103
- | Role-based guards | Authorization with roles |
104
- | CRUD controllers | Data management features |
105
- | File upload handlers | Document/media management |
106
- | Email services | Notification system |
107
- | Payment gateway | Payment processing |
108
- | Export endpoints | Reporting/export features |
109
- | Search/filter logic | Search and filtering |
110
- | Pagination | Large dataset handling |
111
- | Cache layers | Performance requirements |
112
- | Queue workers | Async processing requirements |
113
- | Rate limiting | API protection requirements |
114
-
115
- **Persona Inference from Auth Patterns:**
116
-
117
- | Auth Pattern | Inferred Persona |
118
- |-------------|-----------------|
119
- | `ROLE_ADMIN` | Administrator persona |
120
- | `ROLE_USER` | Standard user persona |
121
- | `ROLE_MANAGER` | Manager/supervisor persona |
122
- | Public endpoints (no auth) | Anonymous/visitor persona |
123
- | API key auth | External system/integration persona |
124
-
125
- **NFR Inference from Infrastructure:**
126
-
127
- | Infrastructure | Inferred NFR |
128
- |---------------|-------------|
129
- | Docker / Kubernetes | Scalability, containerization |
130
- | Redis / Memcached | Performance caching requirements |
131
- | Queue system (RabbitMQ, etc.) | Async processing, reliability |
132
- | CI/CD pipelines | Deployment automation |
133
- | Load balancer config | High availability |
134
- | SSL/TLS configuration | Security requirements |
135
- | Logging stack (ELK, etc.) | Monitoring requirements |
136
-
137
- ### Step 4: PRD Generation
138
-
139
- ```
140
- +--------------------------------------------------------------+
141
- | REVERSE PRD - GENERATION |
142
- +--------------------------------------------------------------+
143
- | Generating DRAFT PRD... |
144
- +--------------------------------------------------------------+
145
- ```
146
-
147
- **Generate the PRD with the following sections:**
148
-
149
- 1. **Executive Summary** -- `INFERRED`
150
- - Project name and description from README/code
151
- - Technology stack summary
152
- - Estimated scope and complexity
153
-
154
- 2. **Problem Statement** -- `INFERRED`
155
- - Inferred from domain model and business logic
156
- - Marked for human validation
157
-
158
- 3. **Goals & Metrics** -- `PLACEHOLDER`
159
- - Cannot be reliably inferred from code
160
- - Placeholder section requiring human input
161
-
162
- 4. **Target Users / Personas** -- `INFERRED`
163
- - Generated from authentication and authorization patterns
164
- - Each persona marked as draft
165
-
166
- 5. **Functional Requirements** -- `INFERRED`
167
- - One requirement per feature/endpoint group
168
- - Prioritized by code complexity and usage patterns
169
- - Each tagged with source module
170
-
171
- 6. **Non-Functional Requirements** -- `INFERRED`
172
- - Inferred from infrastructure and configuration
173
- - Performance, security, scalability sections
174
-
175
- 7. **Scope & Constraints** -- `INFERRED`
176
- - Current scope from implemented features
177
- - Technical constraints from stack choices
178
-
179
- 8. **Risks & Mitigations** -- `INFERRED`
180
- - Technical debt indicators
181
- - Missing test coverage areas
182
- - Dependency risks
183
-
184
- **Every inferred section includes the marker:**
185
- ```
186
- > INFERRED -- This section was generated by analyzing the existing codebase.
187
- > Human validation is required before treating this as an authoritative requirement.
188
- ```
189
-
190
- ### Step 5: Human Validation
191
-
192
- ```
193
- +--------------------------------------------------------------+
194
- | REVERSE PRD - VALIDATION |
195
- +--------------------------------------------------------------+
196
- | DRAFT PRD generated. Human validation required. |
197
- +--------------------------------------------------------------+
198
- ```
199
-
200
- **Present the draft to the user for validation:**
201
- 1. Display a summary of all inferred sections
202
- 2. Highlight sections with low confidence
203
- 3. Identify sections that could not be inferred (Goals, Metrics)
204
- 4. Ask the user to validate, correct, or expand each section
205
- 5. Iterate until the user is satisfied
206
-
207
- ## Output Format
208
-
209
- ```
210
- project-management/
211
- +-- prd.md # Generated DRAFT PRD
212
- +-- analysis/
213
- +-- reverse-engineering.md # Analysis notes and confidence levels
214
- ```
215
-
216
- **PRD Header:**
217
-
218
- ```
219
- +==============================================================+
220
- | REVERSE-ENGINEERED PRD (DRAFT) |
221
- +==============================================================+
222
- | Project: {name} |
223
- | Source: Codebase analysis |
224
- | Status: DRAFT - Requires human validation |
225
- | Generated: {date} |
226
- +==============================================================+
227
- | Confidence Levels: |
228
- | - Executive Summary: HIGH |
229
- | - Problem Statement: MEDIUM |
230
- | - Goals & Metrics: LOW (placeholder) |
231
- | - Personas: MEDIUM |
232
- | - Functional Requirements: HIGH |
233
- | - Non-Functional Reqs: MEDIUM |
234
- | - Scope & Constraints: HIGH |
235
- | - Risks: MEDIUM |
236
- +==============================================================+
237
- ```
238
-
239
- ## Example Session
240
-
241
- ```
242
- User: /project:reverse-prd
243
-
244
- Claude: Starting reverse PRD generation...
245
-
246
- [Loading Scan]
247
- Loaded scan report: project-management/scan-report.md
248
- Stack: Symfony 7.2 / PHP 8.4
249
- Modules: 5 bounded contexts, 23 endpoints, 8 entities
250
-
251
- [Business Analysis]
252
- Analyzing domain events... Found 12 event types
253
- Analyzing use cases... Found 18 command/query handlers
254
- Analyzing validation rules... Found 35 constraint annotations
255
- Analyzing auth patterns... Found 3 role types (ADMIN, MANAGER, USER)
256
-
257
- [Inference]
258
- Inferred 3 personas from auth patterns
259
- Inferred 14 functional requirements from endpoints
260
- Inferred 6 non-functional requirements from infrastructure
261
-
262
- [Generation]
263
- DRAFT PRD generated: project-management/prd.md
264
-
265
- Summary:
266
- - 3 personas (Admin, Manager, User) -- INFERRED
267
- - 14 functional requirements across 5 modules -- INFERRED
268
- - 6 non-functional requirements -- INFERRED
269
- - Goals & Metrics -- PLACEHOLDER (needs human input)
270
-
271
- Sections requiring your attention:
272
- 1. Goals & Metrics (could not be inferred)
273
- 2. Problem Statement (low confidence)
274
- 3. Persona details (names, demographics)
275
-
276
- Would you like to:
277
- 1. Review and validate each section interactively?
278
- 2. Focus on a specific section first?
279
- 3. Export the draft as-is and refine later?
280
- ```
281
-
282
- ## Related Commands
283
-
284
- - `/project:scan` - Scan codebase (prerequisite)
285
- - `/project:reverse-stories` - Generate user stories from codebase
286
- - `/project:gap-analysis` - Compare spec vs code
287
- - `/project:generate-prd` - Generate PRD interactively (greenfield)
288
- - `/project:generate-backlog` - Create SCRUM backlog from PRD
9
+ Run `/project:reverse prd $ARGUMENTS`: read `.claude/commands/project/reverse.md` and follow it with these arguments.
@@ -1,305 +1,9 @@
1
1
  ---
2
- name: reverse-stories
3
- description: Generate user stories from existing codebase features and endpoints
4
- arguments:
5
- - name: scan-report
6
- description: Path to scan report (default project-management/scan-report.md)
7
- required: false
8
- - name: scope
9
- description: Scope to generate stories for (all, module, endpoint)
10
- required: false
11
- - name: module
12
- description: Specific module to generate stories for
13
- required: false
2
+ description: "Deprecated (removed in 9.0): use /project:reverse stories"
3
+ deprecated: true
4
+ replaced-by: /project:reverse
14
5
  ---
15
6
 
16
- # /project:reverse-stories
7
+ > ⚠️ `/project:reverse-stories` is deprecated and will be removed in 9.0. Use `/project:reverse stories`.
17
8
 
18
- ## Mission
19
-
20
- Generate user stories from an existing codebase by analyzing implemented features, endpoints, and test assertions. Each story is inferred from actual code behavior and marked as a DRAFT requiring human validation. This command bridges the gap between working code and formal product documentation.
21
-
22
- **IMPORTANT:** All generated stories are marked as `INFERRED`. They represent what the code currently does, not necessarily what it should do. Human validation is mandatory before treating these as authoritative requirements.
23
-
24
- ## Prerequisites
25
-
26
- - Scan report exists at `project-management/scan-report.md` (or run `/project:scan` first)
27
- - Optional: PRD exists at `project-management/prd.md` (from `/project:reverse-prd`)
28
- - Codebase is accessible for analysis
29
- - Optional: Existing test files for acceptance criteria extraction
30
-
31
- ## Plan Mode
32
-
33
- > **Plan mode is mandatory.** Before executing, Claude activates plan mode to analyze impacted code, propose an implementation plan, and wait for your validation before making any changes.
34
-
35
- ## Workflow
36
-
37
- ### Step 1: Load Context
38
-
39
- ```
40
- +--------------------------------------------------------------+
41
- | REVERSE STORIES - LOADING CONTEXT |
42
- +--------------------------------------------------------------+
43
- | Loading scan report and PRD... |
44
- +--------------------------------------------------------------+
45
- ```
46
-
47
- **Actions:**
48
- 1. Load `project-management/scan-report.md`
49
- 2. If scan report does not exist, prompt user to run `/project:scan` first
50
- 3. Load `project-management/prd.md` if available (for FR-xxx traceability)
51
- 4. Parse modules, endpoints, entities, services, and test files
52
- 5. Determine scope (all modules, specific module, or specific endpoint)
53
-
54
- ### Step 2: Feature Extraction
55
-
56
- ```
57
- +--------------------------------------------------------------+
58
- | REVERSE STORIES - FEATURE EXTRACTION |
59
- +--------------------------------------------------------------+
60
- | Extracting features from code... |
61
- +--------------------------------------------------------------+
62
- ```
63
-
64
- **For each endpoint/feature, extract:**
65
-
66
- 1. **Controller/Handler Analysis**
67
- - HTTP method and route path
68
- - Request validation rules (DTO, form requests)
69
- - Response structure and status codes
70
- - Authorization requirements (roles, voters, policies)
71
-
72
- 2. **Service/Use Case Analysis**
73
- - Business logic flow
74
- - Side effects (events dispatched, notifications sent)
75
- - External service calls
76
- - Error handling paths
77
-
78
- 3. **Entity/Model Analysis**
79
- - Fields and their constraints
80
- - Relationships and cascading behavior
81
- - State transitions (status fields, workflows)
82
- - Soft delete, timestamps, versioning
83
-
84
- 4. **Test Analysis**
85
- - Test method names (often describe behavior)
86
- - Assertions (define expected outcomes)
87
- - Test data fixtures (define valid/invalid inputs)
88
- - Edge cases covered
89
-
90
- ### Step 3: Story Generation
91
-
92
- ```
93
- +--------------------------------------------------------------+
94
- | REVERSE STORIES - GENERATION |
95
- +--------------------------------------------------------------+
96
- | Generating user stories... |
97
- +--------------------------------------------------------------+
98
- ```
99
-
100
- **For each feature, generate a user story:**
101
-
102
- #### Persona Inference
103
- - `ROLE_ADMIN` + admin routes -> "As an administrator"
104
- - `ROLE_USER` + authenticated routes -> "As a registered user"
105
- - `ROLE_MANAGER` + management routes -> "As a manager"
106
- - Public routes (no auth) -> "As a visitor"
107
- - API key routes -> "As an external system"
108
-
109
- #### Action Inference
110
- - `POST /api/resources` -> "I want to create a resource"
111
- - `GET /api/resources` -> "I want to list resources"
112
- - `GET /api/resources/{id}` -> "I want to view a resource"
113
- - `PUT /api/resources/{id}` -> "I want to update a resource"
114
- - `DELETE /api/resources/{id}` -> "I want to delete a resource"
115
- - Custom actions -> Inferred from method name and business logic
116
-
117
- #### Benefit Inference
118
- - CRUD operations -> "So that I can manage {resource} data"
119
- - Search/filter -> "So that I can find relevant {resources} quickly"
120
- - Export -> "So that I can use {resource} data externally"
121
- - Notifications -> "So that I am informed about {event}"
122
- - Auth -> "So that my data is secure and accessible only to me"
123
-
124
- #### Acceptance Criteria from Tests
125
- - Test assertions become Gherkin scenarios
126
- - Test fixtures define Given conditions
127
- - Test actions define When conditions
128
- - Test expectations define Then conditions
129
-
130
- **Story Template:**
131
-
132
- ```markdown
133
- # US-XXX: [Inferred Title]
134
-
135
- > INFERRED -- This story was generated from codebase analysis.
136
- > Human validation is required.
137
-
138
- ## Source
139
- - **Module**: {module_name}
140
- - **Endpoint**: {method} {path}
141
- - **Controller**: {controller_class}
142
- - **Implements**: FR-XXX (if PRD exists)
143
-
144
- ## User Story
145
-
146
- ### Card
147
- **As** [inferred persona]
148
- **I want** [inferred action]
149
- **So that** [inferred benefit]
150
-
151
- ### Conversation
152
- - [ ] Validate persona assignment
153
- - [ ] Confirm action description matches intent
154
- - [ ] Verify benefit aligns with business goals
155
-
156
- ### INVEST Validation
157
- - [ ] Independent / Negotiable / Valuable / Estimable / Sized / Testable
158
-
159
- ## Acceptance Criteria (Gherkin)
160
-
161
- ### Nominal Scenario (from code behavior)
162
- Scenario: [Inferred from happy path]
163
- Given [initial state from test fixtures]
164
- When [action from controller/handler]
165
- Then [expected result from assertions]
166
-
167
- ### Error Scenarios (from validation rules)
168
- Scenario: [Inferred from validation]
169
- Given [context]
170
- When [invalid action]
171
- Then [error response from code]
172
-
173
- ## Technical Notes
174
- - Entity: {entity_name}
175
- - Validation: {validation_rules}
176
- - Auth: {auth_requirements}
177
- - Events: {dispatched_events}
178
-
179
- ## Estimation
180
- - **Story Points**: [estimated from complexity]
181
- - **MoSCoW**: [inferred from usage patterns]
182
- ```
183
-
184
- ### Step 4: Traceability Mapping
185
-
186
- ```
187
- +--------------------------------------------------------------+
188
- | REVERSE STORIES - TRACEABILITY |
189
- +--------------------------------------------------------------+
190
- | Mapping stories to requirements... |
191
- +--------------------------------------------------------------+
192
- ```
193
-
194
- **If a PRD exists (`project-management/prd.md`):**
195
- 1. Map each story to a functional requirement (FR-xxx)
196
- 2. Identify stories without matching requirements (code without spec)
197
- 3. Identify requirements without matching stories (spec without code)
198
- 4. Add `implements: FR-xxx` reference to each mapped story
199
-
200
- ### Step 5: Output and Validation
201
-
202
- ```
203
- +--------------------------------------------------------------+
204
- | REVERSE STORIES - COMPLETE |
205
- +--------------------------------------------------------------+
206
- | Stories generated. Human validation required. |
207
- +--------------------------------------------------------------+
208
- ```
209
-
210
- **Actions:**
211
- 1. Save stories to `project-management/backlog/user-stories/`
212
- 2. Generate a summary index of all stories
213
- 3. Present stories grouped by module for user review
214
- 4. Ask user to validate, correct, or reject each story
215
-
216
- ## Output Format
217
-
218
- ```
219
- project-management/
220
- +-- backlog/
221
- +-- user-stories/
222
- +-- US-001-create-user.md
223
- +-- US-002-list-users.md
224
- +-- US-003-update-user.md
225
- +-- US-004-create-order.md
226
- +-- ...
227
- ```
228
-
229
- **Summary Output:**
230
-
231
- ```
232
- +==============================================================+
233
- | REVERSE-ENGINEERED USER STORIES |
234
- +==============================================================+
235
- | Total Stories: 18 |
236
- | Status: DRAFT - Requires human validation |
237
- +==============================================================+
238
- | Module: User |
239
- | US-001: Create user account [3 pts] [Must] |
240
- | US-002: List users with pagination [2 pts] [Must] |
241
- | US-003: Update user profile [2 pts] [Must] |
242
- | US-004: Deactivate user account [2 pts] [Should] |
243
- +--------------------------------------------------------------+
244
- | Module: Order |
245
- | US-005: Create new order [5 pts] [Must] |
246
- | US-006: List orders with filters [3 pts] [Must] |
247
- | US-007: Update order status [3 pts] [Must] |
248
- | US-008: Cancel order [3 pts] [Should] |
249
- +--------------------------------------------------------------+
250
- | Module: Payment |
251
- | US-009: Process payment [5 pts] [Must] |
252
- | US-010: Refund payment [5 pts] [Should] |
253
- +--------------------------------------------------------------+
254
- | Traceability: |
255
- | Mapped to PRD: 14/18 stories |
256
- | Unmapped (code without spec): 4 stories |
257
- +==============================================================+
258
- ```
259
-
260
- ## Example Session
261
-
262
- ```
263
- User: /project:reverse-stories --module=Order
264
-
265
- Claude: Starting reverse story generation for module: Order
266
-
267
- [Loading Context]
268
- Loaded scan report: 5 modules, 23 endpoints
269
- Loaded PRD: 14 functional requirements
270
- Focusing on module: Order (7 endpoints, 3 entities)
271
-
272
- [Feature Extraction]
273
- Analyzing OrderController... 5 endpoints found
274
- Analyzing CreateOrderHandler... 3 dependencies, 2 events
275
- Analyzing Order entity... 15 fields, 4 status transitions
276
- Analyzing OrderTest... 12 test methods
277
-
278
- [Story Generation]
279
- Generated 6 user stories from Order module:
280
- - US-005: Create new order (POST /api/orders)
281
- - US-006: List orders with filters (GET /api/orders)
282
- - US-007: View order details (GET /api/orders/{id})
283
- - US-008: Update order status (PATCH /api/orders/{id}/status)
284
- - US-009: Cancel order (POST /api/orders/{id}/cancel)
285
- - US-010: Export orders to CSV (GET /api/orders/export)
286
-
287
- [Traceability]
288
- 5/6 stories mapped to PRD requirements
289
- 1 story unmapped: US-010 (Export) - no matching FR in PRD
290
-
291
- Stories saved to: project-management/backlog/user-stories/
292
-
293
- Would you like to:
294
- 1. Review each story for validation?
295
- 2. Generate stories for another module?
296
- 3. Run /project:gap-analysis to find all gaps?
297
- ```
298
-
299
- ## Related Commands
300
-
301
- - `/project:scan` - Scan codebase (prerequisite)
302
- - `/project:reverse-prd` - Generate PRD from codebase
303
- - `/project:gap-analysis` - Compare spec vs code
304
- - `/project:generate-backlog` - Create SCRUM backlog from PRD (greenfield)
305
- - `/project:update-stories` - Update existing stories
9
+ Run `/project:reverse stories $ARGUMENTS`: read `.claude/commands/project/reverse.md` and follow it with these arguments.