agentic-sdlc 1.0.0 → 1.5.1

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 (229) 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 +360 -6
  67. package/README.md +178 -88
  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/research-reports/research-20260104-094131.json +94 -0
  122. package/docs/research-reports/research-20260104-094131.md +78 -0
  123. package/docs/setup/{github-management.md → GITHUB-MANAGEMENT.md} +1 -1
  124. package/docs/setup/RESEARCH-AGENT-SETUP.md +575 -0
  125. package/docs/sprints/{sprint-github-issues.md → SPRINT-GITHUB-ISSUES.md} +1 -1
  126. package/docs/sprints/{sprint-leann-integration.md → SPRINT-LEANN-INTEGRATION.md} +1 -1
  127. package/docs/sprints/sprint-1/designs/Backend-Design-Spec-Sprint-1-v1.md +1206 -0
  128. package/docs/sprints/sprint-1/designs/System-Design-Spec-Sprint-1-v1.md +439 -0
  129. package/docs/sprints/sprint-1/designs/System-Design-Spec-v1.0.md +425 -0
  130. package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-Sprint-1-v1.md +55 -0
  131. package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-v1.0.md +644 -0
  132. package/docs/sprints/sprint-1/logs/DevOps-Plan-and-Log-Sprint-1-v1.md +253 -0
  133. package/docs/sprints/sprint-1/logs/Development-Log-Phase1.md +433 -0
  134. package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1-v1.md +181 -0
  135. package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1.md +548 -0
  136. package/docs/sprints/sprint-1/logs/Orchestration-Log-Sprint-1.md +46 -0
  137. package/docs/sprints/sprint-1/logs/Phase1-Summary.md +84 -0
  138. package/docs/sprints/sprint-1/plans/Product-Backlog-Sprint-1-v1.md +40 -0
  139. package/docs/sprints/sprint-1/plans/Product-Backlog-v1.0.md +613 -0
  140. package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.0.md +210 -0
  141. package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.md +377 -0
  142. package/docs/sprints/sprint-1/reports/Design-Verification-Report-v1.0.md +220 -0
  143. package/docs/sprints/sprint-1/reports/Phase-Report-Sprint-1-v1.md +238 -0
  144. package/docs/sprints/sprint-1/reports/Security-Review-Report-v1.0.md +285 -0
  145. package/docs/sprints/sprint-1/reports/Sprint-Report-Sprint-1.md +74 -0
  146. package/docs/sprints/sprint-1/reports/Test-Report-v1.0.md +346 -0
  147. package/docs/sprints/sprint-1/reviews/Design-Verification-Report.md +508 -0
  148. package/docs/sprints/sprint-1/reviews/Security-Review-Report.md +589 -0
  149. package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-CLEANUP-FINAL.md +121 -0
  150. package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-OPTIMIZATION-COMPLETE.md +224 -0
  151. package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Progress.md +310 -0
  152. package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Session-Summary.md +420 -0
  153. package/docs/sprints/sprint-1/sprint-current/plans/Workflow-Optimization-Implementation-Plan.md +1124 -0
  154. package/docs/sprints/sprint-2/SPRINT-SUMMARY.md +150 -0
  155. package/docs/sprints/sprint-2/designs/UIUX-Design-Spec-Sprint-2-v1.md +352 -0
  156. package/docs/sprints/sprint-2/logs/Development-Log-Sprint-2-v1.md +293 -0
  157. package/docs/sprints/sprint-2/plans/Product-Backlog-Sprint-2-v1.md +62 -0
  158. package/docs/sprints/sprint-2/plans/Project-Plan-Sprint-2-v1.md +228 -0
  159. package/docs/sprints/sprint-2/reports/Phase-Report-Sprint-2-v1.md +303 -0
  160. package/docs/sprints/sprint-3/designs/UIUX-Design-Spec-Sprint-3-v1.md +160 -0
  161. package/docs/sprints/sprint-3/logs/Development-Log-Sprint-3-v1.md +249 -0
  162. package/docs/sprints/sprint-3/logs/Testing-Report-Sprint-3-v1.md +244 -0
  163. package/docs/sprints/sprint-3/plans/Product-Backlog-Sprint-3-v1.md +95 -0
  164. package/docs/sprints/sprint-3/reports/Final-Approval-Report-Sprint-3-v1.md +299 -0
  165. package/docs/sprints/sprint-3/reports/Sprint-Summary-Sprint-3-v1.md +276 -0
  166. package/docs/sprints/sprint-3/reviews/Design-Verification-Report-Sprint-3-v1.md +122 -0
  167. package/docs/sprints/sprint-3/reviews/Security-Review-Report-Sprint-3-v1.md +67 -0
  168. package/docs/sprints/sprint-5/designs/Backend-Design-Spec-Sprint-5-v1.md +1734 -0
  169. package/docs/sprints/sprint-5/designs/Design-Verification-Report.md +101 -0
  170. package/docs/sprints/sprint-5/designs/Security-Review-Report.md +84 -0
  171. package/docs/sprints/sprint-6/.brain-state.json +29 -0
  172. package/package.json +92 -16
  173. package/.agent/ide-integration/aider-commands.md +0 -40
  174. package/.agent/ide-integration/cline-config.json +0 -108
  175. package/.agent/ide-integration/cursor-rules.md +0 -63
  176. package/.agent/ide-integration/github-copilot-instructions.md +0 -75
  177. package/.agent/ide-integration/vscode-commands.json +0 -190
  178. package/.agent/ide-integration/windsurf-cascade.md +0 -125
  179. package/.agent/knowledge-base/index.md +0 -202
  180. package/.agent/legacy/roles/designer.md +0 -311
  181. package/.agent/legacy/roles/dev.md +0 -177
  182. package/.agent/legacy/roles/devops.md +0 -146
  183. package/.agent/legacy/roles/orchestrator.md +0 -339
  184. package/.agent/legacy/roles/pm.md +0 -120
  185. package/.agent/legacy/roles/po.md +0 -89
  186. package/.agent/legacy/roles/qa.md +0 -108
  187. package/.agent/legacy/roles/reporter.md +0 -70
  188. package/.agent/legacy/roles/sa.md +0 -118
  189. package/.agent/legacy/roles/seca.md +0 -112
  190. package/.agent/legacy/roles/stakeholder.md +0 -111
  191. package/.agent/legacy/roles/tester.md +0 -129
  192. package/.agent/rules/global.md.bak +0 -154
  193. package/.agent/usage.md +0 -653
  194. package/.agent/workflows/auto.md +0 -35
  195. package/.agent/workflows/dev.md +0 -30
  196. package/.agent/workflows/devops.md +0 -28
  197. package/.agent/workflows/kb-search.md +0 -22
  198. package/.agent/workflows/pm.md +0 -42
  199. package/.agent/workflows/po.md +0 -21
  200. package/.agent/workflows/qa.md +0 -31
  201. package/.agent/workflows/reporter.md +0 -21
  202. package/.agent/workflows/sa.md +0 -51
  203. package/.agent/workflows/seca.md +0 -21
  204. package/.agent/workflows/stakeholder.md +0 -26
  205. package/.agent/workflows/tester.md +0 -21
  206. package/.agent/workflows/uiux.md +0 -38
  207. package/.cursorrules +0 -49
  208. package/.env.template +0 -10
  209. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -47
  210. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  211. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -33
  212. package/.github/ISSUE_TEMPLATE/security_alert.yml +0 -28
  213. package/.github/ISSUE_TEMPLATE/task_implementation.yml +0 -37
  214. package/.github/copilot-instructions.md +0 -60
  215. package/bin/commands/create.js +0 -96
  216. package/bin/commands/help.js +0 -69
  217. package/bin/commands/ide.js +0 -116
  218. package/bin/commands/init-kb.js +0 -74
  219. package/bin/commands/install.js +0 -68
  220. package/bin/commands/list.js +0 -35
  221. package/bin/graph_brain.py +0 -86
  222. package/bin/sync_github.py +0 -75
  223. package/bin/utils/args-parser.js +0 -33
  224. package/bin/utils/colors.js +0 -21
  225. package/bin/verify_neo4j.py +0 -25
  226. /package/.agent/rules/{knowledge-base.md → KNOWLEDGE-BASE.md} +0 -0
  227. /package/docs/architecture/{neo4j-learning-queries.md → NEO4J-LEARNING-QUERIES.md} +0 -0
  228. /package/docs/reports/{comparison-leann-neo4j.md → COMPARISON-LEANN-NEO4J.md} +0 -0
  229. /package/docs/sprints/{sprint-neo4j-brain.md → SPRINT-NEO4J-BRAIN.md} +0 -0
