devflow-kit 0.9.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/CHANGELOG.md +197 -29
  2. package/LICENSE +1 -1
  3. package/README.md +185 -309
  4. package/dist/cli.js +7 -1
  5. package/dist/commands/ambient.d.ts +18 -0
  6. package/dist/commands/ambient.js +136 -0
  7. package/dist/commands/init.d.ts +23 -0
  8. package/dist/commands/init.js +393 -571
  9. package/dist/commands/list.d.ts +3 -0
  10. package/dist/commands/list.js +20 -0
  11. package/dist/commands/memory.d.ts +22 -0
  12. package/dist/commands/memory.js +175 -0
  13. package/dist/commands/uninstall.d.ts +10 -0
  14. package/dist/commands/uninstall.js +418 -78
  15. package/dist/plugins.d.ts +46 -0
  16. package/dist/plugins.js +169 -0
  17. package/dist/utils/cli.d.ts +5 -0
  18. package/dist/utils/cli.js +14 -0
  19. package/dist/utils/installer.d.ts +41 -0
  20. package/dist/utils/installer.js +177 -0
  21. package/dist/utils/paths.d.ts +10 -0
  22. package/dist/utils/paths.js +23 -3
  23. package/dist/utils/post-install.d.ts +80 -0
  24. package/dist/utils/post-install.js +508 -0
  25. package/dist/utils/safe-delete-install.d.ts +29 -0
  26. package/dist/utils/safe-delete-install.js +191 -0
  27. package/dist/utils/safe-delete.d.ts +12 -0
  28. package/dist/utils/safe-delete.js +83 -0
  29. package/package.json +18 -8
  30. package/plugins/devflow-ambient/.claude-plugin/plugin.json +7 -0
  31. package/plugins/devflow-ambient/README.md +49 -0
  32. package/plugins/devflow-ambient/commands/ambient.md +110 -0
  33. package/plugins/devflow-ambient/skills/ambient-router/SKILL.md +89 -0
  34. package/plugins/devflow-ambient/skills/ambient-router/references/skill-catalog.md +64 -0
  35. package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +7 -0
  36. package/plugins/devflow-audit-claude/README.md +46 -0
  37. package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +134 -0
  38. package/plugins/devflow-audit-claude/commands/audit-claude.md +85 -0
  39. package/plugins/devflow-code-review/.claude-plugin/plugin.json +31 -0
  40. package/plugins/devflow-code-review/README.md +73 -0
  41. package/plugins/devflow-code-review/agents/git.md +272 -0
  42. package/plugins/devflow-code-review/agents/reviewer.md +119 -0
  43. package/plugins/devflow-code-review/agents/synthesizer.md +204 -0
  44. package/plugins/devflow-code-review/commands/code-review-teams.md +262 -0
  45. package/plugins/devflow-code-review/commands/code-review.md +141 -0
  46. package/plugins/devflow-code-review/skills/accessibility/SKILL.md +229 -0
  47. package/plugins/devflow-code-review/skills/accessibility/references/detection.md +171 -0
  48. package/plugins/devflow-code-review/skills/accessibility/references/patterns.md +670 -0
  49. package/plugins/devflow-code-review/skills/accessibility/references/violations.md +419 -0
  50. package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +124 -0
  51. package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +104 -0
  52. package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +122 -0
  53. package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +217 -0
  54. package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +153 -0
  55. package/plugins/devflow-code-review/skills/architecture-patterns/references/detection.md +337 -0
  56. package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +873 -0
  57. package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +575 -0
  58. package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +143 -0
  59. package/plugins/devflow-code-review/skills/complexity-patterns/references/detection.md +264 -0
  60. package/plugins/devflow-code-review/skills/complexity-patterns/references/patterns.md +487 -0
  61. package/plugins/devflow-code-review/skills/complexity-patterns/references/violations.md +361 -0
  62. package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +140 -0
  63. package/plugins/devflow-code-review/skills/consistency-patterns/references/detection.md +207 -0
  64. package/plugins/devflow-code-review/skills/consistency-patterns/references/patterns.md +202 -0
  65. package/plugins/devflow-code-review/skills/consistency-patterns/references/violations.md +213 -0
  66. package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +134 -0
  67. package/plugins/devflow-code-review/skills/database-patterns/references/detection.md +208 -0
  68. package/plugins/devflow-code-review/skills/database-patterns/references/patterns.md +394 -0
  69. package/plugins/devflow-code-review/skills/database-patterns/references/violations.md +332 -0
  70. package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +141 -0
  71. package/plugins/devflow-code-review/skills/dependencies-patterns/references/detection.md +181 -0
  72. package/plugins/devflow-code-review/skills/dependencies-patterns/references/patterns.md +225 -0
  73. package/plugins/devflow-code-review/skills/dependencies-patterns/references/violations.md +247 -0
  74. package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +125 -0
  75. package/plugins/devflow-code-review/skills/documentation-patterns/references/detection.md +190 -0
  76. package/plugins/devflow-code-review/skills/documentation-patterns/references/patterns.md +189 -0
  77. package/plugins/devflow-code-review/skills/documentation-patterns/references/violations.md +163 -0
  78. package/plugins/devflow-code-review/skills/frontend-design/SKILL.md +254 -0
  79. package/plugins/devflow-code-review/skills/frontend-design/references/detection.md +184 -0
  80. package/plugins/devflow-code-review/skills/frontend-design/references/patterns.md +511 -0
  81. package/plugins/devflow-code-review/skills/frontend-design/references/violations.md +453 -0
  82. package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +154 -0
  83. package/plugins/devflow-code-review/skills/performance-patterns/references/detection.md +351 -0
  84. package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +503 -0
  85. package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +354 -0
  86. package/plugins/devflow-code-review/skills/react/SKILL.md +276 -0
  87. package/plugins/devflow-code-review/skills/react/references/patterns.md +1331 -0
  88. package/plugins/devflow-code-review/skills/react/references/violations.md +565 -0
  89. package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +146 -0
  90. package/plugins/devflow-code-review/skills/regression-patterns/references/detection.md +237 -0
  91. package/plugins/devflow-code-review/skills/regression-patterns/references/patterns.md +226 -0
  92. package/plugins/devflow-code-review/skills/regression-patterns/references/violations.md +225 -0
  93. package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +119 -0
  94. package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +186 -0
  95. package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +142 -0
  96. package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +125 -0
  97. package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +156 -0
  98. package/plugins/devflow-code-review/skills/security-patterns/references/detection.md +287 -0
  99. package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +507 -0
  100. package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +237 -0
  101. package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +183 -0
  102. package/plugins/devflow-code-review/skills/test-patterns/references/detection.md +149 -0
  103. package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +220 -0
  104. package/plugins/devflow-code-review/skills/test-patterns/references/report-template.md +108 -0
  105. package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +221 -0
  106. package/plugins/devflow-core-skills/.claude-plugin/plugin.json +28 -0
  107. package/plugins/devflow-core-skills/README.md +50 -0
  108. package/plugins/devflow-core-skills/skills/accessibility/SKILL.md +229 -0
  109. package/plugins/devflow-core-skills/skills/accessibility/references/detection.md +171 -0
  110. package/plugins/devflow-core-skills/skills/accessibility/references/patterns.md +670 -0
  111. package/plugins/devflow-core-skills/skills/accessibility/references/violations.md +419 -0
  112. package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +162 -0
  113. package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +276 -0
  114. package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +144 -0
  115. package/plugins/devflow-core-skills/skills/core-patterns/references/detection.md +303 -0
  116. package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +576 -0
  117. package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +369 -0
  118. package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +138 -0
  119. package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +346 -0
  120. package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +221 -0
  121. package/plugins/devflow-core-skills/skills/frontend-design/SKILL.md +254 -0
  122. package/plugins/devflow-core-skills/skills/frontend-design/references/detection.md +184 -0
  123. package/plugins/devflow-core-skills/skills/frontend-design/references/patterns.md +511 -0
  124. package/plugins/devflow-core-skills/skills/frontend-design/references/violations.md +453 -0
  125. package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +122 -0
  126. package/plugins/devflow-core-skills/skills/git-safety/references/detection.md +290 -0
  127. package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +289 -0
  128. package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +18 -0
  129. package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +158 -0
  130. package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +115 -0
  131. package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +77 -0
  132. package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +127 -0
  133. package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +96 -0
  134. package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +153 -0
  135. package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +572 -0
  136. package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +298 -0
  137. package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +148 -0
  138. package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +283 -0
  139. package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +361 -0
  140. package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +224 -0
  141. package/plugins/devflow-core-skills/skills/react/SKILL.md +276 -0
  142. package/plugins/devflow-core-skills/skills/react/references/patterns.md +1331 -0
  143. package/plugins/devflow-core-skills/skills/react/references/violations.md +565 -0
  144. package/plugins/devflow-core-skills/skills/test-driven-development/SKILL.md +139 -0
  145. package/plugins/devflow-core-skills/skills/test-driven-development/references/rationalization-prevention.md +111 -0
  146. package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +183 -0
  147. package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +149 -0
  148. package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +220 -0
  149. package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +108 -0
  150. package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +221 -0
  151. package/plugins/devflow-core-skills/skills/typescript/SKILL.md +176 -0
  152. package/plugins/devflow-core-skills/skills/typescript/references/patterns.md +1105 -0
  153. package/plugins/devflow-core-skills/skills/typescript/references/violations.md +433 -0
  154. package/plugins/devflow-debug/.claude-plugin/plugin.json +18 -0
  155. package/plugins/devflow-debug/README.md +65 -0
  156. package/plugins/devflow-debug/agents/git.md +272 -0
  157. package/plugins/devflow-debug/commands/debug-teams.md +231 -0
  158. package/plugins/devflow-debug/commands/debug.md +160 -0
  159. package/plugins/devflow-debug/skills/agent-teams/SKILL.md +124 -0
  160. package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +104 -0
  161. package/plugins/devflow-debug/skills/agent-teams/references/communication.md +122 -0
  162. package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +217 -0
  163. package/plugins/devflow-debug/skills/git-safety/SKILL.md +122 -0
  164. package/plugins/devflow-debug/skills/git-safety/references/detection.md +290 -0
  165. package/plugins/devflow-debug/skills/git-safety/references/patterns.md +289 -0
  166. package/plugins/devflow-debug/skills/git-safety/references/violations.md +18 -0
  167. package/plugins/devflow-implement/.claude-plugin/plugin.json +21 -0
  168. package/plugins/devflow-implement/README.md +71 -0
  169. package/plugins/devflow-implement/agents/coder.md +122 -0
  170. package/plugins/devflow-implement/agents/git.md +272 -0
  171. package/plugins/devflow-implement/agents/scrutinizer.md +80 -0
  172. package/plugins/devflow-implement/agents/shepherd.md +94 -0
  173. package/plugins/devflow-implement/agents/simplifier.md +62 -0
  174. package/plugins/devflow-implement/agents/skimmer.md +88 -0
  175. package/plugins/devflow-implement/agents/synthesizer.md +204 -0
  176. package/plugins/devflow-implement/agents/validator.md +86 -0
  177. package/plugins/devflow-implement/commands/implement-teams.md +608 -0
  178. package/plugins/devflow-implement/commands/implement.md +426 -0
  179. package/plugins/devflow-implement/skills/accessibility/SKILL.md +229 -0
  180. package/plugins/devflow-implement/skills/accessibility/references/detection.md +171 -0
  181. package/plugins/devflow-implement/skills/accessibility/references/patterns.md +670 -0
  182. package/plugins/devflow-implement/skills/accessibility/references/violations.md +419 -0
  183. package/plugins/devflow-implement/skills/agent-teams/SKILL.md +124 -0
  184. package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +104 -0
  185. package/plugins/devflow-implement/skills/agent-teams/references/communication.md +122 -0
  186. package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +217 -0
  187. package/plugins/devflow-implement/skills/frontend-design/SKILL.md +254 -0
  188. package/plugins/devflow-implement/skills/frontend-design/references/detection.md +184 -0
  189. package/plugins/devflow-implement/skills/frontend-design/references/patterns.md +511 -0
  190. package/plugins/devflow-implement/skills/frontend-design/references/violations.md +453 -0
  191. package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +162 -0
  192. package/plugins/devflow-implement/skills/implementation-patterns/references/patterns.md +1063 -0
  193. package/plugins/devflow-implement/skills/implementation-patterns/references/violations.md +483 -0
  194. package/plugins/devflow-implement/skills/self-review/SKILL.md +149 -0
  195. package/plugins/devflow-implement/skills/self-review/references/patterns.md +405 -0
  196. package/plugins/devflow-implement/skills/self-review/references/report-template.md +253 -0
  197. package/plugins/devflow-implement/skills/self-review/references/violations.md +308 -0
  198. package/plugins/devflow-resolve/.claude-plugin/plugin.json +19 -0
  199. package/plugins/devflow-resolve/README.md +65 -0
  200. package/plugins/devflow-resolve/agents/git.md +272 -0
  201. package/plugins/devflow-resolve/agents/resolver.md +131 -0
  202. package/plugins/devflow-resolve/agents/simplifier.md +62 -0
  203. package/plugins/devflow-resolve/commands/resolve-teams.md +298 -0
  204. package/plugins/devflow-resolve/commands/resolve.md +237 -0
  205. package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +124 -0
  206. package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +104 -0
  207. package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +122 -0
  208. package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +217 -0
  209. package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +162 -0
  210. package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +1063 -0
  211. package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +483 -0
  212. package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +156 -0
  213. package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +287 -0
  214. package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +507 -0
  215. package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +237 -0
  216. package/plugins/devflow-self-review/.claude-plugin/plugin.json +7 -0
  217. package/plugins/devflow-self-review/README.md +38 -0
  218. package/plugins/devflow-self-review/agents/scrutinizer.md +80 -0
  219. package/plugins/devflow-self-review/agents/simplifier.md +62 -0
  220. package/plugins/devflow-self-review/agents/validator.md +86 -0
  221. package/plugins/devflow-self-review/commands/self-review.md +126 -0
  222. package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +162 -0
  223. package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +276 -0
  224. package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +144 -0
  225. package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +303 -0
  226. package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +576 -0
  227. package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +369 -0
  228. package/plugins/devflow-self-review/skills/self-review/SKILL.md +149 -0
  229. package/plugins/devflow-self-review/skills/self-review/references/patterns.md +405 -0
  230. package/plugins/devflow-self-review/skills/self-review/references/report-template.md +253 -0
  231. package/plugins/devflow-self-review/skills/self-review/references/violations.md +308 -0
  232. package/plugins/devflow-specify/.claude-plugin/plugin.json +15 -0
  233. package/plugins/devflow-specify/README.md +46 -0
  234. package/plugins/devflow-specify/agents/skimmer.md +88 -0
  235. package/plugins/devflow-specify/agents/synthesizer.md +204 -0
  236. package/plugins/devflow-specify/commands/specify-teams.md +314 -0
  237. package/plugins/devflow-specify/commands/specify.md +179 -0
  238. package/plugins/devflow-specify/skills/agent-teams/SKILL.md +124 -0
  239. package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +104 -0
  240. package/plugins/devflow-specify/skills/agent-teams/references/communication.md +122 -0
  241. package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +217 -0
  242. package/scripts/hooks/ambient-prompt.sh +48 -0
  243. package/scripts/hooks/background-memory-update.sh +208 -0
  244. package/scripts/hooks/ensure-memory-gitignore.sh +17 -0
  245. package/scripts/hooks/pre-compact-memory.sh +87 -0
  246. package/scripts/hooks/session-start-memory.sh +126 -0
  247. package/scripts/hooks/stop-update-memory.sh +85 -0
  248. package/shared/agents/coder.md +122 -0
  249. package/shared/agents/git.md +272 -0
  250. package/shared/agents/resolver.md +131 -0
  251. package/shared/agents/reviewer.md +119 -0
  252. package/shared/agents/scrutinizer.md +80 -0
  253. package/shared/agents/shepherd.md +94 -0
  254. package/shared/agents/simplifier.md +62 -0
  255. package/shared/agents/skimmer.md +88 -0
  256. package/shared/agents/synthesizer.md +204 -0
  257. package/shared/agents/validator.md +86 -0
  258. package/shared/skills/accessibility/SKILL.md +229 -0
  259. package/shared/skills/accessibility/references/detection.md +171 -0
  260. package/shared/skills/accessibility/references/patterns.md +670 -0
  261. package/shared/skills/accessibility/references/violations.md +419 -0
  262. package/shared/skills/agent-teams/SKILL.md +124 -0
  263. package/shared/skills/agent-teams/references/cleanup.md +104 -0
  264. package/shared/skills/agent-teams/references/communication.md +122 -0
  265. package/shared/skills/agent-teams/references/team-patterns.md +217 -0
  266. package/shared/skills/ambient-router/SKILL.md +89 -0
  267. package/shared/skills/ambient-router/references/skill-catalog.md +64 -0
  268. package/shared/skills/architecture-patterns/SKILL.md +153 -0
  269. package/shared/skills/architecture-patterns/references/detection.md +337 -0
  270. package/shared/skills/architecture-patterns/references/patterns.md +873 -0
  271. package/shared/skills/architecture-patterns/references/violations.md +575 -0
  272. package/shared/skills/complexity-patterns/SKILL.md +143 -0
  273. package/shared/skills/complexity-patterns/references/detection.md +264 -0
  274. package/shared/skills/complexity-patterns/references/patterns.md +487 -0
  275. package/shared/skills/complexity-patterns/references/violations.md +361 -0
  276. package/shared/skills/consistency-patterns/SKILL.md +140 -0
  277. package/shared/skills/consistency-patterns/references/detection.md +207 -0
  278. package/shared/skills/consistency-patterns/references/patterns.md +202 -0
  279. package/shared/skills/consistency-patterns/references/violations.md +213 -0
  280. package/shared/skills/core-patterns/SKILL.md +162 -0
  281. package/shared/skills/core-patterns/references/checklist.md +276 -0
  282. package/shared/skills/core-patterns/references/code-smell-violations.md +144 -0
  283. package/shared/skills/core-patterns/references/detection.md +303 -0
  284. package/shared/skills/core-patterns/references/patterns.md +576 -0
  285. package/shared/skills/core-patterns/references/violations.md +369 -0
  286. package/shared/skills/database-patterns/SKILL.md +134 -0
  287. package/shared/skills/database-patterns/references/detection.md +208 -0
  288. package/shared/skills/database-patterns/references/patterns.md +394 -0
  289. package/shared/skills/database-patterns/references/violations.md +332 -0
  290. package/shared/skills/dependencies-patterns/SKILL.md +141 -0
  291. package/shared/skills/dependencies-patterns/references/detection.md +181 -0
  292. package/shared/skills/dependencies-patterns/references/patterns.md +225 -0
  293. package/shared/skills/dependencies-patterns/references/violations.md +247 -0
  294. package/shared/skills/docs-framework/SKILL.md +138 -0
  295. package/shared/skills/docs-framework/references/patterns.md +346 -0
  296. package/shared/skills/docs-framework/references/violations.md +221 -0
  297. package/shared/skills/documentation-patterns/SKILL.md +125 -0
  298. package/shared/skills/documentation-patterns/references/detection.md +190 -0
  299. package/shared/skills/documentation-patterns/references/patterns.md +189 -0
  300. package/shared/skills/documentation-patterns/references/violations.md +163 -0
  301. package/shared/skills/frontend-design/SKILL.md +254 -0
  302. package/shared/skills/frontend-design/references/detection.md +184 -0
  303. package/shared/skills/frontend-design/references/patterns.md +511 -0
  304. package/shared/skills/frontend-design/references/violations.md +453 -0
  305. package/shared/skills/git-safety/SKILL.md +122 -0
  306. package/shared/skills/git-safety/references/detection.md +290 -0
  307. package/shared/skills/git-safety/references/patterns.md +289 -0
  308. package/shared/skills/git-safety/references/violations.md +18 -0
  309. package/shared/skills/git-workflow/SKILL.md +158 -0
  310. package/shared/skills/git-workflow/references/commit-patterns.md +115 -0
  311. package/shared/skills/git-workflow/references/commit-violations.md +77 -0
  312. package/shared/skills/git-workflow/references/pr-patterns.md +127 -0
  313. package/shared/skills/git-workflow/references/pr-violations.md +96 -0
  314. package/shared/skills/github-patterns/SKILL.md +153 -0
  315. package/shared/skills/github-patterns/references/patterns.md +572 -0
  316. package/shared/skills/github-patterns/references/violations.md +298 -0
  317. package/shared/skills/implementation-patterns/SKILL.md +162 -0
  318. package/shared/skills/implementation-patterns/references/patterns.md +1063 -0
  319. package/shared/skills/implementation-patterns/references/violations.md +483 -0
  320. package/shared/skills/input-validation/SKILL.md +148 -0
  321. package/shared/skills/input-validation/references/detection.md +283 -0
  322. package/shared/skills/input-validation/references/patterns.md +361 -0
  323. package/shared/skills/input-validation/references/violations.md +224 -0
  324. package/shared/skills/performance-patterns/SKILL.md +154 -0
  325. package/shared/skills/performance-patterns/references/detection.md +351 -0
  326. package/shared/skills/performance-patterns/references/patterns.md +503 -0
  327. package/shared/skills/performance-patterns/references/violations.md +354 -0
  328. package/shared/skills/react/SKILL.md +276 -0
  329. package/shared/skills/react/references/patterns.md +1331 -0
  330. package/shared/skills/react/references/violations.md +565 -0
  331. package/shared/skills/regression-patterns/SKILL.md +146 -0
  332. package/shared/skills/regression-patterns/references/detection.md +237 -0
  333. package/shared/skills/regression-patterns/references/patterns.md +226 -0
  334. package/shared/skills/regression-patterns/references/violations.md +225 -0
  335. package/shared/skills/review-methodology/SKILL.md +119 -0
  336. package/shared/skills/review-methodology/references/patterns.md +186 -0
  337. package/shared/skills/review-methodology/references/report-template.md +142 -0
  338. package/shared/skills/review-methodology/references/violations.md +125 -0
  339. package/shared/skills/security-patterns/SKILL.md +156 -0
  340. package/shared/skills/security-patterns/references/detection.md +287 -0
  341. package/shared/skills/security-patterns/references/patterns.md +507 -0
  342. package/shared/skills/security-patterns/references/violations.md +237 -0
  343. package/shared/skills/self-review/SKILL.md +149 -0
  344. package/shared/skills/self-review/references/patterns.md +405 -0
  345. package/shared/skills/self-review/references/report-template.md +253 -0
  346. package/shared/skills/self-review/references/violations.md +308 -0
  347. package/shared/skills/test-driven-development/SKILL.md +139 -0
  348. package/shared/skills/test-driven-development/references/rationalization-prevention.md +111 -0
  349. package/shared/skills/test-patterns/SKILL.md +183 -0
  350. package/shared/skills/test-patterns/references/detection.md +149 -0
  351. package/shared/skills/test-patterns/references/patterns.md +220 -0
  352. package/shared/skills/test-patterns/references/report-template.md +108 -0
  353. package/shared/skills/test-patterns/references/violations.md +221 -0
  354. package/shared/skills/typescript/SKILL.md +176 -0
  355. package/shared/skills/typescript/references/patterns.md +1105 -0
  356. package/shared/skills/typescript/references/violations.md +433 -0
  357. package/src/templates/claudeignore.template +188 -0
  358. package/src/templates/managed-settings.json +160 -0
  359. package/src/templates/settings.json +59 -0
  360. package/dist/cli.d.ts.map +0 -1
  361. package/dist/cli.js.map +0 -1
  362. package/dist/commands/init.d.ts.map +0 -1
  363. package/dist/commands/init.js.map +0 -1
  364. package/dist/commands/uninstall.d.ts.map +0 -1
  365. package/dist/commands/uninstall.js.map +0 -1
  366. package/dist/utils/git.d.ts.map +0 -1
  367. package/dist/utils/git.js.map +0 -1
  368. package/dist/utils/paths.d.ts.map +0 -1
  369. package/dist/utils/paths.js.map +0 -1
  370. package/src/claude/CLAUDE.md +0 -400
  371. package/src/claude/agents/devflow/audit-architecture.md +0 -132
  372. package/src/claude/agents/devflow/audit-complexity.md +0 -132
  373. package/src/claude/agents/devflow/audit-database.md +0 -132
  374. package/src/claude/agents/devflow/audit-dependencies.md +0 -132
  375. package/src/claude/agents/devflow/audit-documentation.md +0 -132
  376. package/src/claude/agents/devflow/audit-performance.md +0 -256
  377. package/src/claude/agents/devflow/audit-security.md +0 -259
  378. package/src/claude/agents/devflow/audit-tests.md +0 -132
  379. package/src/claude/agents/devflow/audit-typescript.md +0 -132
  380. package/src/claude/agents/devflow/brainstorm.md +0 -279
  381. package/src/claude/agents/devflow/catch-up.md +0 -345
  382. package/src/claude/agents/devflow/code-review.md +0 -307
  383. package/src/claude/agents/devflow/commit.md +0 -380
  384. package/src/claude/agents/devflow/debug.md +0 -476
  385. package/src/claude/agents/devflow/design.md +0 -491
  386. package/src/claude/agents/devflow/get-issue.md +0 -286
  387. package/src/claude/agents/devflow/pr-comments.md +0 -285
  388. package/src/claude/agents/devflow/project-state.md +0 -419
  389. package/src/claude/agents/devflow/pull-request.md +0 -493
  390. package/src/claude/agents/devflow/release.md +0 -1137
  391. package/src/claude/agents/devflow/tech-debt.md +0 -338
  392. package/src/claude/commands/devflow/brainstorm.md +0 -68
  393. package/src/claude/commands/devflow/breakdown.md +0 -125
  394. package/src/claude/commands/devflow/catch-up.md +0 -29
  395. package/src/claude/commands/devflow/code-review.md +0 -237
  396. package/src/claude/commands/devflow/commit.md +0 -17
  397. package/src/claude/commands/devflow/debug.md +0 -56
  398. package/src/claude/commands/devflow/design.md +0 -82
  399. package/src/claude/commands/devflow/devlog.md +0 -408
  400. package/src/claude/commands/devflow/get-issue.md +0 -16
  401. package/src/claude/commands/devflow/implement.md +0 -100
  402. package/src/claude/commands/devflow/plan.md +0 -223
  403. package/src/claude/commands/devflow/pull-request.md +0 -20
  404. package/src/claude/commands/devflow/release.md +0 -251
  405. package/src/claude/commands/devflow/resolve-comments.md +0 -583
  406. package/src/claude/scripts/statusline.sh +0 -47
  407. package/src/claude/settings.json +0 -6
  408. package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
  409. package/src/claude/skills/devflow/debug/SKILL.md +0 -119
  410. package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
  411. package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
  412. package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
  413. package/src/claude/skills/devflow/research/SKILL.md +0 -138
  414. package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
