agentic-sdlc 1.0.0 → 1.5.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 (227) hide show
  1. package/.agent/ide-integration/INTEGRATION-SUMMARY.md +309 -0
  2. package/.agent/ide-integration/KIRO-IDE.md +381 -0
  3. package/.agent/ide-integration/README.md +256 -209
  4. package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +327 -0
  5. package/.agent/knowledge-base/HOW-IT-WORKS.md +365 -0
  6. package/.agent/knowledge-base/INDEX.md +43 -0
  7. package/.agent/knowledge-base/README.md +47 -7
  8. package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +1146 -0
  9. package/.agent/knowledge-base/architecture/README.md +98 -0
  10. package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +56 -0
  11. package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +198 -0
  12. package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +646 -0
  13. package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +945 -0
  14. package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +310 -0
  15. package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +324 -0
  16. package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +242 -0
  17. package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +148 -0
  18. package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +58 -0
  19. package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +46 -0
  20. package/.agent/knowledge-base/features/README.md +83 -0
  21. package/.agent/knowledge-base/features/figma-landing-page-workflow.md +311 -0
  22. package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +673 -0
  23. package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +459 -0
  24. package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +80 -0
  25. package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +56 -0
  26. package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +527 -0
  27. package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +491 -0
  28. package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +299 -0
  29. package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +555 -0
  30. package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +519 -0
  31. package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +74 -0
  32. package/.agent/rules/AUTO-LEARNING.md +418 -0
  33. package/.agent/rules/ai-enforcement.md +11 -0
  34. package/.agent/rules/artifacts.md +77 -58
  35. package/.agent/rules/git-workflow.md +25 -65
  36. package/.agent/rules/global.md +18 -13
  37. package/.agent/skills/role-ba.md +76 -0
  38. package/.agent/skills/role-brain.md +470 -0
  39. package/.agent/skills/role-dev.md +338 -0
  40. package/.agent/skills/role-devops.md +122 -0
  41. package/.agent/skills/role-orchestrator.md +223 -0
  42. package/.agent/skills/role-pm.md +258 -0
  43. package/.agent/skills/role-po.md +237 -0
  44. package/.agent/skills/role-qa.md +81 -0
  45. package/.agent/skills/role-reporter.md +117 -0
  46. package/.agent/skills/role-sa.md +277 -0
  47. package/.agent/skills/role-seca.md +294 -0
  48. package/.agent/skills/role-stakeholder.md +105 -0
  49. package/.agent/skills/role-tester.md +294 -0
  50. package/.agent/skills/role-uiux.md +264 -0
  51. package/.agent/templates/CHANGELOG-Template.md +83 -0
  52. package/.agent/templates/Knowledge-Entry-Template.md +3 -0
  53. package/.agent/workflows/brain.md +84 -53
  54. package/.agent/workflows/compound.md +51 -0
  55. package/.agent/workflows/cycle.md +61 -0
  56. package/.agent/workflows/emergency.md +114 -0
  57. package/.agent/workflows/explore.md +147 -0
  58. package/.agent/workflows/housekeeping.md +105 -0
  59. package/.agent/workflows/metrics.md +179 -0
  60. package/.agent/workflows/orchestrator.md +68 -0
  61. package/.agent/workflows/preflight.md +35 -0
  62. package/.agent/workflows/release.md +153 -0
  63. package/.agent/workflows/route.md +160 -0
  64. package/.agent/workflows/sprint.md +125 -0
  65. package/.agent/workflows/validate.md +146 -0
  66. package/CHANGELOG.md +349 -6
  67. package/README.md +171 -86
  68. package/bin/CROSS-PLATFORM-CLI.md +526 -0
  69. package/bin/README.md +525 -0
  70. package/bin/cli.js +65 -90
  71. package/bin/kb +34 -0
  72. package/bin/kb.bat +28 -0
  73. package/bin/kb_cli.py +226 -0
  74. package/bin/lib/README.md +411 -0
  75. package/bin/lib/__init__.py +7 -0
  76. package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
  77. package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
  78. package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
  79. package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
  80. package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
  81. package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
  82. package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
  83. package/bin/lib/kb_add.py +203 -0
  84. package/bin/lib/kb_common.py +224 -0
  85. package/bin/lib/kb_compound.py +250 -0
  86. package/bin/lib/kb_index.py +193 -0
  87. package/bin/lib/kb_list.py +144 -0
  88. package/bin/lib/kb_search.py +121 -0
  89. package/bin/lib/kb_stats.py +153 -0
  90. package/docs/AGENT-MANAGEMENT-GUIDE.md +298 -0
  91. package/docs/ARCHITECTURE-OVERVIEW.md +350 -0
  92. package/docs/BRAIN-ARCHITECTURE.md +396 -0
  93. package/docs/COMPOUND-ENGINEERING-SETUP.md +326 -0
  94. package/docs/KNOWLEDGE-BASE-GUIDE.md +330 -0
  95. package/docs/KNOWLEDGE-BASE-SIMPLE.md +248 -0
  96. package/docs/MONOREPO-ARCHITECTURE.md +492 -0
  97. package/docs/PROJECT-DOCUMENTATION-INDEX.md +540 -0
  98. package/docs/SDLC-Diagram.md +235 -0
  99. package/docs/analysis/Workflow-Optimization-Diagram.md +524 -0
  100. package/docs/analysis/Workflows-Deep-Analysis-2026-01-03.md +604 -0
  101. package/docs/architecture/{brain.md → BRAIN.md} +1 -1
  102. package/docs/global/Master-Documentation.md +307 -0
  103. package/docs/global/reports/Final-Approval-Report.md +257 -0
  104. package/docs/guides/AUTO-LEARNING-COMPLETE-GUIDE.md +519 -0
  105. package/docs/guides/AUTO-LEARNING-SYSTEM.md +322 -0
  106. package/docs/guides/LEARNING-FLOW.md +0 -0
  107. package/docs/guides/MCP-QUICK-REFERENCE.md +104 -0
  108. package/docs/guides/MCP-SETUP.md +139 -0
  109. package/docs/guides/QUICK-START.md +4 -0
  110. package/docs/guides/ROLE-COMMUNICATION-SYSTEM.md +71 -0
  111. package/docs/reports/Metrics-Dashboard-2026-01-02.md +66 -0
  112. package/docs/reports/Metrics-Dashboard-2026-01-04.md +68 -0
  113. package/docs/reports/UIUX-Design-Skills-Research-Report-2026.md +91 -0
  114. package/docs/reports/Validation-Report-2026-01-04.md +23 -0
  115. package/docs/research-reports/research-20260103-101315.json +95 -0
  116. package/docs/research-reports/research-20260103-101315.md +78 -0
  117. package/docs/research-reports/research-20260103-183837.json +95 -0
  118. package/docs/research-reports/research-20260103-183837.md +78 -0
  119. package/docs/research-reports/research-20260103-190346.json +100 -0
  120. package/docs/research-reports/research-20260103-190346.md +83 -0
  121. package/docs/setup/{github-management.md → GITHUB-MANAGEMENT.md} +1 -1
  122. package/docs/setup/RESEARCH-AGENT-SETUP.md +575 -0
  123. package/docs/sprints/{sprint-github-issues.md → SPRINT-GITHUB-ISSUES.md} +1 -1
  124. package/docs/sprints/{sprint-leann-integration.md → SPRINT-LEANN-INTEGRATION.md} +1 -1
  125. package/docs/sprints/sprint-1/designs/Backend-Design-Spec-Sprint-1-v1.md +1206 -0
  126. package/docs/sprints/sprint-1/designs/System-Design-Spec-Sprint-1-v1.md +439 -0
  127. package/docs/sprints/sprint-1/designs/System-Design-Spec-v1.0.md +425 -0
  128. package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-Sprint-1-v1.md +55 -0
  129. package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-v1.0.md +644 -0
  130. package/docs/sprints/sprint-1/logs/DevOps-Plan-and-Log-Sprint-1-v1.md +253 -0
  131. package/docs/sprints/sprint-1/logs/Development-Log-Phase1.md +433 -0
  132. package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1-v1.md +181 -0
  133. package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1.md +548 -0
  134. package/docs/sprints/sprint-1/logs/Orchestration-Log-Sprint-1.md +46 -0
  135. package/docs/sprints/sprint-1/logs/Phase1-Summary.md +84 -0
  136. package/docs/sprints/sprint-1/plans/Product-Backlog-Sprint-1-v1.md +40 -0
  137. package/docs/sprints/sprint-1/plans/Product-Backlog-v1.0.md +613 -0
  138. package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.0.md +210 -0
  139. package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.md +377 -0
  140. package/docs/sprints/sprint-1/reports/Design-Verification-Report-v1.0.md +220 -0
  141. package/docs/sprints/sprint-1/reports/Phase-Report-Sprint-1-v1.md +238 -0
  142. package/docs/sprints/sprint-1/reports/Security-Review-Report-v1.0.md +285 -0
  143. package/docs/sprints/sprint-1/reports/Sprint-Report-Sprint-1.md +74 -0
  144. package/docs/sprints/sprint-1/reports/Test-Report-v1.0.md +346 -0
  145. package/docs/sprints/sprint-1/reviews/Design-Verification-Report.md +508 -0
  146. package/docs/sprints/sprint-1/reviews/Security-Review-Report.md +589 -0
  147. package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-CLEANUP-FINAL.md +121 -0
  148. package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-OPTIMIZATION-COMPLETE.md +224 -0
  149. package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Progress.md +310 -0
  150. package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Session-Summary.md +420 -0
  151. package/docs/sprints/sprint-1/sprint-current/plans/Workflow-Optimization-Implementation-Plan.md +1124 -0
  152. package/docs/sprints/sprint-2/SPRINT-SUMMARY.md +150 -0
  153. package/docs/sprints/sprint-2/designs/UIUX-Design-Spec-Sprint-2-v1.md +352 -0
  154. package/docs/sprints/sprint-2/logs/Development-Log-Sprint-2-v1.md +293 -0
  155. package/docs/sprints/sprint-2/plans/Product-Backlog-Sprint-2-v1.md +62 -0
  156. package/docs/sprints/sprint-2/plans/Project-Plan-Sprint-2-v1.md +228 -0
  157. package/docs/sprints/sprint-2/reports/Phase-Report-Sprint-2-v1.md +303 -0
  158. package/docs/sprints/sprint-3/designs/UIUX-Design-Spec-Sprint-3-v1.md +160 -0
  159. package/docs/sprints/sprint-3/logs/Development-Log-Sprint-3-v1.md +249 -0
  160. package/docs/sprints/sprint-3/logs/Testing-Report-Sprint-3-v1.md +244 -0
  161. package/docs/sprints/sprint-3/plans/Product-Backlog-Sprint-3-v1.md +95 -0
  162. package/docs/sprints/sprint-3/reports/Final-Approval-Report-Sprint-3-v1.md +299 -0
  163. package/docs/sprints/sprint-3/reports/Sprint-Summary-Sprint-3-v1.md +276 -0
  164. package/docs/sprints/sprint-3/reviews/Design-Verification-Report-Sprint-3-v1.md +122 -0
  165. package/docs/sprints/sprint-3/reviews/Security-Review-Report-Sprint-3-v1.md +67 -0
  166. package/docs/sprints/sprint-5/designs/Backend-Design-Spec-Sprint-5-v1.md +1734 -0
  167. package/docs/sprints/sprint-5/designs/Design-Verification-Report.md +101 -0
  168. package/docs/sprints/sprint-5/designs/Security-Review-Report.md +84 -0
  169. package/docs/sprints/sprint-6/.brain-state.json +29 -0
  170. package/package.json +92 -16
  171. package/.agent/ide-integration/aider-commands.md +0 -40
  172. package/.agent/ide-integration/cline-config.json +0 -108
  173. package/.agent/ide-integration/cursor-rules.md +0 -63
  174. package/.agent/ide-integration/github-copilot-instructions.md +0 -75
  175. package/.agent/ide-integration/vscode-commands.json +0 -190
  176. package/.agent/ide-integration/windsurf-cascade.md +0 -125
  177. package/.agent/knowledge-base/index.md +0 -202
  178. package/.agent/legacy/roles/designer.md +0 -311
  179. package/.agent/legacy/roles/dev.md +0 -177
  180. package/.agent/legacy/roles/devops.md +0 -146
  181. package/.agent/legacy/roles/orchestrator.md +0 -339
  182. package/.agent/legacy/roles/pm.md +0 -120
  183. package/.agent/legacy/roles/po.md +0 -89
  184. package/.agent/legacy/roles/qa.md +0 -108
  185. package/.agent/legacy/roles/reporter.md +0 -70
  186. package/.agent/legacy/roles/sa.md +0 -118
  187. package/.agent/legacy/roles/seca.md +0 -112
  188. package/.agent/legacy/roles/stakeholder.md +0 -111
  189. package/.agent/legacy/roles/tester.md +0 -129
  190. package/.agent/rules/global.md.bak +0 -154
  191. package/.agent/usage.md +0 -653
  192. package/.agent/workflows/auto.md +0 -35
  193. package/.agent/workflows/dev.md +0 -30
  194. package/.agent/workflows/devops.md +0 -28
  195. package/.agent/workflows/kb-search.md +0 -22
  196. package/.agent/workflows/pm.md +0 -42
  197. package/.agent/workflows/po.md +0 -21
  198. package/.agent/workflows/qa.md +0 -31
  199. package/.agent/workflows/reporter.md +0 -21
  200. package/.agent/workflows/sa.md +0 -51
  201. package/.agent/workflows/seca.md +0 -21
  202. package/.agent/workflows/stakeholder.md +0 -26
  203. package/.agent/workflows/tester.md +0 -21
  204. package/.agent/workflows/uiux.md +0 -38
  205. package/.cursorrules +0 -49
  206. package/.env.template +0 -10
  207. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -47
  208. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  209. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -33
  210. package/.github/ISSUE_TEMPLATE/security_alert.yml +0 -28
  211. package/.github/ISSUE_TEMPLATE/task_implementation.yml +0 -37
  212. package/.github/copilot-instructions.md +0 -60
  213. package/bin/commands/create.js +0 -96
  214. package/bin/commands/help.js +0 -69
  215. package/bin/commands/ide.js +0 -116
  216. package/bin/commands/init-kb.js +0 -74
  217. package/bin/commands/install.js +0 -68
  218. package/bin/commands/list.js +0 -35
  219. package/bin/graph_brain.py +0 -86
  220. package/bin/sync_github.py +0 -75
  221. package/bin/utils/args-parser.js +0 -33
  222. package/bin/utils/colors.js +0 -21
  223. package/bin/verify_neo4j.py +0 -25
  224. /package/.agent/rules/{knowledge-base.md → KNOWLEDGE-BASE.md} +0 -0
  225. /package/docs/architecture/{neo4j-learning-queries.md → NEO4J-LEARNING-QUERIES.md} +0 -0
  226. /package/docs/reports/{comparison-leann-neo4j.md → COMPARISON-LEANN-NEO4J.md} +0 -0
  227. /package/docs/sprints/{sprint-neo4j-brain.md → SPRINT-NEO4J-BRAIN.md} +0 -0
