devflow-kit 0.9.0 → 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 (397) hide show
  1. package/CHANGELOG.md +167 -29
  2. package/LICENSE +1 -1
  3. package/README.md +179 -310
  4. package/dist/cli.js +3 -1
  5. package/dist/commands/init.d.ts +21 -0
  6. package/dist/commands/init.js +311 -576
  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/get-issue.md +0 -286
  370. package/src/claude/agents/devflow/pr-comments.md +0 -285
  371. package/src/claude/agents/devflow/project-state.md +0 -419
  372. package/src/claude/agents/devflow/pull-request.md +0 -493
  373. package/src/claude/agents/devflow/release.md +0 -1137
  374. package/src/claude/agents/devflow/tech-debt.md +0 -338
  375. package/src/claude/commands/devflow/brainstorm.md +0 -68
  376. package/src/claude/commands/devflow/breakdown.md +0 -125
  377. package/src/claude/commands/devflow/catch-up.md +0 -29
  378. package/src/claude/commands/devflow/code-review.md +0 -237
  379. package/src/claude/commands/devflow/commit.md +0 -17
  380. package/src/claude/commands/devflow/debug.md +0 -56
  381. package/src/claude/commands/devflow/design.md +0 -82
  382. package/src/claude/commands/devflow/devlog.md +0 -408
  383. package/src/claude/commands/devflow/get-issue.md +0 -16
  384. package/src/claude/commands/devflow/implement.md +0 -100
  385. package/src/claude/commands/devflow/plan.md +0 -223
  386. package/src/claude/commands/devflow/pull-request.md +0 -20
  387. package/src/claude/commands/devflow/release.md +0 -251
  388. package/src/claude/commands/devflow/resolve-comments.md +0 -583
  389. package/src/claude/scripts/statusline.sh +0 -47
  390. package/src/claude/settings.json +0 -6
  391. package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
  392. package/src/claude/skills/devflow/debug/SKILL.md +0 -119
  393. package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
  394. package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
  395. package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
  396. package/src/claude/skills/devflow/research/SKILL.md +0 -138
  397. package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