@@ -0,0 +1,492 @@
1
+ # Monorepo Architecture - Brain System
2
+
3
+ ## Overview
4
+
5
+ This project uses a **monorepo architecture** where the root contains the **Brain** (AI Agent System) and all sub-projects share and use it.
6
+
7
+ ## Architecture Diagram
8
+
9
+ ```mermaid
10
+ graph TB
11
+ subgraph ROOT["🧠 BRAIN (Root: agentic-sdlc/)"]
12
+ AGENT[".agent/<br/>Workflows, KB, Roles"]
13
+ KIRO[".kiro/<br/>Steering, Settings"]
14
+ TOOLS["tools/<br/>Neo4j, Research, Utils"]
15
+ DOCS["docs/<br/>Documentation"]
16
+ end
17
+
18
+ subgraph PROJECTS["📦 PROJECTS (projects/)"]
19
+ TODO["todo-app/<br/>Task Management"]
20
+ LANDING["landing-page/<br/>Astro Site"]
21
+ FUTURE["[your-project]/<br/>Add More..."]
22
+ end
23
+
24
+ AGENT -.->|"Shared Workflows"| TODO
25
+ AGENT -.->|"Shared Workflows"| LANDING
26
+ AGENT -.->|"Shared Workflows"| FUTURE
27
+
28
+ KIRO -.->|"Shared Settings"| TODO
29
+ KIRO -.->|"Shared Settings"| LANDING
30
+ KIRO -.->|"Shared Settings"| FUTURE
31
+
32
+ TOOLS -.->|"Shared Tools"| TODO
33
+ TOOLS -.->|"Shared Tools"| LANDING
34
+ TOOLS -.->|"Shared Tools"| FUTURE
35
+
36
+ DOCS -.->|"Documentation"| TODO
37
+ DOCS -.->|"Documentation"| LANDING
38
+ DOCS -.->|"Documentation"| FUTURE
39
+
40
+ style ROOT fill:#e1f5ff,stroke:#01579b,stroke-width:3px
41
+ style PROJECTS fill:#f3e5f5,stroke:#4a148c,stroke-width:2px
42
+ style AGENT fill:#fff3e0,stroke:#e65100
43
+ style KIRO fill:#fff3e0,stroke:#e65100
44
+ style TOOLS fill:#fff3e0,stroke:#e65100
45
+ style DOCS fill:#fff3e0,stroke:#e65100
46
+ ```
47
+
48
+ ## Directory Structure
49
+
50
+ ```
51
+ agentic-sdlc/ # 🧠 BRAIN (Root)
52
+
53
+ ├── 📁 .agent/ # ✅ SHARED - AI Agent System
54
+ │ ├── workflows/ # Workflow implementations
55
+ │ │ ├── documentation-updates.md
56
+ │ │ ├── pm.md
57
+ │ │ ├── dev.md
58
+ │ │ └── ...
59
+ │ ├── knowledge-base/ # Compound learning KB
60
+ │ │ ├── INDEX.md
61
+ │ │ ├── bugs/
62
+ │ │ ├── features/
63
+ │ │ ├── architecture/
64
+ │ │ └── ...
65
+ │ ├── roles/ # AI role definitions
66
+ │ ├── templates/ # Document templates
67
+ │ └── rules/ # Global rules
68
+
69
+ ├── 📁 .kiro/ # ✅ SHARED - Kiro IDE Settings
70
+ │ ├── steering/ # Steering files
71
+ │ │ ├── global-rules.md
72
+ │ │ ├── compound-learning.md
73
+ │ │ ├── workflow-enhancements.md
74
+ │ │ └── ...
75
+ │ └── settings/ # IDE settings
76
+ │ └── mcp.json
77
+
78
+ ├── 📁 tools/ # ✅ SHARED - Utilities
79
+ │ ├── neo4j/ # Knowledge graph
80
+ │ │ ├── sync_skills_to_neo4j.py
81
+ │ │ ├── query_skills_neo4j.py
82
+ │ │ └── README.md
83
+ │ ├── research/ # Research agent
84
+ │ │ ├── research_agent.py
85
+ │ │ └── README.md
86
+ │ ├── kb/ # KB management
87
+ │ ├── github/ # GitHub integration
88
+ │ ├── setup/ # Setup scripts
89
+ │ └── README.md
90
+
91
+ ├── 📁 docs/ # Documentation
92
+ │ ├── PROJECT-DOCUMENTATION-INDEX.md
93
+ │ ├── ARCHITECTURE-OVERVIEW.md
94
+ │ ├── guides/
95
+ │ ├── setup/
96
+ │ └── ...
97
+
98
+ ├── 📁 projects/ # 📦 SUB-PROJECTS
99
+ │ ├── README.md # Monorepo guide
100
+ │ │
101
+ │ ├── 📁 todo-app/ # Project 1
102
+ │ │ ├── frontend/
103
+ │ │ ├── backend/
104
+ │ │ ├── package.json
105
+ │ │ └── README.md
106
+ │ │
107
+ │ ├── 📁 landing-page/ # Project 2
108
+ │ │ ├── src/
109
+ │ │ ├── public/
110
+ │ │ ├── astro.config.mjs
111
+ │ │ └── README.md
112
+ │ │
113
+ │ └── 📁 [your-project]/ # Add more...
114
+ │ └── ...
115
+
116
+ ├── 📁 bin/ # Legacy CLI (deprecated)
117
+ ├── 📁 trash/ # Archived files
118
+
119
+ ├── README.md # Main README
120
+ ├── package.json # Root package.json
121
+ └── .gitignore
122
+ ```
123
+
124
+ ## How It Works
125
+
126
+ ### 🧠 Brain Components
127
+
128
+ #### 1. `.agent/` - AI Agent System
129
+ **Purpose:** Core AI workflows, knowledge base, and role definitions
130
+
131
+ **What's Shared:**
132
+ - ✅ Workflows: `/cycle`, `/explore`, `/compound`, `/emergency`
133
+ - ✅ Roles: @PM, @DEV, @SA, @UIUX, @QA, @SECA, etc.
134
+ - ✅ Knowledge Base: Shared learnings across all projects
135
+ - ✅ Templates: Document templates for all projects
136
+
137
+ **Usage from Projects:**
138
+ ```bash
139
+ cd projects/todo-app
140
+ @DEV /cycle - Add new feature
141
+ @PM - Create project plan
142
+ ```
143
+
144
+ #### 2. `.kiro/` - Kiro IDE Settings
145
+ **Purpose:** IDE configuration and steering files
146
+
147
+ **What's Shared:**
148
+ - ✅ Steering files: Global rules, patterns, workflows
149
+ - ✅ MCP settings: Shared MCP server configurations
150
+ - ✅ IDE settings: Consistent IDE behavior
151
+
152
+ **Usage from Projects:**
153
+ ```bash
154
+ # Steering files automatically loaded
155
+ # MCP tools available in all projects
156
+ ```
157
+
158
+ #### 3. `tools/` - Shared Utilities
159
+ **Purpose:** Common tools and scripts
160
+
161
+ **What's Shared:**
162
+ - ✅ Neo4j: Knowledge graph database
163
+ - ✅ Research Agent: Automated research system
164
+ - ✅ KB Management: Knowledge base utilities
165
+ - ✅ GitHub Integration: Sync and automation
166
+ - ✅ Setup Scripts: Installation and configuration
167
+
168
+ **Usage from Projects:**
169
+ ```bash
170
+ cd projects/landing-page
171
+ python ../../tools/neo4j/sync_skills_to_neo4j.py
172
+ python ../../tools/research/research_agent.py --task "..."
173
+ ```
174
+
175
+ #### 4. `docs/` - Documentation
176
+ **Purpose:** Centralized documentation
177
+
178
+ **What's Shared:**
179
+ - ✅ Architecture guides
180
+ - ✅ Setup instructions
181
+ - ✅ Best practices
182
+ - ✅ API documentation
183
+
184
+ ### 📦 Project Structure
185
+
186
+ Each project in `projects/` can have:
187
+
188
+ ```
189
+ projects/your-project/
190
+ ├── src/ # Your source code
191
+ ├── tests/ # Your tests
192
+ ├── .kiro/ # Project-specific settings
193
+ │ └── specs/ # Project-specific specs
194
+ │ └── feature-name/
195
+ │ ├── requirements.md
196
+ │ ├── design.md
197
+ │ └── tasks.md
198
+ ├── package.json # Project dependencies
199
+ └── README.md # Project documentation
200
+ ```
201
+
202
+ **Note:** Projects do NOT duplicate `.agent/`, `.kiro/steering/`, or `tools/`
203
+
204
+ ## Workflow Examples
205
+
206
+ ### Example 1: Start New Feature
207
+ ```bash
208
+ # Navigate to project
209
+ cd projects/todo-app
210
+
211
+ # Use Brain workflows
212
+ @DEV /cycle - Add user authentication
213
+
214
+ # Brain automatically:
215
+ # 1. Uses workflows from /.agent/workflows/
216
+ # 2. Searches KB in /.agent/knowledge-base/
217
+ # 3. Uses tools from /tools/
218
+ # 4. Stores learnings in shared KB
219
+ ```
220
+
221
+ ### Example 2: Research for Project
222
+ ```bash
223
+ cd projects/landing-page
224
+
225
+ # Use research agent
226
+ @SA /explore - Best practices for landing page SEO
227
+
228
+ # Research agent:
229
+ # 1. Uses /tools/research/research_agent.py
230
+ # 2. Stores findings in /.agent/knowledge-base/
231
+ # 3. Available to all other projects
232
+ ```
233
+
234
+ ### Example 3: Sync Knowledge
235
+ ```bash
236
+ # From any project or root
237
+ sync
238
+
239
+ # Syncs to Neo4j:
240
+ # - All KB entries from /.agent/knowledge-base/
241
+ # - Available to all projects via graph queries
242
+ ```
243
+
244
+ ### Example 4: Emergency Fix
245
+ ```bash
246
+ cd projects/todo-app
247
+
248
+ # Emergency workflow
249
+ @DEV /emergency - Database connection failing
250
+
251
+ # Emergency workflow:
252
+ # 1. Uses /.agent/workflows/emergency.md
253
+ # 2. Documents fix in /.agent/knowledge-base/
254
+ # 3. Other projects learn from this fix
255
+ ```
256
+
257
+ ## Benefits
258
+
259
+ ### 🧠 Shared Intelligence
260
+ - **One Knowledge Base:** All projects contribute and benefit
261
+ - **Compound Learning:** Solutions compound over time
262
+ - **Cross-Project Patterns:** Learn once, apply everywhere
263
+
264
+ ### 🔧 Shared Tools
265
+ - **No Duplication:** One set of tools for all projects
266
+ - **Consistent Workflows:** Same AI workflows everywhere
267
+ - **Centralized Maintenance:** Update once, affects all
268
+
269
+ ### 📚 Shared Documentation
270
+ - **Common Standards:** Unified documentation style
271
+ - **Cross-References:** Easy linking between projects
272
+ - **Single Source of Truth:** Documentation in one place
273
+
274
+ ### ⚡ Faster Development
275
+ - **Reuse Solutions:** Search KB before implementing
276
+ - **Automated Workflows:** Ready-to-use AI workflows
277
+ - **Shared Research:** Research once, use everywhere
278
+
279
+ ## Adding New Projects
280
+
281
+ ### Method 1: Create New
282
+ ```bash
283
+ cd projects
284
+ mkdir my-new-project
285
+ cd my-new-project
286
+
287
+ # Initialize project
288
+ npm init -y
289
+
290
+ # Start using Brain immediately
291
+ @PM - Build a new e-commerce platform
292
+ ```
293
+
294
+ ### Method 2: Move Existing
295
+ ```bash
296
+ # From root
297
+ mv /path/to/existing-project projects/existing-project
298
+
299
+ # Brain automatically available
300
+ cd projects/existing-project
301
+ @DEV /cycle - Refactor authentication
302
+ ```
303
+
304
+ ### Method 3: Clone Template
305
+ ```bash
306
+ cd projects
307
+ cp -r todo-app my-new-project
308
+ cd my-new-project
309
+
310
+ # Customize and use Brain
311
+ @DEV - Implement new features
312
+ ```
313
+
314
+ ## Best Practices
315
+
316
+ ### ✅ DO
317
+
318
+ 1. **Use Brain from Projects**
319
+ ```bash
320
+ cd projects/your-project
321
+ @DEV /cycle - Add feature
322
+ ```
323
+
324
+ 2. **Contribute to Shared KB**
325
+ ```bash
326
+ # After solving complex problems
327
+ @DEV /compound - Document the solution
328
+ ```
329
+
330
+ 3. **Use Relative Paths for Tools**
331
+ ```bash
332
+ python ../../tools/neo4j/sync_skills_to_neo4j.py
333
+ ```
334
+
335
+ 4. **Keep Projects in `projects/`**
336
+ ```
337
+ projects/
338
+ ├── project-1/
339
+ ├── project-2/
340
+ └── project-3/
341
+ ```
342
+
343
+ 5. **Sync After Major Changes**
344
+ ```bash
345
+ sync # Sync to Neo4j KB
346
+ ```
347
+
348
+ ### ❌ DON'T
349
+
350
+ 1. **Don't Copy Brain Files**
351
+ ```bash
352
+ # ❌ WRONG
353
+ cp -r .agent/ projects/my-project/.agent/
354
+
355
+ # ✅ RIGHT
356
+ # Just use Brain from root
357
+ ```
358
+
359
+ 2. **Don't Create Duplicate Tools**
360
+ ```bash
361
+ # ❌ WRONG
362
+ projects/my-project/tools/neo4j/
363
+
364
+ # ✅ RIGHT
365
+ # Use /tools/ from root
366
+ ```
367
+
368
+ 3. **Don't Store Project-Specific KB in Root**
369
+ ```bash
370
+ # ❌ WRONG
371
+ .agent/knowledge-base/my-project-specific/
372
+
373
+ # ✅ RIGHT
374
+ projects/my-project/.kiro/specs/
375
+ ```
376
+
377
+ 4. **Don't Modify Brain Without Coordination**
378
+ ```bash
379
+ # ⚠️ CAREFUL - Affects all projects
380
+ vim .agent/workflows/dev.md
381
+ ```
382
+
383
+ ## Git Workflow
384
+
385
+ ### Project-Specific Changes
386
+ ```bash
387
+ cd projects/your-project
388
+ git add .
389
+ git commit -m "feat(your-project): add new feature"
390
+ git push
391
+ ```
392
+
393
+ ### Brain Changes (Affects All)
394
+ ```bash
395
+ # From root
396
+ git add .agent/ .kiro/ tools/
397
+ git commit -m "feat(brain): add new workflow"
398
+ git push
399
+ ```
400
+
401
+ ### Monorepo Commit
402
+ ```bash
403
+ # From root
404
+ git add .
405
+ git commit -m "feat: update multiple projects and brain"
406
+ git push
407
+ ```
408
+
409
+ ## Troubleshooting
410
+
411
+ ### Brain Not Found
412
+ ```bash
413
+ # Verify you're in monorepo
414
+ ls ../../.agent/ # Should show Brain files
415
+
416
+ # Check current location
417
+ pwd # Should be in projects/your-project/
418
+ ```
419
+
420
+ ### Tools Not Accessible
421
+ ```bash
422
+ # Use relative paths
423
+ python ../../tools/neo4j/sync_skills_to_neo4j.py
424
+
425
+ # Or add to PATH (advanced)
426
+ export PATH="$PATH:$(pwd)/../../tools"
427
+ ```
428
+
429
+ ### Workflows Not Working
430
+ ```bash
431
+ # Ensure Kiro IDE is configured
432
+ ls ../../.kiro/steering/ # Should show steering files
433
+
434
+ # Check MCP settings
435
+ cat ../../.kiro/settings/mcp.json
436
+ ```
437
+
438
+ ### KB Not Syncing
439
+ ```bash
440
+ # Sync from root
441
+ cd ../..
442
+ sync
443
+
444
+ # Or use full path
445
+ python tools/neo4j/sync_skills_to_neo4j.py
446
+ ```
447
+
448
+ ## Migration Guide
449
+
450
+ ### Moving Existing Project to Monorepo
451
+
452
+ 1. **Backup Project**
453
+ ```bash
454
+ cp -r /path/to/project /path/to/project.backup
455
+ ```
456
+
457
+ 2. **Move to Projects**
458
+ ```bash
459
+ mv /path/to/project projects/project-name
460
+ ```
461
+
462
+ 3. **Update Paths in Project**
463
+ ```bash
464
+ cd projects/project-name
465
+ # Update any absolute paths to relative paths
466
+ ```
467
+
468
+ 4. **Test Brain Access**
469
+ ```bash
470
+ @DEV - Test workflow
471
+ sync # Test KB sync
472
+ ```
473
+
474
+ 5. **Update Documentation**
475
+ ```bash
476
+ # Update project README.md
477
+ # Add reference to Brain
478
+ ```
479
+
480
+ ## Related Documentation
481
+
482
+ - **[Projects README](../projects/README.md)** - Detailed project guide
483
+ - **[Brain Overview](../.agent/README.md)** - AI Agent System
484
+ - **[Tools Documentation](../tools/README.md)** - Shared tools
485
+ - **[Kiro Steering](../.kiro/steering/README.md)** - Steering files
486
+ - **[Main README](../README.md)** - Project overview
487
+
488
+ ---
489
+
490
+ **Remember:** Brain is at the root. All projects share and benefit from it. 🧠✨
491
+
492
+ #monorepo #architecture #brain #shared-intelligence #compound-learning