package/README.md CHANGED
@@ -1,372 +1,248 @@
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
+ - **26 quality skills** — 12 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-ambient` | `/ambient` | Ambient mode — auto-loads relevant skills based on each prompt |
52
+ | `devflow-core-skills` | (auto) | Auto-activating quality enforcement skills |
131
53
 
132
- ### 🔒 Security & Token Optimization
54
+ ## Command Details
133
55
 
134
- DevFlow automatically creates a comprehensive `.claudeignore` file at your git repository root to:
56
+ ### /specify
135
57
 
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`)
58
+ Guides you through defining a feature with three mandatory gates:
142
59
 
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
60
+ 1. **Understanding Gate** - Confirm the feature idea is understood
61
+ 2. **Scope Gate** - Validate priorities and boundaries
62
+ 3. **Acceptance Gate** - Confirm success criteria
149
63
 
150
- Covers patterns for all major languages and operating systems.
64
+ Creates a GitHub issue with well-defined requirements ready for `/implement`.
151
65
 
152
- ## Documentation Structure
66
+ ### /implement
67
+
68
+ Executes a single task through the complete development lifecycle:
69
+
70
+ 1. **Exploration** — analyze codebase for relevant patterns and dependencies
71
+ 2. **Planning** — design the implementation approach
72
+ 3. **Implementation** — write code on a feature branch
73
+ 4. **Validation** — run build, typecheck, lint, and tests
74
+ 5. **Refinement** — simplify and review for quality
75
+ 6. **Alignment Check** — verify implementation matches the original request
76
+
77
+ Creates a PR when complete.
78
+
79
+ ### /code-review
80
+
81
+ Multi-perspective code review with specialized reviewers:
82
+
83
+ - **Core**: Security, Architecture, Performance, Quality
84
+ - **Conditional** (activated when relevant): TypeScript, React, Accessibility, Database, Dependencies, Documentation
85
+ - Findings classified as must-fix, should-fix, or nit with severity and confidence levels
86
+
87
+ Provides actionable feedback with specific file locations and suggested fixes.
88
+
89
+ ### /debug
90
+
91
+ Investigates bugs using competing hypotheses:
92
+
93
+ 1. **Hypothesis Generation** — identify 3-5 plausible explanations
94
+ 2. **Parallel Investigation** — each hypothesis investigated independently
95
+ 3. **Evidence Evaluation** — hypotheses ranked by supporting evidence
96
+ 4. **Root Cause** — the best-supported explanation with fix recommendation
97
+
98
+ Produces a root cause analysis report with confidence level.
99
+
100
+ ### /resolve
101
+
102
+ Processes issues from `/code-review`:
103
+
104
+ - Validates each issue is real (not false positive)
105
+ - Assesses risk of fixing (low vs high)
106
+ - Fixes low-risk issues immediately
107
+ - Defers high-risk issues to tech debt backlog
153
108
 
