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,524 @@
1
+ # Workflow Optimization: Visual Comparison
2
+
3
+ ## Current State (33 Workflows) - BLOATED ❌
4
+
5
+ ```
6
+ ┌────────────────────────────────────────────────────────────────────┐
7
+ │ CURRENT STRUCTURE │
8
+ │ (33 FILES) │
9
+ ├────────────────────────────────────────────────────────────────────┤
10
+ │ │
11
+ │ Role Workflows (13) - Mixed Complexity │
12
+ │ ┌────────────────────────────────────────────────────────────┐ │
13
+ │ │ pm.md, ba.md, po.md, sa.md, uiux.md, qa.md, seca.md, │ │
14
+ │ │ dev.md, devops.md, tester.md, reporter.md, stakeholder.md, │ │
15
+ │ │ orchestrator.md │ │
16
+ │ └────────────────────────────────────────────────────────────┘ │
17
+ │ │
18
+ │ Process Workflows (10) - Many Duplicates │
19
+ │ ┌────────────────────────────────────────────────────────────┐ │
20
+ │ │ auto.md ⚠️ (dup with orchestrator) │ │
21
+ │ │ cycle.md ✅ │ │
22
+ │ │ compound.md ✅ │ │
23
+ │ │ auto-learning-workflow.md ⚠️ (dup with compound+brain) │ │
24
+ │ │ explore.md ✅ │ │
25
+ │ │ emergency.md ✅ │ │
26
+ │ │ sprint.md ✅ (too minimal) │ │
27
+ │ │ route.md ✅ │ │
28
+ │ │ cleanup.md ⚠️ (dup with housekeeping) │ │
29
+ │ │ housekeeping.md ✅ │ │
30
+ │ └────────────────────────────────────────────────────────────┘ │
31
+ │ │
32
+ │ Utility/Meta (10) - BLOAT │
33
+ │ ┌────────────────────────────────────────────────────────────┐ │
34
+ │ │ brain.md ✅ │ │
35
+ │ │ research.md ⚠️ (already in roles) │ │
36
+ │ │ kb-search.md ⚠️ (659 bytes - trivial) │ │
37
+ │ │ git-kb-integration.md ⚠️ (setup, not workflow) │ │
38
+ │ │ kb-hooks-setup.md ⚠️ (setup, not workflow) │ │
39
+ │ │ cleanup-quick-reference.md ⚠️ (just reference) │ │
40
+ │ │ documentation-updates.md ⚠️ (should be in release) │ │
41
+ │ │ validate.md ✅ │ │
42
+ │ │ metrics.md ✅ │ │
43
+ │ │ release.md ✅ │ │
44
+ │ └────────────────────────────────────────────────────────────┘ │
45
+ │ │
46
+ │ PROBLEMS: │
47
+ │ • Too many files (cognitive overload) │
48
+ │ • No clear hierarchy │
49
+ │ • Duplicate functionality │
50
+ │ • Mixing concerns (roles + processes + utilities) │
51
+ │ • Setup guides mixed with workflows │
52
+ └────────────────────────────────────────────────────────────────────┘
53
+ ```
54
+
55
+ ---
56
+
57
+ ## Proposed State (20 Workflows) - OPTIMIZED ✅
58
+
59
+ ```
60
+ ┌────────────────────────────────────────────────────────────────────┐
61
+ │ OPTIMIZED STRUCTURE (20 FILES) │
62
+ ├────────────────────────────────────────────────────────────────────┤
63
+ │ │
64
+ │ 📁 core/ (8 Core SDLC Roles) │
65
+ │ ┌──────────────────────────────────────────────────────────────┐ │
66
+ │ │ 1. pm.md ← merged: po, reporter, stakeholder │ │
67
+ │ │ 2. ba.md ← GOLD STANDARD (586 lines) │ │
68
+ │ │ 3. sa.md ← System Analyst │ │
69
+ │ │ 4. uiux.md ← UI/UX Designer │ │
70
+ │ │ 5. dev.md ← Developer │ │
71
+ │ │ 6. devops.md ← DevOps Engineer │ │
72
+ │ │ 7. tester.md ← merged: qa │ │
73
+ │ │ 8. seca.md ← Security Analyst │ │
74
+ │ └──────────────────────────────────────────────────────────────┘ │
75
+ │ │
76
+ │ 📁 process/ (5 Core Processes) │
77
+ │ ┌──────────────────────────────────────────────────────────────┐ │
78
+ │ │ 1. orchestrator.md ← merged: auto.md │ │
79
+ │ │ 2. cycle.md ← Task Lifecycle (Plan→Work→Review) │ │
80
+ │ │ 3. explore.md ← Deep Investigation (3-order analysis) │ │
81
+ │ │ 4. emergency.md ← Incident Response (P0/P1/P2) │ │
82
+ │ │ 5. sprint.md ← Sprint Management (expanded) │ │
83
+ │ └──────────────────────────────────────────────────────────────┘ │
84
+ │ │
85
+ │ 📁 support/ (5 Support Tools) │
86
+ │ ┌──────────────────────────────────────────────────────────────┐ │
87
+ │ │ 1. compound.md ← Knowledge Capture (learning core) │ │
88
+ │ │ 2. brain.md ← merged: auto-learning-workflow │ │
89
+ │ │ 3. route.md ← Workflow Selection Intelligence │ │
90
+ │ │ 4. release.md ← merged: documentation-updates │ │
91
+ │ │ 5. housekeeping.md ← merged: cleanup, cleanup-quick-ref │ │
92
+ │ └──────────────────────────────────────────────────────────────┘ │
93
+ │ │
94
+ │ 📁 utilities/ (2 System Utilities) │
95
+ │ ┌──────────────────────────────────────────────────────────────┐ │
96
+ │ │ 1. validate.md ← System Health Check │ │
97
+ │ │ 2. metrics.md ← Analytics & Reporting │ │
98
+ │ └──────────────────────────────────────────────────────────────┘ │
99
+ │ │
100
+ │ IMPROVEMENTS: │
101
+ │ ✅ Clear 4-tier hierarchy (core/process/support/utilities) │
102
+ │ ✅ No duplicates (merged overlapping functions) │
103
+ │ ✅ Focused responsibilities (each file has clear purpose) │
104
+ │ ✅ Better discoverability (organized by type) │
105
+ │ ✅ Reduced cognitive load (33 → 20 = 39% reduction) │
106
+ └────────────────────────────────────────────────────────────────────┘
107
+ ```
108
+
109
+ ---
110
+
111
+ ## SDLC Phase Mapping (Strict Compliance)
112
+
113
+ ```
114
+ ┌─────────────────────────────────────────────────────────────────────┐
115
+ │ STRICT SDLC FLOW MAPPING │
116
+ ├─────────────────────────────────────────────────────────────────────┤
117
+ │ │
118
+ │ Phase 1: PLANNING Workflows: @PM, @BA │
119
+ │ ┌─────────────────────────────────────────────────────────────┐ │
120
+ │ │ User Request → @PM gathers → @BA analyzes → Project Plan │ │
121
+ │ │ Tools: pm.md (planning), ba.md (requirements) │ │
122
+ │ └─────────────────────────────────────────────────────────────┘ │
123
+ │ ↓ [User Approval Gate] │
124
+ │ │
125
+ │ Phase 2: DESIGN Workflows: @SA, @UIUX │
126
+ │ ┌─────────────────────────────────────────────────────────────┐ │
127
+ │ │ @SA designs architecture ║ @UIUX designs interface │ │
128
+ │ │ Tools: sa.md, uiux.md (parallel execution) │ │
129
+ │ └─────────────────────────────────────────────────────────────┘ │
130
+ │ ↓ │
131
+ │ │
132
+ │ Phase 3: VERIFICATION Workflows: @TESTER, @SECA │
133
+ │ ┌─────────────────────────────────────────────────────────────┐ │
134
+ │ │ @TESTER reviews design ║ @SECA security review │ │
135
+ │ │ Tools: tester.md (QA merged), seca.md │ │
136
+ │ └─────────────────────────────────────────────────────────────┘ │
137
+ │ ↓ [Design Approval Gate] │
138
+ │ │
139
+ │ Phase 4: IMPLEMENTATION Workflows: @DEV, @DEVOPS │
140
+ │ ┌─────────────────────────────────────────────────────────────┐ │
141
+ │ │ @DEV codes ║ @DEVOPS prepares infrastructure │ │
142
+ │ │ Tools: dev.md, devops.md + /cycle (for tasks) │ │
143
+ │ │ Support: /compound (capture learnings) │ │
144
+ │ └─────────────────────────────────────────────────────────────┘ │
145
+ │ ↓ │
146
+ │ │
147
+ │ Phase 5: TESTING Workflows: @TESTER │
148
+ │ ┌─────────────────────────────────────────────────────────────┐ │
149
+ │ │ @TESTER runs E2E tests, functional tests, integration │ │
150
+ │ │ Tools: tester.md │ │
151
+ │ └─────────────────────────────────────────────────────────────┘ │
152
+ │ ↓ │
153
+ │ (Bug Found?) → @DEV fixes (using /cycle or /emergency if P0) │
154
+ │ ↓ │
155
+ │ │
156
+ │ Phase 6: DEPLOYMENT Workflows: @DEVOPS │
157
+ │ ┌─────────────────────────────────────────────────────────────┐ │
158
+ │ │ @DEVOPS deploys to staging → production │ │
159
+ │ │ Tools: devops.md, /release (changelog, versioning) │ │
160
+ │ └─────────────────────────────────────────────────────────────┘ │
161
+ │ ↓ │
162
+ │ │
163
+ │ Phase 7: REPORTING Workflows: @PM │
164
+ │ ┌─────────────────────────────────────────────────────────────┐ │
165
+ │ │ @PM generates reports, updates CHANGELOG │ │
166
+ │ │ Tools: pm.md (reporting merged), /release │ │
167
+ │ └─────────────────────────────────────────────────────────────┘ │
168
+ │ ↓ [Final Approval Gate] │
169
+ │ │
170
+ │ Phase 8: APPROVAL Workflows: @PM │
171
+ │ ┌─────────────────────────────────────────────────────────────┐ │
172
+ │ │ @PM (representing stakeholder) approves final delivery │ │
173
+ │ │ Tools: pm.md (stakeholder merged) │ │
174
+ │ └─────────────────────────────────────────────────────────────┘ │
175
+ │ ↓ │
176
+ │ ✅ COMPLETE │
177
+ │ or │
178
+ │ ↻ REPEAT CYCLE (if rejected) │
179
+ │ │
180
+ ├─────────────────────────────────────────────────────────────────────┤
181
+ │ EMERGENCY PATH: /emergency (bypasses normal flow for P0/P1) │
182
+ │ ┌─────────────────────────────────────────────────────────────┐ │
183
+ │ │ Incident → Assess → Hotfix → Deploy → Postmortem │ │
184
+ │ │ Tools: emergency.md + /compound (learn from incident) │ │
185
+ │ └─────────────────────────────────────────────────────────────┘ │
186
+ └─────────────────────────────────────────────────────────────────────┘
187
+ ```
188
+
189
+ ---
190
+
191
+ ## Workflow Decision Tree
192
+
193
+ ```
194
+ USER REQUEST
195
+
196
+
197
+ ┌──────────────────────┐
198
+ │ Is this PRODUCTION │
199
+ │ emergency (P0/P1)? │
200
+ └──────────────────────┘
201
+ YES │ │ NO
202
+ │ │
203
+ /emergency │
204
+ (Hotfix) ▼
205
+
206
+ ┌────────────────────────┐
207
+ │ Do you know which │
208
+ │ workflow to use? │
209
+ └────────────────────────┘
210
+ NO │ │ YES
211
+ │ │
212
+ /route │
213
+ (Intelligence) ▼
214
+ │ │
215
+ │ ┌────────────────────┐
216
+ │ │ Is this a new │
217
+ │ │ project/feature? │
218
+ │ └────────────────────┘
219
+ │ YES │ │ NO
220
+ │ │ │
221
+ │ Is complex? │
222
+ │ YES│ NO │
223
+ │ │ │
224
+ │ /explore │
225
+ │ (Analyze) │
226
+ │ │ │
227
+ │ ▼ ▼
228
+ │ @PM creates
229
+ │ Project Plan
230
+ │ │
231
+ │ ▼
232
+ │ ┌────────────────────┐
233
+ │ │ SDLC Flow Starts │
234
+ │ │ (See above) │
235
+ │ └────────────────────┘
236
+ │ │
237
+ │ ▼
238
+ │ For each task < 4h:
239
+ │ Use /cycle
240
+ │ │
241
+ │ ▼
242
+ │ After solving problem:
243
+ │ Use /compound
244
+ │ │
245
+ └────────────┴──────────────┐
246
+
247
+
248
+ ┌──────────────────────────┐
249
+ │ End of Sprint? │
250
+ └──────────────────────────┘
251
+ YES │ │ NO
252
+ │ │
253
+ /sprint └─→ Continue
254
+ (Review+Retro)
255
+
256
+
257
+ Need to release version?
258
+ YES │ │ NO
259
+ │ │
260
+ /release └─→ Done
261
+ (Changelog+Tag)
262
+
263
+
264
+ COMPLETE
265
+ ```
266
+
267
+ ---
268
+
269
+ ## Role Consolidation Rationale
270
+
271
+ ### ❌ DELETE: po.md (Product Owner) → ✅ MERGE into pm.md
272
+
273
+ **Reasoning:**
274
+ ```
275
+ PM Duties:
276
+ ├── Project Planning
277
+ ├── Scope Management
278
+ ├── Timeline Management
279
+ ├── Resource Allocation
280
+ └── ⭐ Backlog Prioritization (overlaps with PO)
281
+
282
+ PO Duties:
283
+ ├── ⭐ Backlog Management (overlaps with PM)
284
+ ├── User Story Prioritization
285
+ ├── Business Value Assessment
286
+ └── Stakeholder Communication (overlaps with PM)
287
+
288
+ Overlap: ~70%
289
+ Decision: PM should own entire backlog lifecycle
290
+ ```
291
+
292
+ ### ❌ DELETE: qa.md (Quality Assurance) → ✅ MERGE into tester.md
293
+
294
+ **Reasoning:**
295
+ ```
296
+ QA Duties:
297
+ ├── Design Verification
298
+ ├── Test Strategy
299
+ ├── Quality Gates
300
+ └── Acceptance Criteria
301
+
302
+ TESTER Duties:
303
+ ├── Test Execution
304
+ ├── Bug Reporting
305
+ ├── Test Automation
306
+ └── Regression Testing
307
+
308
+ Timeline: QA (before testing) → TESTER (during testing)
309
+ Reality: Same person/phase in SDLC
310
+ Decision: Unified Testing workflow (Design Review + Execution)
311
+ ```
312
+
313
+ ### ❌ DELETE: reporter.md (Reporter) → ✅ MERGE into pm.md
314
+
315
+ **Reasoning:**
316
+ ```
317
+ REPORTER Duties:
318
+ ├── Generate progress reports
319
+ ├── Update CHANGELOG
320
+ ├── Create documentation
321
+ └── Communicate status
322
+
323
+ PM Duties:
324
+ ├── Project oversight
325
+ ├── Stakeholder communication
326
+ ├── Status tracking
327
+ └── ⭐ Should naturally own reporting
328
+
329
+ Decision: Reporting is administrative PM duty, not separate role
330
+ ```
331
+
332
+ ### ❌ DELETE: stakeholder.md → ✅ MERGE into pm.md
333
+
334
+ **Reasoning:**
335
+ ```
336
+ STAKEHOLDER is not an AI agent role - it's an APPROVAL GATE
337
+
338
+ Current flow:
339
+ @PM creates plan → USER approves → @SA designs → ...
340
+
341
+ (This is "stakeholder")
342
+
343
+ Stakeholder = User who gives approval
344
+ PM = Agent who represents user interests in the team
345
+
346
+ Decision: PM handles stakeholder communication and approval flow
347
+ ```
348
+
349
+ ---
350
+
351
+ ## File Size & Quality Comparison
352
+
353
+ ```
354
+ BEFORE (33 files): AFTER (20 files):
355
+ ───────────────── ──────────────────
356
+
357
+ Top Quality (> 400 lines): Expanded to Standard:
358
+ ba.md 586 lines ⭐⭐⭐⭐⭐ ba.md 586 lines ⭐⭐⭐⭐⭐
359
+ compound.md 432 lines ⭐⭐⭐⭐⭐ compound.md 432 lines ⭐⭐⭐⭐⭐
360
+ emergency.md 420 lines ⭐⭐⭐⭐⭐ emergency.md 420 lines ⭐⭐⭐⭐⭐
361
+ pm.md 400+ lines ⭐⭐⭐⭐ (merged PO+Reporter+Stakeholder)
362
+ Good Quality (200-400 lines): tester.md 350+ lines ⭐⭐⭐⭐ (merged QA)
363
+ route.md 330 lines ⭐⭐⭐⭐ sprint.md 300+ lines ⭐⭐⭐⭐ (expanded)
364
+ explore.md 268 lines ⭐⭐⭐⭐
365
+ cycle.md 173 lines ⭐⭐⭐⭐ Same High Quality:
366
+ pm.md 169 lines ⭐⭐⭐ route.md 330 lines ⭐⭐⭐⭐
367
+ explore.md 268 lines ⭐⭐⭐⭐
368
+ Adequate (100-200 lines): cycle.md 173 lines ⭐⭐⭐⭐
369
+ Most role workflows ⭐⭐⭐
370
+ Rest Standardized (200-300 lines):
371
+ Poor Quality (< 100 lines): sa.md, uiux.md, dev.md, devops.md, seca.md,
372
+ sprint.md 88 lines ⚠️ orchestrator.md, brain.md, release.md,
373
+ validate.md 82 lines ⚠️ housekeeping.md, validate.md, metrics.md
374
+ orchestrator.md 60 lines ⚠️
375
+ ALL workflows aim for ⭐⭐⭐⭐ quality
376
+ Trivial (< 50 lines):
377
+ kb-search.md ~30 lines ❌
378
+ ```
379
+
380
+ ---
381
+
382
+ ## Migration Path
383
+
384
+ ### Step 1: Backup
385
+ ```bash
386
+ # Create backup
387
+ cp -r .agent/workflows .agent/workflows.backup-2026-01-03
388
+ ```
389
+
390
+ ### Step 2: Merge Files
391
+ ```bash
392
+ # Merge PO into PM
393
+ cat .agent/workflows/po.md >> .agent/workflows/pm.md
394
+ # (clean up duplicates, organize sections)
395
+
396
+ # Merge QA into Tester
397
+ cat .agent/workflows/qa.md >> .agent/workflows/tester.md
398
+
399
+ # Merge auto into orchestrator
400
+ cat .agent/workflows/auto.md >> .agent/workflows/orchestrator.md
401
+
402
+ # Merge auto-learning into brain
403
+ cat .agent/workflows/auto-learning-workflow.md >> .agent/workflows/brain.md
404
+
405
+ # Merge cleanup into housekeeping
406
+ cat .agent/workflows/cleanup.md >> .agent/workflows/housekeeping.md
407
+
408
+ # Merge docs-updates into release
409
+ cat .agent/workflows/documentation-updates.md >> .agent/workflows/release.md
410
+ ```
411
+
412
+ ### Step 3: Reorganize
413
+ ```bash
414
+ # Create new structure
415
+ mkdir -p .agent/workflows/{core,process,support,utilities}
416
+
417
+ # Move to new locations
418
+ mv .agent/workflows/{pm,ba,sa,uiux,dev,devops,tester,seca}.md .agent/workflows/core/
419
+ mv .agent/workflows/{orchestrator,cycle,explore,emergency,sprint}.md .agent/workflows/process/
420
+ mv .agent/workflows/{compound,brain,route,release,housekeeping}.md .agent/workflows/support/
421
+ mv .agent/workflows/{validate,metrics}.md .agent/workflows/utilities/
422
+ ```
423
+
424
+ ### Step 4: Archive
425
+ ```bash
426
+ # Archive deleted workflows
427
+ mkdir -p .agent/archive/workflows-consolidated-2026-01-03
428
+ mv .agent/workflows/{po,qa,reporter,stakeholder,auto,auto-learning-workflow,cleanup,documentation-updates,research,kb-search,cleanup-quick-reference}.md .agent/archive/workflows-consolidated-2026-01-03/
429
+
430
+ # Move setup guides to docs
431
+ mv .agent/workflows/{git-kb-integration,kb-hooks-setup}.md docs/setup/
432
+ ```
433
+
434
+ ### Step 5: Update References
435
+ ```bash
436
+ # Update .cursorrules, .windsurfrules to reference new paths
437
+ # Update global.md role list
438
+ # Create INDEX.md in each folder
439
+ # Run /validate to check for broken references
440
+ ```
441
+
442
+ ---
443
+
444
+ ## Quality Standards (All Workflows)
445
+
446
+ ### Required Sections
447
+ ```markdown
448
+ ---
449
+ description: [Brief one-line description]
450
+ ---
451
+
452
+ # Workflow Title (@ROLE or /workflow)
453
+
454
+ ## Role Description / Overview
455
+ [What this workflow does, when to use]
456
+
457
+ ## MCP Intelligence Setup (for roles)
458
+ [Which MCPs to leverage]
459
+
460
+ ## Key Duties / Workflow Steps
461
+ ### 0. RESEARCH FIRST (MANDATORY) - for complex tasks
462
+ [Research agent integration]
463
+
464
+ ### 1-N. [Step Name]
465
+ [Detailed instructions]
466
+
467
+ ## Artifact Templates (if applicable)
468
+ [Code/document templates]
469
+
470
+ ## Integration with Roles
471
+ [Which other workflows this collaborates with]
472
+
473
+ ## Strict Rules
474
+ [Dos and don'ts]
475
+
476
+ ## Neo4j Skills Integration (for roles)
477
+ [How to query and sync skills]
478
+
479
+ ## Success Criteria
480
+ [Checklist for completion]
481
+
482
+ ## Handoff Template
483
+ [Communication format for next role]
484
+
485
+ #tags #workflow
486
+ ```
487
+
488
+ ### Minimum Length
489
+ - Core Roles: 250+ lines (BA is 586 lines - gold standard)
490
+ - Processes: 200+ lines
491
+ - Support: 150+ lines
492
+ - Utilities: 100+ lines
493
+
494
+ ### Quality Checks
495
+ - [ ] All sections present
496
+ - [ ] Clear step-by-step instructions
497
+ - [ ] Examples provided
498
+ - [ ] MCP integration specified
499
+ - [ ] Research mandate (for complex work)
500
+ - [ ] Handoff template defined
501
+ - [ ] Success criteria clear
502
+ - [ ] Related workflows linked
503
+
504
+ ---
505
+
506
+ ## Expected Benefits
507
+
508
+ ### Quantitative
509
+ - **39% reduction** in file count (33 → 20)
510
+ - **90% reduction** in duplicate content
511
+ - **50% increase** in average workflow quality (more comprehensive)
512
+ - **80% discoverability improvement** (clear hierarchy)
513
+
514
+ ### Qualitative
515
+ - ✅ Reduced cognitive load (easier to find right workflow)
516
+ - ✅ No confusion about overlapping roles
517
+ - ✅ Clear SDLC compliance mapping
518
+ - ✅ Easier onboarding for new users
519
+ - ✅ Better maintainability (fewer files to update)
520
+ - ✅ Professional appearance
521
+
522
+ ---
523
+
524
+ #workflow-optimization #sdlc #architecture #visual-guide