@@ -0,0 +1,1124 @@
1
+ # Implementation Plan: Workflow Optimization
2
+ **Project:** Agentic SDLC Workflow Consolidation
3
+ **Date:** 2026-01-03
4
+ **Owner:** @PM + @ORCHESTRATOR
5
+ **Timeline:** 4 weeks
6
+ **Priority:** P1 (Important, not urgent)
7
+
8
+ ---
9
+
10
+ ## Executive Summary
11
+
12
+ **Goal:** Reduce workflows from 33 to 20 files (39% reduction) while improving quality and SDLC compliance.
13
+
14
+ **Why:** Current structure has too many overlapping workflows, causing confusion and maintenance burden.
15
+
16
+ **How:** Merge overlapping roles, consolidate duplicate processes, reorganize into clear hierarchy.
17
+
18
+ **Success Metric:** ≤ 20 workflows, 95% system health, 4-tier hierarchy, zero duplicate functionality.
19
+
20
+ ---
21
+
22
+ ## Phase 1: Preparation & Analysis (Week 1)
23
+
24
+ ### Day 1-2: Documentation Review
25
+ ```bash
26
+ # Create analysis workspace
27
+ mkdir -p docs/analysis/workflow-optimization/
28
+
29
+ # Inventory current state
30
+ ls -lh .agent/workflows/*.md > docs/analysis/workflow-optimization/current-inventory.txt
31
+
32
+ # Run validation
33
+ python tools/workflows/validate.py --full-report > docs/analysis/workflow-optimization/validation-before.txt
34
+ ```
35
+
36
+ **Deliverables:**
37
+ - [x] Current inventory documented
38
+ - [x] Validation baseline established
39
+ - [x] Analysis reports created (done above)
40
+
41
+ ### Day 3-4: Stakeholder Alignment
42
+ **Actions:**
43
+ - [ ] Present analysis to project team
44
+ - [ ] Get approval for consolidation plan
45
+ - [ ] Identify any custom workflows to preserve
46
+ - [ ] Set success criteria
47
+
48
+ **Stakeholders:**
49
+ - Project Owner
50
+ - Development Team
51
+ - Documentation Team
52
+
53
+ ### Day 5: Backup & Safety
54
+ ```bash
55
+ # Full backup
56
+ cp -r .agent/workflows .agent/workflows.backup-$(date +%Y%m%d)
57
+ tar -czf backups/workflows-pre-optimization-2026-01-03.tar.gz .agent/workflows/
58
+
59
+ # Git commit current state
60
+ git add .agent/workflows/
61
+ git commit -m "chore: backup workflows before optimization"
62
+ git tag workflow-optimization-baseline-2026-01-03
63
+ ```
64
+
65
+ **Deliverables:**
66
+ - [ ] Backup created (local + git tag)
67
+ - [ ] Recovery plan documented
68
+ - [ ] Rollback procedure tested
69
+
70
+ ---
71
+
72
+ ## Phase 2: Consolidation (Week 2)
73
+
74
+ ### Monday: Role Merging (Part 1)
75
+
76
+ #### Task 2.1: Merge PO → PM
77
+ ```bash
78
+ # Working file
79
+ code .agent/workflows/pm.md
80
+ ```
81
+
82
+ **Steps:**
83
+ 1. Open both pm.md and po.md
84
+ 2. Add new section in pm.md:
85
+ ```markdown
86
+ ## Product Owner Duties
87
+
88
+ ### Backlog Management
89
+ [Copy from po.md]
90
+
91
+ ### User Story Prioritization
92
+ [Copy from po.md]
93
+
94
+ ### Business Value Assessment
95
+ [Copy from po.md]
96
+ ```
97
+ 3. Integrate PO templates into PM templates
98
+ 4. Update MCP integration section
99
+ 5. Add PO skills to Neo4j integration
100
+ 6. Update tags: add `#product-owner`
101
+
102
+ **Acceptance Criteria:**
103
+ - [ ] All PO functionality in pm.md
104
+ - [ ] No duplicate content
105
+ - [ ] Templates merged cleanly
106
+ - [ ] References updated
107
+ - [ ] Tags updated
108
+
109
+ #### Task 2.2: Merge Reporter → PM
110
+ ```bash
111
+ code .agent/workflows/pm.md
112
+ ```
113
+
114
+ **Steps:**
115
+ 1. Add reporting section in pm.md:
116
+ ```markdown
117
+ ## Reporting Duties
118
+
119
+ ### Progress Reports
120
+ ### CHANGELOG Updates
121
+ ### Documentation Generation
122
+ ```
123
+ 2. Integrate reporter templates
124
+ 3. Add reporting workflow to handoff section
125
+
126
+ **Acceptance Criteria:**
127
+ - [ ] Reporting duties integrated
128
+ - [ ] Templates merged
129
+ - [ ] No functionality lost
130
+
131
+ #### Task 2.3: Merge Stakeholder → PM
132
+ ```bash
133
+ code .agent/workflows/pm.md
134
+ ```
135
+
136
+ **Steps:**
137
+ 1. Update approval gates section:
138
+ ```markdown
139
+ ## Approval Gates (Stakeholder Role)
140
+
141
+ ### Project Plan Approval
142
+ ### Design Review Approval
143
+ ### Final Delivery Approval
144
+ ```
145
+ 2. Add stakeholder communication patterns
146
+ 3. Update handoff templates
147
+
148
+ **Acceptance Criteria:**
149
+ - [ ] Approval process documented
150
+ - [ ] Communication templates added
151
+ - [ ] PM workflow now end-to-end
152
+
153
+ ---
154
+
155
+ ### Tuesday: Role Merging (Part 2)
156
+
157
+ #### Task 2.4: Merge QA → Tester
158
+ ```bash
159
+ code .agent/workflows/tester.md
160
+ ```
161
+
162
+ **Steps:**
163
+ 1. Add design verification section:
164
+ ```markdown
165
+ ## Design Verification (QA Phase)
166
+
167
+ ### Review Design Specs
168
+ ### Testability Assessment
169
+ ### Test Strategy Creation
170
+ ```
171
+ 2. Reorganize workflow:
172
+ - Phase 1: QA (before development)
173
+ - Phase 2: Testing (after development)
174
+ 3. Merge templates
175
+ 4. Update MCP integrations
176
+
177
+ **Acceptance Criteria:**
178
+ - [ ] QA + Testing unified
179
+ - [ ] Clear phase separation
180
+ - [ ] All templates merged
181
+
182
+ ---
183
+
184
+ ### Wednesday: Process Consolidation
185
+
186
+ #### Task 2.5: Merge auto.md → orchestrator.md
187
+ ```bash
188
+ code .agent/workflows/orchestrator.md
189
+ ```
190
+
191
+ **Steps:**
192
+ 1. Integrate auto.md content into orchestrator.md
193
+ 2. Add automation modes section
194
+ 3. Merge workflow coordination logic
195
+ 4. Update templates
196
+
197
+ **Acceptance Criteria:**
198
+ - [ ] Single orchestrator workflow
199
+ - [ ] All automation features present
200
+ - [ ] No duplicate logic
201
+
202
+ #### Task 2.6: Merge auto-learning → brain.md
203
+ ```bash
204
+ code .agent/workflows/brain.md
205
+ ```
206
+
207
+ **Steps:**
208
+ 1. Integrate automated learning triggers
209
+ 2. Add LEANN + Neo4j + Learning Engine sections
210
+ 3. Document parallel execution
211
+ 4. Add statistics and insights
212
+
213
+ **Acceptance Criteria:**
214
+ - [ ] Comprehensive brain workflow
215
+ - [ ] All learning features present
216
+ - [ ] Clear automation triggers
217
+
218
+ ---
219
+
220
+ ### Thursday: Support Consolidation
221
+
222
+ #### Task 2.7: Merge cleanup → housekeeping.md
223
+ ```bash
224
+ code .agent/workflows/housekeeping.md
225
+ ```
226
+
227
+ **Steps:**
228
+ 1. Integrate cleanup workflow steps
229
+ 2. Add quick reference to header
230
+ 3. Merge archival procedures
231
+ 4. Update index maintenance
232
+
233
+ **Acceptance Criteria:**
234
+ - [ ] Single maintenance workflow
235
+ - [ ] All cleanup features present
236
+ - [ ] Quick reference integrated
237
+
238
+ #### Task 2.8: Merge docs-updates → release.md
239
+ ```bash
240
+ code .agent/workflows/release.md
241
+ ```
242
+
243
+ **Steps:**
244
+ 1. Add documentation update section
245
+ 2. Integrate changelog generation
246
+ 3. Add versioning procedures
247
+ 4. Merge templates
248
+
249
+ **Acceptance Criteria:**
250
+ - [ ] Documentation updates in release flow
251
+ - [ ] Changelog automation complete
252
+ - [ ] Version bumping automated
253
+
254
+ ---
255
+
256
+ ### Friday: Quality Enhancement
257
+
258
+ #### Task 2.9: Expand sprint.md
259
+ ```bash
260
+ code .agent/workflows/sprint.md
261
+ ```
262
+
263
+ **Target:** 88 lines → 300+ lines
264
+
265
+ **Add Sections:**
266
+ - Sprint ceremonies (daily standup, review, retro)
267
+ - Burndown chart generation
268
+ - Velocity tracking
269
+ - Blocker management
270
+ - Sprint metrics
271
+
272
+ **Acceptance Criteria:**
273
+ - [ ] Comprehensive sprint workflow
274
+ - [ ] All agile ceremonies covered
275
+ - [ ] Metrics and analytics included
276
+
277
+ #### Task 2.10: Standardize All Roles
278
+ **Target:** All role workflows to BA quality level (250+ lines)
279
+
280
+ **For each:** dev.md, devops.md, sa.md, uiux.md, seca.md
281
+
282
+ **Add:**
283
+ - Comprehensive duties section
284
+ - Detailed templates
285
+ - MCP integration
286
+ - Neo4j skills
287
+ - Research mandate
288
+ - Handoff templates
289
+
290
+ **Acceptance Criteria:**
291
+ - [ ] All roles standardized
292
+ - [ ] 250+ lines minimum
293
+ - [ ] All sections present
294
+
295
+ ---
296
+
297
+ ## Phase 3: Reorganization (Week 3)
298
+
299
+ ### Monday: Directory Structure
300
+
301
+ #### Task 3.1: Create New Directories
302
+ ```bash
303
+ cd .agent/workflows/
304
+
305
+ # Create hierarchy
306
+ mkdir -p core process support utilities
307
+
308
+ # Verify
309
+ tree .agent/workflows/
310
+ ```
311
+
312
+ **Acceptance Criteria:**
313
+ - [ ] 4 directories created
314
+ - [ ] Structure matches design
315
+
316
+ ---
317
+
318
+ ### Tuesday-Wednesday: File Migration
319
+
320
+ #### Task 3.2: Move Core Roles
321
+ ```bash
322
+ # Move role workflows
323
+ mv pm.md ba.md sa.md uiux.md dev.md devops.md tester.md seca.md core/
324
+
325
+ # Verify
326
+ ls -l core/
327
+ ```
328
+
329
+ **Expected:** 8 files in core/
330
+
331
+ #### Task 3.3: Move Processes
332
+ ```bash
333
+ # Move process workflows
334
+ mv orchestrator.md cycle.md explore.md emergency.md sprint.md process/
335
+
336
+ # Verify
337
+ ls -l process/
338
+ ```
339
+
340
+ **Expected:** 5 files in process/
341
+
342
+ #### Task 3.4: Move Support
343
+ ```bash
344
+ # Move support workflows
345
+ mv compound.md brain.md route.md release.md housekeeping.md support/
346
+
347
+ # Verify
348
+ ls -l support/
349
+ ```
350
+
351
+ **Expected:** 5 files in support/
352
+
353
+ #### Task 3.5: Move Utilities
354
+ ```bash
355
+ # Move utilities
356
+ mv validate.md metrics.md utilities/
357
+
358
+ # Verify
359
+ ls -l utilities/
360
+ ```
361
+
362
+ **Expected:** 2 files in utilities/
363
+
364
+ **Total Check:** 8 + 5 + 5 + 2 = 20 files ✅
365
+
366
+ ---
367
+
368
+ ### Thursday: Archive Old Files
369
+
370
+ #### Task 3.6: Archive Deleted Workflows
371
+ ```bash
372
+ # Create archive
373
+ mkdir -p .agent/archive/workflows-consolidated-2026-01-03/
374
+
375
+ # Move deleted files
376
+ mv po.md qa.md reporter.md stakeholder.md \
377
+ auto.md auto-learning-workflow.md \
378
+ cleanup.md cleanup-quick-reference.md \
379
+ documentation-updates.md research.md kb-search.md \
380
+ .agent/archive/workflows-consolidated-2026-01-03/
381
+
382
+ # Document archive
383
+ echo "# Archived Workflows (2026-01-03)
384
+
385
+ These workflows were consolidated or deleted during optimization.
386
+
387
+ ## Merged into Other Workflows:
388
+ - po.md → pm.md
389
+ - qa.md → tester.md
390
+ - reporter.md → pm.md
391
+ - stakeholder.md → pm.md
392
+ - auto.md → orchestrator.md
393
+ - auto-learning-workflow.md → brain.md
394
+ - cleanup.md → housekeeping.md
395
+ - documentation-updates.md → release.md
396
+
397
+ ## Deleted (functionality moved elsewhere):
398
+ - research.md → embedded in role workflows
399
+ - kb-search.md → trivial wrapper, examples in compound.md
400
+ - cleanup-quick-reference.md → merged into housekeeping.md
401
+
402
+ See: docs/analysis/Workflows-Deep-Analysis-2026-01-03.md
403
+ " > .agent/archive/workflows-consolidated-2026-01-03/README.md
404
+ ```
405
+
406
+ #### Task 3.7: Move Setup Guides
407
+ ```bash
408
+ # Create setup directory
409
+ mkdir -p docs/setup/
410
+
411
+ # Move setup guides
412
+ mv git-kb-integration.md kb-hooks-setup.md docs/setup/
413
+
414
+ # Add README
415
+ echo "# Setup Guides
416
+
417
+ One-time setup instructions for Agentic SDLC components.
418
+
419
+ ## Available Guides:
420
+ - git-kb-integration.md - Integrate Git with Knowledge Base
421
+ - kb-hooks-setup.md - Setup Git hooks for KB automation
422
+ " > docs/setup/README.md
423
+ ```
424
+
425
+ ---
426
+
427
+ ### Friday: Create Index Files
428
+
429
+ #### Task 3.8: Core Index
430
+ ```bash
431
+ cat > .agent/workflows/core/INDEX.md << 'EOF'
432
+ # Core SDLC Role Workflows
433
+
434
+ **Purpose:** One workflow per SDLC phase/role
435
+ **Count:** 8 workflows
436
+
437
+ ## Planning & Requirements
438
+ 1. **pm.md** - Project Manager (Planning, Backlog, Reporting, Stakeholder)
439
+ 2. **ba.md** - Business Analyst (Requirements, Specifications, User Stories)
440
+
441
+ ## Design
442
+ 3. **sa.md** - System Analyst (Architecture, API Design)
443
+ 4. **uiux.md** - UI/UX Designer (Interface Design, Prototyping)
444
+
445
+ ## Verification
446
+ 5. **tester.md** - Tester (QA + Testing, Design Verification)
447
+ 6. **seca.md** - Security Analyst (Security Review, Threat Modeling)
448
+
449
+ ## Implementation & Deployment
450
+ 7. **dev.md** - Developer (Implementation, Code Review)
451
+ 8. **devops.md** - DevOps Engineer (Infrastructure, CI/CD, Deployment)
452
+
453
+ ---
454
+
455
+ **Usage:** `@ROLE` in prompts/commands
456
+ **Standard:** All workflows 250+ lines, comprehensive templates
457
+ EOF
458
+ ```
459
+
460
+ #### Task 3.9: Process Index
461
+ ```bash
462
+ cat > .agent/workflows/process/INDEX.md << 'EOF'
463
+ # Core Process Workflows
464
+
465
+ **Purpose:** Key SDLC processes and automation
466
+ **Count:** 5 workflows
467
+
468
+ ## Orchestration & Automation
469
+ 1. **orchestrator.md** - Workflow Automation (full-auto, semi-auto modes)
470
+
471
+ ## Development Processes
472
+ 2. **cycle.md** - Task Lifecycle (Plan → Work → Review → Compound)
473
+ 3. **explore.md** - Deep Investigation (Multi-order analysis before planning)
474
+
475
+ ## Incident & Sprint Management
476
+ 4. **emergency.md** - Incident Response (P0/P1/P2 handling)
477
+ 5. **sprint.md** - Sprint Management (Start → Daily → Review → Retro)
478
+
479
+ ---
480
+
481
+ **Usage:** `/workflow-name` in prompts
482
+ **Standard:** All workflows 200+ lines, clear step-by-step instructions
483
+ EOF
484
+ ```
485
+
486
+ #### Task 3.10: Support Index
487
+ ```bash
488
+ cat > .agent/workflows/support/INDEX.md << 'EOF'
489
+ # Support Workflows
490
+
491
+ **Purpose:** Learning, routing, release, maintenance
492
+ **Count:** 5 workflows
493
+
494
+ ## Knowledge & Learning
495
+ 1. **compound.md** - Knowledge Capture (Manual learning system)
496
+ 2. **brain.md** - AI Learning System (LEANN + Neo4j automation)
497
+
498
+ ## Process Support
499
+ 3. **route.md** - Workflow Selection Intelligence (Analyze → Recommend → Execute)
500
+ 4. **release.md** - Release Management (Changelog + Versioning + Docs)
501
+ 5. **housekeeping.md** - Maintenance (Archive + Cleanup + Index Updates)
502
+
503
+ ---
504
+
505
+ **Usage:** `/workflow-name` in prompts
506
+ **Standard:** All workflows 150+ lines, helpful for productivity
507
+ EOF
508
+ ```
509
+
510
+ #### Task 3.11: Utilities Index
511
+ ```bash
512
+ cat > .agent/workflows/utilities/INDEX.md << 'EOF'
513
+ # Utility Workflows
514
+
515
+ **Purpose:** System health and analytics
516
+ **Count:** 2 workflows
517
+
518
+ 1. **validate.md** - System Health Check (Path verification, tool validation)
519
+ 2. **metrics.md** - Analytics & Reporting (Performance tracking, statistics)
520
+
521
+ ---
522
+
523
+ **Usage:** `/workflow-name` for maintenance tasks
524
+ **Standard:** 100+ lines, automated where possible
525
+ EOF
526
+ ```
527
+
528
+ ---
529
+
530
+ ## Phase 4: Validation & Documentation (Week 4)
531
+
532
+ ### Monday: Update References
533
+
534
+ #### Task 4.1: Update global.md
535
+ ```bash
536
+ code .agent/rules/global.md
537
+ ```
538
+
539
+ **Changes:**
540
+ - Update available roles list (remove PO, QA, Reporter, Stakeholder, Orchestrator)
541
+ - Update workflow paths to new structure
542
+ - Add workflow hierarchy diagram
543
+ - Update examples
544
+
545
+ **Acceptance Criteria:**
546
+ - [ ] Role list accurate (8 roles)
547
+ - [ ] Paths updated
548
+ - [ ] Examples working
549
+
550
+ #### Task 4.2: Update .cursorrules
551
+ ```bash
552
+ code .cursorrules
553
+ ```
554
+
555
+ **Changes:**
556
+ - Reference new workflow paths
557
+ - Update role mentions
558
+ - Add hierarchy note
559
+
560
+ #### Task 4.3: Update .windsurfrules
561
+ ```bash
562
+ code .windsurfrules
563
+ ```
564
+
565
+ **Changes:**
566
+ - Same as .cursorrules
567
+
568
+ #### Task 4.4: Update GEMINI.md
569
+ ```bash
570
+ code GEMINI.md
571
+ ```
572
+
573
+ **Changes:**
574
+ - Update workflow count (33 → 20)
575
+ - Update directory structure
576
+ - Add new hierarchy diagram
577
+ - Update quick reference
578
+
579
+ ---
580
+
581
+ ### Tuesday: Create Decision Tools
582
+
583
+ #### Task 4.5: Workflow Decision Tree
584
+ ```bash
585
+ cat > .agent/workflows/DECISION-TREE.md << 'EOF'
586
+ # Which Workflow Should I Use?
587
+
588
+ ## Quick Decision Tree
589
+
590
+ 1. **Is this a production emergency?**
591
+ - YES → `/emergency`
592
+ - NO → Continue to 2
593
+
594
+ 2. **Are you unsure which workflow to use?**
595
+ - YES → `/route` (it will analyze and recommend)
596
+ - NO → Continue to 3
597
+
598
+ 3. **What are you trying to do?**
599
+
600
+ **Start a new project:**
601
+ - Complex/unknown → `/explore` first, then `@PM`
602
+ - Clear requirements → `@PM` directly
603
+
604
+ **Execute a small task (< 4 hours):**
605
+ - `/cycle`
606
+
607
+ **Document a solution:**
608
+ - `/compound`
609
+
610
+ **Investigate a complex feature:**
611
+ - `/explore`
612
+
613
+ **Handle a production incident:**
614
+ - `/emergency`
615
+
616
+ **Manage sprints:**
617
+ - Start: `/sprint start [N]`
618
+ - Review: `/sprint review`
619
+ - Retro: `/sprint retro`
620
+ - Close: `/sprint close [N]`
621
+
622
+ **Release a version:**
623
+ - `/release`
624
+
625
+ **Clean up project:**
626
+ - `/housekeeping`
627
+
628
+ **Check system health:**
629
+ - `/validate`
630
+
631
+ **View analytics:**
632
+ - `/metrics`
633
+
634
+ **Run full SDLC:**
635
+ - `@PM` → `@BA` → `@SA` + `@UIUX` → `@TESTER` + `@SECA` → `@DEV` + `@DEVOPS` → `@TESTER` → `@DEVOPS` → `@PM`
636
+
637
+ ## Role-Specific
638
+
639
+ **I need to:**
640
+ - Plan a project → `@PM`
641
+ - Gather requirements → `@BA`
642
+ - Design architecture → `@SA`
643
+ - Design UI/UX → `@UIUX`
644
+ - Implement code → `@DEV`
645
+ - Setup infrastructure → `@DEVOPS`
646
+ - Test/verify → `@TESTER`
647
+ - Security review → `@SECA`
648
+
649
+ ---
650
+
651
+ Still confused? Use `/route` - it's smart! 🧠
652
+ EOF
653
+ ```
654
+
655
+ #### Task 4.6: Workflow Catalog
656
+ ```bash
657
+ cat > .agent/workflows/README.md << 'EOF'
658
+ # Workflows Directory
659
+
660
+ **Total:** 20 workflows organized in 4 tiers
661
+
662
+ ## 📁 Structure
663
+
664
+ ```
665
+ workflows/
666
+ ├── core/ (8) - SDLC Role Workflows
667
+ ├── process/ (5) - Core Processes
668
+ ├── support/ (5) - Learning & Tools
669
+ └── utilities/ (2) - Health & Analytics
670
+ ```
671
+
672
+ ## 📚 Quick Links
673
+
674
+ - [Decision Tree](DECISION-TREE.md) - Which workflow to use?
675
+ - [Core Roles](core/INDEX.md)
676
+ - [Processes](process/INDEX.md)
677
+ - [Support](support/INDEX.md)
678
+ - [Utilities](utilities/INDEX.md)
679
+
680
+ ## 🎯 Most Common Workflows
681
+
682
+ 1. **`@PM`** - Start new projects, manage sprints
683
+ 2. **`@DEV`** - Implement features
684
+ 3. **`/cycle`** - Execute small tasks (< 4h)
685
+ 4. **`/compound`** - Capture learnings
686
+ 5. **`/emergency`** - Handle incidents
687
+
688
+ ## 📖 Documentation
689
+
690
+ - [Workflow Analysis](../../docs/analysis/Workflows-Deep-Analysis-2026-01-03.md)
691
+ - [Optimization Plan](../../docs/analysis/Workflow-Optimization-Diagram.md)
692
+ - [Implementation Plan](../../docs/sprints/sprint-X/plans/Workflow-Optimization-Plan.md)
693
+
694
+ ---
695
+
696
+ **Last Updated:** 2026-01-03
697
+ **Version:** 2.0 (Optimized)
698
+ EOF
699
+ ```
700
+
701
+ ---
702
+
703
+ ### Wednesday: Run Validation
704
+
705
+ #### Task 4.7: Automated Validation
706
+ ```bash
707
+ # Run full validation
708
+ python tools/workflows/validate.py --full-report > docs/analysis/workflow-optimization/validation-after.txt
709
+
710
+ # Compare before/after
711
+ diff docs/analysis/workflow-optimization/validation-before.txt \
712
+ docs/analysis/workflow-optimization/validation-after.txt
713
+ ```
714
+
715
+ **Expected Results:**
716
+ - [ ] All workflow paths valid
717
+ - [ ] No broken references
718
+ - [ ] All tools referenced exist
719
+ - [ ] Health score ≥ 95%
720
+
721
+ #### Task 4.8: Manual Testing
722
+ ```bash
723
+ # Test each workflow command
724
+ @PM /help
725
+ @BA /help
726
+ /cycle --help
727
+ /compound --help
728
+ /emergency --help
729
+ /route --help
730
+ ```
731
+
732
+ **Test Checklist:**
733
+ - [ ] All role mentions work
734
+ - [ ] All /slash commands work
735
+ - [ ] Templates accessible
736
+ - [ ] MCPs referenced correctly
737
+ - [ ] Neo4j integration works
738
+
739
+ ---
740
+
741
+ ### Thursday: Documentation
742
+
743
+ #### Task 4.9: Migration Guide
744
+ ```bash
745
+ cat > docs/guides/WORKFLOW-MIGRATION-GUIDE.md << 'EOF'
746
+ # Workflow Migration Guide (v1 → v2)
747
+
748
+ ## What Changed?
749
+
750
+ **Old Structure (33 workflows):**
751
+ - Mixed roles, processes, utilities in single directory
752
+ - Many overlapping workflows
753
+ - No clear hierarchy
754
+
755
+ **New Structure (20 workflows):**
756
+ - 4-tier hierarchy (core/process/support/utilities)
757
+ - Consolidated overlapping workflows
758
+ - Standardized quality
759
+
760
+ ## Workflow Mapping
761
+
762
+ ### Deleted (Merged into Others)
763
+
764
+ | Old Workflow | New Location | Notes |
765
+ |--------------|--------------|-------|
766
+ | po.md | pm.md | Product Owner duties in PM workflow |
767
+ | qa.md | tester.md | QA merged into Testing workflow |
768
+ | reporter.md | pm.md | Reporting is PM duty |
769
+ | stakeholder.md | pm.md | Stakeholder approval in PM workflow |
770
+ | orchestrator.md | process/orchestrator.md | Merged with auto.md |
771
+ | auto.md | process/orchestrator.md | Now the primary orchestrator |
772
+ | auto-learning-workflow.md | support/brain.md | Automated learning in Brain |
773
+ | cleanup.md | support/housekeeping.md | Cleanup in Housekeeping |
774
+ | documentation-updates.md | support/release.md | Docs in Release workflow |
775
+ | research.md | (embedded) | Research step in all role workflows |
776
+ | kb-search.md | (deleted) | Examples in compound.md |
777
+ | cleanup-quick-reference.md | support/housekeeping.md | Reference in header |
778
+
779
+ ### Moved (New Paths)
780
+
781
+ | Old Path | New Path | Category |
782
+ |----------|----------|----------|
783
+ | pm.md | core/pm.md | Role |
784
+ | ba.md | core/ba.md | Role |
785
+ | sa.md | core/sa.md | Role |
786
+ | uiux.md | core/uiux.md | Role |
787
+ | dev.md | core/dev.md | Role |
788
+ | devops.md | core/devops.md | Role |
789
+ | tester.md | core/tester.md | Role |
790
+ | seca.md | core/seca.md | Role |
791
+ | cycle.md | process/cycle.md | Process |
792
+ | explore.md | process/explore.md | Process |
793
+ | emergency.md | process/emergency.md | Process |
794
+ | sprint.md | process/sprint.md | Process |
795
+ | compound.md | support/compound.md | Support |
796
+ | brain.md | support/brain.md | Support |
797
+ | route.md | support/route.md | Support |
798
+ | release.md | support/release.md | Support |
799
+ | housekeeping.md | support/housekeeping.md | Support |
800
+ | validate.md | utilities/validate.md | Utility |
801
+ | metrics.md | utilities/metrics.md | Utility |
802
+
803
+ ## Usage Changes
804
+
805
+ ### Before:
806
+ ```
807
+ @PM /help
808
+ @PO /help
809
+ @QA /help
810
+ @REPORTER /help
811
+ ```
812
+
813
+ ### After:
814
+ ```
815
+ @PM /help # Now includes PO, Reporter, Stakeholder duties
816
+ @TESTER /help # Now includes QA duties
817
+ ```
818
+
819
+ ### Before:
820
+ ```
821
+ /auto
822
+ /orchestrator
823
+ ```
824
+
825
+ ### After:
826
+ ```
827
+ /orchestrator # Unified automation
828
+ ```
829
+
830
+ ## Backward Compatibility
831
+
832
+ We've added redirects for old workflow names. If you use:
833
+ - `@PO` → redirects to `@PM`
834
+ - `@QA` → redirects to `@TESTER`
835
+ - `/auto` → redirects to `/orchestrator`
836
+
837
+ However, please update your usage to new names.
838
+
839
+ ## Benefits
840
+
841
+ - **39% fewer files** (33 → 20)
842
+ - **Clearer organization** (4-tier hierarchy)
843
+ - **Higher quality** (all workflows standardized)
844
+ - **Easier discovery** (index files, decision tree)
845
+ - **Better SDLC compliance** (strict phase mapping)
846
+
847
+ ## Getting Help
848
+
849
+ - Unsure which workflow? → Use `/route`
850
+ - See decision tree: `.agent/workflows/DECISION-TREE.md`
851
+ - See catalog: `.agent/workflows/README.md`
852
+
853
+ EOF
854
+ ```
855
+
856
+ ---
857
+
858
+ ### Friday: Final Review & Release
859
+
860
+ #### Task 4.10: Code Review
861
+ **Reviewers:** @PM, @BA, @SA, @SECA
862
+
863
+ **Review Checklist:**
864
+ - [ ] All merged workflows complete
865
+ - [ ] No functionality lost
866
+ - [ ] Quality standardized
867
+ - [ ] References updated
868
+ - [ ] Documentation complete
869
+
870
+ #### Task 4.11: Git Commit
871
+ ```bash
872
+ # Stage changes
873
+ git add .agent/workflows/
874
+ git add .agent/archive/
875
+ git add docs/setup/
876
+ git add docs/analysis/
877
+ git add docs/guides/
878
+
879
+ # Commit
880
+ git commit -m "refactor(workflows): optimize structure from 33 to 20 workflows
881
+
882
+ BREAKING CHANGE: Workflow structure reorganized
883
+
884
+ - Merged overlapping roles (PO→PM, QA→Tester, etc.)
885
+ - Reorganized into 4-tier hierarchy (core/process/support/utilities)
886
+ - Consolidated duplicate processes
887
+ - Standardized quality across all workflows
888
+ - Added comprehensive documentation and decision tools
889
+
890
+ Migration guide: docs/guides/WORKFLOW-MIGRATION-GUIDE.md
891
+ Analysis: docs/analysis/Workflows-Deep-Analysis-2026-01-03.md
892
+
893
+ Closes #[issue-number]
894
+ "
895
+
896
+ # Tag release
897
+ git tag -a v2.0.0-workflows -m "Workflow Optimization Release
898
+
899
+ - 33 → 20 workflows (39% reduction)
900
+ - 4-tier hierarchy
901
+ - Standardized quality
902
+ - Complete documentation
903
+ "
904
+
905
+ # Push
906
+ git push origin main
907
+ git push origin v2.0.0-workflows
908
+ ```
909
+
910
+ #### Task 4.12: Announcement
911
+ ```markdown
912
+ # 🎉 Workflow Optimization Complete!
913
+
914
+ We've streamlined our workflows from 33 to 20 files (39% reduction!)
915
+
916
+ ## What's New?
917
+
918
+ ✅ **Clearer Organization**
919
+ - 📁 core/ - 8 SDLC roles
920
+ - 📁 process/ - 5 core processes
921
+ - 📁 support/ - 5 support tools
922
+ - 📁 utilities/ - 2 system utils
923
+
924
+ ✅ **Easier to Use**
925
+ - Decision tree to find right workflow
926
+ - Comprehensive index files
927
+ - Slash command help
928
+
929
+ ✅ **Higher Quality**
930
+ - All workflows standardized
931
+ - Comprehensive templates
932
+ - Better examples
933
+
934
+ ## Migration
935
+
936
+ See: [Migration Guide](docs/guides/WORKFLOW-MIGRATION-GUIDE.md)
937
+
938
+ ## Help
939
+
940
+ - Use `/route` if unsure which workflow
941
+ - See decision tree: `.agent/workflows/DECISION-TREE.md`
942
+ - Read analysis: `docs/analysis/Workflows-Deep-Analysis-2026-01-03.md`
943
+
944
+ ---
945
+
946
+ Questions? Tag @PM or @ORCHESTRATOR
947
+ ```
948
+
949
+ ---
950
+
951
+ ## Success Metrics
952
+
953
+ ### Quantitative
954
+ - [x] Reduce workflows: 33 → 20 ✅
955
+ - [ ] System health: ≥ 95%
956
+ - [ ] Validation passing: 100%
957
+ - [ ] Average quality: ≥ 250 lines per workflow
958
+ - [ ] Documentation coverage: ≥ 95%
959
+
960
+ ### Qualitative
961
+ - [ ] User satisfaction survey: ≥ 4/5
962
+ - [ ] Reduced confusion reports
963
+ - [ ] Easier onboarding
964
+ - [ ] Better SDLC compliance
965
+ - [ ] Professional appearance
966
+
967
+ ---
968
+
969
+ ## Risk Mitigation
970
+
971
+ ### Risk 1: Breaking Existing Usage
972
+ **Mitigation:**
973
+ - Add redirects for old workflow names
974
+ - Provide comprehensive migration guide
975
+ - Gradual rollout with announcement
976
+ - Backward compatibility period (4 weeks)
977
+
978
+ ### Risk 2: Lost Functionality
979
+ **Mitigation:**
980
+ - Careful content merge (no deletion without review)
981
+ - QA review of all merged workflows
982
+ - Test all features before/after
983
+ - Keep backups for 90 days
984
+
985
+ ### Risk 3: User Resistance
986
+ **Mitigation:**
987
+ - Clear communication of benefits
988
+ - Provide decision tools (/route, decision tree)
989
+ - Offer migration support
990
+ - Document all changes
991
+
992
+ ### Risk 4: Validation Failures
993
+ **Mitigation:**
994
+ - Run validate.py before each commit
995
+ - Test all slash commands
996
+ - Check all role mentions
997
+ - Verify all tool references
998
+
999
+ ---
1000
+
1001
+ ## Rollback Plan
1002
+
1003
+ If major issues occur:
1004
+
1005
+ ```bash
1006
+ # Emergency rollback
1007
+ cd .agent/
1008
+ rm -rf workflows/
1009
+ cp -r workflows.backup-20260103 workflows/
1010
+
1011
+ # Or restore from git
1012
+ git checkout workflow-optimization-baseline-2026-01-03 -- .agent/workflows/
1013
+
1014
+ # Notify team
1015
+ echo "Workflow optimization rolled back due to [reason]"
1016
+ echo "Re-evaluating approach"
1017
+ ```
1018
+
1019
+ ---
1020
+
1021
+ ## Communication Plan
1022
+
1023
+ ### Week 1 (Preparation)
1024
+ - [ ] Analysis shared with team
1025
+ - [ ] Feedback collected
1026
+ - [ ] Plan approved
1027
+
1028
+ ### Week 2 (Consolidation)
1029
+ - [ ] Daily updates on progress
1030
+ - [ ] Preview of merged workflows
1031
+ - [ ] Early access for testing
1032
+
1033
+ ### Week 3 (Reorganization)
1034
+ - [ ] New structure demo
1035
+ - [ ] Migration guide draft
1036
+ - [ ] User testing
1037
+
1038
+ ### Week 4 (Launch)
1039
+ - [ ] Final announcement
1040
+ - [ ] Migration guide published
1041
+ - [ ] Support available for questions
1042
+ - [ ] Monitor usage and feedback
1043
+
1044
+ ---
1045
+
1046
+ ## Post-Launch (Week 5+)
1047
+
1048
+ ### Week 5: Monitoring
1049
+ - [ ] Collect usage analytics
1050
+ - [ ] Monitor validation scores
1051
+ - [ ] Gather user feedback
1052
+ - [ ] Fix any issues
1053
+
1054
+ ### Week 6-8: Optimization
1055
+ - [ ] Refine workflows based on feedback
1056
+ - [ ] Improve documentation
1057
+ - [ ] Enhance decision tools
1058
+ - [ ] Update examples
1059
+
1060
+ ### Week 12: Review
1061
+ - [ ] Measure success metrics
1062
+ - [ ] User satisfaction survey
1063
+ - [ ] Document lessons learned
1064
+ - [ ] Plan next optimization
1065
+
1066
+ ---
1067
+
1068
+ ## Appendix
1069
+
1070
+ ### File Checklist
1071
+
1072
+ **Week 2 (Merge):**
1073
+ - [ ] pm.md (merged: po, reporter, stakeholder)
1074
+ - [ ] tester.md (merged: qa)
1075
+ - [ ] orchestrator.md (merged: auto)
1076
+ - [ ] brain.md (merged: auto-learning-workflow)
1077
+ - [ ] housekeeping.md (merged: cleanup, cleanup-quick-ref)
1078
+ - [ ] release.md (merged: documentation-updates)
1079
+ - [ ] sprint.md (expanded)
1080
+
1081
+ **Week 3 (Reorganize):**
1082
+ - [ ] core/ created with 8 files
1083
+ - [ ] process/ created with 5 files
1084
+ - [ ] support/ created with 5 files
1085
+ - [ ] utilities/ created with 2 files
1086
+ - [ ] Archive created
1087
+ - [ ] Setup guides moved
1088
+
1089
+ **Week 4 (Document):**
1090
+ - [ ] global.md updated
1091
+ - [ ] .cursorrules updated
1092
+ - [ ] .windsurfrules updated
1093
+ - [ ] GEMINI.md updated
1094
+ - [ ] DECISION-TREE.md created
1095
+ - [ ] README.md created
1096
+ - [ ] INDEX.md × 4 created
1097
+ - [ ] Migration guide created
1098
+
1099
+ ### Command Reference
1100
+
1101
+ ```bash
1102
+ # Validate workflows
1103
+ python tools/workflows/validate.py --full-report
1104
+
1105
+ # Count workflows
1106
+ find .agent/workflows -name "*.md" -type f | wc -l
1107
+
1108
+ # Measure quality
1109
+ wc -l .agent/workflows/*/*.md
1110
+
1111
+ # Test workflow
1112
+ @PM /help
1113
+
1114
+ # Search workflow
1115
+ grep -r "specific term" .agent/workflows/
1116
+ ```
1117
+
1118
+ ---
1119
+
1120
+ **Owner:** @PM + @ORCHESTRATOR
1121
+ **Status:** Draft → In Progress → Complete
1122
+ **Last Updated:** 2026-01-03
1123
+
1124
+ #implementation-plan #workflow-optimization #project-management