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
package/bin/README.md ADDED
@@ -0,0 +1,525 @@
1
+ # Knowledge Base Scripts (Python Only)
2
+
3
+ **Cross-Platform CLI** - Works on Windows, Linux, and macOS
4
+
5
+ Python-based CLI for managing the TeamLifecycle knowledge base with Neo4j brain integration.
6
+
7
+ ## 🐍 Technology Stack
8
+
9
+ - ✅ **Python 3.7+** - Primary language
10
+ - ✅ **Shell scripts** - Linux/macOS entry points
11
+ - ✅ **Batch/PowerShell** - Windows entry points
12
+ - ❌ **NO JavaScript/Node.js**
13
+
14
+ ## 🌍 Cross-Platform Support
15
+
16
+ The KB CLI supports all major platforms:
17
+
18
+ - **Windows** - CMD, PowerShell, Git Bash
19
+ - **Linux** - Bash, Zsh, Fish
20
+ - **macOS** - Bash, Zsh
21
+
22
+ ### Quick Start
23
+
24
+ **Windows:**
25
+ ```cmd
26
+ bin\kb\kb.bat help
27
+ ```
28
+
29
+ **Linux/macOS:**
30
+ ```bash
31
+ ./bin/kb/kb help
32
+ ```
33
+
34
+ **See:** `kb/CROSS-PLATFORM-CLI.md` for complete cross-platform guide
35
+
36
+ ## Overview
37
+
38
+ The compound learning system combines file-based storage with Neo4j graph database to create an intelligent knowledge system:
39
+
40
+ - **File System** - Stores full markdown content from `.agent/knowledge-base/` and `docs/`
41
+ - **Neo4j Brain** - Maps relationships between skills, technologies, and entries
42
+ - **Compound Scripts** - Seamless integration between both
43
+ - **Cross-Platform** - Python-based CLI works everywhere
44
+ - **Unified Search** - Search across KB entries + all project documentation (46+ entries)
45
+
46
+ ### Knowledge Sources
47
+
48
+ The system indexes knowledge from two locations:
49
+
50
+ 1. **`.agent/knowledge-base/`** - KB entries (bugs, features, architecture)
51
+ 2. **`docs/`** - All project documentation (guides, reports, architecture docs)
52
+
53
+ This provides **7x more searchable knowledge** than KB entries alone!
54
+
55
+ ## Available Scripts
56
+
57
+ ### Cross-Platform CLI
58
+
59
+ **Entry Points:**
60
+ - `kb` - Bash script (Linux/macOS/Git Bash)
61
+ - `kb.bat` - Windows batch script
62
+ - `kb_cli.py` - Python CLI (all platforms)
63
+
64
+ **Library Modules:**
65
+ - `lib/kb_common.py` - Common utilities
66
+ - `lib/kb_search.py` - Search functionality
67
+ - `lib/kb_add.py` - Add entries
68
+ - `lib/kb_index.py` - Index generation
69
+ - `lib/kb_stats.py` - Statistics
70
+ - `lib/kb_list.py` - List entries
71
+ - `lib/kb_compound.py` - Neo4j integration
72
+
73
+ ## 📚 Available Scripts
74
+
75
+ ### 1. `kb` / `kb.bat` - Main Interface
76
+ Central command-line interface for all KB operations.
77
+
78
+ **Windows:**
79
+ ```cmd
80
+ bin\kb.bat [command] [args]
81
+ ```
82
+
83
+ **Linux/macOS:**
84
+ ```bash
85
+ ./bin/kb [command] [args]
86
+ ```
87
+
88
+ ## 🔍 Commands
89
+
90
+ ### 1. Search Knowledge Base
91
+
92
+ Search for entries by keyword:
93
+
94
+ ```powershell
95
+ # Search for a term
96
+ .\bin\kb.ps1 search "react hydration"
97
+
98
+ # Search in specific category
99
+ .\bin\kb-search.ps1 "oauth" -Category "features"
100
+
101
+ # Filter by priority
102
+ .\bin\kb-search.ps1 "bug" -Priority "critical"
103
+ ```
104
+
105
+ **What it does:**
106
+ - Searches INDEX.md first
107
+ - Then searches all KB entry files
108
+ - Shows matching entries with context
109
+ - Displays file paths and metadata
110
+
111
+ ### 2. Add New Entry
112
+
113
+ Interactive wizard to create a new KB entry:
114
+
115
+ ```powershell
116
+ .\bin\kb.ps1 add
117
+ ```
118
+
119
+ **What it does:**
120
+ - Prompts for title, category, priority, tags
121
+ - Generates unique filename with date and ID
122
+ - Creates entry from template
123
+ - Places in correct folder
124
+ - Opens file in default editor
125
+
126
+ **Categories:**
127
+ 1. bug - Bug fixes
128
+ 2. feature - Complex features
129
+ 3. architecture - Architecture decisions
130
+ 4. security - Security fixes
131
+ 5. performance - Performance optimizations
132
+ 6. platform - Platform-specific issues
133
+
134
+ **Priorities:**
135
+ 1. critical - System breaking
136
+ 2. high - Major issues
137
+ 3. medium - Moderate issues
138
+ 4. low - Minor issues
139
+
140
+ ### 3. Update Index
141
+
142
+ Regenerate INDEX.md with all entries:
143
+
144
+ ```powershell
145
+ .\bin\kb.ps1 index
146
+ ```
147
+
148
+ **What it does:**
149
+ - Scans all KB entries
150
+ - Extracts metadata (title, category, priority, tags)
151
+ - Groups by category, priority, and date
152
+ - Generates searchable INDEX.md
153
+ - Shows statistics
154
+
155
+ **Run this after:**
156
+ - Adding new entries
157
+ - Updating existing entries
158
+ - Reorganizing KB structure
159
+
160
+ ### 4. Show Statistics
161
+
162
+ Display KB statistics and metrics:
163
+
164
+ ```powershell
165
+ .\bin\kb.ps1 stats
166
+ ```
167
+
168
+ **What it shows:**
169
+ - Total entries
170
+ - Breakdown by category
171
+ - Breakdown by priority
172
+ - Total attempts
173
+ - Time saved
174
+ - Recent activity
175
+ - Growth trend
176
+
177
+ ### 5. List Entries
178
+
179
+ List all entries or filter by category:
180
+
181
+ ```powershell
182
+ # List all entries
183
+ .\bin\kb.ps1 list
184
+
185
+ # List by category
186
+ .\bin\kb.ps1 list bugs
187
+ .\bin\kb.ps1 list features
188
+ .\bin\kb.ps1 list architecture
189
+ ```
190
+
191
+ ### 6. Show Recent Entries
192
+
193
+ Display recently added/modified entries:
194
+
195
+ ```powershell
196
+ # Show last 10 entries (default)
197
+ .\bin\kb.ps1 recent
198
+
199
+ # Show last 5 entries
200
+ .\bin\kb.ps1 recent 5
201
+ ```
202
+
203
+ ### 7. Compound Mode (Neo4j Integration)
204
+
205
+ Enhanced commands that integrate file system with Neo4j brain:
206
+
207
+ ```powershell
208
+ # Compound search (file + Neo4j)
209
+ .\bin\kb.ps1 compound search "authentication"
210
+
211
+ # Compound add (create + sync to Neo4j)
212
+ .\bin\kb.ps1 compound add
213
+
214
+ # Compound sync (full sync to Neo4j)
215
+ .\bin\kb.ps1 compound sync
216
+
217
+ # Compound query (intelligent Neo4j queries)
218
+ .\bin\kb.ps1 compound query "React"
219
+
220
+ # Compound stats (system health)
221
+ .\bin\kb.ps1 compound stats
222
+ ```
223
+
224
+ **What compound mode does:**
225
+ - Searches both file system AND Neo4j graph
226
+ - Automatically syncs entries to Neo4j brain
227
+ - Maps relationships between skills and technologies
228
+ - Provides intelligent contextual queries
229
+ - Shows compound system health
230
+
231
+ **See:** `docs/NEO4J-COMPOUND-INTEGRATION.md` for complete guide
232
+
233
+ ### 8. Help
234
+
235
+ Show help and usage:
236
+
237
+ ```powershell
238
+ .\bin\kb.ps1 help
239
+ ```
240
+
241
+ ## 🚀 Quick Start Workflow
242
+
243
+ ### Before Solving a Problem
244
+
245
+ ```powershell
246
+ # 1. Compound search (file + Neo4j brain)
247
+ .\bin\kb.ps1 compound search "your problem"
248
+
249
+ # 2. If found, read the solution
250
+ # 3. If not found, solve it yourself
251
+ ```
252
+
253
+ ### After Solving a Hard Problem
254
+
255
+ ```powershell
256
+ # 1. Add entry with compound mode (auto-syncs to Neo4j)
257
+ .\bin\kb.ps1 compound add
258
+
259
+ # 2. Fill in the details in the opened file
260
+
261
+ # 3. Entry is automatically synced to Neo4j brain
262
+ ```
263
+
264
+ ### Weekly Maintenance
265
+
266
+ ```powershell
267
+ # Check compound system health
268
+ .\bin\kb.ps1 compound stats
269
+
270
+ # Full sync to Neo4j
271
+ .\bin\kb.ps1 compound sync
272
+
273
+ # Review recent entries
274
+ .\bin\kb.ps1 recent 20
275
+ ```
276
+
277
+ ## 📊 Example Usage
278
+
279
+ ### Scenario 1: React Hydration Error
280
+
281
+ ```powershell
282
+ # Search first
283
+ PS> .\bin\kb.ps1 search "react hydration"
284
+
285
+ 🔍 Searching Knowledge Base for: 'react hydration'
286
+
287
+ ✅ Found in INDEX:
288
+ KB-2026-01-01-001-react-hydration-error.md
289
+
290
+ ✅ Found: React Hydration Mismatch Error
291
+ File: .agent/knowledge-base/bugs/high/KB-2026-01-01-001-react-hydration-error.md
292
+ Category: bug | Priority: high
293
+ Context:
294
+ ## Problem
295
+ React shows "Hydration failed" error in production
296
+
297
+ 📊 Search Results: 1 entries found
298
+ ```
299
+
300
+ ### Scenario 2: Add OAuth Implementation
301
+
302
+ ```powershell
303
+ # Add new entry
304
+ PS> .\bin\kb.ps1 add
305
+
306
+ 📝 Knowledge Base - Add New Entry
307
+
308
+ Title: OAuth 2.0 Implementation with Google
309
+ Category (1-6): 2
310
+ Priority (1-4): 2
311
+ Tags: oauth, google, authentication
312
+ Attempts: 4
313
+ Time saved: 3 hours
314
+
315
+ ✅ Entry Created Successfully!
316
+
317
+ 📄 File: .agent/knowledge-base/features/KB-2026-01-02-001-oauth-google.md
318
+
319
+ # Update index
320
+ PS> .\bin\kb.ps1 index
321
+
322
+ ✅ INDEX.md Updated Successfully!
323
+ 📊 Total Entries: 15
324
+ ```
325
+
326
+ ### Scenario 3: Check KB Health
327
+
328
+ ```powershell
329
+ PS> .\bin\kb.ps1 stats
330
+
331
+ 📊 Knowledge Base Statistics
332
+
333
+ 📚 Total Entries: 15
334
+
335
+ 📁 By Category:
336
+ bug : 6 entries (40%)
337
+ ██████████████████████
338
+ feature : 5 entries (33.3%)
339
+ ████████████████
340
+ architecture : 2 entries (13.3%)
341
+ ██████
342
+ security : 2 entries (13.3%)
343
+ ██████
344
+
345
+ ⚠️ By Priority:
346
+ 🔴 critical : 2 entries (13.3%)
347
+ 🟠 high : 5 entries (33.3%)
348
+ 🟡 medium : 6 entries (40%)
349
+ 🟢 low : 2 entries (13.3%)
350
+
351
+ 📈 Compound Learning Metrics:
352
+ Total Attempts: 45
353
+ Avg Attempts per Entry: 3.0
354
+ Total Time Saved: ~38 hours
355
+ Projected Time Saved (2x reuse): ~76 hours
356
+
357
+ 💡 Compound Effect:
358
+ Each entry makes future work easier!
359
+ Keep documenting to compound your knowledge! 🚀
360
+ ```
361
+
362
+ ## 🎯 Best Practices
363
+
364
+ ### When to Search
365
+ - ✅ Before starting any complex task
366
+ - ✅ When encountering an error
367
+ - ✅ When implementing a known pattern
368
+ - ✅ During code review
369
+
370
+ ### When to Add
371
+ - ✅ Bug took 3+ attempts to fix
372
+ - ✅ Solution was non-obvious
373
+ - ✅ Issue likely to recur
374
+ - ✅ Pattern applies to multiple features
375
+ - ✅ Security vulnerability fixed
376
+ - ✅ Performance optimization achieved
377
+
378
+ ### When to Update Index
379
+ - ✅ After adding new entries
380
+ - ✅ After updating existing entries
381
+ - ✅ Weekly maintenance
382
+ - ✅ Before sharing KB with team
383
+
384
+ ## 🔧 Script Details
385
+
386
+ ### File Naming Convention
387
+
388
+ Entries are named: `KB-YYYY-MM-DD-###-title-slug.md`
389
+
390
+ Example: `KB-2026-01-02-001-react-hydration-error.md`
391
+
392
+ - `YYYY-MM-DD` - Date created
393
+ - `###` - Sequential ID for that day
394
+ - `title-slug` - URL-friendly title
395
+
396
+ ### Folder Structure
397
+
398
+ ```
399
+ .agent/knowledge-base/
400
+ ├── bugs/
401
+ │ ├── critical/
402
+ │ ├── high/
403
+ │ ├── medium/
404
+ │ └── low/
405
+ ├── features/
406
+ │ ├── authentication/
407
+ │ ├── performance/
408
+ │ ├── integration/
409
+ │ └── ui-ux/
410
+ ├── architecture/
411
+ ├── security/
412
+ ├── performance/
413
+ └── platform-specific/
414
+ ├── web/
415
+ ├── mobile/
416
+ ├── desktop/
417
+ └── cli/
418
+ ```
419
+
420
+ ### Entry Template
421
+
422
+ Each entry includes:
423
+ - YAML frontmatter (metadata)
424
+ - Problem description
425
+ - What didn't work
426
+ - Solution that worked
427
+ - Code examples
428
+ - Prevention tips
429
+ - Related patterns
430
+
431
+ ## 📚 Documentation
432
+
433
+ - **Simple Guide:** `.agent/knowledge-base/HOW-IT-WORKS.md`
434
+ - **Visual Guide:** `docs/KNOWLEDGE-BASE-GUIDE.md`
435
+ - **Quick Reference:** `docs/KNOWLEDGE-BASE-SIMPLE.md`
436
+ - **Full README:** `.agent/knowledge-base/README.md`
437
+
438
+ ## 🐛 Troubleshooting
439
+
440
+ ### Script Won't Run
441
+
442
+ ```powershell
443
+ # Enable script execution
444
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
445
+ ```
446
+
447
+ ### Search Not Finding Entries
448
+
449
+ - Check spelling
450
+ - Try different keywords
451
+ - Use broader terms
452
+ - Check if entry exists: `.\bin\kb.ps1 list`
453
+
454
+ ### Index Not Updating
455
+
456
+ - Ensure entries have proper YAML frontmatter
457
+ - Check file naming convention
458
+ - Run: `.\bin\kb.ps1 index` manually
459
+
460
+ ## 💡 Tips
461
+
462
+ 1. **Search First** - Always search before solving
463
+ 2. **Document Immediately** - Add entry right after solving
464
+ 3. **Use Tags** - Add relevant tags for better searchability
465
+ 4. **Update Index** - Run `kb.ps1 index` regularly
466
+ 5. **Review Stats** - Check `kb.ps1 stats` weekly
467
+ 6. **Share Knowledge** - Tell team about useful entries
468
+
469
+ ## 🎓 Learning Path
470
+
471
+ ### Week 1: Consumer
472
+ ```powershell
473
+ .\bin\kb.ps1 search "your problem"
474
+ .\bin\kb.ps1 list
475
+ .\bin\kb.ps1 recent
476
+ ```
477
+
478
+ ### Week 2: Contributor
479
+ ```powershell
480
+ .\bin\kb.ps1 add
481
+ .\bin\kb.ps1 index
482
+ ```
483
+
484
+ ### Week 3: Curator
485
+ ```powershell
486
+ .\bin\kb.ps1 stats
487
+ # Update old entries
488
+ .\bin\kb.ps1 index
489
+ ```
490
+
491
+ ## 🚀 Advanced Usage
492
+
493
+ ### Batch Operations
494
+
495
+ ```powershell
496
+ # Search multiple terms
497
+ $terms = @("react", "oauth", "performance")
498
+ foreach ($term in $terms) {
499
+ .\bin\kb.ps1 search $term
500
+ }
501
+
502
+ # List all categories
503
+ $categories = @("bugs", "features", "architecture")
504
+ foreach ($cat in $categories) {
505
+ .\bin\kb.ps1 list $cat
506
+ }
507
+ ```
508
+
509
+ ### Integration with Git
510
+
511
+ ```powershell
512
+ # After adding entry
513
+ .\bin\kb.ps1 add
514
+ .\bin\kb.ps1 index
515
+ git add .agent/knowledge-base/
516
+ git commit -m "docs: add KB entry for OAuth implementation"
517
+ ```
518
+
519
+ ---
520
+
521
+ **Version:** 1.0.0
522
+ **Created:** 2026-01-02
523
+ **Platform:** Windows PowerShell
524
+
525
+ #knowledge-base #scripts #automation #compound-learning
package/bin/cli.js CHANGED
@@ -1,104 +1,79 @@
1
1
  #!/usr/bin/env node
