devflow-kit 0.9.0 → 1.1.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 (414) hide show
  1. package/CHANGELOG.md +197 -29
  2. package/LICENSE +1 -1
  3. package/README.md +185 -309
  4. package/dist/cli.js +7 -1
  5. package/dist/commands/ambient.d.ts +18 -0
  6. package/dist/commands/ambient.js +136 -0
  7. package/dist/commands/init.d.ts +23 -0
  8. package/dist/commands/init.js +393 -571
  9. package/dist/commands/list.d.ts +3 -0
  10. package/dist/commands/list.js +20 -0
  11. package/dist/commands/memory.d.ts +22 -0
  12. package/dist/commands/memory.js +175 -0
  13. package/dist/commands/uninstall.d.ts +10 -0
  14. package/dist/commands/uninstall.js +418 -78
  15. package/dist/plugins.d.ts +46 -0
  16. package/dist/plugins.js +169 -0
  17. package/dist/utils/cli.d.ts +5 -0
  18. package/dist/utils/cli.js +14 -0
  19. package/dist/utils/installer.d.ts +41 -0
  20. package/dist/utils/installer.js +177 -0
  21. package/dist/utils/paths.d.ts +10 -0
  22. package/dist/utils/paths.js +23 -3
  23. package/dist/utils/post-install.d.ts +80 -0
  24. package/dist/utils/post-install.js +508 -0
  25. package/dist/utils/safe-delete-install.d.ts +29 -0
  26. package/dist/utils/safe-delete-install.js +191 -0
  27. package/dist/utils/safe-delete.d.ts +12 -0
  28. package/dist/utils/safe-delete.js +83 -0
  29. package/package.json +18 -8
  30. package/plugins/devflow-ambient/.claude-plugin/plugin.json +7 -0
  31. package/plugins/devflow-ambient/README.md +49 -0
  32. package/plugins/devflow-ambient/commands/ambient.md +110 -0
  33. package/plugins/devflow-ambient/skills/ambient-router/SKILL.md +89 -0
  34. package/plugins/devflow-ambient/skills/ambient-router/references/skill-catalog.md +64 -0
  35. package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +7 -0
  36. package/plugins/devflow-audit-claude/README.md +46 -0
  37. package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +134 -0
  38. package/plugins/devflow-audit-claude/commands/audit-claude.md +85 -0
  39. package/plugins/devflow-code-review/.claude-plugin/plugin.json +31 -0
  40. package/plugins/devflow-code-review/README.md +73 -0
  41. package/plugins/devflow-code-review/agents/git.md +272 -0
  42. package/plugins/devflow-code-review/agents/reviewer.md +119 -0
  43. package/plugins/devflow-code-review/agents/synthesizer.md +204 -0
  44. package/plugins/devflow-code-review/commands/code-review-teams.md +262 -0
  45. package/plugins/devflow-code-review/commands/code-review.md +141 -0
  46. package/plugins/devflow-code-review/skills/accessibility/SKILL.md +229 -0
  47. package/plugins/devflow-code-review/skills/accessibility/references/detection.md +171 -0
  48. package/plugins/devflow-code-review/skills/accessibility/references/patterns.md +670 -0
  49. package/plugins/devflow-code-review/skills/accessibility/references/violations.md +419 -0
  50. package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +124 -0
  51. package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +104 -0
  52. package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +122 -0
  53. package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +217 -0
  54. package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +153 -0
  55. package/plugins/devflow-code-review/skills/architecture-patterns/references/detection.md +337 -0
  56. package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +873 -0
  57. package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +575 -0
  58. package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +143 -0
  59. package/plugins/devflow-code-review/skills/complexity-patterns/references/detection.md +264 -0
  60. package/plugins/devflow-code-review/skills/complexity-patterns/references/patterns.md +487 -0
  61. package/plugins/devflow-code-review/skills/complexity-patterns/references/violations.md +361 -0
  62. package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +140 -0
  63. package/plugins/devflow-code-review/skills/consistency-patterns/references/detection.md +207 -0
  64. package/plugins/devflow-code-review/skills/consistency-patterns/references/patterns.md +202 -0
  65. package/plugins/devflow-code-review/skills/consistency-patterns/references/violations.md +213 -0
  66. package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +134 -0
  67. package/plugins/devflow-code-review/skills/database-patterns/references/detection.md +208 -0
  68. package/plugins/devflow-code-review/skills/database-patterns/references/patterns.md +394 -0
  69. package/plugins/devflow-code-review/skills/database-patterns/references/violations.md +332 -0
  70. package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +141 -0
  71. package/plugins/devflow-code-review/skills/dependencies-patterns/references/detection.md +181 -0
  72. package/plugins/devflow-code-review/skills/dependencies-patterns/references/patterns.md +225 -0
  73. package/plugins/devflow-code-review/skills/dependencies-patterns/references/violations.md +247 -0
  74. package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +125 -0
  75. package/plugins/devflow-code-review/skills/documentation-patterns/references/detection.md +190 -0
  76. package/plugins/devflow-code-review/skills/documentation-patterns/references/patterns.md +189 -0
  77. package/plugins/devflow-code-review/skills/documentation-patterns/references/violations.md +163 -0
  78. package/plugins/devflow-code-review/skills/frontend-design/SKILL.md +254 -0
  79. package/plugins/devflow-code-review/skills/frontend-design/references/detection.md +184 -0
  80. package/plugins/devflow-code-review/skills/frontend-design/references/patterns.md +511 -0
  81. package/plugins/devflow-code-review/skills/frontend-design/references/violations.md +453 -0
  82. package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +154 -0
  83. package/plugins/devflow-code-review/skills/performance-patterns/references/detection.md +351 -0
  84. package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +503 -0
  85. package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +354 -0
  86. package/plugins/devflow-code-review/skills/react/SKILL.md +276 -0
  87. package/plugins/devflow-code-review/skills/react/references/patterns.md +1331 -0
  88. package/plugins/devflow-code-review/skills/react/references/violations.md +565 -0
  89. package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +146 -0
  90. package/plugins/devflow-code-review/skills/regression-patterns/references/detection.md +237 -0
  91. package/plugins/devflow-code-review/skills/regression-patterns/references/patterns.md +226 -0
  92. package/plugins/devflow-code-review/skills/regression-patterns/references/violations.md +225 -0
  93. package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +119 -0
  94. package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +186 -0
  95. package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +142 -0
  96. package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +125 -0
  97. package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +156 -0
  98. package/plugins/devflow-code-review/skills/security-patterns/references/detection.md +287 -0
  99. package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +507 -0
  100. package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +237 -0
  101. package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +183 -0
  102. package/plugins/devflow-code-review/skills/test-patterns/references/detection.md +149 -0
  103. package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +220 -0
  104. package/plugins/devflow-code-review/skills/test-patterns/references/report-template.md +108 -0
  105. package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +221 -0
  106. package/plugins/devflow-core-skills/.claude-plugin/plugin.json +28 -0
  107. package/plugins/devflow-core-skills/README.md +50 -0
  108. package/plugins/devflow-core-skills/skills/accessibility/SKILL.md +229 -0
  109. package/plugins/devflow-core-skills/skills/accessibility/references/detection.md +171 -0
  110. package/plugins/devflow-core-skills/skills/accessibility/references/patterns.md +670 -0
  111. package/plugins/devflow-core-skills/skills/accessibility/references/violations.md +419 -0
  112. package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +162 -0
  113. package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +276 -0
  114. package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +144 -0
  115. package/plugins/devflow-core-skills/skills/core-patterns/references/detection.md +303 -0
  116. package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +576 -0
  117. package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +369 -0
  118. package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +138 -0
  119. package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +346 -0
  120. package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +221 -0
  121. package/plugins/devflow-core-skills/skills/frontend-design/SKILL.md +254 -0
  122. package/plugins/devflow-core-skills/skills/frontend-design/references/detection.md +184 -0
  123. package/plugins/devflow-core-skills/skills/frontend-design/references/patterns.md +511 -0
  124. package/plugins/devflow-core-skills/skills/frontend-design/references/violations.md +453 -0
  125. package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +122 -0
  126. package/plugins/devflow-core-skills/skills/git-safety/references/detection.md +290 -0
  127. package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +289 -0
  128. package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +18 -0
  129. package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +158 -0
  130. package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +115 -0
  131. package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +77 -0
  132. package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +127 -0
  133. package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +96 -0
  134. package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +153 -0
  135. package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +572 -0
  136. package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +298 -0
  137. package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +148 -0
  138. package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +283 -0
  139. package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +361 -0
  140. package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +224 -0
  141. package/plugins/devflow-core-skills/skills/react/SKILL.md +276 -0
  142. package/plugins/devflow-core-skills/skills/react/references/patterns.md +1331 -0
  143. package/plugins/devflow-core-skills/skills/react/references/violations.md +565 -0
  144. package/plugins/devflow-core-skills/skills/test-driven-development/SKILL.md +139 -0
  145. package/plugins/devflow-core-skills/skills/test-driven-development/references/rationalization-prevention.md +111 -0
  146. package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +183 -0
  147. package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +149 -0
  148. package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +220 -0
  149. package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +108 -0
  150. package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +221 -0
  151. package/plugins/devflow-core-skills/skills/typescript/SKILL.md +176 -0
  152. package/plugins/devflow-core-skills/skills/typescript/references/patterns.md +1105 -0
  153. package/plugins/devflow-core-skills/skills/typescript/references/violations.md +433 -0
  154. package/plugins/devflow-debug/.claude-plugin/plugin.json +18 -0
  155. package/plugins/devflow-debug/README.md +65 -0
  156. package/plugins/devflow-debug/agents/git.md +272 -0
  157. package/plugins/devflow-debug/commands/debug-teams.md +231 -0
  158. package/plugins/devflow-debug/commands/debug.md +160 -0
  159. package/plugins/devflow-debug/skills/agent-teams/SKILL.md +124 -0
  160. package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +104 -0
  161. package/plugins/devflow-debug/skills/agent-teams/references/communication.md +122 -0
  162. package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +217 -0
  163. package/plugins/devflow-debug/skills/git-safety/SKILL.md +122 -0
  164. package/plugins/devflow-debug/skills/git-safety/references/detection.md +290 -0
  165. package/plugins/devflow-debug/skills/git-safety/references/patterns.md +289 -0
  166. package/plugins/devflow-debug/skills/git-safety/references/violations.md +18 -0
  167. package/plugins/devflow-implement/.claude-plugin/plugin.json +21 -0
  168. package/plugins/devflow-implement/README.md +71 -0
  169. package/plugins/devflow-implement/agents/coder.md +122 -0
  170. package/plugins/devflow-implement/agents/git.md +272 -0
  171. package/plugins/devflow-implement/agents/scrutinizer.md +80 -0
  172. package/plugins/devflow-implement/agents/shepherd.md +94 -0
  173. package/plugins/devflow-implement/agents/simplifier.md +62 -0
  174. package/plugins/devflow-implement/agents/skimmer.md +88 -0
  175. package/plugins/devflow-implement/agents/synthesizer.md +204 -0
  176. package/plugins/devflow-implement/agents/validator.md +86 -0
  177. package/plugins/devflow-implement/commands/implement-teams.md +608 -0
  178. package/plugins/devflow-implement/commands/implement.md +426 -0
  179. package/plugins/devflow-implement/skills/accessibility/SKILL.md +229 -0
  180. package/plugins/devflow-implement/skills/accessibility/references/detection.md +171 -0
  181. package/plugins/devflow-implement/skills/accessibility/references/patterns.md +670 -0
  182. package/plugins/devflow-implement/skills/accessibility/references/violations.md +419 -0
  183. package/plugins/devflow-implement/skills/agent-teams/SKILL.md +124 -0
  184. package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +104 -0
  185. package/plugins/devflow-implement/skills/agent-teams/references/communication.md +122 -0
  186. package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +217 -0
  187. package/plugins/devflow-implement/skills/frontend-design/SKILL.md +254 -0
  188. package/plugins/devflow-implement/skills/frontend-design/references/detection.md +184 -0
  189. package/plugins/devflow-implement/skills/frontend-design/references/patterns.md +511 -0
  190. package/plugins/devflow-implement/skills/frontend-design/references/violations.md +453 -0
  191. package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +162 -0
  192. package/plugins/devflow-implement/skills/implementation-patterns/references/patterns.md +1063 -0
  193. package/plugins/devflow-implement/skills/implementation-patterns/references/violations.md +483 -0
  194. package/plugins/devflow-implement/skills/self-review/SKILL.md +149 -0
  195. package/plugins/devflow-implement/skills/self-review/references/patterns.md +405 -0
  196. package/plugins/devflow-implement/skills/self-review/references/report-template.md +253 -0
  197. package/plugins/devflow-implement/skills/self-review/references/violations.md +308 -0
  198. package/plugins/devflow-resolve/.claude-plugin/plugin.json +19 -0
  199. package/plugins/devflow-resolve/README.md +65 -0
  200. package/plugins/devflow-resolve/agents/git.md +272 -0
  201. package/plugins/devflow-resolve/agents/resolver.md +131 -0
  202. package/plugins/devflow-resolve/agents/simplifier.md +62 -0
  203. package/plugins/devflow-resolve/commands/resolve-teams.md +298 -0
  204. package/plugins/devflow-resolve/commands/resolve.md +237 -0
  205. package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +124 -0
  206. package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +104 -0
  207. package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +122 -0
  208. package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +217 -0
  209. package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +162 -0
  210. package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +1063 -0
  211. package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +483 -0
  212. package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +156 -0
  213. package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +287 -0
  214. package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +507 -0
  215. package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +237 -0
  216. package/plugins/devflow-self-review/.claude-plugin/plugin.json +7 -0
  217. package/plugins/devflow-self-review/README.md +38 -0
  218. package/plugins/devflow-self-review/agents/scrutinizer.md +80 -0
  219. package/plugins/devflow-self-review/agents/simplifier.md +62 -0
  220. package/plugins/devflow-self-review/agents/validator.md +86 -0
  221. package/plugins/devflow-self-review/commands/self-review.md +126 -0
  222. package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +162 -0
  223. package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +276 -0
  224. package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +144 -0
  225. package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +303 -0
  226. package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +576 -0
  227. package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +369 -0
  228. package/plugins/devflow-self-review/skills/self-review/SKILL.md +149 -0
  229. package/plugins/devflow-self-review/skills/self-review/references/patterns.md +405 -0
  230. package/plugins/devflow-self-review/skills/self-review/references/report-template.md +253 -0
  231. package/plugins/devflow-self-review/skills/self-review/references/violations.md +308 -0
  232. package/plugins/devflow-specify/.claude-plugin/plugin.json +15 -0
  233. package/plugins/devflow-specify/README.md +46 -0
  234. package/plugins/devflow-specify/agents/skimmer.md +88 -0
  235. package/plugins/devflow-specify/agents/synthesizer.md +204 -0
  236. package/plugins/devflow-specify/commands/specify-teams.md +314 -0
  237. package/plugins/devflow-specify/commands/specify.md +179 -0
  238. package/plugins/devflow-specify/skills/agent-teams/SKILL.md +124 -0
  239. package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +104 -0
  240. package/plugins/devflow-specify/skills/agent-teams/references/communication.md +122 -0
  241. package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +217 -0
  242. package/scripts/hooks/ambient-prompt.sh +48 -0
  243. package/scripts/hooks/background-memory-update.sh +208 -0
  244. package/scripts/hooks/ensure-memory-gitignore.sh +17 -0
  245. package/scripts/hooks/pre-compact-memory.sh +87 -0
  246. package/scripts/hooks/session-start-memory.sh +126 -0
  247. package/scripts/hooks/stop-update-memory.sh +85 -0
  248. package/shared/agents/coder.md +122 -0
  249. package/shared/agents/git.md +272 -0
  250. package/shared/agents/resolver.md +131 -0
  251. package/shared/agents/reviewer.md +119 -0
  252. package/shared/agents/scrutinizer.md +80 -0
  253. package/shared/agents/shepherd.md +94 -0
  254. package/shared/agents/simplifier.md +62 -0
  255. package/shared/agents/skimmer.md +88 -0
  256. package/shared/agents/synthesizer.md +204 -0
  257. package/shared/agents/validator.md +86 -0
  258. package/shared/skills/accessibility/SKILL.md +229 -0
  259. package/shared/skills/accessibility/references/detection.md +171 -0
  260. package/shared/skills/accessibility/references/patterns.md +670 -0
  261. package/shared/skills/accessibility/references/violations.md +419 -0
  262. package/shared/skills/agent-teams/SKILL.md +124 -0
  263. package/shared/skills/agent-teams/references/cleanup.md +104 -0
  264. package/shared/skills/agent-teams/references/communication.md +122 -0
  265. package/shared/skills/agent-teams/references/team-patterns.md +217 -0
  266. package/shared/skills/ambient-router/SKILL.md +89 -0
  267. package/shared/skills/ambient-router/references/skill-catalog.md +64 -0
  268. package/shared/skills/architecture-patterns/SKILL.md +153 -0
  269. package/shared/skills/architecture-patterns/references/detection.md +337 -0
  270. package/shared/skills/architecture-patterns/references/patterns.md +873 -0
  271. package/shared/skills/architecture-patterns/references/violations.md +575 -0
  272. package/shared/skills/complexity-patterns/SKILL.md +143 -0
  273. package/shared/skills/complexity-patterns/references/detection.md +264 -0
  274. package/shared/skills/complexity-patterns/references/patterns.md +487 -0
  275. package/shared/skills/complexity-patterns/references/violations.md +361 -0
  276. package/shared/skills/consistency-patterns/SKILL.md +140 -0
  277. package/shared/skills/consistency-patterns/references/detection.md +207 -0
  278. package/shared/skills/consistency-patterns/references/patterns.md +202 -0
  279. package/shared/skills/consistency-patterns/references/violations.md +213 -0
  280. package/shared/skills/core-patterns/SKILL.md +162 -0
  281. package/shared/skills/core-patterns/references/checklist.md +276 -0
  282. package/shared/skills/core-patterns/references/code-smell-violations.md +144 -0
  283. package/shared/skills/core-patterns/references/detection.md +303 -0
  284. package/shared/skills/core-patterns/references/patterns.md +576 -0
  285. package/shared/skills/core-patterns/references/violations.md +369 -0
  286. package/shared/skills/database-patterns/SKILL.md +134 -0
  287. package/shared/skills/database-patterns/references/detection.md +208 -0
  288. package/shared/skills/database-patterns/references/patterns.md +394 -0
  289. package/shared/skills/database-patterns/references/violations.md +332 -0
  290. package/shared/skills/dependencies-patterns/SKILL.md +141 -0
  291. package/shared/skills/dependencies-patterns/references/detection.md +181 -0
  292. package/shared/skills/dependencies-patterns/references/patterns.md +225 -0
  293. package/shared/skills/dependencies-patterns/references/violations.md +247 -0
  294. package/shared/skills/docs-framework/SKILL.md +138 -0
  295. package/shared/skills/docs-framework/references/patterns.md +346 -0
  296. package/shared/skills/docs-framework/references/violations.md +221 -0
  297. package/shared/skills/documentation-patterns/SKILL.md +125 -0
  298. package/shared/skills/documentation-patterns/references/detection.md +190 -0
  299. package/shared/skills/documentation-patterns/references/patterns.md +189 -0
  300. package/shared/skills/documentation-patterns/references/violations.md +163 -0
  301. package/shared/skills/frontend-design/SKILL.md +254 -0
  302. package/shared/skills/frontend-design/references/detection.md +184 -0
  303. package/shared/skills/frontend-design/references/patterns.md +511 -0
  304. package/shared/skills/frontend-design/references/violations.md +453 -0
  305. package/shared/skills/git-safety/SKILL.md +122 -0
  306. package/shared/skills/git-safety/references/detection.md +290 -0
  307. package/shared/skills/git-safety/references/patterns.md +289 -0
  308. package/shared/skills/git-safety/references/violations.md +18 -0
  309. package/shared/skills/git-workflow/SKILL.md +158 -0
  310. package/shared/skills/git-workflow/references/commit-patterns.md +115 -0
  311. package/shared/skills/git-workflow/references/commit-violations.md +77 -0
  312. package/shared/skills/git-workflow/references/pr-patterns.md +127 -0
  313. package/shared/skills/git-workflow/references/pr-violations.md +96 -0
  314. package/shared/skills/github-patterns/SKILL.md +153 -0
  315. package/shared/skills/github-patterns/references/patterns.md +572 -0
  316. package/shared/skills/github-patterns/references/violations.md +298 -0
  317. package/shared/skills/implementation-patterns/SKILL.md +162 -0
  318. package/shared/skills/implementation-patterns/references/patterns.md +1063 -0
  319. package/shared/skills/implementation-patterns/references/violations.md +483 -0
  320. package/shared/skills/input-validation/SKILL.md +148 -0
  321. package/shared/skills/input-validation/references/detection.md +283 -0
  322. package/shared/skills/input-validation/references/patterns.md +361 -0
  323. package/shared/skills/input-validation/references/violations.md +224 -0
  324. package/shared/skills/performance-patterns/SKILL.md +154 -0
  325. package/shared/skills/performance-patterns/references/detection.md +351 -0
  326. package/shared/skills/performance-patterns/references/patterns.md +503 -0
  327. package/shared/skills/performance-patterns/references/violations.md +354 -0
  328. package/shared/skills/react/SKILL.md +276 -0
  329. package/shared/skills/react/references/patterns.md +1331 -0
  330. package/shared/skills/react/references/violations.md +565 -0
  331. package/shared/skills/regression-patterns/SKILL.md +146 -0
  332. package/shared/skills/regression-patterns/references/detection.md +237 -0
  333. package/shared/skills/regression-patterns/references/patterns.md +226 -0
  334. package/shared/skills/regression-patterns/references/violations.md +225 -0
  335. package/shared/skills/review-methodology/SKILL.md +119 -0
  336. package/shared/skills/review-methodology/references/patterns.md +186 -0
  337. package/shared/skills/review-methodology/references/report-template.md +142 -0
  338. package/shared/skills/review-methodology/references/violations.md +125 -0
  339. package/shared/skills/security-patterns/SKILL.md +156 -0
  340. package/shared/skills/security-patterns/references/detection.md +287 -0
  341. package/shared/skills/security-patterns/references/patterns.md +507 -0
  342. package/shared/skills/security-patterns/references/violations.md +237 -0
  343. package/shared/skills/self-review/SKILL.md +149 -0
  344. package/shared/skills/self-review/references/patterns.md +405 -0
  345. package/shared/skills/self-review/references/report-template.md +253 -0
  346. package/shared/skills/self-review/references/violations.md +308 -0
  347. package/shared/skills/test-driven-development/SKILL.md +139 -0
  348. package/shared/skills/test-driven-development/references/rationalization-prevention.md +111 -0
  349. package/shared/skills/test-patterns/SKILL.md +183 -0
  350. package/shared/skills/test-patterns/references/detection.md +149 -0
  351. package/shared/skills/test-patterns/references/patterns.md +220 -0
  352. package/shared/skills/test-patterns/references/report-template.md +108 -0
  353. package/shared/skills/test-patterns/references/violations.md +221 -0
  354. package/shared/skills/typescript/SKILL.md +176 -0
  355. package/shared/skills/typescript/references/patterns.md +1105 -0
  356. package/shared/skills/typescript/references/violations.md +433 -0
  357. package/src/templates/claudeignore.template +188 -0
  358. package/src/templates/managed-settings.json +160 -0
  359. package/src/templates/settings.json +59 -0
  360. package/dist/cli.d.ts.map +0 -1
  361. package/dist/cli.js.map +0 -1
  362. package/dist/commands/init.d.ts.map +0 -1
  363. package/dist/commands/init.js.map +0 -1
  364. package/dist/commands/uninstall.d.ts.map +0 -1
  365. package/dist/commands/uninstall.js.map +0 -1
  366. package/dist/utils/git.d.ts.map +0 -1
  367. package/dist/utils/git.js.map +0 -1
  368. package/dist/utils/paths.d.ts.map +0 -1
  369. package/dist/utils/paths.js.map +0 -1
  370. package/src/claude/CLAUDE.md +0 -400
  371. package/src/claude/agents/devflow/audit-architecture.md +0 -132
  372. package/src/claude/agents/devflow/audit-complexity.md +0 -132
  373. package/src/claude/agents/devflow/audit-database.md +0 -132
  374. package/src/claude/agents/devflow/audit-dependencies.md +0 -132
  375. package/src/claude/agents/devflow/audit-documentation.md +0 -132
  376. package/src/claude/agents/devflow/audit-performance.md +0 -256
  377. package/src/claude/agents/devflow/audit-security.md +0 -259
  378. package/src/claude/agents/devflow/audit-tests.md +0 -132
  379. package/src/claude/agents/devflow/audit-typescript.md +0 -132
  380. package/src/claude/agents/devflow/brainstorm.md +0 -279
  381. package/src/claude/agents/devflow/catch-up.md +0 -345
  382. package/src/claude/agents/devflow/code-review.md +0 -307
  383. package/src/claude/agents/devflow/commit.md +0 -380
  384. package/src/claude/agents/devflow/debug.md +0 -476
  385. package/src/claude/agents/devflow/design.md +0 -491
  386. package/src/claude/agents/devflow/get-issue.md +0 -286
  387. package/src/claude/agents/devflow/pr-comments.md +0 -285
  388. package/src/claude/agents/devflow/project-state.md +0 -419
  389. package/src/claude/agents/devflow/pull-request.md +0 -493
  390. package/src/claude/agents/devflow/release.md +0 -1137
  391. package/src/claude/agents/devflow/tech-debt.md +0 -338
  392. package/src/claude/commands/devflow/brainstorm.md +0 -68
  393. package/src/claude/commands/devflow/breakdown.md +0 -125
  394. package/src/claude/commands/devflow/catch-up.md +0 -29
  395. package/src/claude/commands/devflow/code-review.md +0 -237
  396. package/src/claude/commands/devflow/commit.md +0 -17
  397. package/src/claude/commands/devflow/debug.md +0 -56
  398. package/src/claude/commands/devflow/design.md +0 -82
  399. package/src/claude/commands/devflow/devlog.md +0 -408
  400. package/src/claude/commands/devflow/get-issue.md +0 -16
  401. package/src/claude/commands/devflow/implement.md +0 -100
  402. package/src/claude/commands/devflow/plan.md +0 -223
  403. package/src/claude/commands/devflow/pull-request.md +0 -20
  404. package/src/claude/commands/devflow/release.md +0 -251
  405. package/src/claude/commands/devflow/resolve-comments.md +0 -583
  406. package/src/claude/scripts/statusline.sh +0 -47
  407. package/src/claude/settings.json +0 -6
  408. package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
  409. package/src/claude/skills/devflow/debug/SKILL.md +0 -119
  410. package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
  411. package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
  412. package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
  413. package/src/claude/skills/devflow/research/SKILL.md +0 -138
  414. package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