package/README.md CHANGED
@@ -1,372 +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
- | `/get-issue` | Fetch GitHub issue details and create working branch | Starting work on a GitHub issue |
77
- | `/implement` | Streamlined todo implementation, only stopping for design decisions | After planning, ready to implement todos |
78
- | `/debug` | Systematic debugging workflow with hypothesis testing | When errors occur, tests fail, or investigating issues |
79
- | `/code-review` | Comprehensive code review using specialized sub-agents | Before committing or creating PR |
80
- | `/commit` | Intelligent atomic commit creation with safety checks | When ready to commit |
81
- | `/pull-request` | Create PR with comprehensive analysis and smart description | After commits, ready to create PR |
82
- | `/resolve-comments` | Systematically address PR review feedback | After PR feedback, need to resolve comments |
83
- | `/release` | Automated release workflow with version management and publishing | Creating a new release |
84
- | `/devlog` | Development log for comprehensive session documentation | Ending a session |
85
-
86
- ### 🤖 Sub-Agents
87
-
88
- | Sub-Agent | Specialty | Purpose |
89
- |-----------|-----------|---------|
90
- | `audit-security` | Security Analysis | Expert vulnerability detection and security code review |
91
- | `audit-performance` | Performance | Optimization and bottleneck detection |
92
- | `audit-architecture` | Architecture | Design pattern analysis and code structure review |
93
- | `audit-tests` | Testing | Test quality, coverage, and effectiveness analysis (surgical execution) |
94
- | `audit-complexity` | Complexity | Code complexity and maintainability assessment |
95
- | `audit-dependencies` | Dependencies | Dependency management and security analysis |
96
- | `audit-database` | Database | Database design and optimization review |
97
- | `audit-documentation` | Documentation | Docs-code alignment, API accuracy, comment quality |
98
- | `audit-typescript` | TypeScript | Type safety enforcement and TypeScript code quality |
99
- | `brainstorm` | Design Decisions | Explore architectural approaches and evaluate trade-offs |
100
- | `design` | Implementation Planning | Detailed implementation design with integration points and edge cases |
101
- | `catch-up` | Context Restoration | Project status and context restoration with validation |
102
- | `commit` | Git Operations | Intelligent commit creation with safety checks |
103
- | `get-issue` | GitHub Issues | Fetch issue details and create working branches |
104
- | `pull-request` | PR Creation | Analyze commits/changes and generate comprehensive PR descriptions |
105
- | `release` | Release Automation | Project-agnostic release workflow with version management |
106
- | `debug` | Debugging | Systematic debugging with hypothesis testing and issue tracking |
107
-
108
- **How Sub-Agents Work:**
109
- - Specialized AI assistants with deep expertise in specific domains
110
- - Separate context windows for focused analysis
111
- - Can be invoked explicitly or automatically by orchestrator commands
112
- - Restricted tool access appropriate to their domain
113
-
114
- **Invoking Sub-Agents:**
115
- ```bash
116
- # Explicit invocation
117
- "Use the audit-security sub-agent to analyze this authentication code"
118
34
 
119
- # Automatic delegation (Claude Code decides which sub-agent to use)
120
- "Review this code for security issues"
35
+ Then in Claude Code:
36
+
37
+ ```
38
+ /code-review
121
39
  ```
122
40
 
123
- ### 📊 Smart Statusline
41
+ ## Commands
124
42
 
125
- Real-time project context display showing:
126
- - Current model and session duration
127
- - Git branch and uncommitted changes indicator
128
- - Session cost tracking
129
- - Project context
130
- - 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 |
131
52
 
132
- ### 🔒 Security & Token Optimization
53
+ ## Command Details
133
54
 
134
- DevFlow automatically creates a comprehensive `.claudeignore` file at your git repository root to:
55
+ ### /specify
135
56
 
136
- **Protect Sensitive Data:**
137
- - Environment files (`.env`, `.env.*`, `.envrc`)
138
- - Credentials & keys (`*.key`, `*.pem`, SSH keys)
139
- - Cloud configs (`.aws/`, `.gcp/`, `.azure/`)
140
- - Package tokens (`.npmrc`, `.pypirc`)
141
- - Database files (`*.sql`, `*.db`)
57
+ Guides you through defining a feature with three mandatory gates:
142
58
 
143
- **Optimize Token Usage:**
144
- - Dependencies (`node_modules/`, `vendor/`, `venv/`)
145
- - Build artifacts (`dist/`, `build/`, `.next/`)
146
- - IDE files (`.vscode/`, `.idea/`)
147
- - Lock files (`package-lock.json`, `yarn.lock`)
148
- - 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
149
62
 
150
- Covers patterns for all major languages and operating systems.
63
+ Creates a GitHub issue with well-defined requirements ready for `/implement`.
151
64
 
152
- ## Documentation Structure
65
+ ### /implement
153
66
 
154
- 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:
155
68
 
156
- ### 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
157
75
 
158
- ```
159
- .docs/
160
- ├── audits/{branch-slug}/ # Code review reports per branch
161
- │ ├── {type}-report-{timestamp}.md
162
- │ └── review-summary-{timestamp}.md
163
- ├── brainstorm/ # Design explorations
164
- │ └── {topic-slug}-{timestamp}.md
165
- ├── design/ # Implementation plans
166
- │ └── {topic-slug}-{timestamp}.md
167
- ├── debug/ # Debug sessions
168
- │ ├── debug-{timestamp}.md
169
- │ └── KNOWLEDGE_BASE.md
170
- ├── releases/ # Release notes
171
- │ └── RELEASE_NOTES_v{version}.md
172
- ├── status/ # Development logs
173
- │ ├── {timestamp}.md
174
- │ ├── compact/{timestamp}.md
175
- │ └── INDEX.md
176
- └── CATCH_UP.md # Latest summary
177
- ```
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
178
89
 
179
- ### Naming Conventions
90
+ Investigates bugs using competing hypotheses:
180
91
 
181
- **Timestamps**: `YYYY-MM-DD_HHMM` (sortable, chronological)
182
- - 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
183
96
 
184
- **Branch slugs**: Sanitized branch names (slashes replaced with dashes)
185
- - `feature/auth` → `feature-auth`
97
+ Produces a root cause analysis report with confidence level.
186
98
 
187
- **Topic slugs**: Lowercase, alphanumeric with dashes
188
- - `"JWT Authentication"` → `jwt-authentication`
99
+ ### /resolve
189
100
 
190
- ### What Gets Created
101
+ Processes issues from `/code-review`:
191
102
 
192
- - **`/catch-up`** `.docs/CATCH_UP.md` (overwritten each run)
193
- - **`/devlog`** `.docs/status/{timestamp}.md` + compact version + INDEX
194
- - **`/debug`** → `.docs/debug/debug-{timestamp}.md` + KNOWLEDGE_BASE
195
- - **`/brainstorm`** `.docs/brainstorm/{topic}-{timestamp}.md`
196
- - **`/design`** → `.docs/design/{topic}-{timestamp}.md`
197
- - **`/code-review`** → `.docs/audits/{branch}/` (9 audit reports + summary)
198
- - **`/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
199
107
 
