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
@@ -1,56 +1,87 @@
1
1
  ---
2
- description: LEANN AI Brain - Automated Project Memory
2
+ description: [Support] @BRAIN Meta-Level System Controller
3
3
  ---
4
4
 
5
- # LEANN AI Brain Workflow
6
-
7
- This workflow manages the automated project memory using the LEANN (Lean and Efficient AI Near-memory) framework.
8
-
9
- ## 🚀 Setup & Initialization
10
-
11
- 1. **Install LEANN Core**
12
- If not already installed, run:
13
- ```bash
14
- pip install leann-core leann-backend-hnsw
15
- ```
16
-
17
- 2. **Initialize Project Index**
18
- Index the current workspace with AST-aware chunking:
19
- ```bash
20
- leann index --path .
21
- ```
22
-
23
- ## 🧠 Memory & Reasoning Management
24
-
25
- 3. **Update LEANN Index (Vector)**
26
- Run this for semantic code search:
27
- ```bash
28
- leann index --update
29
- ```
30
-
31
- 4. **Update Neo4j Graph (Reasoning)**
32
- Run this to sync project structure and GitHub issues to the cloud:
33
- ```bash
34
- # Sync file structure
35
- python bin/graph_brain.py
36
-
37
- # Sync GitHub issues
38
- python bin/sync_github.py
39
- ```
40
-
41
- 5. **Search Project Brain**
42
- - **Semantic Search:** `leann search "{{query}}"`
43
- - **Reasoning Query:** Use the Neo4j console or custom scripts to find relationships between issues and code.
44
-
45
- ## 🔌 IDE Integration (MCP)
46
-
47
- 6. **Start LEANN MCP Server**
48
- ```bash
49
- bunx --bun @yichuan-w/leann-mcp
50
- ```
51
- *Note: Add this to your `claude_desktop_config.json` or Cursor MCP settings.*
52
-
53
- ## 📋 Best Practices
54
- - Use `/brain <query>` in chat to trigger this workflow.
55
- - Indexing is AST-aware; it understands functions, classes, and logic flow better than standard grep.
56
- - Keep the index updated to ensure agents have the latest context.
5
+ # Brain Workflow
6
+
7
+ > **Skill Definition:** [View Skill](../../skills/role-brain.md)
8
+
9
+ ## Identity
10
+ @BRAIN is the **Meta-Level Controller** that supervises ALL workflows in the system.
11
+ Brain is NOT an executor—it monitors, detects issues, routes to handlers, scores quality, and creates self-improvement plans.
12
+
13
+ // turbo-all
14
+
15
+ ## Root Components (Layer 1)
16
+
17
+ ### Observer (Halt on Errors)
18
+ ```bash
19
+ python tools/brain/observer.py --watch # Monitor workflows
20
+ python tools/brain/observer.py --halt "Err" # Halt system
21
+ python tools/brain/observer.py --resume # Resume after halt
22
+ ```
23
+
24
+ ### Judge (Score Quality)
25
+ ```bash
26
+ python tools/brain/judge.py --score "path/to/report.md"
27
+ python tools/brain/judge.py --review --sprint 1
28
+ python tools/brain/judge.py --threshold 7 # Set pass threshold
29
+ ```
30
+
31
+ ### Learner (Auto-Learning)
32
+ ```bash
33
+ python tools/brain/learner.py --learn "Task completed"
34
+ python tools/brain/learner.py --watch
35
+ python tools/brain/learner.py --stats
36
+ ```
37
+
38
+ ### A/B Tester (Compare Options)
39
+ ```bash
40
+ python tools/brain/ab_tester.py --create "Test description"
41
+ python tools/brain/ab_tester.py --compare --test-id TEST-001
42
+ python tools/brain/ab_tester.py --select A --test-id TEST-001
43
+ ```
44
+
45
+ ### Model Optimizer (Token Efficiency)
46
+ ```bash
47
+ python tools/brain/model_optimizer.py --recommend "Task description"
48
+ python tools/brain/model_optimizer.py --record --model "gemini-2.5" --tokens 1500
49
+ ```
50
+
51
+ ### Self-Improver (Create Improvement Plans)
52
+ ```bash
53
+ python tools/brain/self_improver.py --analyze # Analyze all data
54
+ python tools/brain/self_improver.py --plan # Create improvement plan
55
+ python tools/brain/self_improver.py --apply-plan PLAN-ID
56
+ ```
57
+
58
+ ## State Management
59
+ ```bash
60
+ python tools/brain/brain_cli.py init 1 # Initialize sprint
61
+ python tools/brain/brain_cli.py status # Check status
62
+ python tools/brain/brain_cli.py transition STATE --reason "Reason"
63
+ python tools/brain/brain_cli.py validate # Validate state
64
+ python tools/brain/brain_cli.py rollback # Rollback
65
+ ```
66
+
67
+ ## Supervisor Commands
68
+ ```bash
69
+ python tools/brain/brain_cli.py watch # Monitor workflows
70
+ python tools/brain/brain_cli.py route "request" # Route to workflow
71
+ python tools/brain/brain_cli.py health # Health check
72
+ ```
73
+
74
+ ## Sync Commands
75
+ ```bash
76
+ python tools/neo4j/brain_parallel.py --sync # Quick sync
77
+ python tools/neo4j/brain_parallel.py --full # Full sync
78
+ ```
79
+
80
+ #brain #root-layer #meta-controller
81
+
82
+
83
+ ---
84
+
85
+ ## ENFORCEMENT REMINDER
86
+ Before executing, complete /preflight checks.
87
+
@@ -0,0 +1,51 @@
1
+ ---
2
+ description: [Support] Compound Knowledge Capture - After Tasks
3
+ ---
4
+
5
+ # Compound Learning Workflow
6
+
7
+ ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
+ This workflow MUST be executed after completing any significant task.
9
+
10
+ ## When to Use
11
+ - After fixing a bug (medium+ priority)
12
+ - After completing a feature
13
+ - After resolving a complex problem (3+ hours)
14
+
15
+ ## Steps
16
+
17
+ ### 1. Create KB Entry
18
+ ```bash
19
+ cp .agent/templates/Knowledge-Entry-Template.md \
20
+ .agent/knowledge-base/[category]/KB-$(date +%Y-%m-%d)-###-[name].md
21
+ ```
22
+
23
+ ### 2. Fill Entry
24
+ - Problem/Challenge
25
+ - Solution
26
+ - Implementation details
27
+ - Learnings
28
+
29
+ ### 3. Sync to Neo4j
30
+ ```bash
31
+ python tools/neo4j/sync_skills_to_neo4j.py
32
+ ```
33
+
34
+ ### 4. Update KB Index
35
+ ```bash
36
+ python bin/kb_cli.py update-index
37
+ ```
38
+
39
+ ### 5. Record Success (Learning Engine)
40
+ ```bash
41
+ python tools/neo4j/learning_engine.py --record-success "TASK-ID" --task-type "feature"
42
+ ```
43
+
44
+ #compound #learning #knowledge-base
45
+
46
+
47
+ ---
48
+
49
+ ## ENFORCEMENT REMINDER
50
+ Before executing, complete /preflight checks.
51
+
@@ -0,0 +1,61 @@
1
+ ---
2
+ description: [Process] Complete Task Lifecycle - Plan → Work → Review → Compound
3
+ ---
4
+
5
+ # /cycle - Complete Task Lifecycle
6
+
7
+ ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
+ 1. **NO SKIPPING:** Every step is MANDATORY.
9
+ 2. **TEAM COMMUNICATION FIRST:** Announce start and check history.
10
+ 3. **GIT FLOW:** Feature branch, atomic commits, PR.
11
+ 4. **SELF-LEARNING:** After completion, update Neo4j.
12
+
13
+ ### 0.0 **Team Communication (MANDATORY):**
14
+ - **Check History:** `python tools/communication/cli.py history --channel general --limit 10`
15
+ - **Announce Start:** `python tools/communication/cli.py send --channel general --thread "SDLC-Flow" --role AGENT --content "Starting /cycle for [Task]."`
16
+
17
+ ## Workflow Steps
18
+
19
+ ### 1. Research Phase (MANDATORY)
20
+ ```bash
21
+ python tools/research/research_agent.py --feature "[task]" --type feature
22
+ ```
23
+ - [ ] Search KB for similar implementations.
24
+ - [ ] Check GitHub issues for context.
25
+
26
+ ### 2. Planning
27
+ - Define acceptance criteria.
28
+ - Add task to `Development-Log.md`.
29
+
30
+ ### 3. Feature Branch
31
+ ```bash
32
+ git checkout -b feat/TASK-ID-name
33
+ git push -u origin feat/TASK-ID-name
34
+ ```
35
+
36
+ ### 4. Implementation
37
+ - Code according to plan.
38
+ - Atomic commits: `git commit -m "[TASK-ID] feat: description"`
39
+
40
+ ### 5. Verification
41
+ - Run local tests.
42
+ - Create PR, tag @TESTER.
43
+
44
+ ### 6. Merge
45
+ - Wait for `#testing-passed`.
46
+ - Merge via @DEVOPS or @SA.
47
+
48
+ ### 7. Self-Learning (MANDATORY)
49
+ ```bash
50
+ python tools/neo4j/sync_skills_to_neo4j.py
51
+ python tools/neo4j/learning_engine.py --record-success "TASK-ID" --task-type "feature"
52
+ ```
53
+ - Update `CHANGELOG.md`.
54
+
55
+ #cycle #workflow #git-flow #self-learning---
56
+ ## ⚠️ ENFORCEMENT REMINDER
57
+ Before executing this workflow, agent MUST:
58
+ 1. Have completed /preflight checks
59
+ 2. Searched knowledge base for similar tasks
60
+ 3. Checked current brain state
61
+ Failure to complete pre-flight = workflow violation.
@@ -0,0 +1,114 @@
1
+ ---
2
+ description: [Process] Emergency/Hotfix Response Workflow
3
+ ---
4
+
5
+ # /emergency - Critical Incident Response
6
+
7
+ ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
+ 1. **IMMEDIATE ACTION:** This workflow takes priority over all other tasks.
9
+ 2. **TIME-BOXED ASSESSMENT:** Max 5 minutes for initial assessment.
10
+ 3. **MITIGATION FIRST:** Stop the bleeding before fixing root cause.
11
+ 4. **COMPOUND LEARNING:** Create KB entry after resolution (MANDATORY).
12
+
13
+ ### 0.0 **Declare Incident:**
14
+ ```bash
15
+ python tools/workflows/emergency.py --severity P0 --issue "[issue description]"
16
+ ```
17
+
18
+ ## Severity Levels
19
+
20
+ | Level | Response Time | Examples |
21
+ |-------|--------------|----------|
22
+ | **P0** | < 15 min | Production down, data loss, security breach |
23
+ | **P1** | < 1 hour | Major feature broken, significant user impact |
24
+ | **P2** | < 4 hours | Minor feature broken, workaround available |
25
+
26
+ ## Workflow Steps
27
+
28
+ ### 1. Declare Incident (Minute 0)
29
+ - Assign incident ID: `INCIDENT-YYYYMMDDHHMMSS`
30
+ - Create incident channel/thread
31
+ - Notify stakeholders
32
+ - Assign incident commander
33
+
34
+ ### 2. Rapid Assessment (5 min max)
35
+ ```bash
36
+ # Search KB for similar incidents
37
+ python tools/research/research_agent.py --task "[issue]" --type bug
38
+ ```
39
+ **Quick Checks:**
40
+ - [ ] Check monitoring/logs
41
+ - [ ] Verify deployment timeline
42
+ - [ ] Check external dependencies
43
+ - [ ] Review recent commits
44
+
45
+ ### 3. Immediate Mitigation
46
+
47
+ **Options (fastest first):**
48
+ 1. **Rollback** - Revert to last known good (~2 min)
49
+ 2. **Feature Flag** - Disable broken feature (~1 min)
50
+ 3. **Traffic** - Route around problem (~5 min)
51
+ 4. **Scale Up** - Add resources if capacity issue (~10 min)
52
+
53
+ ### 4. Root Cause Analysis
54
+ While mitigation deploys:
55
+ - Review error logs
56
+ - Check monitoring dashboards
57
+ - Reproduce in staging
58
+
59
+ ### 5. Hotfix Development (Fast Track)
60
+ **Skip for speed:**
61
+ - ❌ Full design review (document after)
62
+ - ❌ Full test suite (critical path only)
63
+ - ✅ Single reviewer approval
64
+
65
+ ```bash
66
+ git checkout -b hotfix/INCIDENT-ID
67
+ # Make minimal fix
68
+ git commit -m "hotfix: description (#INCIDENT-ID)"
69
+ ```
70
+
71
+ ### 6. Verify Resolution
72
+ - [ ] Error rate returned to normal
73
+ - [ ] Key metrics recovered
74
+ - [ ] User reports stopped
75
+ - [ ] No new issues introduced
76
+
77
+ ### 7. Compound Learning (MANDATORY)
78
+ ```bash
79
+ # Create KB entry automatically
80
+ python tools/workflows/emergency.py --severity P0 --issue "[issue]"
81
+
82
+ # Or manually update Neo4j
83
+ python tools/neo4j/sync_skills_to_neo4j.py
84
+ python tools/neo4j/learning_engine.py --record-error "ErrorType" "description" --resolution "fix"
85
+ ```
86
+
87
+ ### 8. Post-Incident
88
+ - [ ] Schedule postmortem (within 24 hours)
89
+ - [ ] Review and assign action items
90
+ - [ ] Update runbooks if needed
91
+ - [ ] Notify stakeholders of resolution
92
+
93
+ ## CLI Usage
94
+
95
+ ```bash
96
+ # Interactive workflow
97
+ python tools/workflows/emergency.py -s P0 -i "Payment gateway 500 errors"
98
+
99
+ # Non-interactive (for automation)
100
+ python tools/workflows/emergency.py -s P1 -i "API timeout" --non-interactive
101
+ ```
102
+
103
+ ## Output Artifacts
104
+ - `docs/sprints/sprint-[N]/logs/Incident-Report-[ID].json`
105
+ - KB entry in `.agent/knowledge-base/bugs/`
106
+
107
+ #emergency #hotfix #incident #production #p0
108
+
109
+
110
+ ---
111
+
112
+ ## ENFORCEMENT REMINDER
113
+ Before executing, complete /preflight checks.
114
+
@@ -0,0 +1,147 @@
1
+ ---
2
+ description: [Process] Deep Investigation Workflow
3
+ ---
4
+
5
+ # /explore - Multi-Order Analysis
6
+
7
+ ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
+ 1. **USE BEFORE PLANNING:** Run before major architectural decisions.
9
+ 2. **MULTI-ORDER THINKING:** Go beyond surface-level analysis.
10
+ 3. **EVIDENCE-BASED:** All findings must have supporting evidence.
11
+ 4. **DOCUMENT FINDINGS:** Create exploration report.
12
+
13
+ ## When to Use
14
+
15
+ - **Complex Features:** Before implementing features with many dependencies
16
+ - **Architecture Decisions:** Before major structural changes
17
+ - **Unknown Territory:** When entering unfamiliar domains
18
+ - **Risk Assessment:** Before high-impact changes
19
+
20
+ ## Workflow Steps
21
+
22
+ ### 1. First-Order Analysis (Surface Level)
23
+ **Question:** What does the user want?
24
+
25
+ ```bash
26
+ # Basic research
27
+ python tools/research/research_agent.py --task "[feature]" --type general
28
+ ```
29
+
30
+ - [ ] Understand explicit requirements
31
+ - [ ] Identify immediate stakeholders
32
+ - [ ] List obvious technical needs
33
+
34
+ ### 2. Second-Order Analysis (Dependencies)
35
+ **Question:** What does this depend on?
36
+
37
+ - [ ] Identify technical dependencies
38
+ - [ ] Map affected components
39
+ - [ ] Find related existing implementations
40
+
41
+ ```bash
42
+ # Search KB for related entries
43
+ python bin/kb_cli.py search "[related topic]"
44
+ ```
45
+
46
+ ### 3. Third-Order Analysis (Implications)
47
+ **Question:** What are the ripple effects?
48
+
49
+ - [ ] Performance implications
50
+ - [ ] Security implications
51
+ - [ ] Scalability considerations
52
+ - [ ] Maintenance burden
53
+
54
+ ### 4. Fourth-Order Analysis (Hidden Risks)
55
+ **Question:** What could go wrong that we haven't considered?
56
+
57
+ - [ ] Edge cases
58
+ - [ ] Failure modes
59
+ - [ ] Integration conflicts
60
+ - [ ] Future constraints
61
+
62
+ ```bash
63
+ # Check for similar issues in KB
64
+ python bin/kb_cli.py search "bug" --category bugs
65
+ ```
66
+
67
+ ### 5. Synthesis
68
+ **Question:** What's the recommended approach?
69
+
70
+ Create exploration report with:
71
+ - Key findings per order of analysis
72
+ - Risk assessment matrix
73
+ - Recommended approach with rationale
74
+ - Alternative approaches considered
75
+ - Open questions requiring stakeholder input
76
+
77
+ ## Output Template
78
+
79
+ ```markdown
80
+ # Exploration Report: [Feature/Decision]
81
+
82
+ **Date:** YYYY-MM-DD
83
+ **Author:** @[ROLE]
84
+
85
+ ## Executive Summary
86
+ [1-2 paragraph summary]
87
+
88
+ ## First-Order Analysis
89
+ ### User Requirements
90
+ - ...
91
+
92
+ ## Second-Order Analysis
93
+ ### Dependencies
94
+ - ...
95
+
96
+ ## Third-Order Analysis
97
+ ### Implications
98
+ - ...
99
+
100
+ ## Fourth-Order Analysis
101
+ ### Hidden Risks
102
+ - ...
103
+
104
+ ## Risk Matrix
105
+ | Risk | Probability | Impact | Mitigation |
106
+ |------|------------|--------|------------|
107
+ | ... | ... | ... | ... |
108
+
109
+ ## Recommendation
110
+ [Recommended approach with rationale]
111
+
112
+ ## Alternatives Considered
113
+ 1. ...
114
+ 2. ...
115
+
116
+ ## Open Questions
117
+ - [ ] ...
118
+ ```
119
+
120
+ ## Integration
121
+
122
+ - **@PM** triggers before major planning
123
+ - **@SA** uses for architecture decisions
124
+ - **@SECA** incorporates in security review
125
+ - **/cycle** may trigger for complex tasks
126
+
127
+ ## Example Usage
128
+
129
+ ```
130
+ User: "We need to add OAuth authentication"
131
+
132
+ /explore OAuth implementation
133
+
134
+ First-Order: User wants social login
135
+ Second-Order: Depends on token storage, session management, user model
136
+ Third-Order: Affects all API endpoints, session timeout, refresh logic
137
+ Fourth-Order: Token revocation, multi-device sessions, privacy compliance
138
+ ```
139
+
140
+ #explore #analysis #research #architecture #risk-assessment
141
+
142
+
143
+ ---
144
+
145
+ ## ENFORCEMENT REMINDER
146
+ Before executing, complete /preflight checks.
147
+
@@ -0,0 +1,105 @@
1
+ ---
2
+ description: [Support] Housekeeping - Cleanup and Maintenance
3
+ ---
4
+
5
+ # /housekeeping - System Maintenance Workflow
6
+
7
+ ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
+ 1. **RUN REGULARLY:** Execute at least once per sprint.
9
+ 2. **VERIFY HEALTH:** Ensure all indexes are updated.
10
+ 3. **ARCHIVE OLD DATA:** Move completed sprint data to archive.
11
+
12
+ ## Quick Command
13
+
14
+ ```bash
15
+ python tools/workflows/housekeeping.py
16
+ ```
17
+
18
+ ## Workflow Steps
19
+
20
+ ### Step 1: Archive Old Sprints
21
+ - Identifies completed sprints
22
+ - Moves to `docs/archive/sprint-[N]/`
23
+ - Preserves reference copies
24
+
25
+ ### Step 2: Fix Documentation Drift
26
+ - Checks for stale references
27
+ - Identifies broken links
28
+ - Reports outdated documentation
29
+
30
+ ### Step 3: Update Indexes
31
+ ```bash
32
+ # Updates KB index
33
+ python bin/kb_cli.py update-index
34
+ ```
35
+ - Regenerates `.agent/knowledge-base/INDEX.md`
36
+ - Ensures all entries are indexed
37
+ - Updates statistics
38
+
39
+ ### Step 4: Verify System Health
40
+ Reports:
41
+ - Total KB entries
42
+ - Number of categories
43
+ - Current sprint status
44
+ - System health status
45
+
46
+ ## Expected Output
47
+
48
+ ```
49
+ ============================================================
50
+ Housekeeping Workflow
51
+ ============================================================
52
+
53
+ [INFO] Run housekeeping tasks? (Y/n): y
54
+
55
+ ============================================================
56
+ Step 1: Archive Old Sprints
57
+ ============================================================
58
+ [INFO] Checking for completed sprints...
59
+ [OK] No sprints to archive
60
+
61
+ ============================================================
62
+ Step 2: Fix Documentation Drift
63
+ ============================================================
64
+ [INFO] Checking for documentation drift...
65
+ [OK] No drift detected
66
+
67
+ ============================================================
68
+ Step 3: Update Indexes
69
+ ============================================================
70
+ [INFO] Updating knowledge base index...
71
+ [OK] KB index updated
72
+
73
+ ============================================================
74
+ Step 4: Verify System Health
75
+ ============================================================
76
+ [INFO] Total KB entries: 12
77
+ [INFO] Categories: 6
78
+ [INFO] Current sprint: sprint-6
79
+ [OK] System health check passed
80
+
81
+ 🎉 Housekeeping completed successfully!
82
+ ```
83
+
84
+ ## When to Run
85
+
86
+ - **Weekly:** During sprint (recommended)
87
+ - **End of Sprint:** Before closing sprint
88
+ - **After Major Changes:** After bulk KB entries or documentation updates
89
+ - **Before Release:** Ensure clean state
90
+
91
+ ## Related Workflows
92
+
93
+ - **/brain** - For syncing Neo4j and LEANN
94
+ - **/validate** - For checking workflow tool references
95
+ - **/metrics** - For generating project statistics
96
+ - **/sprint close** - Triggers housekeeping automatically
97
+
98
+ #housekeeping #maintenance #cleanup #health-check
99
+
100
+
101
+ ---
102
+
103
+ ## ENFORCEMENT REMINDER
104
+ Before executing, complete /preflight checks.
105
+