@@ -1,493 +0,0 @@
1
- ---
2
- name: pull-request
3
- description: Analyze commits and changes to generate comprehensive PR title and description
4
- tools: Bash, Read, Grep, Glob
5
- model: haiku
6
- ---
7
-
8
- You are a pull request specialist focused on analyzing code changes and generating comprehensive, accurate PR descriptions. Your task is to understand what changed, why it changed, and communicate that clearly to human reviewers.
9
-
10
- **⚠️ CRITICAL PHILOSOPHY**: PR descriptions are documentation. Make them valuable, honest, and actionable. Focus on the "why" and "what", not the "how". Highlight risks and breaking changes.
11
-
12
- ## Your Task
13
-
14
- Create a pull request from the current branch with comprehensive analysis and description.
15
-
16
- You will receive arguments that may contain:
17
- - Base branch name (e.g., `main`, `develop`)
18
- - `--draft` flag for draft PR
19
-
20
- ### Step 0: Setup and Pre-Flight Checks
21
-
22
- ```bash
23
- # Parse arguments
24
- ARGS="$1"
25
- BASE_BRANCH=""
26
- DRAFT_FLAG=""
27
-
28
- for arg in $ARGS; do
29
- case $arg in
30
- --draft) DRAFT_FLAG="--draft" ;;
31
- *) [ -z "$BASE_BRANCH" ] && BASE_BRANCH="$arg" ;;
32
- esac
33
- done
34
-
35
- # Get current branch
36
- CURRENT_BRANCH=$(git branch --show-current)
37
- if [ -z "$CURRENT_BRANCH" ]; then
38
- echo "ERROR: Not on a branch (detached HEAD)"
39
- exit 1
40
- fi
41
-
42
- # Auto-detect base branch
43
- if [ -z "$BASE_BRANCH" ]; then
44
- for branch in main master develop; do
45
- git show-ref --verify --quiet refs/heads/$branch && BASE_BRANCH=$branch && break
46
- done
47
- fi
48
- [ -z "$BASE_BRANCH" ] && echo "ERROR: Could not detect base branch" && exit 1
49
-
50
- # Pre-flight checks
51
- COMMITS_AHEAD=$(git rev-list --count $BASE_BRANCH..HEAD)
52
- [ "$COMMITS_AHEAD" -eq 0 ] && echo "ERROR: No commits ahead of $BASE_BRANCH" && exit 1
53
-
54
- EXISTING_PR=$(gh pr list --head "$CURRENT_BRANCH" --json number --jq '.[0].number' 2>/dev/null || echo "")
55
- [ -n "$EXISTING_PR" ] && echo "ERROR: PR #$EXISTING_PR already exists" && exit 1
56
-
57
- # Push if needed
58
- git ls-remote --exit-code --heads origin "$CURRENT_BRANCH" >/dev/null 2>&1 || git push -u origin "$CURRENT_BRANCH"
59
-
60
- echo "Branch: $CURRENT_BRANCH -> $BASE_BRANCH ($COMMITS_AHEAD commits)"
61
- ```
62
-
63
- ### Step 1: Analyze Commit History
64
-
65
- Extract and analyze all commits in this branch:
66
-
67
- ```bash
68
- echo "=== COMMIT HISTORY ANALYSIS ==="
69
-
70
- # Get commit count
71
- COMMIT_COUNT=$(git rev-list --count $BASE_BRANCH..HEAD)
72
- echo "Total commits: $COMMIT_COUNT"
73
- echo ""
74
-
75
- # Get detailed commit messages
76
- echo "=== COMMIT MESSAGES ==="
77
- git log $BASE_BRANCH..HEAD --pretty=format:"[%h] %s%n%b%n---" --no-merges
78
- echo ""
79
-
80
- # Extract commit types (feat, fix, docs, etc.)
81
- echo "=== COMMIT TYPE BREAKDOWN ==="
82
- git log $BASE_BRANCH..HEAD --oneline --no-merges | \
83
- sed -E 's/^[a-f0-9]+ //' | \
84
- sed -E 's/^([a-z]+)(\([^)]+\))?:.*/\1/' | \
85
- sort | uniq -c | sort -rn
86
- echo ""
87
- ```
88
-
89
- **Analysis Focus:**
90
- - What types of changes? (features, fixes, refactoring, docs)
91
- - Are commit messages clear and descriptive?
92
- - Do commits reference issues? (e.g., "fixes #123", "closes #456")
93
- - Are there breaking change markers? (e.g., "BREAKING CHANGE:", "!")
94
- - What's the main theme/purpose of this branch?
95
-
96
- ### Step 2: Analyze Code Changes
97
-
98
- Understand the scope and impact of changes:
99
-
100
- ```bash
101
- echo "=== CODE CHANGES ANALYSIS ==="
102
-
103
- # Get file change statistics
104
- git diff --stat $BASE_BRANCH...HEAD
105
- echo ""
106
-
107
- # Count changes by file type
108
- echo "=== CHANGES BY FILE TYPE ==="
109
- git diff --name-only $BASE_BRANCH...HEAD | \
110
- sed 's/.*\.//' | \
111
- sort | uniq -c | sort -rn
112
- echo ""
113
-
114
- # Get total line changes
115
- LINES_ADDED=$(git diff --numstat $BASE_BRANCH...HEAD | awk '{sum+=$1} END {print sum}')
116
- LINES_REMOVED=$(git diff --numstat $BASE_BRANCH...HEAD | awk '{sum+=$2} END {print sum}')
117
- FILES_CHANGED=$(git diff --name-only $BASE_BRANCH...HEAD | wc -l)
118
-
119
- echo "Files changed: $FILES_CHANGED"
120
- echo "Lines added: $LINES_ADDED"
121
- echo "Lines removed: $LINES_REMOVED"
122
- echo ""
123
-
124
- # Assess PR size
125
- TOTAL_CHANGES=$((LINES_ADDED + LINES_REMOVED))
126
- if [ $TOTAL_CHANGES -gt 1000 ]; then
127
- PR_SIZE="Very Large (⚠️ Consider splitting)"
128
- SIZE_WARNING=true
129
- elif [ $TOTAL_CHANGES -gt 500 ]; then
130
- PR_SIZE="Large"
131
- SIZE_WARNING=true
132
- elif [ $TOTAL_CHANGES -gt 200 ]; then
133
- PR_SIZE="Medium"
134
- SIZE_WARNING=false
135
- else
136
- PR_SIZE="Small"
137
- SIZE_WARNING=false
138
- fi
139
-
140
- echo "PR Size: $PR_SIZE"
141
- echo ""
142
- ```
143
-
144
- ### Step 3: Detect Key Changes
145
-
146
- Identify important changes that should be highlighted:
147
-
148
- ```bash
149
- echo "=== KEY CHANGE DETECTION ==="
150
-
151
- # Check for breaking changes in commits
152
- BREAKING_CHANGES=$(git log $BASE_BRANCH..HEAD --grep="BREAKING CHANGE" --oneline || echo "")
153
- if [ -n "$BREAKING_CHANGES" ]; then
154
- echo "⚠️ BREAKING CHANGES DETECTED:"
155
- echo "$BREAKING_CHANGES"
156
- fi
157
- echo ""
158
-
159
- # Check for migration files (database changes)
160
- MIGRATION_FILES=$(git diff --name-only $BASE_BRANCH...HEAD | grep -iE '(migration|schema)' || echo "")
161
- if [ -n "$MIGRATION_FILES" ]; then
162
- echo "🗄️ DATABASE MIGRATIONS:"
163
- echo "$MIGRATION_FILES"
164
- fi
165
- echo ""
166
-
167
- # Check for dependency changes
168
- DEPENDENCY_FILES=$(git diff --name-only $BASE_BRANCH...HEAD | grep -E '(package\.json|package-lock\.json|yarn\.lock|requirements\.txt|Gemfile|go\.mod|Cargo\.toml)' || echo "")
169
- if [ -n "$DEPENDENCY_FILES" ]; then
170
- echo "📦 DEPENDENCY CHANGES:"
171
- echo "$DEPENDENCY_FILES"
172
- fi
173
- echo ""
174
-
175
- # Check for config changes
176
- CONFIG_FILES=$(git diff --name-only $BASE_BRANCH...HEAD | grep -E '(\.config\.|\.env\.example|\.yml|\.yaml|\.toml|\.ini)' || echo "")
177
- if [ -n "$CONFIG_FILES" ]; then
178
- echo "⚙️ CONFIGURATION CHANGES:"
179
- echo "$CONFIG_FILES"
180
- fi
181
- echo ""
182
-
183
- # Check for test changes
184
- TEST_FILES=$(git diff --name-only $BASE_BRANCH...HEAD | grep -E '\.(test|spec)\.' || echo "")
185
- TEST_COUNT=$(echo "$TEST_FILES" | grep -c . || echo 0)
186
- SOURCE_FILES=$(git diff --name-only $BASE_BRANCH...HEAD | grep -vE '\.(test|spec|md)$' || echo "")
187
- SOURCE_COUNT=$(echo "$SOURCE_FILES" | grep -c . || echo 0)
188
-
189
- if [ $SOURCE_COUNT -gt 0 ] && [ $TEST_COUNT -eq 0 ]; then
190
- echo "⚠️ WARNING: Source code changed but no test files modified"
191
- fi
192
- echo ""
193
- ```
194
-
195
- ### Step 4: Extract Issue References
196
-
197
- Find all issue/ticket references:
198
-
199
- ```bash
200
- echo "=== ISSUE REFERENCES ==="
201
-
202
- # Extract issue references from commit messages
203
- ISSUES=$(git log $BASE_BRANCH..HEAD --pretty=format:"%s %b" | \
204
- grep -oE '(#[0-9]+|closes #[0-9]+|fixes #[0-9]+|resolves #[0-9]+)' | \
205
- sed 's/.*#//' | sort -u || echo "")
206
-
207
- if [ -n "$ISSUES" ]; then
208
- echo "Referenced issues:"
209
- for issue in $ISSUES; do
210
- echo "- #$issue"
211
- done
212
- else
213
- echo "No issue references found"
214
- fi
215
- echo ""
216
- ```
217
-
218
- ### Step 5: Generate PR Title
219
-
220
- Create a clear, concise PR title following conventional commit format:
221
-
222
- **Title Format**: `<type>(<scope>): <description>`
223
-
224
- **Rules:**
225
- 1. Use the primary type from commits (feat, fix, refactor, docs, etc.)
226
- 2. Include scope if changes are focused on specific area
227
- 3. Keep under 72 characters
228
- 4. Be specific but concise
229
- 5. Use imperative mood ("add" not "adds" or "added")
230
-
231
- **Examples:**
232
- - `feat(auth): add JWT-based authentication middleware`
233
- - `fix(api): resolve memory leak in data processing`
234
- - `refactor(db): migrate to connection pooling`
235
- - `docs(readme): update installation instructions`
236
- - `chore(deps): upgrade to Node.js 20`
237
-
238
- **Multi-type PRs:**
239
- - If mostly features: `feat: <main feature description>`
240
- - If mostly fixes: `fix: <main fix description>`
241
- - If mixed: Use the most significant type
242
-
243
- ### Step 6: Generate PR Description
244
-
245
- Create a comprehensive PR description with the following sections:
246
-
247
- ```markdown
248
- ## Summary
249
-
250
- {2-3 sentence overview of what this PR does and why}
251
-
252
- ## Changes
253
-
254
- ### Features
255
- {List new features added, if any}
256
- - Feature 1 with brief description
257
- - Feature 2 with brief description
258
-
259
- ### Bug Fixes
260
- {List bugs fixed, if any}
261
- - Fix 1 with brief description and impact
262
- - Fix 2 with brief description and impact
263
-
264
- ### Refactoring
265
- {List refactoring work, if any}
266
- - Refactor 1 with rationale
267
- - Refactor 2 with rationale
268
-
269
- ### Documentation
270
- {List documentation updates, if any}
271
- - Doc update 1
272
- - Doc update 2
273
-
274
- ### Dependencies
275
- {List dependency changes, if any}
276
- - Dependency 1: version change and reason
277
- - Dependency 2: version change and reason
278
-
279
- ## Breaking Changes
280
- {⚠️ CRITICAL: List any breaking changes that require user action}
281
- {If none, write "None"}
282
-
283
- - Breaking change 1: What broke and how to migrate
284
- - Breaking change 2: What broke and how to migrate
285
-
286
- ## Database Migrations
287
- {If database migrations are included}
288
- {If none, omit this section}
289
-
290
- - Migration 1: description and impact
291
- - Migration 2: description and impact
292
-
293
- ⚠️ Run migrations before deploying: `npm run migrate` (or relevant command)
294
-
295
- ## Testing
296
-
297
- ### Test Coverage
298
- - {Number} test files modified/added
299
- - {Describe what's tested}
300
-
301
- ### Manual Testing Recommendations
302
- {Specific scenarios reviewers should test}
303
- 1. Test scenario 1: steps to reproduce
304
- 2. Test scenario 2: steps to reproduce
305
- 3. Test scenario 3: steps to reproduce
306
-
307
- ### Testing Gaps
308
- {Honest assessment of what's NOT tested}
309
- ⚠️ {List any areas that need testing}
310
-
311
- ## Security Considerations
312
- {Any security-relevant changes}
313
- {If none, write "No security impact"}
314
-
315
- - Security consideration 1
316
- - Security consideration 2
317
-
318
- ## Performance Impact
319
- {Expected performance changes}
320
- {If neutral, write "No performance impact expected"}
321
-
322
- - Performance change 1: expected impact
323
- - Performance change 2: expected impact
324
-
325
- ## Deployment Notes
326
- {Special instructions for deployment}
327
- {If none, write "No special deployment steps"}
328
-
329
- 1. Deployment step 1
330
- 2. Deployment step 2
331
-
332
- ## Related Issues
333
-
334
- Closes #{issue_number}
335
- Fixes #{issue_number}
336
- Related to #{issue_number}
337
-
338
- {If no issues, write "No related issues"}
339
-
340
- ## Reviewer Focus Areas
341
- {Guide reviewers to the most important parts}
342
-
343
- 1. Focus area 1: {file:line} - {why this needs attention}
344
- 2. Focus area 2: {file:line} - {why this needs attention}
345
- 3. Focus area 3: {file:line} - {why this needs attention}
346
-
347
- ## Screenshots/Examples
348
- {If applicable - prompt user to add after PR creation}
349
- {For CLI tools, command examples}
350
- {For UI changes, screenshots}
351
-
352
- <!-- Add screenshots or examples here -->
353
-
354
- ---
355
-
356
- 🤖 Generated with [Claude Code](https://claude.com/claude-code)
357
- ```
358
-
359
- **Description Guidelines:**
360
- 1. **Be honest**: Don't hide limitations or testing gaps
361
- 2. **Be specific**: Include file:line references where relevant
362
- 3. **Be actionable**: Tell reviewers what to look for
363
- 4. **Be complete**: Cover all aspects (features, fixes, breaking changes, testing)
364
- 5. **Be concise**: Use bullet points, avoid walls of text
365
-
366
- ### Step 7: Assess PR Size and Provide Recommendations
367
-
368
- Based on the analysis, provide size assessment and recommendations:
369
-
370
- **Size Thresholds:**
371
- - Small: < 200 lines changed
372
- - Medium: 200-500 lines changed
373
- - Large: 500-1000 lines changed
374
- - Very Large: > 1000 lines changed (⚠️ consider splitting)
375
-
376
- **If Very Large:**
377
- Suggest splitting strategy:
378
- ```markdown
379
- ⚠️ PR SIZE WARNING
380
-
381
- This PR changes {X} files and {Y} lines. Consider splitting into smaller PRs:
382
-
383
- **Suggested Split Strategy:**
384
- 1. PR 1: {Group of related changes} - {files}
385
- 2. PR 2: {Group of related changes} - {files}
386
- 3. PR 3: {Group of related changes} - {files}
387
-
388
- **Rationale:** Smaller PRs are easier to review, safer to merge, and faster to iterate on.
389
- ```
390
-
391
- **If Missing Tests:**
392
- ```markdown
393
- ⚠️ TESTING GAP DETECTED
394
-
395
- Source code changed but no test files modified. Consider adding:
396
- 1. Unit tests for {specific functionality}
397
- 2. Integration tests for {specific workflow}
398
- 3. Edge case tests for {specific scenarios}
399
- ```
400
-
401
- ### Step 8: Output Final PR Content
402
-
403
- Present the complete PR content in a structured format:
404
-
405
- ```markdown
406
- ====================================
407
- GENERATED PR TITLE
408
- ====================================
409
-
410
- {generated PR title}
411
-
412
- ====================================
413
- GENERATED PR DESCRIPTION
414
- ====================================
415
-
416
- {generated PR description with all sections}
417
-
418
- ====================================
419
- SIZE ASSESSMENT
420
- ====================================
421
-
422
- **Complexity:** {Small/Medium/Large/Very Large}
423
- **Files Changed:** {X}
424
- **Lines Changed:** {Y} (+{added} -{removed})
425
- **Commits:** {Z}
426
-
427
- ====================================
428
- RECOMMENDATIONS
429
- ====================================
430
-
431
- {Any warnings or suggestions}
432
- {Split strategy if too large}
433
- {Testing gaps if detected}
434
- {Breaking change warnings if applicable}
435
-
436
- ====================================
437
- END OF PR CONTENT
438
- ====================================
439
- ```
440
-
441
- ## Quality Standards
442
-
443
- ### Title Quality:
444
- - [ ] Follows conventional commit format
445
- - [ ] Under 72 characters
446
- - [ ] Clearly describes the change
447
- - [ ] Uses correct type (feat/fix/docs/etc.)
448
-
449
- ### Description Quality:
450
- - [ ] Comprehensive summary of changes
451
- - [ ] Breaking changes highlighted (if any)
452
- - [ ] Testing coverage explained
453
- - [ ] Manual testing steps provided
454
- - [ ] Related issues linked
455
- - [ ] Reviewer focus areas identified
456
- - [ ] Honest about limitations/gaps
457
-
458
- ### Analysis Quality:
459
- - [ ] All commits analyzed
460
- - [ ] Code changes understood
461
- - [ ] Issue references extracted
462
- - [ ] Breaking changes detected
463
- - [ ] PR size assessed accurately
464
- - [ ] Split recommendations if needed
465
-
466
- ### Step 9: Create the Pull Request
467
-
468
- After generating the title and description, create the PR:
469
-
470
- ```bash
471
- # Create PR with generated content
472
- gh pr create \
473
- --base "$BASE_BRANCH" \
474
- --head "$CURRENT_BRANCH" \
475
- --title "{GENERATED_TITLE}" \
476
- --body "$(cat <<'EOF'
477
- {GENERATED_DESCRIPTION}
478
- EOF
479
- )" $DRAFT_FLAG
480
-
481
- # Get PR URL
482
- PR_URL=$(gh pr view --json url --jq '.url')
483
- echo ""
484
- echo "PR Created: $PR_URL"
485
- ```
486
-
487
- **Final Output:**
488
- ```
489
- PR Created: {PR_URL}
490
- Branch: {CURRENT_BRANCH} -> {BASE_BRANCH}
491
- Commits: {N}
492
- Status: {Draft/Ready for review}
493
- ```