200
- ### Version Control
108
+ ## Auto-Activating Skills
201
109
 
202
- **Recommended `.gitignore`**:
203
- ```gitignore
204
- # Exclude ephemeral catch-up summaries
205
- .docs/CATCH_UP.md
110
+ The `devflow-core-skills` plugin provides quality enforcement skills that activate automatically:
206
111
 
207
- # Optional: Exclude debug sessions (team preference)
208
- .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 |
209
125
 
210
- # 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
211
137
  ```
212
138
 
213
- The `.docs/` structure provides a searchable history of decisions, designs, and debugging sessions.
214
-
215
- ## Development Workflow
216
-
217
- ### Starting a Session
218
- 1. `/catch-up` - Review what was done previously
219
- 2. Check statusline for current model, git state, duration
220
- 3. Review recommended next actions
221
-
222
- ### During Development
223
- 1. **Skills auto-activate** - `research` skill triggers for unfamiliar features, `pattern-check` validates architecture
224
- 2. **Plan your work** - `/plan` to triage issues, or `/breakdown` for quick task capture
225
- 3. **Implement efficiently** - `/implement` flows through todos automatically
226
- 4. **Code with confidence** - Skills catch anti-patterns and violations during implementation
227
- 5. `/code-review` - Review changes before committing
228
- 6. `/commit` - Create intelligent atomic commits
229
-
230
- ### Creating Pull Requests
231
- 1. `/code-review` - Comprehensive branch review
232
- 2. `/commit` - Final commits with validation
233
- 3. `/pull-request` - Create PR with smart description
234
- 4. Wait for review feedback
235
- 5. `/resolve-comments` - Address feedback systematically
236
- 6. Repeat steps 4-5 until approved
237
-
238
- ### Ending a Session
239
- 1. `/devlog` - Document decisions and state
240
- 2. `/code-review` - Review branch before creating PR
241
- 3. `/commit` - Final commits with validation
242
- 4. `/pull-request` - Create PR if ready
243
-
244
- ### Creating a Release
245
- 1. `/code-review` - Comprehensive branch review
246
- 2. `/release` - Automated release workflow
247
- - Detects project type (Node.js, Rust, Python, Go, etc.)
248
- - Analyzes commits and suggests version bump
249
- - Generates changelog from git history
250
- - Builds and tests before publishing
251
- - Creates git tags and platform releases
252
- 3. Verify package in registry
253
-
254
- ### When Things Go Wrong
255
- 1. **Skills auto-activate** - `debug` skill triggers on errors/failures with systematic approach
256
- 2. Check git log and recent commits
257
- 3. Revert changes using git
258
- 4. Document lessons learned in `.docs/debug/`
259
-
260
- ## CLI Commands
261
-
262
- | Command | Purpose | Options |
263
- |---------|---------|---------|
264
- | `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 |
265
- | `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 |
266
-
267
- **What `npx devflow-kit init` does:**
268
-
269
- **User Scope** (default):
270
- - Installs commands to `~/.claude/commands/devflow/`
271
- - Installs sub-agents to `~/.claude/agents/devflow/`
272
- - Installs skills to `~/.claude/skills/`
273
- - Installs scripts to `~/.devflow/scripts/`
274
- - Updates `~/.claude/settings.json` (statusline and model)
275
- - Creates `.claudeignore` at git repository root
276
- - Creates `.docs/` structure for project documentation
277
-
278
- **Local Scope** (`--scope local`):
279
- - Installs commands to `<git-root>/.claude/commands/devflow/`
280
- - Installs sub-agents to `<git-root>/.claude/agents/devflow/`
281
- - Installs skills to `<git-root>/.claude/skills/`
282
- - Installs scripts to `<git-root>/.devflow/scripts/`
283
- - Creates `<git-root>/.claude/settings.json` (statusline and model)
284
- - Creates `.claudeignore` at git repository root
285
- - Creates `.docs/` structure for project documentation
286
- - Adds `.claude/` and `.devflow/` to `.gitignore`
287
-
288
- **First Run:**
139
+ ### Install Specific Plugins
140
+
289
141
  ```bash
290
- devflow init
291
- /devlog # Document your current project state
292
- /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
293
179
  ```
