devflow-kit 0.8.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/CHANGELOG.md +185 -29
  2. package/LICENSE +1 -1
  3. package/README.md +179 -308
  4. package/dist/cli.js +3 -1
  5. package/dist/commands/init.d.ts +21 -0
  6. package/dist/commands/init.js +311 -575
  7. package/dist/commands/list.d.ts +3 -0
  8. package/dist/commands/list.js +20 -0
  9. package/dist/commands/uninstall.d.ts +10 -0
  10. package/dist/commands/uninstall.js +351 -78
  11. package/dist/plugins.d.ts +46 -0
  12. package/dist/plugins.js +162 -0
  13. package/dist/utils/cli.d.ts +5 -0
  14. package/dist/utils/cli.js +14 -0
  15. package/dist/utils/installer.d.ts +41 -0
  16. package/dist/utils/installer.js +177 -0
  17. package/dist/utils/paths.d.ts +10 -0
  18. package/dist/utils/paths.js +23 -3
  19. package/dist/utils/post-install.d.ts +68 -0
  20. package/dist/utils/post-install.js +427 -0
  21. package/dist/utils/safe-delete-install.d.ts +22 -0
  22. package/dist/utils/safe-delete-install.js +156 -0
  23. package/dist/utils/safe-delete.d.ts +12 -0
  24. package/dist/utils/safe-delete.js +83 -0
  25. package/package.json +18 -8
  26. package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +7 -0
  27. package/plugins/devflow-audit-claude/README.md +46 -0
  28. package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +134 -0
  29. package/plugins/devflow-audit-claude/commands/audit-claude.md +85 -0
  30. package/plugins/devflow-code-review/.claude-plugin/plugin.json +31 -0
  31. package/plugins/devflow-code-review/README.md +73 -0
  32. package/plugins/devflow-code-review/agents/git.md +272 -0
  33. package/plugins/devflow-code-review/agents/reviewer.md +119 -0
  34. package/plugins/devflow-code-review/agents/synthesizer.md +204 -0
  35. package/plugins/devflow-code-review/commands/code-review-teams.md +262 -0
  36. package/plugins/devflow-code-review/commands/code-review.md +141 -0
  37. package/plugins/devflow-code-review/skills/accessibility/SKILL.md +229 -0
  38. package/plugins/devflow-code-review/skills/accessibility/references/detection.md +171 -0
  39. package/plugins/devflow-code-review/skills/accessibility/references/patterns.md +670 -0
  40. package/plugins/devflow-code-review/skills/accessibility/references/violations.md +419 -0
  41. package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +124 -0
  42. package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +104 -0
  43. package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +122 -0
  44. package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +217 -0
  45. package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +153 -0
  46. package/plugins/devflow-code-review/skills/architecture-patterns/references/detection.md +337 -0
  47. package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +873 -0
  48. package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +575 -0
  49. package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +143 -0
  50. package/plugins/devflow-code-review/skills/complexity-patterns/references/detection.md +264 -0
  51. package/plugins/devflow-code-review/skills/complexity-patterns/references/patterns.md +487 -0
  52. package/plugins/devflow-code-review/skills/complexity-patterns/references/violations.md +361 -0
  53. package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +140 -0
  54. package/plugins/devflow-code-review/skills/consistency-patterns/references/detection.md +207 -0
  55. package/plugins/devflow-code-review/skills/consistency-patterns/references/patterns.md +202 -0
  56. package/plugins/devflow-code-review/skills/consistency-patterns/references/violations.md +213 -0
  57. package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +134 -0
  58. package/plugins/devflow-code-review/skills/database-patterns/references/detection.md +208 -0
  59. package/plugins/devflow-code-review/skills/database-patterns/references/patterns.md +394 -0
  60. package/plugins/devflow-code-review/skills/database-patterns/references/violations.md +332 -0
  61. package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +141 -0
  62. package/plugins/devflow-code-review/skills/dependencies-patterns/references/detection.md +181 -0
  63. package/plugins/devflow-code-review/skills/dependencies-patterns/references/patterns.md +225 -0
  64. package/plugins/devflow-code-review/skills/dependencies-patterns/references/violations.md +247 -0
  65. package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +125 -0
  66. package/plugins/devflow-code-review/skills/documentation-patterns/references/detection.md +190 -0
  67. package/plugins/devflow-code-review/skills/documentation-patterns/references/patterns.md +189 -0
  68. package/plugins/devflow-code-review/skills/documentation-patterns/references/violations.md +163 -0
  69. package/plugins/devflow-code-review/skills/frontend-design/SKILL.md +254 -0
  70. package/plugins/devflow-code-review/skills/frontend-design/references/detection.md +184 -0
  71. package/plugins/devflow-code-review/skills/frontend-design/references/patterns.md +511 -0
  72. package/plugins/devflow-code-review/skills/frontend-design/references/violations.md +453 -0
  73. package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +154 -0
  74. package/plugins/devflow-code-review/skills/performance-patterns/references/detection.md +351 -0
  75. package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +503 -0
  76. package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +354 -0
  77. package/plugins/devflow-code-review/skills/react/SKILL.md +276 -0
  78. package/plugins/devflow-code-review/skills/react/references/patterns.md +1331 -0
  79. package/plugins/devflow-code-review/skills/react/references/violations.md +565 -0
  80. package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +146 -0
  81. package/plugins/devflow-code-review/skills/regression-patterns/references/detection.md +237 -0
  82. package/plugins/devflow-code-review/skills/regression-patterns/references/patterns.md +226 -0
  83. package/plugins/devflow-code-review/skills/regression-patterns/references/violations.md +225 -0
  84. package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +119 -0
  85. package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +186 -0
  86. package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +142 -0
  87. package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +125 -0
  88. package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +156 -0
  89. package/plugins/devflow-code-review/skills/security-patterns/references/detection.md +287 -0
  90. package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +507 -0
  91. package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +237 -0
  92. package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +183 -0
  93. package/plugins/devflow-code-review/skills/test-patterns/references/detection.md +149 -0
  94. package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +220 -0
  95. package/plugins/devflow-code-review/skills/test-patterns/references/report-template.md +108 -0
  96. package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +221 -0
  97. package/plugins/devflow-core-skills/.claude-plugin/plugin.json +27 -0
  98. package/plugins/devflow-core-skills/README.md +50 -0
  99. package/plugins/devflow-core-skills/skills/accessibility/SKILL.md +229 -0
  100. package/plugins/devflow-core-skills/skills/accessibility/references/detection.md +171 -0
  101. package/plugins/devflow-core-skills/skills/accessibility/references/patterns.md +670 -0
  102. package/plugins/devflow-core-skills/skills/accessibility/references/violations.md +419 -0
  103. package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +162 -0
  104. package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +276 -0
  105. package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +144 -0
  106. package/plugins/devflow-core-skills/skills/core-patterns/references/detection.md +303 -0
  107. package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +576 -0
  108. package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +369 -0
  109. package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +134 -0
  110. package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +346 -0
  111. package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +221 -0
  112. package/plugins/devflow-core-skills/skills/frontend-design/SKILL.md +254 -0
  113. package/plugins/devflow-core-skills/skills/frontend-design/references/detection.md +184 -0
  114. package/plugins/devflow-core-skills/skills/frontend-design/references/patterns.md +511 -0
  115. package/plugins/devflow-core-skills/skills/frontend-design/references/violations.md +453 -0
  116. package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +122 -0
  117. package/plugins/devflow-core-skills/skills/git-safety/references/detection.md +290 -0
  118. package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +289 -0
  119. package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +18 -0
  120. package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +158 -0
  121. package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +115 -0
  122. package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +77 -0
  123. package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +127 -0
  124. package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +96 -0
  125. package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +153 -0
  126. package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +572 -0
  127. package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +298 -0
  128. package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +148 -0
  129. package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +283 -0
  130. package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +361 -0
  131. package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +224 -0
  132. package/plugins/devflow-core-skills/skills/react/SKILL.md +276 -0
  133. package/plugins/devflow-core-skills/skills/react/references/patterns.md +1331 -0
  134. package/plugins/devflow-core-skills/skills/react/references/violations.md +565 -0
  135. package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +183 -0
  136. package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +149 -0
  137. package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +220 -0
  138. package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +108 -0
  139. package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +221 -0
  140. package/plugins/devflow-core-skills/skills/typescript/SKILL.md +176 -0
  141. package/plugins/devflow-core-skills/skills/typescript/references/patterns.md +1105 -0
  142. package/plugins/devflow-core-skills/skills/typescript/references/violations.md +433 -0
  143. package/plugins/devflow-debug/.claude-plugin/plugin.json +18 -0
  144. package/plugins/devflow-debug/README.md +65 -0
  145. package/plugins/devflow-debug/agents/git.md +272 -0
  146. package/plugins/devflow-debug/commands/debug-teams.md +231 -0
  147. package/plugins/devflow-debug/commands/debug.md +160 -0
  148. package/plugins/devflow-debug/skills/agent-teams/SKILL.md +124 -0
  149. package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +104 -0
  150. package/plugins/devflow-debug/skills/agent-teams/references/communication.md +122 -0
  151. package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +217 -0
  152. package/plugins/devflow-debug/skills/git-safety/SKILL.md +122 -0
  153. package/plugins/devflow-debug/skills/git-safety/references/detection.md +290 -0
  154. package/plugins/devflow-debug/skills/git-safety/references/patterns.md +289 -0
  155. package/plugins/devflow-debug/skills/git-safety/references/violations.md +18 -0
  156. package/plugins/devflow-implement/.claude-plugin/plugin.json +21 -0
  157. package/plugins/devflow-implement/README.md +71 -0
  158. package/plugins/devflow-implement/agents/coder.md +122 -0
  159. package/plugins/devflow-implement/agents/git.md +272 -0
  160. package/plugins/devflow-implement/agents/scrutinizer.md +80 -0
  161. package/plugins/devflow-implement/agents/shepherd.md +94 -0
  162. package/plugins/devflow-implement/agents/simplifier.md +62 -0
  163. package/plugins/devflow-implement/agents/skimmer.md +88 -0
  164. package/plugins/devflow-implement/agents/synthesizer.md +204 -0
  165. package/plugins/devflow-implement/agents/validator.md +86 -0
  166. package/plugins/devflow-implement/commands/implement-teams.md +608 -0
  167. package/plugins/devflow-implement/commands/implement.md +426 -0
  168. package/plugins/devflow-implement/skills/accessibility/SKILL.md +229 -0
  169. package/plugins/devflow-implement/skills/accessibility/references/detection.md +171 -0
  170. package/plugins/devflow-implement/skills/accessibility/references/patterns.md +670 -0
  171. package/plugins/devflow-implement/skills/accessibility/references/violations.md +419 -0
  172. package/plugins/devflow-implement/skills/agent-teams/SKILL.md +124 -0
  173. package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +104 -0
  174. package/plugins/devflow-implement/skills/agent-teams/references/communication.md +122 -0
  175. package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +217 -0
  176. package/plugins/devflow-implement/skills/frontend-design/SKILL.md +254 -0
  177. package/plugins/devflow-implement/skills/frontend-design/references/detection.md +184 -0
  178. package/plugins/devflow-implement/skills/frontend-design/references/patterns.md +511 -0
  179. package/plugins/devflow-implement/skills/frontend-design/references/violations.md +453 -0
  180. package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +162 -0
  181. package/plugins/devflow-implement/skills/implementation-patterns/references/patterns.md +1063 -0
  182. package/plugins/devflow-implement/skills/implementation-patterns/references/violations.md +483 -0
  183. package/plugins/devflow-implement/skills/self-review/SKILL.md +149 -0
  184. package/plugins/devflow-implement/skills/self-review/references/patterns.md +405 -0
  185. package/plugins/devflow-implement/skills/self-review/references/report-template.md +253 -0
  186. package/plugins/devflow-implement/skills/self-review/references/violations.md +308 -0
  187. package/plugins/devflow-resolve/.claude-plugin/plugin.json +19 -0
  188. package/plugins/devflow-resolve/README.md +65 -0
  189. package/plugins/devflow-resolve/agents/git.md +272 -0
  190. package/plugins/devflow-resolve/agents/resolver.md +131 -0
  191. package/plugins/devflow-resolve/agents/simplifier.md +62 -0
  192. package/plugins/devflow-resolve/commands/resolve-teams.md +298 -0
  193. package/plugins/devflow-resolve/commands/resolve.md +237 -0
  194. package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +124 -0
  195. package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +104 -0
  196. package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +122 -0
  197. package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +217 -0
  198. package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +162 -0
  199. package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +1063 -0
  200. package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +483 -0
  201. package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +156 -0
  202. package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +287 -0
  203. package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +507 -0
  204. package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +237 -0
  205. package/plugins/devflow-self-review/.claude-plugin/plugin.json +7 -0
  206. package/plugins/devflow-self-review/README.md +38 -0
  207. package/plugins/devflow-self-review/agents/scrutinizer.md +80 -0
  208. package/plugins/devflow-self-review/agents/simplifier.md +62 -0
  209. package/plugins/devflow-self-review/agents/validator.md +86 -0
  210. package/plugins/devflow-self-review/commands/self-review.md +126 -0
  211. package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +162 -0
  212. package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +276 -0
  213. package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +144 -0
  214. package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +303 -0
  215. package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +576 -0
  216. package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +369 -0
  217. package/plugins/devflow-self-review/skills/self-review/SKILL.md +149 -0
  218. package/plugins/devflow-self-review/skills/self-review/references/patterns.md +405 -0
  219. package/plugins/devflow-self-review/skills/self-review/references/report-template.md +253 -0
  220. package/plugins/devflow-self-review/skills/self-review/references/violations.md +308 -0
  221. package/plugins/devflow-specify/.claude-plugin/plugin.json +15 -0
  222. package/plugins/devflow-specify/README.md +46 -0
  223. package/plugins/devflow-specify/agents/skimmer.md +88 -0
  224. package/plugins/devflow-specify/agents/synthesizer.md +204 -0
  225. package/plugins/devflow-specify/commands/specify-teams.md +314 -0
  226. package/plugins/devflow-specify/commands/specify.md +179 -0
  227. package/plugins/devflow-specify/skills/agent-teams/SKILL.md +124 -0
  228. package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +104 -0
  229. package/plugins/devflow-specify/skills/agent-teams/references/communication.md +122 -0
  230. package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +217 -0
  231. package/scripts/hooks/background-memory-update.sh +167 -0
  232. package/scripts/hooks/pre-compact-memory.sh +81 -0
  233. package/scripts/hooks/session-start-memory.sh +84 -0
  234. package/scripts/hooks/stop-update-memory.sh +81 -0
  235. package/shared/agents/coder.md +122 -0
  236. package/shared/agents/git.md +272 -0
  237. package/shared/agents/resolver.md +131 -0
  238. package/shared/agents/reviewer.md +119 -0
  239. package/shared/agents/scrutinizer.md +80 -0
  240. package/shared/agents/shepherd.md +94 -0
  241. package/shared/agents/simplifier.md +62 -0
  242. package/shared/agents/skimmer.md +88 -0
  243. package/shared/agents/synthesizer.md +204 -0
  244. package/shared/agents/validator.md +86 -0
  245. package/shared/skills/accessibility/SKILL.md +229 -0
  246. package/shared/skills/accessibility/references/detection.md +171 -0
  247. package/shared/skills/accessibility/references/patterns.md +670 -0
  248. package/shared/skills/accessibility/references/violations.md +419 -0
  249. package/shared/skills/agent-teams/SKILL.md +124 -0
  250. package/shared/skills/agent-teams/references/cleanup.md +104 -0
  251. package/shared/skills/agent-teams/references/communication.md +122 -0
  252. package/shared/skills/agent-teams/references/team-patterns.md +217 -0
  253. package/shared/skills/architecture-patterns/SKILL.md +153 -0
  254. package/shared/skills/architecture-patterns/references/detection.md +337 -0
  255. package/shared/skills/architecture-patterns/references/patterns.md +873 -0
  256. package/shared/skills/architecture-patterns/references/violations.md +575 -0
  257. package/shared/skills/complexity-patterns/SKILL.md +143 -0
  258. package/shared/skills/complexity-patterns/references/detection.md +264 -0
  259. package/shared/skills/complexity-patterns/references/patterns.md +487 -0
  260. package/shared/skills/complexity-patterns/references/violations.md +361 -0
  261. package/shared/skills/consistency-patterns/SKILL.md +140 -0
  262. package/shared/skills/consistency-patterns/references/detection.md +207 -0
  263. package/shared/skills/consistency-patterns/references/patterns.md +202 -0
  264. package/shared/skills/consistency-patterns/references/violations.md +213 -0
  265. package/shared/skills/core-patterns/SKILL.md +162 -0
  266. package/shared/skills/core-patterns/references/checklist.md +276 -0
  267. package/shared/skills/core-patterns/references/code-smell-violations.md +144 -0
  268. package/shared/skills/core-patterns/references/detection.md +303 -0
  269. package/shared/skills/core-patterns/references/patterns.md +576 -0
  270. package/shared/skills/core-patterns/references/violations.md +369 -0
  271. package/shared/skills/database-patterns/SKILL.md +134 -0
  272. package/shared/skills/database-patterns/references/detection.md +208 -0
  273. package/shared/skills/database-patterns/references/patterns.md +394 -0
  274. package/shared/skills/database-patterns/references/violations.md +332 -0
  275. package/shared/skills/dependencies-patterns/SKILL.md +141 -0
  276. package/shared/skills/dependencies-patterns/references/detection.md +181 -0
  277. package/shared/skills/dependencies-patterns/references/patterns.md +225 -0
  278. package/shared/skills/dependencies-patterns/references/violations.md +247 -0
  279. package/shared/skills/docs-framework/SKILL.md +134 -0
  280. package/shared/skills/docs-framework/references/patterns.md +346 -0
  281. package/shared/skills/docs-framework/references/violations.md +221 -0
  282. package/shared/skills/documentation-patterns/SKILL.md +125 -0
  283. package/shared/skills/documentation-patterns/references/detection.md +190 -0
  284. package/shared/skills/documentation-patterns/references/patterns.md +189 -0
  285. package/shared/skills/documentation-patterns/references/violations.md +163 -0
  286. package/shared/skills/frontend-design/SKILL.md +254 -0
  287. package/shared/skills/frontend-design/references/detection.md +184 -0
  288. package/shared/skills/frontend-design/references/patterns.md +511 -0
  289. package/shared/skills/frontend-design/references/violations.md +453 -0
  290. package/shared/skills/git-safety/SKILL.md +122 -0
  291. package/shared/skills/git-safety/references/detection.md +290 -0
  292. package/shared/skills/git-safety/references/patterns.md +289 -0
  293. package/shared/skills/git-safety/references/violations.md +18 -0
  294. package/shared/skills/git-workflow/SKILL.md +158 -0
  295. package/shared/skills/git-workflow/references/commit-patterns.md +115 -0
  296. package/shared/skills/git-workflow/references/commit-violations.md +77 -0
  297. package/shared/skills/git-workflow/references/pr-patterns.md +127 -0
  298. package/shared/skills/git-workflow/references/pr-violations.md +96 -0
  299. package/shared/skills/github-patterns/SKILL.md +153 -0
  300. package/shared/skills/github-patterns/references/patterns.md +572 -0
  301. package/shared/skills/github-patterns/references/violations.md +298 -0
  302. package/shared/skills/implementation-patterns/SKILL.md +162 -0
  303. package/shared/skills/implementation-patterns/references/patterns.md +1063 -0
  304. package/shared/skills/implementation-patterns/references/violations.md +483 -0
  305. package/shared/skills/input-validation/SKILL.md +148 -0
  306. package/shared/skills/input-validation/references/detection.md +283 -0
  307. package/shared/skills/input-validation/references/patterns.md +361 -0
  308. package/shared/skills/input-validation/references/violations.md +224 -0
  309. package/shared/skills/performance-patterns/SKILL.md +154 -0
  310. package/shared/skills/performance-patterns/references/detection.md +351 -0
  311. package/shared/skills/performance-patterns/references/patterns.md +503 -0
  312. package/shared/skills/performance-patterns/references/violations.md +354 -0
  313. package/shared/skills/react/SKILL.md +276 -0
  314. package/shared/skills/react/references/patterns.md +1331 -0
  315. package/shared/skills/react/references/violations.md +565 -0
  316. package/shared/skills/regression-patterns/SKILL.md +146 -0
  317. package/shared/skills/regression-patterns/references/detection.md +237 -0
  318. package/shared/skills/regression-patterns/references/patterns.md +226 -0
  319. package/shared/skills/regression-patterns/references/violations.md +225 -0
  320. package/shared/skills/review-methodology/SKILL.md +119 -0
  321. package/shared/skills/review-methodology/references/patterns.md +186 -0
  322. package/shared/skills/review-methodology/references/report-template.md +142 -0
  323. package/shared/skills/review-methodology/references/violations.md +125 -0
  324. package/shared/skills/security-patterns/SKILL.md +156 -0
  325. package/shared/skills/security-patterns/references/detection.md +287 -0
  326. package/shared/skills/security-patterns/references/patterns.md +507 -0
  327. package/shared/skills/security-patterns/references/violations.md +237 -0
  328. package/shared/skills/self-review/SKILL.md +149 -0
  329. package/shared/skills/self-review/references/patterns.md +405 -0
  330. package/shared/skills/self-review/references/report-template.md +253 -0
  331. package/shared/skills/self-review/references/violations.md +308 -0
  332. package/shared/skills/test-patterns/SKILL.md +183 -0
  333. package/shared/skills/test-patterns/references/detection.md +149 -0
  334. package/shared/skills/test-patterns/references/patterns.md +220 -0
  335. package/shared/skills/test-patterns/references/report-template.md +108 -0
  336. package/shared/skills/test-patterns/references/violations.md +221 -0
  337. package/shared/skills/typescript/SKILL.md +176 -0
  338. package/shared/skills/typescript/references/patterns.md +1105 -0
  339. package/shared/skills/typescript/references/violations.md +433 -0
  340. package/src/templates/claudeignore.template +188 -0
  341. package/src/templates/managed-settings.json +146 -0
  342. package/src/templates/settings.json +59 -0
  343. package/dist/cli.d.ts.map +0 -1
  344. package/dist/cli.js.map +0 -1
  345. package/dist/commands/init.d.ts.map +0 -1
  346. package/dist/commands/init.js.map +0 -1
  347. package/dist/commands/uninstall.d.ts.map +0 -1
  348. package/dist/commands/uninstall.js.map +0 -1
  349. package/dist/utils/git.d.ts.map +0 -1
  350. package/dist/utils/git.js.map +0 -1
  351. package/dist/utils/paths.d.ts.map +0 -1
  352. package/dist/utils/paths.js.map +0 -1
  353. package/src/claude/CLAUDE.md +0 -400
  354. package/src/claude/agents/devflow/audit-architecture.md +0 -132
  355. package/src/claude/agents/devflow/audit-complexity.md +0 -132
  356. package/src/claude/agents/devflow/audit-database.md +0 -132
  357. package/src/claude/agents/devflow/audit-dependencies.md +0 -132
  358. package/src/claude/agents/devflow/audit-documentation.md +0 -132
  359. package/src/claude/agents/devflow/audit-performance.md +0 -256
  360. package/src/claude/agents/devflow/audit-security.md +0 -259
  361. package/src/claude/agents/devflow/audit-tests.md +0 -132
  362. package/src/claude/agents/devflow/audit-typescript.md +0 -132
  363. package/src/claude/agents/devflow/brainstorm.md +0 -279
  364. package/src/claude/agents/devflow/catch-up.md +0 -345
  365. package/src/claude/agents/devflow/code-review.md +0 -307
  366. package/src/claude/agents/devflow/commit.md +0 -380
  367. package/src/claude/agents/devflow/debug.md +0 -476
  368. package/src/claude/agents/devflow/design.md +0 -491
  369. package/src/claude/agents/devflow/pr-comments.md +0 -285
  370. package/src/claude/agents/devflow/project-state.md +0 -419
  371. package/src/claude/agents/devflow/pull-request.md +0 -423
  372. package/src/claude/agents/devflow/release.md +0 -1137
  373. package/src/claude/agents/devflow/tech-debt.md +0 -338
  374. package/src/claude/commands/devflow/brainstorm.md +0 -68
  375. package/src/claude/commands/devflow/breakdown.md +0 -125
  376. package/src/claude/commands/devflow/catch-up.md +0 -29
  377. package/src/claude/commands/devflow/code-review.md +0 -237
  378. package/src/claude/commands/devflow/commit.md +0 -17
  379. package/src/claude/commands/devflow/debug.md +0 -56
  380. package/src/claude/commands/devflow/design.md +0 -82
  381. package/src/claude/commands/devflow/devlog.md +0 -408
  382. package/src/claude/commands/devflow/implement.md +0 -100
  383. package/src/claude/commands/devflow/plan.md +0 -223
  384. package/src/claude/commands/devflow/pull-request.md +0 -269
  385. package/src/claude/commands/devflow/release.md +0 -251
  386. package/src/claude/commands/devflow/resolve-comments.md +0 -583
  387. package/src/claude/scripts/statusline.sh +0 -47
  388. package/src/claude/settings.json +0 -6
  389. package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
  390. package/src/claude/skills/devflow/debug/SKILL.md +0 -119
  391. package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
  392. package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
  393. package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
  394. package/src/claude/skills/devflow/research/SKILL.md +0 -138
  395. package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
