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,519 @@
1
+ # 🧠 Complete Auto-Learning System Guide
2
+
3
+ ## Overview
4
+
5
+ The Auto-Learning System is now fully integrated into the TeamLifecycle SDLC workflow. This guide provides a complete overview of all components and how they work together.
6
+
7
+ ---
8
+
9
+ ## 📚 System Components
10
+
11
+ ### 1. Core Rules & Documentation
12
+ | Document | Purpose | Location |
13
+ |----------|---------|----------|
14
+ | Auto-Learning Rules | Complete system rules | `.agent/rules/auto-learning.md` |
15
+ | Knowledge Base Rules | KB management | `.agent/rules/knowledge-base.md` |
16
+ | Global Rules | Updated with auto-learning | `.agent/rules/global.md` |
17
+ | Artifacts Rules | Updated with CHANGELOG rule | `.agent/rules/artifacts.md` |
18
+
19
+ ### 2. Knowledge Base Structure
20
+ ```
21
+ .agent/knowledge-base/
22
+ ├── AUTO-LEARNING-GUIDE.md # Quick start guide
23
+ ├── README.md # Full KB documentation
24
+ ├── index.md # Searchable index
25
+ ├── bugs/ # Bug patterns by severity
26
+ │ ├── critical/
27
+ │ ├── high/
28
+ │ ├── medium/
29
+ │ └── low/
30
+ ├── features/ # Feature implementations
31
+ │ ├── authentication/
32
+ │ ├── performance/
33
+ │ ├── integration/
34
+ │ └── ui-ux/
35
+ ├── architecture/ # Architecture decisions
36
+ ├── security/ # Security vulnerabilities
37
+ ├── performance/ # Performance optimizations
38
+ ├── platform-specific/ # Platform issues
39
+ │ ├── web/
40
+ │ ├── mobile/
41
+ │ ├── desktop/
42
+ │ ├── cli/
43
+ │ └── embedded/
44
+ └── role-guides/ # Role-specific KB guides
45
+ ├── PM-KB-Guide.md
46
+ ├── DEV-KB-Guide.md
47
+ ├── DEVOPS-KB-Guide.md
48
+ ├── TESTER-KB-Guide.md
49
+ └── SECA-KB-Guide.md
50
+ ```
51
+
52
+ ### 3. Templates
53
+ | Template | Purpose | Location |
54
+ |----------|---------|----------|
55
+ | Knowledge Entry | Standard KB entry format | `.agent/templates/Knowledge-Entry-Template.md` |
56
+ | CHANGELOG | Template only (not for root) | `.agent/templates/CHANGELOG-Template.md` |
57
+
58
+ ### 4. Workflows
59
+ | Workflow | Purpose | Location |
60
+ |----------|---------|----------|
61
+ | Auto-Learning Workflow | Phase-by-phase integration | `.agent/workflows/auto-learning-workflow.md` |
62
+ | Git + KB Integration | Git workflow integration | `.agent/workflows/git-kb-integration.md` |
63
+ | KB Hooks Setup | Agent hooks configuration | `.agent/workflows/kb-hooks-setup.md` |
64
+
65
+ ### 5. Guides
66
+ | Guide | Purpose | Location |
67
+ |-------|---------|----------|
68
+ | Auto-Learning System | System overview | `docs/guides/AUTO-LEARNING-SYSTEM.md` |
69
+ | MCP Guide | MCP server integration | `docs/guides/MCP-GUIDE.md` |
70
+ | MCP Setup | MCP configuration | `docs/guides/MCP-SETUP.md` |
71
+ | MCP Quick Reference | MCP usage reference | `docs/guides/MCP-QUICK-REFERENCE.md` |
72
+
73
+ ---
74
+
75
+ ## 🎯 Auto-Learning by Role
76
+
77
+ ### @PM (Project Manager)
78
+ **Triggers:**
79
+ - Scope creep patterns
80
+ - Estimation errors (>30% variance)
81
+ - Requirements changes
82
+ - Stakeholder conflicts
83
+ - Risk materialization
84
+
85
+ **KB Location:** `architecture/`
86
+ **Guide:** `.agent/knowledge-base/role-guides/PM-KB-Guide.md`
87
+
88
+ ---
89
+
90
+ ### @DEV (Developer)
91
+ **Triggers:**
92
+ - Bug fixes (medium+ priority)
93
+ - 3+ implementation attempts
94
+ - Integration challenges
95
+ - Performance optimizations
96
+ - Complex logic (4+ hours)
97
+
98
+ **KB Location:** `bugs/`, `features/`, `performance/`
99
+ **Guide:** `.agent/knowledge-base/role-guides/DEV-KB-Guide.md`
100
+
101
+ ---
102
+
103
+ ### @DEVOPS (DevOps Engineer)
104
+ **Triggers:**
105
+ - Deployment failures
106
+ - Rollback events
107
+ - Infrastructure issues
108
+ - Configuration errors
109
+ - Performance problems
110
+ - Security incidents
111
+
112
+ **KB Location:** `platform-specific/`, `performance/`
113
+ **Guide:** `.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md`
114
+
115
+ ---
116
+
117
+ ### @TESTER (Tester)
118
+ **Triggers:**
119
+ - Test failures (3+ times)
120
+ - Edge cases discovered
121
+ - Regression bugs
122
+ - Flaky tests
123
+ - Performance bottlenecks
124
+ - Browser compatibility issues
125
+
126
+ **KB Location:** `bugs/`, `features/testing/`, `platform-specific/web/`
127
+ **Guide:** `.agent/knowledge-base/role-guides/TESTER-KB-Guide.md`
128
+
129
+ ---
130
+
131
+ ### @SECA (Security Analyst)
132
+ **Triggers:**
133
+ - Security vulnerabilities (any)
134
+ - Security incidents
135
+ - Auth/authorization issues
136
+ - Data leaks
137
+ - Compliance violations
138
+ - Crypto issues
139
+
140
+ **KB Location:** `security/`
141
+ **Guide:** `.agent/knowledge-base/role-guides/SECA-KB-Guide.md`
142
+
143
+ ---
144
+
145
+ ### @SA, @UIUX, @QA, @PO, @REPORTER
146
+ **Triggers:**
147
+ - Architecture decisions
148
+ - Design patterns
149
+ - UX research findings
150
+ - Quality issues
151
+ - Process improvements
152
+
153
+ **KB Location:** `architecture/`, `features/ui-ux/`
154
+ **Guides:** Coming soon
155
+
156
+ ---
157
+
158
+ ## 🔄 Complete Workflow Integration
159
+
160
+ ### Phase 1: Planning (@PM)
161
+ ```markdown
162
+ 1. Search KB for similar projects
163
+ 2. Review estimation patterns
164
+ 3. Check risk patterns
165
+ 4. Create project plan
166
+ 5. Document planning decisions
167
+ 6. Create KB entry if estimation error >30%
168
+ ```
169
+
170
+ ### Phase 2: Design (@SA, @UIUX, @PO)
171
+ ```markdown
172
+ 1. Search KB for architecture patterns
173
+ 2. Review design decisions
174
+ 3. Create design specs
175
+ 4. Document architecture decisions
176
+ 5. Create KB entry for major decisions
177
+ ```
178
+
179
+ ### Phase 3: Design Verification (@QA, @SECA)
180
+ ```markdown
181
+ 1. Search KB for similar vulnerabilities
182
+ 2. Review security patterns
183
+ 3. Conduct reviews
184
+ 4. Document findings
185
+ 5. Create KB entry for vulnerabilities
186
+ ```
187
+
188
+ ### Phase 4: Development (@DEV, @DEVOPS)
189
+ ```markdown
190
+ 1. Search KB before coding
191
+ 2. Track implementation attempts
192
+ 3. Document challenges
193
+ 4. Create KB entry if 3+ attempts or medium+ bug
194
+ 5. Link KB to git commits
195
+ ```
196
+
197
+ ### Phase 5: Testing (@TESTER)
198
+ ```markdown
199
+ 1. Search KB for test patterns
200
+ 2. Execute tests
201
+ 3. Document failures and edge cases
202
+ 4. Create KB entry if 3+ failures
203
+ 5. Add regression tests
204
+ ```
205
+
206
+ ### Phase 6: Deployment (@DEVOPS)
207
+ ```markdown
208
+ 1. Search KB for deployment issues
209
+ 2. Execute deployment
210
+ 3. Monitor for issues
211
+ 4. Create KB entry for failures/rollbacks
212
+ 5. Update runbooks
213
+ ```
214
+
215
+ ### Phase 7: Reporting (@REPORTER)
216
+ ```markdown
217
+ 1. Review all KB entries from sprint
218
+ 2. Verify completeness
219
+ 3. Generate learning metrics
220
+ 4. Include KB summary in reports
221
+ 5. Identify knowledge gaps
222
+ ```
223
+
224
+ ---
225
+
226
+ ## 🤖 Automation Features
227
+
228
+ ### 1. Automatic Trigger Detection
229
+ System automatically detects when KB entry is needed:
230
+ - Bug priority check
231
+ - Attempt counter
232
+ - Error pattern matching
233
+ - Time tracking
234
+ - Severity assessment
235
+
236
+ ### 2. Auto-Tagging
237
+ System suggests tags based on:
238
+ - File paths → Component tags
239
+ - Error messages → Technology tags
240
+ - Commit messages → Category tags
241
+ - Time spent → Complexity tags
242
+
243
+ ### 3. Auto-Linking
244
+ System finds related entries by:
245
+ - Similar error messages
246
+ - Same file paths
247
+ - Same technology stack
248
+ - Same component
249
+ - Similar keywords
250
+
251
+ ### 4. Auto-Metrics
252
+ System tracks:
253
+ - KB entries created
254
+ - KB entries referenced
255
+ - Resolution time trends
256
+ - Recurring issue rates
257
+ - Knowledge reuse rates
258
+
259
+ ---
260
+
261
+ ## 🎣 Agent Hooks
262
+
263
+ ### Available Hooks
264
+ 1. **Post-Commit Check** - After git commit
265
+ 2. **Bug Fix Capture** - When #fixbug- tag used
266
+ 3. **Sprint End Review** - Manual trigger
267
+ 4. **Pre-Task Search** - Before starting work
268
+ 5. **Multiple Attempts** - When file saved 3+ times
269
+ 6. **Security Issue** - When security tag used
270
+ 7. **Performance Optimization** - When performance tag used
271
+ 8. **Deployment Issue** - When deployment/rollback tag used
272
+ 9. **Weekly Maintenance** - Every Friday
273
+ 10. **Monthly Report** - Last day of month
274
+
275
+ **Setup Guide:** `.agent/workflows/kb-hooks-setup.md`
276
+
277
+ ---
278
+
279
+ ## 🔗 Git Integration
280
+
281
+ ### Enhanced Commit Messages
282
+ ```
283
+ <type>: <description> (#issue) [KB-###]
284
+
285
+ [optional body with KB references]
286
+ ```
287
+
288
+ ### Example
289
+ ```
290
+ fix: resolve hydration mismatch in Astro components (#43) [KB-2026-01-01-001]
291
+
292
+ Root cause: Using Date.now() for IDs during SSR
293
+ Solution: Switched to React 18's useId() hook
294
+ Prevention: Added ESLint rule
295
+
296
+ References KB-2026-01-01-001 for similar SSR issues
297
+ ```
298
+
299
+ ### PR Template with KB
300
+ Pull requests now include KB section:
301
+ - KB entries referenced
302
+ - New KB entry required?
303
+ - KB entry details
304
+ - Key learnings
305
+
306
+ **Integration Guide:** `.agent/workflows/git-kb-integration.md`
307
+
308
+ ---
309
+
310
+ ## 📊 Metrics & Analytics
311
+
312
+ ### Individual Metrics
313
+ - KB entries created
314
+ - KB entries referenced
315
+ - Time saved
316
+ - Issues prevented
317
+
318
+ ### Team Metrics
319
+ - Total KB entries
320
+ - Auto-generated percentage
321
+ - Reuse rate
322
+ - Resolution time trends
323
+ - Recurrence rate
324
+
325
+ ### Sprint Metrics
326
+ - KB entries per sprint
327
+ - KB coverage by category
328
+ - Most referenced entries
329
+ - Learning velocity
330
+
331
+ ### Project Metrics
332
+ - Knowledge growth over time
333
+ - Impact on quality
334
+ - Impact on velocity
335
+ - Team learning curve
336
+
337
+ ---
338
+
339
+ ## 🎓 Training & Onboarding
340
+
341
+ ### Week 1: Learn the System
342
+ - [ ] Read AUTO-LEARNING-GUIDE.md
343
+ - [ ] Review example KB entry
344
+ - [ ] Search KB for common issues
345
+ - [ ] Shadow experienced team member
346
+
347
+ ### Week 2: Start Using
348
+ - [ ] Search KB before starting tasks
349
+ - [ ] Reference KB entries in work
350
+ - [ ] Ask questions about KB entries
351
+ - [ ] Identify gaps in KB
352
+
353
+ ### Week 3: Start Contributing
354
+ - [ ] Create first KB entry
355
+ - [ ] Get review from @REPORTER
356
+ - [ ] Update index
357
+ - [ ] Share with team
358
+
359
+ ### Week 4: Full Integration
360
+ - [ ] Auto-learning becomes habit
361
+ - [ ] Contributing regularly
362
+ - [ ] Helping others use KB
363
+ - [ ] Suggesting improvements
364
+
365
+ ---
366
+
367
+ ## 🚀 Quick Start Checklist
368
+
369
+ ### For New Projects
370
+ - [ ] Review AUTO-LEARNING-SYSTEM.md
371
+ - [ ] Read role-specific KB guide
372
+ - [ ] Set up agent hooks
373
+ - [ ] Configure git integration
374
+ - [ ] Create first KB entry
375
+
376
+ ### For Existing Projects
377
+ - [ ] Audit existing knowledge
378
+ - [ ] Create KB entries for known issues
379
+ - [ ] Set up automation
380
+ - [ ] Train team
381
+ - [ ] Start tracking metrics
382
+
383
+ ---
384
+
385
+ ## 📈 Success Criteria
386
+
387
+ ### Individual Success
388
+ - [ ] Searches KB before starting work
389
+ - [ ] Creates KB entries for qualifying tasks
390
+ - [ ] References KB entries in artifacts
391
+ - [ ] Updates KB entries with new insights
392
+ - [ ] Helps others use KB
393
+
394
+ ### Team Success
395
+ - [ ] 80%+ auto-learning adoption
396
+ - [ ] 50%+ KB reuse rate
397
+ - [ ] 30%+ resolution time reduction
398
+ - [ ] <10% recurring issue rate
399
+ - [ ] Growing KB with quality entries
400
+
401
+ ### Project Success
402
+ - [ ] Continuous improvement culture
403
+ - [ ] Knowledge sharing normalized
404
+ - [ ] Faster onboarding
405
+ - [ ] Higher quality deliverables
406
+ - [ ] Reduced technical debt
407
+
408
+ ---
409
+
410
+ ## 🔧 Maintenance Schedule
411
+
412
+ ### Daily (Automated)
413
+ - Auto-detect learning triggers
414
+ - Auto-create KB entry drafts
415
+ - Auto-tag entries
416
+ - Auto-link related entries
417
+
418
+ ### Weekly (@REPORTER)
419
+ - Review auto-generated entries
420
+ - Verify completeness
421
+ - Add missing details
422
+ - Update cross-references
423
+ - Archive duplicates
424
+ - Generate weekly metrics
425
+
426
+ ### Monthly (@REPORTER)
427
+ - Analyze learning metrics
428
+ - Identify knowledge gaps
429
+ - Consolidate similar entries
430
+ - Update categories
431
+ - Generate monthly report
432
+ - Share insights with team
433
+
434
+ ### Quarterly (@PM + @REPORTER)
435
+ - Review entire knowledge base
436
+ - Archive outdated entries
437
+ - Refactor categories
438
+ - Update templates
439
+ - Train team on new patterns
440
+ - Celebrate learning wins
441
+
442
+ ---
443
+
444
+ ## 📞 Support & Resources
445
+
446
+ ### Need Help?
447
+ - **What to document:** Tag @REPORTER
448
+ - **How to search:** Check index.md or use grep
449
+ - **Quality issues:** Tag @REPORTER for review
450
+ - **System improvements:** Tag @PM
451
+ - **Technical issues:** Check documentation
452
+
453
+ ### Documentation
454
+ - **Quick Start:** `.agent/knowledge-base/AUTO-LEARNING-GUIDE.md`
455
+ - **Full System:** `docs/guides/AUTO-LEARNING-SYSTEM.md`
456
+ - **Role Guides:** `.agent/knowledge-base/role-guides/`
457
+ - **Workflows:** `.agent/workflows/`
458
+ - **Templates:** `.agent/templates/`
459
+
460
+ ### Examples
461
+ - **Bug Fix:** `.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md`
462
+ - **Git Integration:** `.agent/workflows/git-kb-integration.md`
463
+ - **Hooks Setup:** `.agent/workflows/kb-hooks-setup.md`
464
+
465
+ ---
466
+
467
+ ## 🎉 System Status
468
+
469
+ ### ✅ Completed Components
470
+ 1. ✅ Core auto-learning rules
471
+ 2. ✅ Knowledge base structure
472
+ 3. ✅ Role-specific guides (PM, DEV, DEVOPS, TESTER, SECA)
473
+ 4. ✅ Workflow integration
474
+ 5. ✅ Git integration
475
+ 6. ✅ Agent hooks setup
476
+ 7. ✅ Templates and examples
477
+ 8. ✅ Documentation and guides
478
+ 9. ✅ MCP integration
479
+ 10. ✅ Metrics and analytics
480
+
481
+ ### 🚀 Ready to Use
482
+ The auto-learning system is fully operational and ready to capture knowledge from every task, issue, and bug fix across the entire SDLC.
483
+
484
+ ---
485
+
486
+ ## 🎯 Next Steps
487
+
488
+ 1. **Start Using Today**
489
+ - Fix a bug → Create KB entry
490
+ - Search before starting work
491
+ - Reference entries in your work
492
+
493
+ 2. **Set Up Automation**
494
+ - Configure agent hooks
495
+ - Set up git integration
496
+ - Enable auto-detection
497
+
498
+ 3. **Train Your Team**
499
+ - Share this guide
500
+ - Review role-specific guides
501
+ - Practice with examples
502
+
503
+ 4. **Track Progress**
504
+ - Monitor metrics
505
+ - Celebrate wins
506
+ - Iterate and improve
507
+
508
+ ---
509
+
510
+ **Remember:** The system gets smarter with every entry. Start documenting today!
511
+
512
+ ---
513
+
514
+ *Version: 1.0*
515
+ *Last Updated: 2026-01-01*
516
+ *Status: Production Ready*
517
+
518
+ #auto-learning #knowledge-base #complete-guide #teamlifecycle
519
+