294
180
 
295
- ## Advanced Usage
181
+ ## Workflow Examples
296
182
 
297
- ### Custom Audit Rules
183
+ ### Implementing a Feature
298
184
  ```bash
299
- # Extend sub-agents for project-specific patterns
300
- 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
301
187
  ```
302
188
 
303
- ### Team Usage
189
+ ### Debugging an Issue
304
190
  ```bash
305
- # Share session documentation with team
306
- /devlog
307
- git add .docs/status/
308
- git commit -m "Session status: completed user auth feature"
191
+ /debug "login fails after session timeout"
192
+ /debug #42 # Investigate from GitHub issue
309
193
  ```
310
194
 
311
- ### Integration Examples
195
+ ### Before Creating a PR
312
196
  ```bash
313
- # Skills auto-activate during development
314
- "Add JWT authentication" # research skill triggers for unfamiliar features
315
- "Fix this error" # debug skill activates and guides systematic approach
316
-
317
- # Manual command invocation for structured workflows
318
- /brainstorm user authentication # Explore architectural approaches
319
- /design JWT token system # Create detailed implementation plan
320
- /code-review # Review changes before committing
321
- /commit # Create atomic commits
322
- /release # Automated release workflow
197
+ /code-review # Multi-perspective code review
198
+ /resolve # Fix low-risk issues, defer high-risk to backlog
323
199
  ```
324
200
 
325
- ## 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 |
326
222
 
327
- Modern development increasingly involves AI agents that can read, write, and modify code autonomously. DevFlow provides:
223
+ ### Uninstall Options
328
224
 
329
- - **Trust but Verify** - Tools to catch AI agent mistakes
330
- - **Context Preservation** - Memory across long-term projects
331
- - **Quality Gates** - Automated checks for AI changes
332
- - **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 |
333
229
 
334
230
  ## Building from Source
335
231
 
336
232
  ```bash
337
- # Clone and build
338
233
  git clone https://github.com/dean0x/devflow.git
339
234
  cd devflow
340
235
  npm install
341
236
  npm run build
342
-
343
- # Test locally
344
237
  node dist/cli.js init
345
-
346
- # Watch mode for development
347
- npm run dev
348
- ```
349
-
350
- **Project Structure:**
351
238
  ```
352
- src/
353
- ├── cli/ # CLI source code (TypeScript)
354
- │ ├── commands/ # init.ts, uninstall.ts
355
- │ └── cli.ts # CLI entry point
356
- └── claude/ # Claude Code configuration
357
- ├── agents/devflow/ # Sub-agent definitions (.md)
358
- ├── commands/devflow/ # Slash command definitions (.md)
359
- ├── skills/devflow/ # Skill source (installed flat to ~/.claude/skills/)
360
- ├── scripts/ # statusline.sh
361
- └── settings.json # Claude Code settings
362
- ```
363
-
364
- ## Support
365
-
366
- - Check installed command documentation
367
- - Review `.docs/status/` for recent sessions
368
- - Skills auto-activate for systematic troubleshooting
369
- - Report issues at https://github.com/dean0x/devflow/issues
370
239
 
371
240
  ## License
372
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