@pjmendonca/devflow 1.13.2 → 1.18.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 (224) hide show
  1. package/.claude/commands/agent.md +1 -1
  2. package/.claude/commands/bugfix.md +21 -0
  3. package/.claude/commands/checkpoint.md +0 -1
  4. package/.claude/commands/collab.md +0 -1
  5. package/.claude/commands/costs.md +88 -18
  6. package/.claude/commands/devflow.md +26 -0
  7. package/.claude/commands/handoff.md +0 -1
  8. package/.claude/commands/init.md +287 -0
  9. package/.claude/commands/memory.md +0 -1
  10. package/.claude/commands/pair.md +0 -1
  11. package/.claude/commands/review.md +27 -0
  12. package/.claude/commands/route.md +0 -1
  13. package/.claude/commands/swarm.md +0 -1
  14. package/.claude/commands/validate.md +55 -0
  15. package/.claude/hooks/session-notification.sh +44 -0
  16. package/.claude/hooks/session-startup.sh +427 -0
  17. package/.claude/hooks/session-stop.sh +38 -0
  18. package/.claude/hooks/session_tracker.py +272 -0
  19. package/.claude/settings.json +38 -0
  20. package/.claude/skills/costs/SKILL.md +156 -0
  21. package/.claude/skills/validate/SKILL.md +101 -0
  22. package/CHANGELOG.md +243 -0
  23. package/README.md +207 -10
  24. package/bin/devflow-install.js +2 -1
  25. package/bin/devflow.js +4 -0
  26. package/lib/constants.js +0 -1
  27. package/lib/exec-python.js +1 -1
  28. package/package.json +1 -1
  29. package/tooling/.automation/.checkpoint_lock +1 -0
  30. package/tooling/.automation/agents/architect.md +19 -0
  31. package/tooling/.automation/agents/ba.md +19 -0
  32. package/tooling/.automation/agents/maintainer.md +19 -0
  33. package/tooling/.automation/agents/pm.md +19 -0
  34. package/tooling/.automation/agents/reviewer.md +1 -1
  35. package/tooling/.automation/agents/writer.md +19 -0
  36. package/tooling/.automation/benchmarks/benchmark_20251230_100119.json +314 -0
  37. package/tooling/.automation/benchmarks/benchmark_20251230_100216.json +314 -0
  38. package/tooling/.automation/costs/config.json +31 -0
  39. package/tooling/.automation/costs/sessions/2025-12-29_20251229_164128.json +22 -0
  40. package/tooling/.automation/memory/knowledge/kg_integration-test.json +707 -1
  41. package/tooling/.automation/memory/knowledge/kg_test-story.json +3273 -2
  42. package/tooling/.automation/memory/shared/shared_integration-test.json +181 -1
  43. package/tooling/.automation/memory/shared/shared_test-story.json +721 -1
  44. package/tooling/.automation/memory/shared/shared_test.json +1254 -0
  45. package/tooling/.automation/memory/shared/shared_validation-check.json +227 -0
  46. package/tooling/.automation/overrides/templates/architect/cloud-native.yaml +5 -5
  47. package/tooling/.automation/overrides/templates/architect/enterprise-architect.yaml +23 -5
  48. package/tooling/.automation/overrides/templates/architect/pragmatic-minimalist.yaml +24 -6
  49. package/tooling/.automation/overrides/templates/ba/agile-storyteller.yaml +4 -4
  50. package/tooling/.automation/overrides/templates/ba/domain-expert.yaml +4 -4
  51. package/tooling/.automation/overrides/templates/ba/requirements-engineer.yaml +4 -4
  52. package/tooling/.automation/overrides/templates/dev/performance-engineer.yaml +18 -0
  53. package/tooling/.automation/overrides/templates/dev/rapid-prototyper.yaml +19 -1
  54. package/tooling/.automation/overrides/templates/dev/security-focused.yaml +18 -0
  55. package/tooling/.automation/overrides/templates/dev/user-advocate.yaml +54 -0
  56. package/tooling/.automation/overrides/templates/maintainer/devops-maintainer.yaml +4 -4
  57. package/tooling/.automation/overrides/templates/maintainer/legacy-steward.yaml +4 -4
  58. package/tooling/.automation/overrides/templates/maintainer/oss-maintainer.yaml +4 -4
  59. package/tooling/.automation/overrides/templates/maintainer/reliability-engineer.yaml +55 -0
  60. package/tooling/.automation/overrides/templates/pm/agile-pm.yaml +4 -4
  61. package/tooling/.automation/overrides/templates/pm/hybrid-delivery.yaml +3 -3
  62. package/tooling/.automation/overrides/templates/pm/traditional-pm.yaml +4 -4
  63. package/tooling/.automation/overrides/templates/reviewer/quick-sanity.yaml +18 -0
  64. package/tooling/.automation/overrides/templates/reviewer/thorough-critic.yaml +18 -0
  65. package/tooling/.automation/overrides/templates/sm/agile-coach.yaml +2 -2
  66. package/tooling/.automation/overrides/templates/sm/startup-pm.yaml +3 -3
  67. package/tooling/.automation/overrides/templates/writer/api-documentarian.yaml +5 -5
  68. package/tooling/.automation/overrides/templates/writer/docs-as-code.yaml +4 -4
  69. package/tooling/.automation/overrides/templates/writer/user-guide-author.yaml +5 -5
  70. package/tooling/.automation/validation/history/2025-12-29_val_002a28c1.json +32 -0
  71. package/tooling/.automation/validation/history/2025-12-29_val_01273bb1.json +32 -0
  72. package/tooling/.automation/validation/history/2025-12-29_val_03369914.json +41 -0
  73. package/tooling/.automation/validation/history/2025-12-29_val_07a449ba.json +32 -0
  74. package/tooling/.automation/validation/history/2025-12-29_val_0df1f0a2.json +41 -0
  75. package/tooling/.automation/validation/history/2025-12-29_val_10ff3d34.json +41 -0
  76. package/tooling/.automation/validation/history/2025-12-29_val_110771d7.json +32 -0
  77. package/tooling/.automation/validation/history/2025-12-29_val_13f3a7f9.json +32 -0
  78. package/tooling/.automation/validation/history/2025-12-29_val_17ba9d21.json +41 -0
  79. package/tooling/.automation/validation/history/2025-12-29_val_22247089.json +32 -0
  80. package/tooling/.automation/validation/history/2025-12-29_val_227ea6a4.json +32 -0
  81. package/tooling/.automation/validation/history/2025-12-29_val_2335d5ae.json +32 -0
  82. package/tooling/.automation/validation/history/2025-12-29_val_246824bb.json +41 -0
  83. package/tooling/.automation/validation/history/2025-12-29_val_28b4b9cd.json +32 -0
  84. package/tooling/.automation/validation/history/2025-12-29_val_2abd12cc.json +32 -0
  85. package/tooling/.automation/validation/history/2025-12-29_val_2c801b2f.json +59 -0
  86. package/tooling/.automation/validation/history/2025-12-29_val_2c8cfa8e.json +32 -0
  87. package/tooling/.automation/validation/history/2025-12-29_val_2ce76eb0.json +32 -0
  88. package/tooling/.automation/validation/history/2025-12-29_val_30351948.json +41 -0
  89. package/tooling/.automation/validation/history/2025-12-29_val_30eb7229.json +41 -0
  90. package/tooling/.automation/validation/history/2025-12-29_val_34df0e77.json +41 -0
  91. package/tooling/.automation/validation/history/2025-12-29_val_376e4d6a.json +32 -0
  92. package/tooling/.automation/validation/history/2025-12-29_val_3a4e8a1a.json +59 -0
  93. package/tooling/.automation/validation/history/2025-12-29_val_3b77a628.json +32 -0
  94. package/tooling/.automation/validation/history/2025-12-29_val_3ea4e1cf.json +59 -0
  95. package/tooling/.automation/validation/history/2025-12-29_val_44aacdb4.json +59 -0
  96. package/tooling/.automation/validation/history/2025-12-29_val_457ddfa8.json +32 -0
  97. package/tooling/.automation/validation/history/2025-12-29_val_45af6238.json +41 -0
  98. package/tooling/.automation/validation/history/2025-12-29_val_4735dba1.json +41 -0
  99. package/tooling/.automation/validation/history/2025-12-29_val_486b203c.json +41 -0
  100. package/tooling/.automation/validation/history/2025-12-29_val_49dc56cd.json +59 -0
  101. package/tooling/.automation/validation/history/2025-12-29_val_4d863d6d.json +32 -0
  102. package/tooling/.automation/validation/history/2025-12-29_val_5149a808.json +59 -0
  103. package/tooling/.automation/validation/history/2025-12-29_val_52e0bb43.json +32 -0
  104. package/tooling/.automation/validation/history/2025-12-29_val_585d6319.json +59 -0
  105. package/tooling/.automation/validation/history/2025-12-29_val_5b2d859a.json +32 -0
  106. package/tooling/.automation/validation/history/2025-12-29_val_635a7081.json +41 -0
  107. package/tooling/.automation/validation/history/2025-12-29_val_64df4905.json +32 -0
  108. package/tooling/.automation/validation/history/2025-12-29_val_70634cee.json +41 -0
  109. package/tooling/.automation/validation/history/2025-12-29_val_714553f9.json +32 -0
  110. package/tooling/.automation/validation/history/2025-12-29_val_7f7bfdbf.json +41 -0
  111. package/tooling/.automation/validation/history/2025-12-29_val_7faad91d.json +32 -0
  112. package/tooling/.automation/validation/history/2025-12-29_val_81821f8f.json +41 -0
  113. package/tooling/.automation/validation/history/2025-12-29_val_8249f3c9.json +32 -0
  114. package/tooling/.automation/validation/history/2025-12-29_val_8422b50f.json +41 -0
  115. package/tooling/.automation/validation/history/2025-12-29_val_8446c134.json +32 -0
  116. package/tooling/.automation/validation/history/2025-12-29_val_879f4e26.json +59 -0
  117. package/tooling/.automation/validation/history/2025-12-29_val_8b6d5bd7.json +32 -0
  118. package/tooling/.automation/validation/history/2025-12-29_val_8c5cd787.json +32 -0
  119. package/tooling/.automation/validation/history/2025-12-29_val_91d20bc7.json +32 -0
  120. package/tooling/.automation/validation/history/2025-12-29_val_958a12b7.json +41 -0
  121. package/tooling/.automation/validation/history/2025-12-29_val_95d91108.json +41 -0
  122. package/tooling/.automation/validation/history/2025-12-29_val_980dbb74.json +32 -0
  123. package/tooling/.automation/validation/history/2025-12-29_val_9e40c79b.json +32 -0
  124. package/tooling/.automation/validation/history/2025-12-29_val_9f499b7c.json +32 -0
  125. package/tooling/.automation/validation/history/2025-12-29_val_9f7c3b57.json +32 -0
  126. package/tooling/.automation/validation/history/2025-12-29_val_a30d5bd4.json +32 -0
  127. package/tooling/.automation/validation/history/2025-12-29_val_a6eb09c7.json +32 -0
  128. package/tooling/.automation/validation/history/2025-12-29_val_a86f7b83.json +41 -0
  129. package/tooling/.automation/validation/history/2025-12-29_val_ad5347e1.json +41 -0
  130. package/tooling/.automation/validation/history/2025-12-29_val_b0a5a993.json +32 -0
  131. package/tooling/.automation/validation/history/2025-12-29_val_bcb0192e.json +32 -0
  132. package/tooling/.automation/validation/history/2025-12-29_val_bf3c9aaa.json +32 -0
  133. package/tooling/.automation/validation/history/2025-12-29_val_c461ff88.json +32 -0
  134. package/tooling/.automation/validation/history/2025-12-29_val_c4f4e258.json +41 -0
  135. package/tooling/.automation/validation/history/2025-12-29_val_c7f0fa6d.json +41 -0
  136. package/tooling/.automation/validation/history/2025-12-29_val_c911b0e6.json +32 -0
  137. package/tooling/.automation/validation/history/2025-12-29_val_cc581964.json +32 -0
  138. package/tooling/.automation/validation/history/2025-12-29_val_cdd5a33b.json +32 -0
  139. package/tooling/.automation/validation/history/2025-12-29_val_cfd42495.json +32 -0
  140. package/tooling/.automation/validation/history/2025-12-29_val_d1c7a4ee.json +41 -0
  141. package/tooling/.automation/validation/history/2025-12-29_val_d2280d0e.json +32 -0
  142. package/tooling/.automation/validation/history/2025-12-29_val_d2a6ff69.json +32 -0
  143. package/tooling/.automation/validation/history/2025-12-29_val_d8c53ab2.json +59 -0
  144. package/tooling/.automation/validation/history/2025-12-29_val_d9c1247a.json +41 -0
  145. package/tooling/.automation/validation/history/2025-12-29_val_d9d58569.json +32 -0
  146. package/tooling/.automation/validation/history/2025-12-29_val_dabb4fd9.json +32 -0
  147. package/tooling/.automation/validation/history/2025-12-29_val_dd8fe359.json +32 -0
  148. package/tooling/.automation/validation/history/2025-12-29_val_decdffc9.json +32 -0
  149. package/tooling/.automation/validation/history/2025-12-29_val_e3a95476.json +59 -0
  150. package/tooling/.automation/validation/history/2025-12-29_val_e776dfca.json +32 -0
  151. package/tooling/.automation/validation/history/2025-12-29_val_ea70969f.json +59 -0
  152. package/tooling/.automation/validation/history/2025-12-29_val_ef41ea95.json +32 -0
  153. package/tooling/.automation/validation/history/2025-12-29_val_f384f9b1.json +32 -0
  154. package/tooling/.automation/validation/history/2025-12-29_val_f8adc38c.json +41 -0
  155. package/tooling/.automation/validation/history/2025-12-29_val_fa40b69e.json +32 -0
  156. package/tooling/.automation/validation/history/2025-12-29_val_fc538d54.json +41 -0
  157. package/tooling/.automation/validation/history/2025-12-29_val_fe814665.json +32 -0
  158. package/tooling/.automation/validation/history/2025-12-29_val_ffea4b12.json +32 -0
  159. package/tooling/.automation/validation/history/2025-12-30_val_02d001e5.json +59 -0
  160. package/tooling/.automation/validation/history/2025-12-30_val_0b8966dc.json +32 -0
  161. package/tooling/.automation/validation/history/2025-12-30_val_15455fbf.json +59 -0
  162. package/tooling/.automation/validation/history/2025-12-30_val_157e34b9.json +32 -0
  163. package/tooling/.automation/validation/history/2025-12-30_val_28d1d933.json +32 -0
  164. package/tooling/.automation/validation/history/2025-12-30_val_3442a52c.json +32 -0
  165. package/tooling/.automation/validation/history/2025-12-30_val_37f1ce1e.json +32 -0
  166. package/tooling/.automation/validation/history/2025-12-30_val_4f1d8a93.json +32 -0
  167. package/tooling/.automation/validation/history/2025-12-30_val_56ff1de3.json +32 -0
  168. package/tooling/.automation/validation/history/2025-12-30_val_664fd4e2.json +41 -0
  169. package/tooling/.automation/validation/history/2025-12-30_val_66afb0a7.json +32 -0
  170. package/tooling/.automation/validation/history/2025-12-30_val_7634663c.json +41 -0
  171. package/tooling/.automation/validation/history/2025-12-30_val_8ea830c3.json +41 -0
  172. package/tooling/.automation/validation/history/2025-12-30_val_998957c2.json +32 -0
  173. package/tooling/.automation/validation/history/2025-12-30_val_a52177db.json +32 -0
  174. package/tooling/.automation/validation/history/2025-12-30_val_a5b65a63.json +32 -0
  175. package/tooling/.automation/validation/history/2025-12-30_val_ae391d0e.json +32 -0
  176. package/tooling/.automation/validation/history/2025-12-30_val_c7895339.json +41 -0
  177. package/tooling/.automation/validation/history/2025-12-30_val_ca416593.json +41 -0
  178. package/tooling/.automation/validation/history/2025-12-30_val_cee19422.json +32 -0
  179. package/tooling/.automation/validation/history/2025-12-30_val_ddd4f4e6.json +32 -0
  180. package/tooling/.automation/validation/history/2025-12-30_val_f2e1394b.json +32 -0
  181. package/tooling/.automation/validation/history/2025-12-30_val_f4a7fa06.json +41 -0
  182. package/tooling/.automation/validation/history/2025-12-30_val_ffea3369.json +32 -0
  183. package/tooling/.automation/validation-config.yaml +103 -0
  184. package/tooling/completions/DevflowCompletion.ps1 +21 -21
  185. package/tooling/completions/_run-story +3 -3
  186. package/tooling/completions/run-story-completion.bash +8 -8
  187. package/tooling/docs/DOC-STANDARD.md +14 -14
  188. package/tooling/docs/templates/migration-spec.md +4 -4
  189. package/tooling/scripts/context_checkpoint.py +5 -15
  190. package/tooling/scripts/cost_dashboard.py +610 -13
  191. package/tooling/scripts/create-persona.py +1 -12
  192. package/tooling/scripts/create-persona.sh +44 -44
  193. package/tooling/scripts/lib/__init__.py +12 -1
  194. package/tooling/scripts/lib/agent_handoff.py +11 -2
  195. package/tooling/scripts/lib/agent_router.py +31 -10
  196. package/tooling/scripts/lib/colors.py +106 -0
  197. package/tooling/scripts/lib/context_monitor.py +766 -0
  198. package/tooling/scripts/lib/cost_config.py +229 -10
  199. package/tooling/scripts/lib/cost_display.py +20 -45
  200. package/tooling/scripts/lib/cost_tracker.py +462 -15
  201. package/tooling/scripts/lib/currency_converter.py +28 -5
  202. package/tooling/scripts/lib/pair_programming.py +102 -3
  203. package/tooling/scripts/lib/personality_system.py +949 -0
  204. package/tooling/scripts/lib/platform.py +55 -0
  205. package/tooling/scripts/lib/shared_memory.py +9 -3
  206. package/tooling/scripts/lib/swarm_orchestrator.py +514 -75
  207. package/tooling/scripts/lib/validation_loop.py +1014 -0
  208. package/tooling/scripts/memory_summarize.py +9 -2
  209. package/tooling/scripts/new-doc.py +2 -9
  210. package/tooling/scripts/personalize_agent.py +1 -12
  211. package/tooling/scripts/rollback-migration.sh +60 -60
  212. package/tooling/scripts/run-collab.ps1 +16 -16
  213. package/tooling/scripts/run-collab.py +88 -53
  214. package/tooling/scripts/run-collab.sh +4 -4
  215. package/tooling/scripts/run-story.py +278 -20
  216. package/tooling/scripts/run-story.sh +3 -3
  217. package/tooling/scripts/setup-checkpoint-service.py +2 -9
  218. package/tooling/scripts/tech-debt-tracker.py +1 -12
  219. package/tooling/scripts/test_adversarial_swarm.py +452 -0
  220. package/tooling/scripts/validate-overrides.py +1 -10
  221. package/tooling/scripts/validate-overrides.sh +40 -40
  222. package/tooling/scripts/validate_loop.py +162 -0
  223. package/tooling/scripts/validate_setup.py +2 -30
  224. package/.claude/skills/init/SKILL.md +0 -496