2
-
3
- import fs from 'fs-extra';
4
- import path from 'path';
2
+ import { spawn } from 'child_process';
5
3
  import { fileURLToPath } from 'url';
6
- import { log } from './utils/colors.js';
7
- import { parseArgs } from './utils/args-parser.js';
8
- import { showHelp, showVersion } from './commands/help.js';
9
- import { listTemplates } from './commands/list.js';
10
- import { install } from './commands/install.js';
11
- import { createProject } from './commands/create.js';
12
- import { setupIDE } from './commands/ide.js';
13
- import { initKnowledgeBase } from './commands/init-kb.js';
14
-
15
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
16
- const templatePath = path.join(__dirname, '../.agent');
17
-
18
- // Package info
19
- const packageJson = JSON.parse(
20
- await fs.readFile(path.join(__dirname, '../package.json'), 'utf-8')
21
- );
22
-
23
- /**
24
- * Main CLI entry point
25
- */
26
- async function main() {
27
- const args = process.argv.slice(2);
28
-
29
- // Handle no arguments
30
- if (args.length === 0) {
31
- showHelp(packageJson);
32
- process.exit(0);
33
- }
34
-
35
- const { options, args: filteredArgs } = parseArgs(args);
36
- const command = filteredArgs[0];
37
-
38
- // Handle help flags
39
- if (command === '-h' || command === '--help' || command === 'help') {
40
- showHelp(packageJson);
41
- process.exit(0);
42
- }
43
-
44
- // Handle version flags
45
- if (command === '-v' || command === '--version' || command === 'version') {
46
- showVersion(packageJson);
47
- process.exit(0);
48
- }
4
+ import { dirname, join, resolve } from 'path';
5
+ import fs from 'fs';
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const rootDir = resolve(__dirname, '..');
9
+
10
+ const commands = {
11
+ 'release': 'tools/release/release.py',
12
+ 'kb': 'bin/kb_cli.py',
13
+ 'agent': 'tools/run.py',
14
+ 'validate': 'tools/validation/validate.py',
15
+ 'health': 'tools/validation/health-check.py',
16
+ 'setup': 'tools/setup/init.py'
17
+ };
18
+
19
+ const args = process.argv.slice(2);
20
+ const command = args[0];
21
+
22
+ function printUsage() {
23
+ console.log("Usage: agentic-sdlc <command> [args]");
24
+ console.log("Commands:");
25
+ console.log(" release Manage releases (args: release, preview, changelog, version)");
26
+ console.log(" workflow Run workflows (args: cycle, housekeeping, etc.)");
27
+ console.log(" kb Knowledge Base tools");
28
+ console.log(" agent Run default agent");
29
+ console.log(" validate Validate system");
30
+ console.log(" health Check health");
31
+ console.log(" setup Initialize project");
32
+ }
49
33
 
50
- // Handle commands
51
- switch (command) {
52
- case 'install':
53
- await install(templatePath, options);
54
- break;
34
+ if (!command || command === '--help' || command === '-h') {
35
+ printUsage();
36
+ process.exit(command ? 0 : 1);
37
+ }
55
38
 
56
- case 'create':
57
- const projectName = filteredArgs[1];
58
- if (!projectName) {
59
- log.error('Project name is required');
60
- console.log('Usage: agentic-sdlc create <project-name>');
39
+ let scriptPath = commands[command];
40
+ let scriptArgs = args.slice(1);
41
+
42
+ // Special handling for workflows
43
+ if (command === 'workflow') {
44
+ const sub = args[1];
45
+ if (sub) {
46
+ scriptPath = `tools/workflows/${sub}.py`;
47
+ scriptArgs = args.slice(2);
48
+ } else {
49
+ console.error("Please specify a workflow (e.g., cycle, housekeeping)");
61
50
  process.exit(1);
62
- }
63
- await createProject(templatePath, projectName, options);
64
- break;
65
-
66
- case 'list':
67
- await listTemplates(templatePath);
68
- break;
51
+ }
52
+ }
69
53
 
70
- case 'ide':
71
- const ideName = filteredArgs[1];
72
- if (!ideName) {
73
- log.error('IDE name is required');
74
- console.log('Usage: agentic-sdlc ide <cursor|copilot|windsurf|cline|aider|all>');
75
- process.exit(1);
76
- }
77
- await setupIDE(templatePath, ideName, options);
78
- break;
54
+ if (!scriptPath) {
55
+ console.error(`Unknown command: ${command}`);
56
+ printUsage();
57
+ process.exit(1);
58
+ }
79
59
 
80
- case 'init-kb':
81
- await initKnowledgeBase(templatePath, options);
82
- break;
60
+ const fullPath = join(rootDir, scriptPath);
83
61
 
84
- default:
85
- log.error(`Unknown command: ${command}`);
86
- console.log('Run agentic-sdlc --help for usage information');
87
- process.exit(1);
88
- }
62
+ if (!fs.existsSync(fullPath)) {
63
+ console.error(`Script not found: ${scriptPath}`);
64
+ process.exit(1);
89
65
  }
90
66
 
91
- // Error handlers
92
- process.on('uncaughtException', (err) => {
93
- log.error('Unexpected error occurred');
94
- log.error(err.message);
95
- process.exit(1);
67
+ const pythonProcess = spawn('python', [fullPath, ...scriptArgs], {
68
+ stdio: 'inherit',
69
+ cwd: rootDir // Execute from project root
96
70
  });
97
71
 
98
- process.on('unhandledRejection', (err) => {
99
- log.error('Unhandled promise rejection');
100
- log.error(err.message);
101
- process.exit(1);
72
+ pythonProcess.on('exit', (code) => {
73
+ process.exit(code ?? 0);
102
74
  });
103
75
 
104
- main();
76
+ pythonProcess.on('error', (err) => {
77
+ console.error('Failed to start python process:', err);
78
+ process.exit(1);
79
+ });