154
- DevFlow agents automatically create and maintain project documentation in the `.docs/` directory with a consistent, predictable structure.
109
+ ## Auto-Activating Skills
155
110
 
156
- ### Directory Layout
111
+ The `devflow-core-skills` plugin provides quality enforcement skills that activate automatically:
157
112
 
113
+ | Skill | Triggers When |
114
+ |-------|---------------|
115
+ | `core-patterns` | Implementing business logic, error handling |
116
+ | `docs-framework` | Creating documentation artifacts in .docs/ |
117
+ | `git-safety` | Rebasing, force-pushing, merge conflicts |
118
+ | `git-workflow` | Staging files, creating commits, PRs |
119
+ | `github-patterns` | GitHub API operations, PR comments, releases |
120
+ | `test-driven-development` | Implementing new features (RED-GREEN-REFACTOR) |
121
+ | `test-patterns` | Writing or modifying tests |
122
+ | `input-validation` | Creating API endpoints |
123
+ | `typescript` | Working in TypeScript codebases |
124
+ | `react` | Working with React components |
125
+ | `accessibility` | Creating UI components, forms, interactive elements |
126
+ | `frontend-design` | Working with CSS, styling, visual design |
127
+
128
+ ## Requirements
129
+
130
+ - [Claude Code](https://claude.ai/download) (latest)
131
+ - Node.js 18+
132
+
133
+ ## Installation
134
+
135
+ ### Install All Plugins
136
+
137
+ ```bash
138
+ npx devflow-kit init
158
139
  ```
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
140
+
141
+ ### Install Specific Plugins
142
+
143
+ ```bash
144
+ # List available plugins
145
+ npx devflow-kit list
146
+
147
+ # Install specific plugin(s)
148
+ npx devflow-kit init --plugin=implement
149
+ npx devflow-kit init --plugin=implement,code-review
177
150
  ```
178
151
 
179
- ### Naming Conventions
152
+ ### Scopes
180
153
 
181
- **Timestamps**: `YYYY-MM-DD_HHMM` (sortable, chronological)
182
- - Example: `2025-11-14_2030`
154
+ - `--scope user` (default) - Install for all projects (`~/.claude/`)
155
+ - `--scope local` - Install for current project only (`.claude/`)
183
156
 
184
- **Branch slugs**: Sanitized branch names (slashes replaced with dashes)
185
- - `feature/auth` → `feature-auth`
157
+ ## Working Memory
186
158
 
187
- **Topic slugs**: Lowercase, alphanumeric with dashes
188
- - `"JWT Authentication"` → `jwt-authentication`
159
+ DevFlow automatically preserves session context across restarts, `/clear`, and context compaction — zero ceremony required.
189
160
 
190
- ### What Gets Created
161
+ Three shell hooks run behind the scenes:
191
162
 
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`
163
+ | Hook | When | What |
164
+ |------|------|------|
165
+ | **Stop** | After each response | Updates `.memory/WORKING-MEMORY.md` with current focus, decisions, and progress. Throttled — skips if updated <2 min ago. |
166
+ | **SessionStart** | On startup, `/clear`, resume, compaction | Injects previous working memory + fresh git state as system context. Warns if memory is >1h stale. |
167
+ | **PreCompact** | Before context compaction | Backs up git state to JSON. Bootstraps a minimal working memory from git if none exists yet. |
199
168
 
200
- ### Version Control
169
+ Working memory is **per-project** — scoped to each repo's `.memory/` directory. Multiple sessions across different repos don't interfere.
201
170
 
202
- **Recommended `.gitignore`**:
203
- ```gitignore
204
- # Exclude ephemeral catch-up summaries
205
- .docs/CATCH_UP.md
171
+ ## Documentation Structure
206
172
 
207
- # Optional: Exclude debug sessions (team preference)
208
- .docs/debug/
173
+ DevFlow creates project documentation in `.docs/` and working memory in `.memory/`:
209
174
 
210
- # Keep everything else for project history
211
175
  ```
176
+ .docs/
177
+ ├── reviews/{branch}/ # Review reports per branch
178
+ └── design/ # Implementation plans
212
179
 
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:**
289
- ```bash
290
- devflow init
291
- /devlog # Document your current project state
292
- /catch-up # Get oriented with the project
180
+ .memory/
181
+ ├── WORKING-MEMORY.md # Auto-maintained by Stop hook
182
+ ├── PROJECT-PATTERNS.md # Accumulated patterns across sessions
183
+ └── backup.json # Pre-compact git state snapshot
293
184
  ```
294
185
 
295
- ## Advanced Usage
186
+ ## Workflow Examples
296
187
 
297
- ### Custom Audit Rules
188
+ ### Implementing a Feature
298
189
  ```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
190
+ /specify # Define the feature with clarification gates
191
+ /implement # Execute the full lifecycle
301
192
  ```
302
193
 
303
- ### Team Usage
194
+ ### Debugging an Issue
304
195
  ```bash
305
- # Share session documentation with team
306
- /devlog
307
- git add .docs/status/
308
- git commit -m "Session status: completed user auth feature"
196
+ /debug "login fails after session timeout"
197
+ /debug #42 # Investigate from GitHub issue
309
198
  ```
310
199
 
311
- ### Integration Examples
200
+ ### Before Creating a PR
312
201
  ```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
202
+ /code-review # Multi-perspective code review
203
+ /resolve # Fix low-risk issues, defer high-risk to backlog
323
204
  ```
324
205
 
325
- ## Philosophy
206
+ ### Session Continuity
207
+
208
+ Session context is saved and restored automatically via Working Memory hooks — no manual steps needed.
209
+
210
+ ## CLI Reference
211
+
212
+ | Command | Description |
213
+ |---------|-------------|
214
+ | `npx devflow-kit init` | Install all plugins |
215
+ | `npx devflow-kit init --plugin=<names>` | Install specific plugin(s) |
216
+ | `npx devflow-kit list` | List available plugins |
217
+ | `npx devflow-kit ambient --enable` | Enable always-on ambient mode |
218
+ | `npx devflow-kit ambient --disable` | Disable ambient mode |
219
+ | `npx devflow-kit uninstall` | Remove DevFlow |
220
+
221
+ ### Init Options
222
+
223
+ | Option | Description |
224
+ |--------|-------------|
225
+ | `--plugin <names>` | Comma-separated plugin names (e.g., `implement,code-review`) |
226
+ | `--scope <user\|local>` | Installation scope (default: user) |
227
+ | `--teams` / `--no-teams` | Enable/disable experimental Agent Teams (default: off) |
228
+ | `--verbose` | Show detailed output |
326
229
 
327
- Modern development increasingly involves AI agents that can read, write, and modify code autonomously. DevFlow provides:
230
+ ### Uninstall Options
328
231
 
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
232
+ | Option | Description |
233
+ |--------|-------------|
234
+ | `--scope <user\|local>` | Uninstall scope (default: user) |
235
+ | `--keep-docs` | Preserve .docs/ directory |
333
236
 
334
237
  ## Building from Source
335
238
 
336
239
  ```bash
337
- # Clone and build
338
240
  git clone https://github.com/dean0x/devflow.git
339
241
  cd devflow
340
242
  npm install
341
243
  npm run build
342
-
343
- # Test locally
344
244
  node dist/cli.js init
345
-
346
- # Watch mode for development
347
- npm run dev
348
- ```
349
-
350
- **Project Structure:**
351
245
  ```
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
246
 
371
247
  ## License
372
248
 
package/dist/cli.js CHANGED
@@ -5,6 +5,9 @@ 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';
9
+ import { ambientCommand } from './commands/ambient.js';
10
+ import { memoryCommand } from './commands/memory.js';
8
11
  const __filename = fileURLToPath(import.meta.url);
9
12
  const __dirname = dirname(__filename);
10
13
  // Read version from package.json
@@ -15,10 +18,13 @@ program
15
18
  .description('Agentic Development Toolkit for Claude Code\n\nEnhance your AI-assisted development with intelligent commands and workflows.')
16
19
  .version(packageJson.version, '-v, --version', 'Display version number')
17
20
  .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');
21
+ .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 ambient --enable Enable always-on ambient mode\n $ devflow memory --status Check working memory state\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
22
  // Register commands
20
23
  program.addCommand(initCommand);
21
24
  program.addCommand(uninstallCommand);
25
+ program.addCommand(listCommand);
26
+ program.addCommand(ambientCommand);
27
+ program.addCommand(memoryCommand);
22
28
  // Handle no command
23
29
  program.action(() => {
24
30
  program.help();
@@ -0,0 +1,18 @@
1
+ import { Command } from 'commander';
2
+ /**
3
+ * Add the ambient UserPromptSubmit hook to settings JSON.
4
+ * Idempotent — returns unchanged JSON if hook already exists.
5
+ */
6
+ export declare function addAmbientHook(settingsJson: string, devflowDir: string): string;
7
+ /**
8
+ * Remove the ambient UserPromptSubmit hook from settings JSON.
9
+ * Idempotent — returns unchanged JSON if hook not present.
10
+ * Preserves other UserPromptSubmit hooks. Cleans empty arrays/objects.
11
+ */
12
+ export declare function removeAmbientHook(settingsJson: string): string;
13
+ /**
14
+ * Check if the ambient hook is registered in settings JSON.
15
+ */
16
+ export declare function hasAmbientHook(settingsJson: string): boolean;
17
+ export declare const ambientCommand: Command;
18
+ //# sourceMappingURL=ambient.d.ts.map