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,83 @@
1
+ # Research Report
2
+
3
+ **Task:** landing page brain features update
4
+ **Type:** feature
5
+ **Date:** 2026-01-03T19:03:46.913612
6
+
7
+ ## Summary
8
+
9
+ - **Confidence:** high
10
+ - **Related Entries:** 12
11
+
12
+ ### Findings
13
+
14
+ - Found 12 related entries in Knowledge Base
15
+
16
+ ### Recommendations
17
+
18
+ - ✓ Strong knowledge base available - Review existing solutions before starting
19
+
20
+ ## Detailed Results
21
+
22
+ ### Knowledge Base (12 entries)
23
+
24
+ #### Essential UI/UX Design Skills for 2026
25
+ - File: `.agent\knowledge-base\features\KB-2026-01-01-004-uiux-design-skills-2026.md`
26
+ - Category: features
27
+ - Relevance: 100%
28
+
29
+ #### ✓ Built successfully in 3.20s
30
+ - File: `.agent\knowledge-base\features\KB-2026-01-02-002-landing-page-monorepo-architecture.md`
31
+ - Category: features
32
+ - Relevance: 100%
33
+
34
+ #### Untitled
35
+ - File: `.agent\knowledge-base\features\figma-landing-page-workflow.md`
36
+ - Category: features
37
+ - Relevance: 80%
38
+
39
+ #### Modern Landing Page Design Trends for 2026
40
+ - File: `.agent\knowledge-base\features\KB-2026-01-01-001-landing-page-design-trends-2026.md`
41
+ - Category: features
42
+ - Relevance: 80%
43
+
44
+ #### Build successful
45
+ - File: `.agent\knowledge-base\features\KB-2026-01-01-005-modern-ai-landing-page-ui.md`
46
+ - Category: features
47
+ - Relevance: 80%
48
+
49
+ #### Build successful
50
+ - File: `.agent\knowledge-base\features\KB-2026-01-01-006-award-winning-landing-page-patterns.md`
51
+ - Category: features
52
+ - Relevance: 80%
53
+
54
+ #### Neo4j Graph Database Skills & Best Practices
55
+ - File: `.agent\knowledge-base\architecture\KB-2026-01-01-003-neo4j-graph-database-skills.md`
56
+ - Category: architecture
57
+ - Relevance: 80%
58
+
59
+ #### Figma MCP Integration for @SA
60
+ - File: `.agent\knowledge-base\features\figma-mcp-sa-guide.md`
61
+ - Category: features
62
+ - Relevance: 60%
63
+
64
+ #### Figma MCP Integration for @UIUX
65
+ - File: `.agent\knowledge-base\features\figma-mcp-uiux-guide.md`
66
+ - Category: features
67
+ - Relevance: 40%
68
+
69
+ #### Standard cleanup
70
+ - File: `.agent\knowledge-base\features\KB-2026-01-02-001-cleanup-workflow.md`
71
+ - Category: features
72
+ - Relevance: 40%
73
+
74
+ #### Premium Glassmorphism & Framer Motion Patterns
75
+ - File: `.agent\knowledge-base\features\KB-2026-01-02-003-premium-glassmorphism-patterns.md`
76
+ - Category: features
77
+ - Relevance: 20%
78
+
79
+ #### Untitled
80
+ - File: `.agent\knowledge-base\performance\KB-2026-01-02-lazy-loading-optimization.md`
81
+ - Category: performance
82
+ - Relevance: 20%
83
+
@@ -34,4 +34,4 @@ To effectively manage this project using the AI roles, use the following labels:
34
34
  - `status:done`: Completed.
35
35
 
36
36
  ---