package/README.md CHANGED
@@ -1,370 +1,241 @@
1
- # DevFlow - Agentic Development Toolkit
1
+ # DevFlow
2
2
 
3
- A comprehensive collection of Claude Code commands and configurations designed to enhance developer workflows when working with AI coding assistants.
3
+ [![npm version](https://img.shields.io/npm/v/devflow-kit)](https://www.npmjs.com/package/devflow-kit)
4
+ [![CI](https://github.com/dean0x/devflow/actions/workflows/ci.yml/badge.svg)](https://github.com/dean0x/devflow/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
+ [![Node.js 18+](https://img.shields.io/badge/node-18%2B-brightgreen.svg)](https://nodejs.org/)
7
+ [![Website](https://img.shields.io/badge/Website-dean0x.github.io%2Fx%2Fdevflow-blue)](https://dean0x.github.io/x/devflow/)
4
8
 
5
- ## Installation
9
+ **Development workflows for Claude Code — spec, implement, code-review, debug in one command.**
6
10
 
7
- ```bash
8
- # Run with npx (recommended - no global install needed)
9
- npx devflow-kit init
10
- ```
11
+ <p align="center">
12
+ <img src=".github/assets/devflow-init.gif" alt="DevFlow init demo" width="720" />
13
+ </p>
11
14
 
12
- ### Installation Scopes
15
+ ## Why DevFlow
13
16
 
14
- DevFlow supports two installation scopes:
17
+ Claude Code is powerful but workflows are manual — you write ad-hoc prompts, lose context on every restart, and repeat the same review steps across projects.
15
18
 
16
- **User Scope (Default)** - Install for all projects
17
- ```bash
18
- npx devflow-kit init --scope user
19
- # Or interactively: npx devflow-kit init (prompts for scope)
20
- ```
21
- - Installs to `~/.claude/` and `~/.devflow/`
22
- - Available across all projects
23
- - Recommended for personal use
19
+ DevFlow adds structured commands that handle the full lifecycle: specify features, implement with exploration and planning, review with multiple perspectives, and debug with parallel investigation. Session memory persists automatically across restarts and compaction.
20
+
21
+ ## Features
22
+
23
+ - **Structured code review** — multiple specialized reviewers (security, architecture, performance, and more)
24
+ - **Full-lifecycle implementation** spec, explore, plan, code, validate, refine in one command
25
+ - **Automatic session memory** — survives restarts, `/clear`, and context compaction
26
+ - **Parallel debugging** competing hypotheses investigated simultaneously
27
+ - **24 quality skills** — 11 auto-activating, plus specialized review and agent skills
28
+
29
+ ## Quick Start
24
30
 
25
- **Local Scope** - Install for current project only
26
31
  ```bash
27
- npx devflow-kit init --scope local
32
+ npx devflow-kit init
28
33
  ```
29
- - Installs to `<git-root>/.claude/` and `<git-root>/.devflow/`
30
- - Only available in the current project
31
- - Recommended for team projects where DevFlow should be project-specific
32
- - Requires a git repository (run `git init` first)
33
- - Add `.claude/` and `.devflow/` to `.gitignore` (done automatically)
34
-
35
- That's it! DevFlow is now installed and ready to use in Claude Code.
36
-
37
- ## What's Included
38
-
39
- ### 🎯 Skills (Auto-Activate)
40
-
41
- **Skills are model-invoked** - Claude automatically activates them based on context, enforcing quality without manual invocation.
42
-
43
- | Skill | Purpose | Auto-Triggers When |
44
- |-------|---------|---------------------|
45
- | `pattern-check` | Architectural pattern validation (Result types, DI, immutability) | Code changes are made, new functions added |
46
- | `test-design` | Test quality enforcement (setup complexity, mocking, behavior vs implementation) | Tests are written or modified |
47
- | `code-smell` | Anti-pattern detection (fake solutions, unlabeled workarounds, magic values) | Features are implemented, code is reviewed |
48
- | `research` | Pre-implementation planning, documentation study, integration strategy | Unfamiliar features requested, architectural decisions needed |
49
- | `debug` | Systematic debugging with hypothesis testing and root cause analysis | Errors occur, tests fail, performance issues detected |
50
- | `input-validation` | Boundary validation enforcement (parse-don't-validate, SQL injection prevention) | API endpoints created, external data handled |
51
- | `error-handling` | Result type consistency and exception boundary enforcement | Error handling code written, functions that can fail |
52
-
53
- **How Skills Work:**
54
- - **Proactive enforcement** - Catch issues during implementation, not after
55
- - **No manual invocation** - Model decides when skills are relevant
56
- - **Quality gates** - Block anti-patterns automatically
57
- - **Context-aware** - Activate based on what you're doing
58
-
59
- **IMPORTANT**: Skills are **automatically activated** by Claude based on context. They cannot be manually invoked like slash commands.
60
-
61
- **Dual-Mode Pattern**: The `debug` skill also exists as a slash command (`/debug`) for manual control:
62
- - **Skill mode** (auto): Activates when Claude detects errors or failures
63
- - **Command mode** (manual): Use `/debug` when you want explicit control over the debugging workflow
64
-
65
- This gives you the best of both worlds: automatic assistance when needed, manual control when preferred.
66
-
67
- ### 📊 Slash Commands (User-Invoked)
68
-
69
- | Command | Purpose | When to Use |
70
- |---------|---------|-------------|
71
- | `/catch-up` | Smart summaries for starting new sessions with status validation | Starting a session |
72
- | `/brainstorm` | Explore design decisions and architectural approaches | Before implementation, evaluating options |
73
- | `/design` | Create detailed implementation plan with integration points | After brainstorming, ready for detailed design |
74
- | `/plan` | Triage issues - implement now, defer to GitHub issue, or skip | After code-review or discussion, deciding what to tackle |
75
- | `/breakdown` | Quickly break down discussion into actionable tasks | After planning discussion, quick task capture |
76
- | `/implement` | Streamlined todo implementation, only stopping for design decisions | After planning, ready to implement todos |
77
- | `/debug` | Systematic debugging workflow with hypothesis testing | When errors occur, tests fail, or investigating issues |
78
- | `/code-review` | Comprehensive code review using specialized sub-agents | Before committing or creating PR |
79
- | `/commit` | Intelligent atomic commit creation with safety checks | When ready to commit |
80
- | `/pull-request` | Create PR with comprehensive analysis and smart description | After commits, ready to create PR |
81
- | `/resolve-comments` | Systematically address PR review feedback | After PR feedback, need to resolve comments |
82
- | `/release` | Automated release workflow with version management and publishing | Creating a new release |
83
- | `/devlog` | Development log for comprehensive session documentation | Ending a session |
84
-
85
- ### 🤖 Sub-Agents
86
-
87
- | Sub-Agent | Specialty | Purpose |
88
- |-----------|-----------|---------|
89
- | `audit-security` | Security Analysis | Expert vulnerability detection and security code review |
90
- | `audit-performance` | Performance | Optimization and bottleneck detection |
91
- | `audit-architecture` | Architecture | Design pattern analysis and code structure review |
92
- | `audit-tests` | Testing | Test quality, coverage, and effectiveness analysis (surgical execution) |
93
- | `audit-complexity` | Complexity | Code complexity and maintainability assessment |
94
- | `audit-dependencies` | Dependencies | Dependency management and security analysis |
95
- | `audit-database` | Database | Database design and optimization review |
96
- | `audit-documentation` | Documentation | Docs-code alignment, API accuracy, comment quality |
97
- | `audit-typescript` | TypeScript | Type safety enforcement and TypeScript code quality |
98
- | `brainstorm` | Design Decisions | Explore architectural approaches and evaluate trade-offs |
99
- | `design` | Implementation Planning | Detailed implementation design with integration points and edge cases |
100
- | `catch-up` | Context Restoration | Project status and context restoration with validation |
101
- | `commit` | Git Operations | Intelligent commit creation with safety checks |
102
- | `pull-request` | PR Creation | Analyze commits/changes and generate comprehensive PR descriptions |
103
- | `release` | Release Automation | Project-agnostic release workflow with version management |
104
- | `debug` | Debugging | Systematic debugging with hypothesis testing and issue tracking |
105
-
106
- **How Sub-Agents Work:**
107
- - Specialized AI assistants with deep expertise in specific domains
108
- - Separate context windows for focused analysis
109
- - Can be invoked explicitly or automatically by orchestrator commands
110
- - Restricted tool access appropriate to their domain
111
-
112
- **Invoking Sub-Agents:**
113
- ```bash
114
- # Explicit invocation
115
- "Use the audit-security sub-agent to analyze this authentication code"
116
34
 
117
- # Automatic delegation (Claude Code decides which sub-agent to use)
118
- "Review this code for security issues"
35
+ Then in Claude Code:
36
+
37
+ ```
38
+ /code-review
119
39
  ```
120
40
 
121
- ### 📊 Smart Statusline
41
+ ## Commands
122
42
 
123
- Real-time project context display showing:
124
- - Current model and session duration
125
- - Git branch and uncommitted changes indicator
126
- - Session cost tracking
127
- - Project context
128
- - Zero configuration - works immediately after installation
43
+ | Plugin | Command | Description |
44
+ |--------|---------|-------------|
45
+ | `devflow-specify` | `/specify` | Interactive feature specification with clarification gates |
46
+ | `devflow-implement` | `/implement` | Complete task lifecycle — explore, plan, code, validate, refine |
47
+ | `devflow-code-review` | `/code-review` | Multi-perspective code review with severity classification |
48
+ | `devflow-resolve` | `/resolve` | Process review issues — fix or defer to tech debt |
49
+ | `devflow-debug` | `/debug` | Parallel hypothesis debugging |
50
+ | `devflow-self-review` | `/self-review` | Self-review workflow (Simplifier + Scrutinizer) |
51
+ | `devflow-core-skills` | (auto) | Auto-activating quality enforcement skills |
129
52
 
130
- ### 🔒 Security & Token Optimization
53
+ ## Command Details
131
54
 
132
- DevFlow automatically creates a comprehensive `.claudeignore` file at your git repository root to:
55
+ ### /specify
133
56
 
134
- **Protect Sensitive Data:**
135
- - Environment files (`.env`, `.env.*`, `.envrc`)
136
- - Credentials & keys (`*.key`, `*.pem`, SSH keys)
137
- - Cloud configs (`.aws/`, `.gcp/`, `.azure/`)
138
- - Package tokens (`.npmrc`, `.pypirc`)
139
- - Database files (`*.sql`, `*.db`)
57
+ Guides you through defining a feature with three mandatory gates:
140
58
 
141
- **Optimize Token Usage:**
142
- - Dependencies (`node_modules/`, `vendor/`, `venv/`)
143
- - Build artifacts (`dist/`, `build/`, `.next/`)
144
- - IDE files (`.vscode/`, `.idea/`)
145
- - Lock files (`package-lock.json`, `yarn.lock`)
146
- - Media and binaries
59
+ 1. **Understanding Gate** - Confirm the feature idea is understood
60
+ 2. **Scope Gate** - Validate priorities and boundaries
61
+ 3. **Acceptance Gate** - Confirm success criteria
147
62
 
148
- Covers patterns for all major languages and operating systems.
63
+ Creates a GitHub issue with well-defined requirements ready for `/implement`.
149
64
 
150
- ## Documentation Structure
65
+ ### /implement
151
66
 
152
- DevFlow agents automatically create and maintain project documentation in the `.docs/` directory with a consistent, predictable structure.
67
+ Executes a single task through the complete development lifecycle:
153
68
 
154
- ### Directory Layout
69
+ 1. **Exploration** — analyze codebase for relevant patterns and dependencies
70
+ 2. **Planning** — design the implementation approach
71
+ 3. **Implementation** — write code on a feature branch
72
+ 4. **Validation** — run build, typecheck, lint, and tests
73
+ 5. **Refinement** — simplify and review for quality
74
+ 6. **Alignment Check** — verify implementation matches the original request
155
75
 
156
- ```
157
- .docs/
158
- ├── audits/{branch-slug}/ # Code review reports per branch
159
- │ ├── {type}-report-{timestamp}.md
160
- │ └── review-summary-{timestamp}.md
161
- ├── brainstorm/ # Design explorations
162
- │ └── {topic-slug}-{timestamp}.md
163
- ├── design/ # Implementation plans
164
- │ └── {topic-slug}-{timestamp}.md
165
- ├── debug/ # Debug sessions
166
- │ ├── debug-{timestamp}.md
167
- │ └── KNOWLEDGE_BASE.md
168
- ├── releases/ # Release notes
169
- │ └── RELEASE_NOTES_v{version}.md
170
- ├── status/ # Development logs
171
- │ ├── {timestamp}.md
172
- │ ├── compact/{timestamp}.md
173
- │ └── INDEX.md
174
- └── CATCH_UP.md # Latest summary
175
- ```
76
+ Creates a PR when complete.
77
+
78
+ ### /code-review
79
+
80
+ Multi-perspective code review with specialized reviewers:
81
+
82
+ - **Core**: Security, Architecture, Performance, Quality
83
+ - **Conditional** (activated when relevant): TypeScript, React, Accessibility, Database, Dependencies, Documentation
84
+ - Findings classified as must-fix, should-fix, or nit with severity and confidence levels
85
+
86
+ Provides actionable feedback with specific file locations and suggested fixes.
87
+
88
+ ### /debug
176
89
 
177
- ### Naming Conventions
90
+ Investigates bugs using competing hypotheses:
178
91
 
179
- **Timestamps**: `YYYY-MM-DD_HHMM` (sortable, chronological)
180
- - Example: `2025-11-14_2030`
92
+ 1. **Hypothesis Generation** — identify 3-5 plausible explanations
93
+ 2. **Parallel Investigation** — each hypothesis investigated independently
94
+ 3. **Evidence Evaluation** — hypotheses ranked by supporting evidence
95
+ 4. **Root Cause** — the best-supported explanation with fix recommendation
181
96
 
182
- **Branch slugs**: Sanitized branch names (slashes replaced with dashes)
183
- - `feature/auth` → `feature-auth`
97
+ Produces a root cause analysis report with confidence level.
184
98
 
185
- **Topic slugs**: Lowercase, alphanumeric with dashes
186
- - `"JWT Authentication"` → `jwt-authentication`
99
+ ### /resolve
187
100
 
188
- ### What Gets Created
101
+ Processes issues from `/code-review`:
189
102
 
190
- - **`/catch-up`** `.docs/CATCH_UP.md` (overwritten each run)
191
- - **`/devlog`** `.docs/status/{timestamp}.md` + compact version + INDEX
192
- - **`/debug`** → `.docs/debug/debug-{timestamp}.md` + KNOWLEDGE_BASE
193
- - **`/brainstorm`** `.docs/brainstorm/{topic}-{timestamp}.md`
194
- - **`/design`** → `.docs/design/{topic}-{timestamp}.md`
195
- - **`/code-review`** → `.docs/audits/{branch}/` (9 audit reports + summary)
196
- - **`/release`** → `.docs/releases/RELEASE_NOTES_v{version}.md`
103
+ - Validates each issue is real (not false positive)
104
+ - Assesses risk of fixing (low vs high)
105
+ - Fixes low-risk issues immediately
106
+ - Defers high-risk issues to tech debt backlog
197
107
 
198
- ### Version Control
108
+ ## Auto-Activating Skills
199
109
 
200
- **Recommended `.gitignore`**:
201
- ```gitignore
202
- # Exclude ephemeral catch-up summaries
203
- .docs/CATCH_UP.md
110
+ The `devflow-core-skills` plugin provides quality enforcement skills that activate automatically:
204
111
 
205
- # Optional: Exclude debug sessions (team preference)
206
- .docs/debug/
112
+ | Skill | Triggers When |
113
+ |-------|---------------|
114
+ | `core-patterns` | Implementing business logic, error handling |
115
+ | `docs-framework` | Creating documentation artifacts in .docs/ |
116
+ | `git-safety` | Rebasing, force-pushing, merge conflicts |
117
+ | `git-workflow` | Staging files, creating commits, PRs |
118
+ | `github-patterns` | GitHub API operations, PR comments, releases |
119
+ | `test-patterns` | Writing or modifying tests |
120
+ | `input-validation` | Creating API endpoints |
121
+ | `typescript` | Working in TypeScript codebases |
122
+ | `react` | Working with React components |
123
+ | `accessibility` | Creating UI components, forms, interactive elements |
124
+ | `frontend-design` | Working with CSS, styling, visual design |
207
125
 
208
- # Keep everything else for project history
126
+ ## Requirements
127
+
128
+ - [Claude Code](https://claude.ai/download) (latest)
129
+ - Node.js 18+
130
+
131
+ ## Installation
132
+
133
+ ### Install All Plugins
134
+
135
+ ```bash
136
+ npx devflow-kit init
209
137
  ```
210
138
 
211
- The `.docs/` structure provides a searchable history of decisions, designs, and debugging sessions.
212
-
213
- ## Development Workflow
214
-
215
- ### Starting a Session
216
- 1. `/catch-up` - Review what was done previously
217
- 2. Check statusline for current model, git state, duration
218
- 3. Review recommended next actions
219
-
220
- ### During Development
221
- 1. **Skills auto-activate** - `research` skill triggers for unfamiliar features, `pattern-check` validates architecture
222
- 2. **Plan your work** - `/plan` to triage issues, or `/breakdown` for quick task capture
223
- 3. **Implement efficiently** - `/implement` flows through todos automatically
224
- 4. **Code with confidence** - Skills catch anti-patterns and violations during implementation
225
- 5. `/code-review` - Review changes before committing
226
- 6. `/commit` - Create intelligent atomic commits
227
-
228
- ### Creating Pull Requests
229
- 1. `/code-review` - Comprehensive branch review
230
- 2. `/commit` - Final commits with validation
231
- 3. `/pull-request` - Create PR with smart description
232
- 4. Wait for review feedback
233
- 5. `/resolve-comments` - Address feedback systematically
234
- 6. Repeat steps 4-5 until approved
235
-
236
- ### Ending a Session
237
- 1. `/devlog` - Document decisions and state
238
- 2. `/code-review` - Review branch before creating PR
239
- 3. `/commit` - Final commits with validation
240
- 4. `/pull-request` - Create PR if ready
241
-
242
- ### Creating a Release
243
- 1. `/code-review` - Comprehensive branch review
244
- 2. `/release` - Automated release workflow
245
- - Detects project type (Node.js, Rust, Python, Go, etc.)
246
- - Analyzes commits and suggests version bump
247
- - Generates changelog from git history
248
- - Builds and tests before publishing
249
- - Creates git tags and platform releases
250
- 3. Verify package in registry
251
-
252
- ### When Things Go Wrong
253
- 1. **Skills auto-activate** - `debug` skill triggers on errors/failures with systematic approach
254
- 2. Check git log and recent commits
255
- 3. Revert changes using git
256
- 4. Document lessons learned in `.docs/debug/`
257
-
258
- ## CLI Commands
259
-
260
- | Command | Purpose | Options |
261
- |---------|---------|---------|
262
- | `npx devflow-kit init` | Initialize DevFlow for Claude Code | `--scope <user\|local>` - Installation scope (user: user-wide, local: project-only)<br>`--verbose` - Show detailed installation output<br>`--skip-docs` - Skip creating `.docs/` structure |
263
- | `npx devflow-kit uninstall` | Remove DevFlow from Claude Code | `--scope <user\|local>` - Uninstall from specific scope only (default: auto-detect all)<br>`--keep-docs` - Keep `.docs/` directory |
264
-
265
- **What `npx devflow-kit init` does:**
266
-
267
- **User Scope** (default):
268
- - Installs commands to `~/.claude/commands/devflow/`
269
- - Installs sub-agents to `~/.claude/agents/devflow/`
270
- - Installs skills to `~/.claude/skills/`
271
- - Installs scripts to `~/.devflow/scripts/`
272
- - Updates `~/.claude/settings.json` (statusline and model)
273
- - Creates `.claudeignore` at git repository root
274
- - Creates `.docs/` structure for project documentation
275
-
276
- **Local Scope** (`--scope local`):
277
- - Installs commands to `<git-root>/.claude/commands/devflow/`
278
- - Installs sub-agents to `<git-root>/.claude/agents/devflow/`
279
- - Installs skills to `<git-root>/.claude/skills/`
280
- - Installs scripts to `<git-root>/.devflow/scripts/`
281
- - Creates `<git-root>/.claude/settings.json` (statusline and model)
282
- - Creates `.claudeignore` at git repository root
283
- - Creates `.docs/` structure for project documentation
284
- - Adds `.claude/` and `.devflow/` to `.gitignore`
285
-
286
- **First Run:**
139
+ ### Install Specific Plugins
140
+
287
141
  ```bash
288
- devflow init
289
- /devlog # Document your current project state
290
- /catch-up # Get oriented with the project
142
+ # List available plugins
143
+ npx devflow-kit list
144
+
145
+ # Install specific plugin(s)
146
+ npx devflow-kit init --plugin=implement
147
+ npx devflow-kit init --plugin=implement,code-review
148
+ ```
149
+
150
+ ### Scopes
151
+
152
+ - `--scope user` (default) - Install for all projects (`~/.claude/`)
153
+ - `--scope local` - Install for current project only (`.claude/`)
154
+
155
+ ## Working Memory
156
+
157
+ DevFlow automatically preserves session context across restarts, `/clear`, and context compaction — zero ceremony required.
158
+
159
+ Three shell hooks run behind the scenes:
160
+
161
+ | Hook | When | What |
162
+ |------|------|------|
163
+ | **Stop** | After each response | Updates `.docs/WORKING-MEMORY.md` with current focus, decisions, and progress. Throttled — skips if updated <2 min ago. |
164
+ | **SessionStart** | On startup, `/clear`, resume, compaction | Injects previous working memory + fresh git state as system context. Warns if memory is >1h stale. |
165
+ | **PreCompact** | Before context compaction | Backs up git state to JSON. Bootstraps a minimal working memory from git if none exists yet. |
166
+
167
+ Working memory is **per-project** — scoped to each repo's `.docs/` directory. Multiple sessions across different repos don't interfere.
168
+
169
+ ## Documentation Structure
170
+
171
+ DevFlow creates project documentation in `.docs/`:
172
+
173
+ ```
174
+ .docs/
175
+ ├── reviews/{branch}/ # Review reports per branch
176
+ ├── design/ # Implementation plans
177
+ ├── WORKING-MEMORY.md # Auto-maintained by Stop hook
178
+ └── working-memory-backup.json # Pre-compact git state snapshot
291
179
  ```
292
180
 
293
- ## Advanced Usage
181
+ ## Workflow Examples
294
182
 
295
- ### Custom Audit Rules
183
+ ### Implementing a Feature
296
184
  ```bash
297
- # Extend sub-agents for project-specific patterns
298
- echo "Check for exposed API keys in config files" >> ~/.claude/agents/devflow/audit-security.md
185
+ /specify # Define the feature with clarification gates
186
+ /implement # Execute the full lifecycle
299
187
  ```
300
188
 
301
- ### Team Usage
189
+ ### Debugging an Issue
302
190
  ```bash
303
- # Share session documentation with team
304
- /devlog
305
- git add .docs/status/
306
- git commit -m "Session status: completed user auth feature"
191
+ /debug "login fails after session timeout"
192
+ /debug #42 # Investigate from GitHub issue
307
193
  ```
308
194
 
309
- ### Integration Examples
195
+ ### Before Creating a PR
310
196
  ```bash
311
- # Skills auto-activate during development
312
- "Add JWT authentication" # research skill triggers for unfamiliar features
313
- "Fix this error" # debug skill activates and guides systematic approach
314
-
315
- # Manual command invocation for structured workflows
316
- /brainstorm user authentication # Explore architectural approaches
317
- /design JWT token system # Create detailed implementation plan
318
- /code-review # Review changes before committing
319
- /commit # Create atomic commits
320
- /release # Automated release workflow
197
+ /code-review # Multi-perspective code review
198
+ /resolve # Fix low-risk issues, defer high-risk to backlog
321
199
  ```
322
200
 
323
- ## Philosophy
201
+ ### Session Continuity
202
+
203
+ Session context is saved and restored automatically via Working Memory hooks — no manual steps needed.
204
+
205
+ ## CLI Reference
206
+
207
+ | Command | Description |
208
+ |---------|-------------|
209
+ | `npx devflow-kit init` | Install all plugins |
210
+ | `npx devflow-kit init --plugin=<names>` | Install specific plugin(s) |
211
+ | `npx devflow-kit list` | List available plugins |
212
+ | `npx devflow-kit uninstall` | Remove DevFlow |
213
+
214
+ ### Init Options
215
+
216
+ | Option | Description |
217
+ |--------|-------------|
218
+ | `--plugin <names>` | Comma-separated plugin names (e.g., `implement,code-review`) |
219
+ | `--scope <user\|local>` | Installation scope (default: user) |
220
+ | `--teams` / `--no-teams` | Enable/disable experimental Agent Teams (default: off) |
221
+ | `--verbose` | Show detailed output |
324
222
 
325
- Modern development increasingly involves AI agents that can read, write, and modify code autonomously. DevFlow provides:
223
+ ### Uninstall Options
326
224
 
327
- - **Trust but Verify** - Tools to catch AI agent mistakes
328
- - **Context Preservation** - Memory across long-term projects
329
- - **Quality Gates** - Automated checks for AI changes
330
- - **Developer Empowerment** - Enhance human judgment, not replace it
225
+ | Option | Description |
226
+ |--------|-------------|
227
+ | `--scope <user\|local>` | Uninstall scope (default: user) |
228
+ | `--keep-docs` | Preserve .docs/ directory |
331
229
 
332
230
  ## Building from Source
333
231
 
334
232
  ```bash
335
- # Clone and build
336
233
  git clone https://github.com/dean0x/devflow.git
337
234
  cd devflow
338
235
  npm install
339
236
  npm run build
340
-
341
- # Test locally
342
237
  node dist/cli.js init
343
-
344
- # Watch mode for development
345
- npm run dev
346
- ```
347
-
348
- **Project Structure:**
349
238
  ```
350
- src/
351
- ├── cli/ # CLI source code (TypeScript)
352
- │ ├── commands/ # init.ts, uninstall.ts
353
- │ └── cli.ts # CLI entry point
354
- └── claude/ # Claude Code configuration
355
- ├── agents/devflow/ # Sub-agent definitions (.md)
356
- ├── commands/devflow/ # Slash command definitions (.md)
357
- ├── skills/devflow/ # Skill source (installed flat to ~/.claude/skills/)
358
- ├── scripts/ # statusline.sh
359
- └── settings.json # Claude Code settings
360
- ```
361
-
362
- ## Support
363
-
364
- - Check installed command documentation
365
- - Review `.docs/status/` for recent sessions
366
- - Skills auto-activate for systematic troubleshooting
367
- - Report issues at https://github.com/dean0x/devflow/issues
368
239
 
369
240
  ## License
370
241
 
package/dist/cli.js CHANGED
@@ -5,6 +5,7 @@ import { fileURLToPath } from 'url';
5
5
  import { dirname, join } from 'path';
6
6
  import { initCommand } from './commands/init.js';
7
7
  import { uninstallCommand } from './commands/uninstall.js';
8
+ import { listCommand } from './commands/list.js';
8
9
  const __filename = fileURLToPath(import.meta.url);
9
10
  const __dirname = dirname(__filename);
10
11
  // Read version from package.json
@@ -15,10 +16,11 @@ program
15
16
  .description('Agentic Development Toolkit for Claude Code\n\nEnhance your AI-assisted development with intelligent commands and workflows.')
16
17
  .version(packageJson.version, '-v, --version', 'Display version number')
17
18
  .helpOption('-h, --help', 'Display help information')
18
- .addHelpText('after', '\nExamples:\n $ devflow init Install DevFlow for Claude Code\n $ devflow init --verbose Install with detailed output\n $ devflow init --skip-docs Install without creating .docs/ structure\n $ devflow uninstall Remove DevFlow from Claude Code\n $ devflow --version Show version\n $ devflow --help Show help\n\nDocumentation:\n https://github.com/dean0x/devflow#readme');
19
+ .addHelpText('after', '\nExamples:\n $ devflow init Install all DevFlow plugins\n $ devflow init --plugin=implement Install specific plugin\n $ devflow init --plugin=implement,review Install multiple plugins\n $ devflow list List available plugins\n $ devflow uninstall Remove DevFlow from Claude Code\n $ devflow --version Show version\n $ devflow --help Show help\n\nDocumentation:\n https://github.com/dean0x/devflow#readme');
19
20
  // Register commands
20
21
  program.addCommand(initCommand);
21
22
  program.addCommand(uninstallCommand);
23
+ program.addCommand(listCommand);
22
24
  // Handle no command
23
25
  program.action(() => {
24
26
  program.help();
@@ -1,3 +1,24 @@
1
1
  import { Command } from 'commander';
2
+ import { type PluginDefinition } from '../plugins.js';
3
+ export { substituteSettingsTemplate, computeGitignoreAppend, applyTeamsConfig, stripTeamsConfig, mergeDenyList } from '../utils/post-install.js';
4
+ /**
5
+ * Parse a comma-separated plugin selection string into normalized plugin names.
6
+ * Validates against known plugins; returns invalid names as errors.
7
+ */
8
+ export declare function parsePluginSelection(input: string, validPlugins: PluginDefinition[]): {
9
+ selected: string[];
10
+ invalid: string[];
11
+ };
12
+ export type ExtraId = 'settings' | 'claudeignore' | 'gitignore' | 'docs' | 'safe-delete';
13
+ interface ExtraOption {
14
+ value: ExtraId;
15
+ label: string;
16
+ hint: string;
17
+ }
18
+ /**
19
+ * Build the list of configuration extras available for the given scope/git context.
20
+ * Pure function — no I/O, no side effects.
21
+ */
22
+ export declare function buildExtrasOptions(scope: 'user' | 'local', gitRoot: string | null): ExtraOption[];
2
23
  export declare const initCommand: Command;
3
24
  //# sourceMappingURL=init.d.ts.map