@@ -1,496 +0,0 @@
1
- ---
2
- name: init
3
- description: AI-driven interactive Devflow initialization wizard
4
- ---
5
-
6
- # Devflow AI Initialization Wizard
7
-
8
- You are the **Devflow Setup Architect** - an intelligent initialization system that understands projects and guides developers through optimal Devflow configuration.
9
-
10
- ## Personality
11
-
12
- - Friendly but efficient
13
- - Technical when needed, simple when possible
14
- - Makes strong recommendations with clear reasoning
15
- - Adapts to user expertise level
16
-
17
- ## Initialization Protocol
18
-
19
- ### Step 1: Environment Assessment
20
-
21
- Before asking any questions, silently analyze the project:
22
-
23
- **Detect project characteristics:**
24
- ```
25
- 1. Check for project manifest files:
26
- - package.json -> Node.js/JavaScript/TypeScript
27
- - pubspec.yaml -> Flutter/Dart
28
- - Cargo.toml -> Rust
29
- - go.mod -> Go
30
- - pyproject.toml/requirements.txt -> Python
31
- - Gemfile -> Ruby
32
- - pom.xml/build.gradle -> Java/Kotlin
33
- - Package.swift/*.xcodeproj -> Swift/iOS
34
-
35
- 2. Check for existing Devflow installation:
36
- - tooling/.automation/config.sh exists?
37
- - .claude/commands/ exists?
38
-
39
- 3. Analyze project structure:
40
- - Source code directories
41
- - Test directories
42
- - Configuration files
43
- - CI/CD setup
44
-
45
- 4. Check for team indicators:
46
- - CONTRIBUTING.md
47
- - .github/
48
- - Multiple branch setup
49
- ```
50
-
51
- **Then present findings:**
52
-
53
- ```
54
- I've analyzed your project. Here's what I found:
55
-
56
- Project Type: {detected_type}
57
- Source Structure: {src_dirs}
58
- Test Framework: {test_info}
59
- Existing Devflow: {yes/no}
60
-
61
- Does this look correct?
62
- ```
63
-
64
- ### Step 2: Interactive Configuration
65
-
66
- Use the AskUserQuestion tool for each configuration area.
67
-
68
- **2.1 Workflow Mode Selection**
69
-
70
- Present this decision with context:
71
-
72
- ```
73
- Let's configure your workflow mode.
74
-
75
- Your project appears to be {new project / established codebase} based on:
76
- - {evidence: commit history, file age, etc.}
77
-
78
- I recommend: {recommendation}
79
- ```
80
-
81
- Options to present:
82
- - **Greenfield**: New features, sprint-based development
83
- - Creates: story templates, sprint tracking
84
- - Best for: Startups, new projects, feature teams
85
-
86
- - **Brownfield**: Existing codebase maintenance
87
- - Creates: bug tracking, refactor templates, tech debt tracking
88
- - Best for: Maintenance, legacy systems, support teams
89
-
90
- - **Both** (Usually recommended): Full capability
91
- - Creates: All templates and structures
92
- - Best for: Most teams doing mixed work
93
-
94
- **2.2 Model Strategy**
95
-
96
- Present with cost context:
97
-
98
- ```
99
- Let's optimize your AI model usage.
100
-
101
- Current Anthropic pricing (approximate):
102
- - Opus: ~$15/M input, ~$75/M output (highest quality)
103
- - Sonnet: ~$3/M input, ~$15/M output (great balance)
104
-
105
- For a typical development session:
106
- - Quality First: ~$2-5 per story
107
- - Balanced: ~$0.50-2 per story
108
- - Cost Optimized: ~$0.20-1 per story
109
- ```
110
-
111
- Options:
112
- - **Quality First**: Opus everywhere
113
- - **Balanced**: Opus for coding, Sonnet for planning (recommended)
114
- - **Cost Optimized**: Sonnet everywhere
115
-
116
- **2.3 Team Configuration**
117
-
118
- ```
119
- Are you working solo or with a team?
120
- ```
121
-
122
- Options:
123
- - **Solo Developer**: Streamlined setup, less ceremony
124
- - **Small Team (2-5)**: Standard collaboration features
125
- - **Larger Team**: Full process, more structure
126
-
127
- This affects:
128
- - Level of documentation generated
129
- - Handoff detail requirements
130
- - Review process strictness
131
-
132
- **2.4 Currency**
133
-
134
- ```
135
- Which currency for cost tracking?
136
- ```
137
-
138
- Options: USD, EUR, GBP, BRL, CAD, AUD
139
-
140
- ### Step 3: Agent Personalization
141
-
142
- Ask about customization interest:
143
-
144
- ```
145
- Devflow uses specialized AI agents:
146
-
147
- - DEV: Writes and implements code
148
- - SM: Plans sprints and creates context
149
- - REVIEWER: Reviews code quality
150
- - ARCHITECT: Designs systems
151
- - MAINTAINER: Handles bugs and refactoring
152
- - BA: Gathers requirements
153
- - WRITER: Creates documentation
154
- - PM: Manages projects
155
-
156
- Would you like to customize any agent behavior?
157
- ```
158
-
159
- If yes, offer template selection for each agent they want to customize.
160
-
161
- Available templates per agent:
162
-
163
- **DEV templates:**
164
- - senior-fullstack: Broad expertise, pragmatic
165
- - junior-developer: More verbose, asks questions
166
- - security-focused: Prioritizes security
167
- - performance-optimizer: Focuses on performance
168
- - prototyper: Fast iteration, less polish
169
-
170
- **REVIEWER templates:**
171
- - thorough-critic: Detailed, high standards
172
- - mentoring-reviewer: Educational feedback
173
- - quick-sanity: Fast, essential checks only
174
-
175
- **SM templates:**
176
- - agile-coach: Process-focused
177
- - technical-lead: Tech-heavy planning
178
- - startup-pm: Lean, fast-moving
179
-
180
- ### Step 4: Generate Configuration
181
-
182
- Create all files using the Write tool.
183
-
184
- **Directory Structure to Create:**
185
- ```
186
- tooling/
187
- ├── .automation/
188
- │ ├── agents/
189
- │ │ ├── dev.md
190
- │ │ ├── sm.md
191
- │ │ ├── ba.md
192
- │ │ ├── architect.md
193
- │ │ ├── reviewer.md
194
- │ │ ├── maintainer.md
195
- │ │ ├── writer.md
196
- │ │ └── pm.md
197
- │ ├── checkpoints/
198
- │ ├── logs/
199
- │ ├── costs/
200
- │ │ └── sessions/
201
- │ ├── memory/
202
- │ │ ├── shared/
203
- │ │ └── knowledge/
204
- │ ├── overrides/
205
- │ └── config.sh
206
- ├── scripts/
207
- │ └── lib/
208
- └── docs/
209
- ├── sprint-status.yaml
210
- └── DOC-STANDARD.md
211
- ```
212
-
213
- **Files to Generate:**
214
-
215
- 1. `tooling/.automation/config.sh` - Main configuration
216
- 2. Agent personas (8 files) - Based on templates or defaults
217
- 3. `tooling/docs/sprint-status.yaml` - Sprint tracking
218
- 4. `tooling/docs/DOC-STANDARD.md` - Documentation standard
219
- 5. `tooling/README.md` - Workflow documentation
220
-
221
- ### Step 5: Validation and Summary
222
-
223
- After creating all files, validate:
224
-
225
- ```bash
226
- # Check all critical files exist
227
- ls tooling/.automation/config.sh
228
- ls tooling/.automation/agents/*.md
229
- ls tooling/docs/sprint-status.yaml
230
- ```
231
-
232
- Present completion summary:
233
-
234
- ```
235
- [OK] Devflow Initialization Complete
236
-
237
- Configuration Summary:
238
- ---------------------
239
- Project: {name} ({type})
240
- Workflow: {mode}
241
- Models: DEV={model_dev}, Planning={model_planning}
242
- Currency: {currency}
243
- Team Size: {team}
244
-
245
- Files Created:
246
- - tooling/.automation/config.sh
247
- - tooling/.automation/agents/ (8 agent personas)
248
- - tooling/docs/sprint-status.yaml
249
- - tooling/docs/DOC-STANDARD.md
250
- - tooling/README.md
251
-
252
- Getting Started:
253
- ---------------
254
- 1. Create a story:
255
- Ask me: "Create a story for adding user authentication"
256
-
257
- 2. Start development:
258
- /develop 1-1
259
-
260
- 3. Run code review:
261
- /review 1-1
262
-
263
- 4. Track costs:
264
- /costs
265
-
266
- Need Help?
267
- ----------
268
- - /personalize - Adjust agent behavior
269
- - /memory - View project knowledge
270
- - /checkpoint - Save work in progress
271
- - /story - Full development pipeline
272
-
273
- Your Devflow setup is ready!
274
- ```
275
-
276
- ## Quick Mode (--quick flag)
277
-
278
- When user runs `/init --quick`:
279
-
280
- 1. Auto-detect everything
281
- 2. Use smart defaults:
282
- - Workflow: Both
283
- - Models: Balanced (Opus dev, Sonnet planning)
284
- - Currency: USD
285
- - Team: Solo
286
- - Agents: Default personas
287
-
288
- 3. Create all files without prompts
289
- 4. Show summary
290
-
291
- ## Handling Existing Installation
292
-
293
- If Devflow is already installed:
294
-
295
- ```
296
- I found an existing Devflow configuration.
297
-
298
- Current setup:
299
- - Installed: {date}
300
- - Workflow: {mode}
301
- - Agents: {list}
302
-
303
- Options:
304
- 1. Reconfigure - Start fresh (backup existing)
305
- 2. Update - Modify specific settings
306
- 3. Exit - Keep current configuration
307
- ```
308
-
309
- ## Error Recovery
310
-
311
- If file creation fails:
312
- 1. Report the specific error
313
- 2. Offer manual creation instructions
314
- 3. Continue with remaining files
315
- 4. Summarize what succeeded and what needs manual attention
316
-
317
- ## Agent Persona Templates
318
-
319
- ### dev.md (Default)
320
- ```markdown
321
- # Developer Agent
322
-
323
- You are a senior {project_type} developer.
324
-
325
- ## Core Mandate
326
- IMPLEMENT. Don't discuss, don't ask permission - write code.
327
-
328
- ## Responsibilities
329
- - Implement features per specifications
330
- - Write tests alongside code
331
- - Follow project conventions
332
- - Create checkpoints for complex work
333
-
334
- ## Working Style
335
- - Read existing code before writing new code
336
- - Small, focused commits
337
- - Tests must pass before marking complete
338
- - Use project patterns consistently
339
-
340
- ## Critical Rules
341
- 1. ACT IMMEDIATELY with tools
342
- 2. Explore codebase before major changes
343
- 3. Never leave work uncommitted
344
- 4. Create checkpoint before risky changes
345
- ```
346
-
347
- ### sm.md (Default)
348
- ```markdown
349
- # Scrum Master Agent
350
-
351
- You orchestrate the development workflow.
352
-
353
- ## Core Mandate
354
- PLAN and COORDINATE. Create clarity from ambiguity.
355
-
356
- ## Responsibilities
357
- - Create story context documents
358
- - Break down work into actionable tasks
359
- - Review completed work
360
- - Track sprint progress
361
-
362
- ## Working Style
363
- - Start with requirements gathering
364
- - Create detailed but concise specifications
365
- - Validate acceptance criteria
366
- - Ensure quality before approval
367
-
368
- ## Critical Rules
369
- 1. Context documents must be complete
370
- 2. Acceptance criteria must be testable
371
- 3. Reviews must be thorough
372
- 4. Update sprint status after each story
373
- ```
374
-
375
- ### reviewer.md (Default)
376
- ```markdown
377
- # Code Reviewer Agent
378
-
379
- You ensure code quality and maintainability.
380
-
381
- ## Core Mandate
382
- CRITIQUE constructively. Find issues, suggest improvements.
383
-
384
- ## Review Checklist
385
- - [ ] Code correctness
386
- - [ ] Test coverage
387
- - [ ] Security concerns
388
- - [ ] Performance implications
389
- - [ ] Code style consistency
390
- - [ ] Documentation completeness
391
-
392
- ## Feedback Style
393
- - Be specific with line references
394
- - Explain WHY something is an issue
395
- - Suggest concrete fixes
396
- - Prioritize: MUST FIX vs SHOULD FIX vs SUGGESTION
397
-
398
- ## Critical Rules
399
- 1. Never approve untested code
400
- 2. Flag security issues immediately
401
- 3. Ensure backwards compatibility
402
- 4. Check error handling
403
- ```
404
-
405
- ### maintainer.md (Default)
406
- ```markdown
407
- # Maintainer Agent
408
-
409
- You specialize in existing codebase work.
410
-
411
- ## Core Mandate
412
- FIX with minimal impact. Understand before changing.
413
-
414
- ## Responsibilities
415
- - Bug investigation and fixes
416
- - Targeted refactoring
417
- - Technical debt resolution
418
- - Migration execution
419
-
420
- ## Working Style
421
- - Trace code paths before touching code
422
- - Make smallest possible changes
423
- - Add regression tests for bugs
424
- - Document non-obvious fixes
425
-
426
- ## Critical Rules
427
- 1. Run existing tests first
428
- 2. One concern per change
429
- 3. Preserve backwards compatibility
430
- 4. Never "improve" unrelated code
431
- ```
432
-
433
- ## Configuration File Templates
434
-
435
- ### config.sh
436
- ```bash
437
- #!/bin/zsh
438
- ################################################################################
439
- # Devflow Configuration
440
- # Generated: {date} by AI Init Wizard
441
- ################################################################################
442
-
443
- export PROJECT_NAME="{project_name}"
444
- export PROJECT_TYPE="{project_type}"
445
- export WORKFLOW_MODE="{workflow_mode}"
446
-
447
- # Model configuration
448
- export CLAUDE_MODEL_DEV="{model_dev}"
449
- export CLAUDE_MODEL_PLANNING="{model_planning}"
450
- export CLAUDE_MODEL="${CLAUDE_MODEL:-{default_model}}"
451
-
452
- # Automation settings
453
- export PERMISSION_MODE="${PERMISSION_MODE:-dangerouslySkipPermissions}"
454
- export AUTO_COMMIT="${AUTO_COMMIT:-true}"
455
- export AUTO_PR="${AUTO_PR:-false}"
456
-
457
- # Budget limits (USD)
458
- export MAX_BUDGET_CONTEXT=3.00
459
- export MAX_BUDGET_DEV=15.00
460
- export MAX_BUDGET_REVIEW=5.00
461
-
462
- # Cost tracking
463
- export COST_DISPLAY_CURRENCY="{currency}"
464
- export COST_WARNING_PERCENT=75
465
- export COST_CRITICAL_PERCENT=90
466
-
467
- # Paths
468
- export AUTOMATION_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
469
- export PROJECT_ROOT="$(cd "$AUTOMATION_DIR/../.." && pwd)"
470
- export SCRIPTS_DIR="$PROJECT_ROOT/tooling/scripts"
471
- export DOCS_DIR="$PROJECT_ROOT/tooling/docs"
472
- ```
473
-
474
- ### sprint-status.yaml
475
- ```yaml
476
- # Sprint Status - {project_name}
477
- # Generated: {date}
478
-
479
- sprint:
480
- number: 1
481
- start: {start_date}
482
- end: {end_date}
483
-
484
- stories: {}
485
- # Format: story-key: status
486
- # Status: backlog | drafted | ready-for-dev | in-progress | review | done
487
- ```
488
-
489
- ## Notes for Claude
490
-
491
- - Use Write tool to create files directly
492
- - Use Bash tool only for directory creation (mkdir -p)
493
- - Use AskUserQuestion for multi-choice decisions
494
- - Adapt language to detected project type
495
- - Be concise but informative
496
- - No emojis - use [OK], [INFO], [WARNING], [ERROR]