37
- *Generated for the template-instructions manager.*
37
+ *Generated for the agentic-sdlc manager.*
@@ -0,0 +1,575 @@
1
+ # Research Agent System - Complete Setup Guide
2
+
3
+ > Hướng dẫn đầy đủ để setup và sử dụng Research Agent System
4
+
5
+ ## 🎯 Tổng quan
6
+
7
+ Research Agent System đã được tích hợp hoàn chỉnh vào Agentic SDLC với 3 components chính:
8
+
9
+ 1. ✅ **Role Integration** - PM, DEV, TESTER workflows updated
10
+ 2. ✅ **Automated Hooks** - Auto-trigger research
11
+ 3. ✅ **MCP Integration** - Real API calls to external services
12
+
13
+ ---
14
+
15
+ ## 📦 Files Created
16
+
17
+ ### Core Scripts
18
+ ```
19
+ tools/research/
20
+ ├── research_agent.py # Core research agent
21
+ ├── research_mcp.py # MCP integration (placeholder)
22
+ ├── research_mcp_extended.py # Full MCP with real APIs
23
+ └── README.md # Complete documentation
24
+
25
+ tools/setup/
26
+ └── setup_research_hooks.sh # Hook setup script
27
+ ```
28
+
29
+ ### Workflows Updated
30
+ ```
31
+ .agent/workflows/
32
+ ├── pm.md # ✅ Research integration added
33
+ ├── dev.md # ✅ Research integration added
34
+ ├── tester.md # ✅ Research integration added
35
+ └── research.md # ✅ New research workflow
36
+ ```
37
+
38
+ ### Hooks Configuration
39
+ ```
40
+ .kiro/hooks/
41
+ └── auto-research-hook.json # ✅ 5 automated hooks
42
+ ```
43
+
44
+ ### Documentation
45
+ ```
46
+ docs/
47
+ ├── RESEARCH-AGENT-SETUP.md # This file
48
+ └── research-reports/ # Research output directory
49
+ ```
50
+
51
+ ---
52
+
53
+ ## 🚀 Installation Steps
54
+
55
+ ### Step 1: Install Python Dependencies
56
+
57
+ ```bash
58
+ # Required
59
+ pip install neo4j requests
60
+
61
+ # Verify installation
62
+ python3 -c "import neo4j; import requests; print('✓ Dependencies installed')"
63
+ ```
64
+
65
+ ### Step 2: Configure Environment
66
+
67
+ ```bash
68
+ # Copy template
69
+ cp .env.template .env
70
+
71
+ # Edit .env and add your keys:
72
+ nano .env
73
+ ```
74
+
75
+ **Required for basic functionality:**
76
+ ```bash
77
+ # Optional but recommended
78
+ GITHUB_TOKEN=your_github_personal_access_token
79
+ GITHUB_REPO=username/repository
80
+ ```
81
+
82
+ **Optional for advanced features:**
83
+ ```bash
84
+ # Neo4j (for large projects)
85
+ NEO4J_URI=bolt://localhost:7687
86
+ NEO4J_USERNAME=neo4j
87
+ NEO4J_PASSWORD=your_password
88
+
89
+ # External APIs (for MCP extended)
90
+ TAVILY_API_KEY=your_tavily_api_key
91
+ BRAVE_API_KEY=your_brave_api_key
92
+ STACKOVERFLOW_KEY=your_stackoverflow_key
93
+ ```
94
+
95
+ ### Step 3: Make Scripts Executable
96
+
97
+ ```bash
98
+ chmod +x tools/research/research_agent.py
99
+ chmod +x tools/research/research_mcp.py
100
+ chmod +x tools/research/research_mcp_extended.py
101
+ chmod +x tools/setup/setup_research_hooks.sh
102
+ ```
103
+
104
+ ### Step 4: Setup Automated Hooks
105
+
106
+ ```bash
107
+ # Run setup script
108
+ bash tools/setup/setup_research_hooks.sh
109
+
110
+ # Verify hooks installed
111
+ cat .kiro/hooks/auto-research-hook.json
112
+ ```
113
+
114
+ ### Step 5: Create Research Reports Directory
115
+
116
+ ```bash
117
+ mkdir -p docs/research-reports
118
+ ```
119
+
120
+ ### Step 6: Test Installation
121
+
122
+ ```bash
123
+ # Basic test
124
+ python tools/research/research_agent.py --task "test authentication" --type feature
125
+
126
+ # Check output
127
+ ls -la docs/research-reports/
128
+
129
+ # Should see:
130
+ # - research-YYYYMMDD-HHMMSS.json
131
+ # - research-YYYYMMDD-HHMMSS.md
132
+ ```
133
+
134
+ ---
135
+
136
+ ## 🎯 Usage Guide
137
+
138
+ ### 1. Manual Research
139
+
140
+ #### For Planning (@PM)
141
+ ```bash
142
+ python tools/research/research_agent.py \
143
+ --task "Build todo app with authentication" \
144
+ --type general
145
+ ```
146
+
147
+ #### For Development (@DEV)
148
+ ```bash
149
+ python tools/research/research_agent.py \
150
+ --feature "OAuth authentication" \
151
+ --type feature
152
+ ```
153
+
154
+ #### For Bug Fixing (@TESTER)
155
+ ```bash
156
+ python tools/research/research_agent.py \
157
+ --bug "Login timeout error" \
158
+ --type bug
159
+ ```
160
+
161
+ #### For Architecture (@SA)
162
+ ```bash
163
+ python tools/research/research_agent.py \
164
+ --task "Microservices architecture" \
165
+ --type architecture
166
+ ```
167
+
168
+ ### 2. Automated Research (via Hooks)
169
+
170
+ Hooks tự động trigger khi bạn mention roles trong IDE:
171
+
172
+ ```
173
+ User: @PM Build a todo app
174
+ → Hook triggers: python tools/research/research_agent.py --task "Build a todo app"
175
+
176
+ User: @DEV Implement OAuth login
177
+ → Hook triggers: python tools/research/research_agent.py --feature "Implement OAuth login"
178
+
179
+ User: @TESTER Bug: Login fails
180
+ → Hook triggers: python tools/research/research_agent.py --bug "Login fails"
181
+ ```
182
+
183
+ ### 3. MCP Extended (with External APIs)
184
+
185
+ ```bash
186
+ # Use extended version for external API calls
187
+ python tools/research/research_mcp_extended.py \
188
+ --task "OAuth implementation best practices" \
189
+ --type feature
190
+
191
+ # Searches:
192
+ # - Tavily AI Search
193
+ # - Brave Search
194
+ # - Stack Overflow
195
+ # - GitHub Advanced
196
+ # - Documentation sites
197
+ ```
198
+
199
+ ---
200
+
201
+ ## 📊 Understanding Output
202
+
203
+ ### Console Output
204
+
205
+ ```
206
+ ============================================================
207
+ 🔍 RESEARCH AGENT - Starting Research
208
+ ============================================================
209
+ Task: Build authentication system
210
+ Type: feature
211
+ Time: 2026-01-01 10:00:00
212
+ ============================================================
213
+
214
+ 📚 Searching Knowledge Base...
215
+ ✓ Found 3 entries
216
+ • OAuth Implementation Guide
217
+ File: .agent/knowledge-base/features/authentication/KB-2025-12-15-001.md
218
+ Relevance: 80%
219
+
220
+ 🧠 Querying Neo4j Knowledge Graph...
221
+ ✓ Found 5 entries
222
+ Related Technologies:
223
+ • Passport.js (used 5x)
224
+ • JWT (used 8x)
225
+
226
+ 🐙 Searching GitHub Issues...
227
+ ✓ Found 2 issues
228
+ • #123: Implement OAuth authentication (closed)
229
+
230
+ 🔌 Querying External APIs via MCP...
231
+ 🔍 Tavily Search: OAuth implementation
232
+ ✓ Found 5 results
233
+ 📚 Stack Overflow: OAuth implementation
234
+ ✓ Found 3 questions
235
+
236
+ ============================================================
237
+ 📊 RESEARCH SUMMARY
238
+ ============================================================
239
+ Confidence Level: HIGH
240
+ Related Entries: 13
241
+
242
+ Findings:
243
+ • Found 3 related entries in Knowledge Base
244
+ • Found 5 related entries in Neo4j
245
+ • Related technologies: Passport.js, JWT, OAuth2
246
+ • Found 2 related GitHub issues
247
+ • Found 13 external resources via MCP APIs
248
+
249
+ Recommendations:
250
+ ✓ Strong knowledge base available - Review existing solutions before starting
251
+ ============================================================
252
+
253
+ 💾 Research report saved: docs/research-reports/research-20260101-100000.json
254
+ ```
255
+
256
+ ### Confidence Levels
257
+
258
+ **HIGH (5+ entries):**
259
+ - ✅ Strong knowledge available
260
+ - ✅ Review existing solutions
261
+ - ✅ Reuse proven patterns
262
+ - ⏱️ Normal timeline
263
+
264
+ **MEDIUM (2-4 entries):**
265
+ - ⚠️ Some knowledge available
266
+ - ⚠️ Review and adapt
267
+ - ⚠️ Document differences
268
+ - ⏱️ Normal + buffer
269
+
270
+ **LOW (0-1 entries):**
271
+ - ⚠️ New territory
272
+ - ⚠️ Plan extra time
273
+ - ⚠️ Prototype first
274
+ - ⚠️ Document thoroughly
275
+ - ⏱️ Extended timeline
276
+
277
+ ---
278
+
279
+ ## 🔄 Workflow Integration
280
+
281
+ ### PM Workflow (Updated)
282
+
283
+ ```markdown
284
+ ## Before Creating Project Plan
285
+
286
+ 1. User provides requirements
287
+ 2. **RESEARCH FIRST (MANDATORY):**
288
+ ```bash
289
+ python tools/research/research_agent.py --task "[project description]" --type general
290
+ ```
291
+ 3. Review research report in `docs/research-reports/`
292
+ 4. Check confidence level
293
+ 5. Review similar projects in Knowledge Base
294
+ 6. Identify reusable patterns and known challenges
295
+ 7. **Include research findings in project plan:**
296
+ ```markdown
297
+ ## Research Findings
298
+ - Research Date: [date]
299
+ - Confidence Level: [high/medium/low]
300
+ - Related KB Entries: [count]
301
+ - Key Insights: [list]
302
+ - Referenced Entries: [list]
303
+ ```
304
+ 8. Create project plan with adjusted timeline
305
+ 9. Wait for user approval
306
+ ```
307
+
308
+ ### DEV Workflow (Updated)
309
+
310
+ ```markdown
311
+ ## Before Implementation
312
+
313
+ 1. Receive feature assignment
314
+ 2. **RESEARCH FIRST (MANDATORY):**
315
+ ```bash
316
+ python tools/research/research_agent.py --feature "[feature description]" --type feature
317
+ ```
318
+ 3. Review similar implementations
319
+ 4. Identify proven code patterns
320
+ 5. Note known pitfalls and edge cases
321
+ 6. **Document in code:**
322
+ ```javascript
323
+ /**
324
+ * Feature: User Authentication
325
+ * Research: KB-2025-12-15-001 (OAuth Implementation Guide)
326
+ * Pattern: Passport.js + JWT (proven in 5 implementations)
327
+ * Known Issues: Token refresh race condition (KB-2025-12-20-002)
328
+ */
329
+ ```
330
+ 7. Implement with research insights
331
+ 8. If LOW confidence, create KB entry after completion
332
+ ```
333
+
334
+ ### TESTER Workflow (Updated)
335
+
336
+ ```markdown
337
+ ## Before Bug Fixing
338
+
339
+ 1. Bug discovered
340
+ 2. **RESEARCH FIRST (MANDATORY):**
341
+ ```bash
342
+ python tools/research/research_agent.py --bug "[bug description]" --type bug
343
+ ```
344
+ 3. Review similar bugs and their solutions
345
+ 4. Verify if root cause matches known patterns
346
+ 5. **Create bug report with research:**
347
+ ```markdown
348
+ ## Bug Report
349
+
350
+ ### Research Findings
351
+ - Confidence Level: [high/medium/low]
352
+ - Similar Bugs: [count]
353
+ - Related KB Entries: [list]
354
+
355
+ ### Root Cause Analysis
356
+ - Known Pattern: [Yes/No]
357
+ - Previous Solution: [If applicable]
358
+
359
+ ### Proposed Solution
360
+ [Based on research findings]
361
+ ```
362
+ 6. Apply proven solution if available
363
+ 7. If LOW confidence, create KB entry after fix
364
+ ```
365
+
366
+ ---
367
+
368
+ ## 🔧 Configuration
369
+
370
+ ### Hook Configuration
371
+
372
+ Edit `.kiro/hooks/auto-research-hook.json`:
373
+
374
+ ```json
375
+ {
376
+ "hooks": [
377
+ {
378
+ "id": "research-before-planning",
379
+ "enabled": true, // ← Enable/disable
380
+ "trigger": {
381
+ "pattern": "(@PM|/pm|project manager)" // ← Customize pattern
382
+ }
383
+ }
384
+ ],
385
+ "settings": {
386
+ "autoApprove": false, // ← Require approval
387
+ "showNotifications": true, // ← Show notifications
388
+ "logLevel": "info" // ← Log level
389
+ }
390
+ }
391
+ ```
392
+
393
+ ### Research Agent Configuration
394
+
395
+ Edit `tools/research/research_agent.py` to customize:
396
+
397
+ ```python
398
+ # Relevance threshold
399
+ MIN_RELEVANCE = 0.3 # 30%
400
+
401
+ # Max results per source
402
+ MAX_KB_RESULTS = 10
403
+ MAX_NEO4J_RESULTS = 10
404
+ MAX_GITHUB_RESULTS = 10
405
+
406
+ # Confidence thresholds
407
+ HIGH_CONFIDENCE_THRESHOLD = 5
408
+ MEDIUM_CONFIDENCE_THRESHOLD = 2
409
+ ```
410
+
411
+ ---
412
+
413
+ ## 🎓 Best Practices
414
+
415
+ ### 1. Always Research First
416
+ ```
417
+ ❌ BAD: @PM Create plan → Start immediately
418
+ ✓ GOOD: @PM Create plan → Research → Review → Plan with insights
419
+ ```
420
+
421
+ ### 2. Include Research in Artifacts
422
+ ```markdown
423
+ ## Project Plan
424
+
425
+ ### Research Findings
426
+ - Confidence: HIGH
427
+ - Related entries: 8
428
+ - Key insights:
429
+ • OAuth2 flow well-documented
430
+ • JWT best practices available
431
+ • Known token refresh issue
432
+
433
+ ### Timeline Adjustment
434
+ - Original estimate: 2 weeks
435
+ - With research: 1.5 weeks (reusing patterns)
436
+ ```
437
+
438
+ ### 3. Document New Patterns
439
+ ```
440
+ If confidence is LOW:
441
+ 1. Complete implementation
442
+ 2. Create KB entry:
443
+ cp .agent/templates/Knowledge-Entry-Template.md \
444
+ .agent/knowledge-base/features/KB-$(date +%Y-%m-%d)-###-[name].md
445
+ 3. Fill in details
446
+ 4. Update index
447
+ ```
448
+
449
+ ### 4. Cross-Reference in Code
450
+ ```javascript
451
+ /**
452
+ * Research: KB-2025-12-15-001
453
+ * Pattern: Proven in 5 implementations
454
+ * Known Issues: See KB-2025-12-20-002
455
+ */
456
+ function authenticateUser() {
457
+ // Implementation
458
+ }
459
+ ```
460
+
461
+ ### 5. Update Existing Knowledge
462
+ ```
463
+ If you find better solution:
464
+ 1. Open existing KB entry
465
+ 2. Add "Updated" section
466
+ 3. Link to new implementation
467
+ 4. Update index
468
+ ```
469
+
470
+ ---
471
+
472
+ ## 🐛 Troubleshooting
473
+
474
+ ### Issue: Neo4j Connection Failed
475
+ ```bash
476
+ ⚠️ Neo4j connection failed: Connection refused
477
+
478
+ Solution:
479
+ 1. Check Neo4j is running: systemctl status neo4j
480
+ 2. Verify credentials in .env
481
+ 3. Test connection: python tools/neo4j/test_neo4j_connection.py
482
+ 4. Or use file-based KB only (works without Neo4j)
483
+ ```
484
+
485
+ ### Issue: GitHub Rate Limit
486
+ ```bash
487
+ ⚠️ GitHub API error: Rate limit exceeded
488
+
489
+ Solution:
490
+ 1. Wait 1 hour for rate limit reset
491
+ 2. Use authenticated token (higher limit)
492
+ 3. Or disable GitHub search temporarily
493
+ ```
494
+
495
+ ### Issue: No Results Found
496
+ ```bash
497
+ ✗ No entries found in Knowledge Base
498
+ ✗ No entries found in Neo4j
499
+ ✗ No issues found in GitHub
500
+
501
+ Action:
502
+ - This is NEW TERRITORY
503
+ - Plan extra time for exploration
504
+ - Document thoroughly
505
+ - Create KB entry after completion
506
+ ```
507
+
508
+ ### Issue: Hook Not Triggering
509
+ ```bash
510
+ Solution:
511
+ 1. Check hook enabled: cat .kiro/hooks/auto-research-hook.json
512
+ 2. Verify pattern matches: Test with exact trigger phrase
513
+ 3. Restart Kiro IDE
514
+ 4. Check logs for errors
515
+ ```
516
+
517
+ ---
518
+
519
+ ## 📚 Additional Resources
520
+
521
+ ### Documentation
522
+ - **Complete Guide:** `tools/research/README.md`
523
+ - **Workflow Details:** `.agent/workflows/research.md`
524
+ - **PM Integration:** `.agent/workflows/pm.md`
525
+ - **DEV Integration:** `.agent/workflows/dev.md`
526
+ - **TESTER Integration:** `.agent/workflows/tester.md`
527
+
528
+ ### Scripts
529
+ - **Core Agent:** `tools/research/research_agent.py`
530
+ - **MCP Basic:** `tools/research/research_mcp.py`
531
+ - **MCP Extended:** `tools/research/research_mcp_extended.py`
532
+ - **Setup Hooks:** `tools/setup/setup_research_hooks.sh`
533
+
534
+ ### Configuration
535
+ - **Hooks:** `.kiro/hooks/auto-research-hook.json`
536
+ - **Environment:** `.env`
537
+ - **MCP Servers:** `.kiro/settings/mcp.json`
538
+
539
+ ---
540
+
541
+ ## ✅ Verification Checklist
542
+
543
+ After setup, verify everything works:
544
+
545
+ - [ ] Python dependencies installed (`neo4j`, `requests`)
546
+ - [ ] Scripts are executable (`chmod +x`)
547
+ - [ ] `.env` configured with API keys
548
+ - [ ] Hooks installed (`.kiro/hooks/auto-research-hook.json`)
549
+ - [ ] Research reports directory created (`docs/research-reports/`)
550
+ - [ ] Test run successful (`python tools/research/research_agent.py --task "test"`)
551
+ - [ ] Workflows updated (PM, DEV, TESTER have research steps)
552
+ - [ ] Hooks trigger correctly (test with @PM, @DEV, @TESTER)
553
+
554
+ ---
555
+
556
+ ## 🎉 You're Ready!
557
+
558
+ Research Agent System is now fully integrated. Start using it:
559
+
560
+ ```bash
561
+ # Test it
562
+ python tools/research/research_agent.py --task "Build authentication system" --type feature
563
+
564
+ # Or use in IDE
565
+ @PM Build a todo app with authentication
566
+ # → Research runs automatically
567
+ # → Review findings
568
+ # → Create plan with insights
569
+ ```
570
+
571
+ **Remember: Always research first, code second!** 🚀
572
+
573
+ ---
574
+
575
+ #research-agent #setup-guide #integration #automation
@@ -1,6 +1,6 @@
1
1
  # Implementation Plan: GitHub Issue Management Configuration
2
2
 
3
- This plan outlines the setup of GitHub Issue templates and organization to align with the AI-driven SDLC roles in the `template-instructions` project.
3
+ This plan outlines the setup of GitHub Issue templates and organization to align with the AI-driven SDLC roles in the `agentic-sdlc` project.
4
4
 
5
5
  ## 🎯 Objectives
6
6
  - Standardize issue reporting for different SDLC roles.
@@ -1,6 +1,6 @@
1
1
  # Implementation Plan: LEANN AI Brain Integration
2
2
 
3
- This plan outlines the steps to integrate the **LEANN** (Lean and Efficient AI Near-memory) framework into the `template-instructions` project to automate knowledge management and provide agents with deep project context.
3
+ This plan outlines the steps to integrate the **LEANN** (Lean and Efficient AI Near-memory) framework into the `agentic-sdlc` project to automate knowledge management and provide agents with deep project context.
4
4
 
5
5
  ## 🎯 Objectives
6
6
  - Replace manual Knowledge Base indexing with automated LEANN indexing.