agentic-sdlc 1.6.0 → 1.8.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 (144) hide show
  1. package/.agent/rules/agent-execution.md +55 -0
  2. package/.agent/rules/ai-enforcement.md +4 -3
  3. package/.agent/rules/artifacts.md +1 -1
  4. package/.agent/rules/auto-learning.md +78 -0
  5. package/.agent/rules/code-quality.md +40 -0
  6. package/.agent/rules/global.md +2 -2
  7. package/.agent/rules/naming-conventions.md +55 -0
  8. package/.agent/skills/role-ba.md +6 -2
  9. package/.agent/skills/role-brain.md +5 -1
  10. package/.agent/skills/role-cloud.md +38 -0
  11. package/.agent/skills/role-dev.md +22 -1
  12. package/.agent/skills/role-devops.md +4 -0
  13. package/.agent/skills/role-game.md +35 -0
  14. package/.agent/skills/role-mobile.md +55 -0
  15. package/.agent/skills/role-orchestrator.md +4 -0
  16. package/.agent/skills/role-pm.md +4 -0
  17. package/.agent/skills/role-po.md +4 -0
  18. package/.agent/skills/role-reporter.md +4 -0
  19. package/.agent/skills/role-research.md +78 -0
  20. package/.agent/skills/role-sa.md +4 -0
  21. package/.agent/skills/role-seca.md +4 -0
  22. package/.agent/skills/role-stakeholder.md +4 -0
  23. package/.agent/skills/role-tester.md +4 -0
  24. package/.agent/skills/role-uiux.md +4 -0
  25. package/.agent/templates/Specification-Template.md +38 -0
  26. package/.agent/templates/ab-comparison-report.md +175 -0
  27. package/.agent/templates/observer-report.md +131 -0
  28. package/.agent/templates/quality-score-report.md +197 -0
  29. package/.agent/templates/self-learning-digest.md +268 -0
  30. package/.agent/templates/system-health-report.md +330 -0
  31. package/.agent/workflows/ab.md +101 -0
  32. package/.agent/workflows/autogen.md +65 -0
  33. package/.agent/workflows/brain.md +48 -37
  34. package/.agent/workflows/commit.md +61 -0
  35. package/.agent/workflows/cycle.md +32 -11
  36. package/.agent/workflows/debug.md +123 -0
  37. package/.agent/workflows/deep-search.md +82 -0
  38. package/.agent/workflows/docs.md +144 -0
  39. package/.agent/workflows/emergency.md +17 -15
  40. package/.agent/workflows/explore.md +15 -9
  41. package/.agent/workflows/housekeeping.md +24 -11
  42. package/.agent/workflows/metrics.md +14 -12
  43. package/.agent/workflows/monitor.md +98 -0
  44. package/.agent/workflows/observe.md +84 -0
  45. package/.agent/workflows/onboarding.md +135 -0
  46. package/.agent/workflows/orchestrator.md +12 -5
  47. package/.agent/workflows/planning.md +126 -0
  48. package/.agent/workflows/refactor.md +132 -0
  49. package/.agent/workflows/release.md +19 -12
  50. package/.agent/workflows/review.md +99 -0
  51. package/.agent/workflows/score.md +104 -0
  52. package/.agent/workflows/sprint.md +16 -14
  53. package/.agent/workflows/validate.md +13 -11
  54. package/.agent/workflows/worktree.md +154 -0
  55. package/CHANGELOG.md +71 -0
  56. package/README.md +12 -4
  57. package/bin/cli.js +142 -16
  58. package/docs/.brain-health-history.json +42 -0
  59. package/docs/.brain-improvements.json +53 -0
  60. package/docs/.brain-learner-log.json +27 -0
  61. package/docs/.brain-scores.json +310 -0
  62. package/docs/architecture/system-flow.mermaid +81 -0
  63. package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
  64. package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
  65. package/docs/artifacts/README.md +26 -0
  66. package/docs/guides/MCP-GUIDE.md +1 -0
  67. package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
  68. package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
  69. package/docs/reports/2026-01-05-repository-audit.md +253 -0
  70. package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
  71. package/docs/reports/Metrics-Dashboard-Final.md +29 -0
  72. package/docs/reports/Validation-Report-2026-01-05.md +40 -0
  73. package/docs/reports/Validation-Report-2026-01-08.md +40 -0
  74. package/docs/reports/worktrunk-audit.md +94 -0
  75. package/docs/solutions/README.md +96 -0
  76. package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
  77. package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
  78. package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
  79. package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
  80. package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
  81. package/docs/walkthroughs/2026-01-05-validation.md +32 -0
  82. package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
  83. package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
  84. package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
  85. package/docs/walkthroughs/README.md +25 -0
  86. package/package.json +33 -19
  87. package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
  88. package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
  89. package/.agent/knowledge-base/INDEX.md +0 -43
  90. package/.agent/knowledge-base/README.md +0 -242
  91. package/.agent/knowledge-base/architecture/.gitkeep +0 -1
  92. package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
  93. package/.agent/knowledge-base/architecture/README.md +0 -98
  94. package/.agent/knowledge-base/bugs/.gitkeep +0 -1
  95. package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
  96. package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
  97. package/.agent/knowledge-base/features/.gitkeep +0 -1
  98. package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
  99. package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
  100. package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
  101. package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
  102. package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
  103. package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
  104. package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
  105. package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
  106. package/.agent/knowledge-base/features/README.md +0 -83
  107. package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
  108. package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
  109. package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
  110. package/.agent/knowledge-base/performance/.gitkeep +0 -1
  111. package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
  112. package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
  113. package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
  114. package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
  115. package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
  116. package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
  117. package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
  118. package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
  119. package/.agent/knowledge-base/security/.gitkeep +0 -1
  120. package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
  121. package/.agent/rules/AUTO-LEARNING.md +0 -418
  122. package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
  123. package/.agent/workflows/compound.md +0 -51
  124. package/.agent/workflows/preflight.md +0 -35
  125. package/.agent/workflows/route.md +0 -160
  126. package/bin/kb +0 -34
  127. package/bin/kb.bat +0 -28
  128. package/bin/kb_cli.py +0 -226
  129. package/bin/lib/README.md +0 -411
  130. package/bin/lib/__init__.py +0 -7
  131. package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
  132. package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
  133. package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
  134. package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
  135. package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
  136. package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
  137. package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
  138. package/bin/lib/kb_add.py +0 -203
  139. package/bin/lib/kb_common.py +0 -224
  140. package/bin/lib/kb_compound.py +0 -250
  141. package/bin/lib/kb_index.py +0 -193
  142. package/bin/lib/kb_list.py +0 -144
  143. package/bin/lib/kb_search.py +0 -121
  144. package/bin/lib/kb_stats.py +0 -153
@@ -0,0 +1,65 @@
1
+ ---
2
+ description: Process - Multi-Agent Task Execution with AutoGen
3
+ ---
4
+
5
+ # AutoGen Workflow
6
+
7
+ > **Skill Definition:** Multi-agent orchestration using Microsoft AutoGen framework
8
+
9
+ // turbo-all
10
+
11
+ ## Overview
12
+ Use AutoGen for complex tasks requiring autonomous multi-agent collaboration:
13
+ - Debugging sessions
14
+ - Code generation with testing
15
+ - Research and synthesis
16
+
17
+ ## Usage
18
+
19
+ ### Single Agent
20
+ ```bash
21
+ agentic-sdlc autogen --task "Write a Python function to parse JSON" --team dev
22
+ ```
23
+
24
+ ### Multi-Agent Team
25
+ ```bash
26
+ agentic-sdlc autogen --task "Write and test a sorting algorithm" --team dev,tester
27
+ ```
28
+
29
+ ### With Custom Model
30
+ ```bash
31
+ agentic-sdlc autogen --task "Debug login issue" --team dev --model gpt-4o
32
+ ```
33
+
34
+ ## Available Roles
35
+ | Role | Description |
36
+ |------|-------------|
37
+ | `dev` | Developer - code implementation |
38
+ | `tester` | Quality Assurance - testing and verification |
39
+ | `orchestrator` | Coordinator - task breakdown and delegation |
40
+
41
+ ## Options
42
+ | Flag | Description | Default |
43
+ |------|-------------|---------|
44
+ | `--task, -t` | Task description (required) | - |
45
+ | `--team` | Comma-separated roles | `dev` |
46
+ | `--model, -m` | LLM model | `gemini-2.0-flash` |
47
+ | `--max-turns` | Max conversation turns | `10` |
48
+
49
+ ## Examples
50
+
51
+ ### Debug a Bug
52
+ ```bash
53
+ agentic-sdlc autogen -t "Find why login returns 401" --team dev,tester
54
+ ```
55
+
56
+ ### Generate Feature
57
+ ```bash
58
+ agentic-sdlc autogen -t "Create REST API for user profiles" --team dev
59
+ ```
60
+
61
+ ## Requirements
62
+ - `GOOGLE_GENAI_API_KEY` or `OPENAI_API_KEY` in `.env`
63
+ - AutoGen packages installed: `pip install -r tools/requirements.txt`
64
+
65
+ #autogen #multi-agent #automation
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Support] @BRAIN Meta-Level System Controller
2
+ description: Support - BRAIN Meta-Level System Controller
3
3
  ---
4
4
 
5
5
  # Brain Workflow
@@ -12,75 +12,86 @@ Brain is NOT an executor—it monitors, detects issues, routes to handlers, scor
12
12
 
13
13
  // turbo-all
14
14
 
15
- ## Root Components (Layer 1)
15
+ ## Root Components (Layer 2: Intelligence)
16
16
 
17
- ### Observer (Halt on Errors)
17
+ ### Observer (Compliance Monitor)
18
18
  ```bash
19
- agentic-sdlc run tools/brain/observer.py --watch # Monitor workflows
20
- agentic-sdlc run tools/brain/observer.py --halt "Err" # Halt system
21
- agentic-sdlc run tools/brain/observer.py --resume # Resume after halt
19
+ # Check compliance of an action
20
+ python tools/core/brain/brain_cli.py observe --action "create file" --context '{"file": "test.py"}'
21
+
22
+ # Show compliance stats
23
+ python tools/core/brain/brain_cli.py observe
22
24
  ```
23
25
 
24
- ### Judge (Score Quality)
26
+ ### Judge (Quality Scorer)
25
27
  ```bash
26
- agentic-sdlc run tools/brain/judge.py --score "path/to/report.md"
27
- agentic-sdlc run tools/brain/judge.py --review --sprint 1
28
- agentic-sdlc run tools/brain/judge.py --threshold 7 # Set pass threshold
28
+ # Score a file
29
+ python tools/core/brain/brain_cli.py score "path/to/file.py"
30
+
31
+ # Score a report
32
+ python tools/core/brain/brain_cli.py score "docs/reports/latest.md"
29
33
  ```
30
34
 
31
35
  ### Learner (Auto-Learning)
32
36
  ```bash
33
- agentic-sdlc learn --learn "Task completed"
34
- agentic-sdlc learn --watch
35
- agentic-sdlc learn --stats
37
+ # Record learning
38
+ python tools/core/brain/brain_cli.py learn "Fixed bug in auth module by updating token expiry"
39
+
40
+ # Get recommendations
41
+ python tools/core/brain/brain_cli.py recommend "implement oauth"
36
42
  ```
37
43
 
38
- ### A/B Tester (Compare Options)
44
+ ### A/B Tester (Decision Making)
39
45
  ```bash
40
- agentic-sdlc run tools/brain/ab_tester.py --create "Test description"
41
- agentic-sdlc run tools/brain/ab_tester.py --compare --test-id TEST-001
42
- agentic-sdlc run tools/brain/ab_tester.py --select A --test-id TEST-001
46
+ # Run A/B test
47
+ python tools/core/brain/brain_cli.py ab-test "Should we use JWT or Session Auth?"
43
48
  ```
44
49
 
45
- ### Model Optimizer (Token Efficiency)
50
+ ### Router (Model Selection)
46
51
  ```bash
47
- agentic-sdlc run tools/brain/model_optimizer.py --recommend "Task description"
48
- agentic-sdlc run tools/brain/model_optimizer.py --record --model "gemini-2.5" --tokens 1500
52
+ # Route request to optimal AI model
53
+ python tools/core/brain/brain_cli.py route "Generate complex architectural diagram"
49
54
  ```
50
55
 
51
- ### Self-Improver (Create Improvement Plans)
56
+ ### Artifact Generator
52
57
  ```bash
53
- agentic-sdlc run tools/brain/self_improver.py --analyze # Analyze all data
54
- agentic-sdlc run tools/brain/self_improver.py --plan # Create improvement plan
55
- agentic-sdlc run tools/brain/self_improver.py --apply-plan PLAN-ID
58
+ # Generate document from template
59
+ python tools/core/brain/brain_cli.py gen --template "project-plan" --context '{"project": "New App"}' --output "plan.md"
56
60
  ```
57
61
 
58
- ## State Management
62
+ ### Health Monitor
59
63
  ```bash
60
- agentic-sdlc brain init 1 # Initialize sprint
61
- agentic-sdlc brain status # Check status
62
- agentic-sdlc brain transition STATE --reason "Reason"
63
- agentic-sdlc brain validate # Validate state
64
- agentic-sdlc brain rollback # Rollback
64
+ # Check system health
65
+ python tools/core/brain/brain_cli.py health
66
+
67
+ # Get improvement suggestions
68
+ python tools/core/brain/brain_cli.py health --suggest
65
69
  ```
66
70
 
67
- ## Supervisor Commands
71
+ ## State Management (Layer 1: Core)
68
72
  ```bash
69
- agentic-sdlc brain watch # Monitor workflows
70
- agentic-sdlc run tools/brain/brain_cli.py route "request" # Route to workflow
71
- agentic-sdlc health # Health check
73
+ python tools/core/brain/brain_cli.py init 1 # Initialize sprint
74
+ python tools/core/brain/brain_cli.py status # Check status
75
+ python tools/core/brain/brain_cli.py transition STATE --reason "Reason"
76
+ python tools/core/brain/brain_cli.py validate # Validate state
77
+ python tools/core/brain/brain_cli.py rollback # Rollback
72
78
  ```
73
79
 
74
80
  ## Sync Commands
75
81
  ```bash
76
- agentic-sdlc kb compound sync
77
- agentic-sdlc kb compound sync --full
82
+ python tools/core/brain/brain_cli.py sync # Quick sync
83
+ python tools/core/brain/brain_cli.py full-sync # Full sync
78
84
  ```
79
85
 
80
86
  #brain #root-layer #meta-controller
81
87
 
88
+ ## ⏭️ Next Steps
89
+ - **If State == IDLE:** Wait for user requirements (Active Listening)
90
+ - **If State == PLANNING:** Monitor @PM and validate Project Plan
91
+ - **If Critical Error:** Trigger `/emergency` workflow
92
+ - **If Task Complete:** Trigger `/compound` for learning
82
93
 
83
94
  ---
84
95
 
85
96
  ## ENFORCEMENT REMINDER
86
- Before executing, complete /preflight checks.
97
+ Ensure KB is synced before major operations.
@@ -0,0 +1,61 @@
1
+ ---
2
+ description: Process - Automated Code Review and Commit
3
+ ---
4
+
5
+ # /commit - Review and Commit Changes
6
+
7
+ ## ⚠️ PURPOSE
8
+ Automates the process of reviewing changes, generating Conventional Commits messages, and saving progress.
9
+
10
+ // turbo-all
11
+
12
+ ## When to Use
13
+ - You have made code changes and want to save them.
14
+ - You need to generate a structured commit message.
15
+ - You want a quick sanity check (lint/diff) before committing.
16
+
17
+ ## Workflow Steps
18
+
19
+ ### 1. Check Status
20
+ ```bash
21
+ python tools/infrastructure/git/commit.py review
22
+ ```
23
+
24
+ ### 2. Review Diff
25
+ - **If files UNSTAGED:**
26
+ ```bash
27
+ git add .
28
+ ```
29
+ - **If files STAGED:**
30
+ - Read `git diff --cached` to understand changes.
31
+ ```
32
+
33
+ ### 3. Generate Message
34
+ - Format: `type(scope): description`
35
+ - Types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`
36
+ - Example: `feat(auth): implement jwt login`
37
+
38
+ ### 4. Commit using Git
39
+ ```bash
40
+ git commit -m "type(scope): description"
41
+ ```
42
+ *Wait for user confirmation if in interactive mode, otherwise proceed if confident.*
43
+
44
+ ### 5. Verify
45
+ ```bash
46
+ git log -1 --oneline
47
+ ```
48
+
49
+ ### 6. Push Changes
50
+ - **If main or feature branch:**
51
+ ```bash
52
+ python tools/infrastructure/git/commit.py push
53
+ ```
54
+ *Or manually:* `git push`
55
+
56
+ ## ⏭️ Next Steps
57
+ - **If Success:** Return to previous workflow (e.g., `/cycle`).
58
+
59
+ ---
60
+ ## ENFORCEMENT REMINDER
61
+ Always use Conventional Commits format.
@@ -1,18 +1,21 @@
1
1
  ---
2
- description: [Process] Complete Task Lifecycle - Plan Work Review Compound
2
+ description: Process - Complete Task Lifecycle - Plan, Work, Review, Compound
3
3
  ---
4
4
 
5
5
  # /cycle - Complete Task Lifecycle
6
6
 
7
+ Complete Task Lifecycle workflow for small to medium tasks. This workflow guides you through planning, implementation, testing, and knowledge capture.
8
+
7
9
  ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
10
  1. **NO SKIPPING:** Every step is MANDATORY.
9
11
  2. **TEAM COMMUNICATION FIRST:** Announce start and check history.
10
12
  3. **GIT FLOW:** Feature branch, atomic commits, PR.
11
13
  4. **SELF-LEARNING:** After completion, update Neo4j.
14
+ 5. **QUALITY CHECKS:** Run Observer and Judge before PR.
12
15
 
13
16
  ### 0.0 **Team Communication (MANDATORY):**
14
- - **Check History:** `agentic-sdlc run tools/communication/cli.py history --channel general --limit 10`
15
- - **Announce Start:** `agentic-sdlc run tools/communication/cli.py send --channel general --thread "SDLC-Flow" --role AGENT --content "Starting /cycle for [Task]."`
17
+ - **Check History:** `agentic-sdlc run tools/infrastructure/communication/cli.py history --channel general --limit 10`
18
+ - **Announce Start:** `agentic-sdlc run tools/infrastructure/communication/cli.py send --channel general --thread "SDLC-Flow" --role AGENT --content "Starting /cycle for [Task]."`
16
19
 
17
20
  ## Workflow Steps
18
21
 
@@ -26,6 +29,10 @@ agentic-sdlc research --feature "[task]" --type feature
26
29
  ### 2. Planning
27
30
  - Define acceptance criteria.
28
31
  - Add task to `Development-Log.md`.
32
+ - **Observer Check:**
33
+ ```bash
34
+ python tools/core/brain/brain_cli.py observe --action "planning" --context '{"task": "[task]"}'
35
+ ```
29
36
 
30
37
  ### 3. Feature Branch
31
38
  ```bash
@@ -37,25 +44,39 @@ git push -u origin feat/TASK-ID-name
37
44
  - Code according to plan.
38
45
  - Atomic commits: `git commit -m "[TASK-ID] feat: description"`
39
46
 
40
- ### 5. Verification
47
+ ### 5. Verification & Quality Assurance (MANDATORY)
41
48
  - Run local tests.
42
- - Create PR, tag @TESTER.
49
+ - **Judge Score (Target > 8/10):**
50
+ ```bash
51
+ python tools/core/brain/brain_cli.py score "path/to/main_file.py"
52
+ ```
53
+ - **Compliance Check:**
54
+ ```bash
55
+ python tools/core/brain/brain_cli.py observe
56
+ ```
43
57
 
44
58
  ### 6. Merge
59
+ - Create PR, tag @TESTER.
45
60
  - Wait for `#testing-passed`.
46
61
  - Merge via @DEVOPS or @SA.
47
62
 
48
63
  ### 7. Self-Learning (MANDATORY)
49
64
  ```bash
50
65
  agentic-sdlc kb compound sync
51
- agentic-sdlc learn --record-success "TASK-ID" --task-type "feature"
66
+ python tools/core/brain/brain_cli.py learn "Completed [task] using [approach]"
52
67
  ```
53
68
  - Update `CHANGELOG.md`.
54
69
 
55
- #cycle #workflow #git-flow #self-learning---
70
+ #cycle #workflow #git-flow #self-learning
71
+
72
+ ## ⏭️ Next Steps
73
+ - **If Compound Complete:** Workflow finished, ready for next task
74
+ - **If Issues Found:** Repeat `/cycle` or escalate to `/explore`
75
+ - **If Blocked:** Notify user via `notify_user`
76
+
77
+ ---
56
78
  ## ⚠️ ENFORCEMENT REMINDER
57
79
  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.
80
+ 1. Search knowledge base for similar tasks
81
+ 2. Check current brain state
82
+ 3. Run /onboarding if new to project
@@ -0,0 +1,123 @@
1
+ ---
2
+ description: Process - Systematic Debugging Workflow
3
+ ---
4
+
5
+ # /debug - Debugging Workflow
6
+
7
+ ## ⚠️ PURPOSE
8
+ Systematic approach to debugging issues in development. Different from `/emergency` which is for production incidents.
9
+
10
+ // turbo-all
11
+
12
+ ## When to Use
13
+
14
+ - Local development bugs
15
+ - Test failures
16
+ - Unexpected behavior
17
+ - Performance issues (dev environment)
18
+
19
+ ## Quick Commands
20
+
21
+ ```bash
22
+ # Search KB for similar bugs
23
+ agentic-sdlc kb search "error type" --category bugs
24
+
25
+ # Check learning engine for similar errors
26
+ agentic-sdlc learn --similar-errors "ErrorType"
27
+ ```
28
+
29
+ ## Workflow Steps
30
+
31
+ ### 1. Reproduce the Issue
32
+ - [ ] Identify exact steps to reproduce
33
+ - [ ] Note environment (OS, versions, config)
34
+ - [ ] Capture error message/stack trace
35
+
36
+ ```bash
37
+ # Run failing test in isolation
38
+ bun test --watch [test-file]
39
+ ```
40
+
41
+ ### 2. Search Knowledge Base
42
+ ```bash
43
+ # Check if similar bug was fixed before
44
+ agentic-sdlc kb search "[error message]"
45
+
46
+ # Check neo4j for patterns
47
+ agentic-sdlc learn --similar-errors "[ErrorType]"
48
+ ```
49
+
50
+ ### 3. Isolate the Problem
51
+ - [ ] Binary search: Comment out code to find the culprit
52
+ - [ ] Check recent changes: `git log --oneline -10`
53
+ - [ ] Review git blame: `git blame [file]`
54
+
55
+ ### 4. Identify Root Cause
56
+ - [ ] Add logging/breakpoints
57
+ - [ ] Check input data
58
+ - [ ] Verify assumptions
59
+ - [ ] Review dependencies
60
+
61
+ ```bash
62
+ # Debug with verbose output
63
+ DEBUG=* bun run [script]
64
+ ```
65
+
66
+ ### 5. Implement Fix
67
+ - [ ] Write failing test first (TDD)
68
+ - [ ] Implement minimal fix
69
+ - [ ] Verify fix works
70
+
71
+ ```bash
72
+ git commit -m "fix: [description of fix]"
73
+ ```
74
+
75
+ ### 6. Verify No Regression
76
+ ```bash
77
+ # Run full test suite
78
+ bun test
79
+
80
+ # Run type check
81
+ bun run typecheck
82
+ ```
83
+
84
+ ### 7. Document & Learn (MANDATORY)
85
+
86
+ ```bash
87
+ # Record error pattern for future reference
88
+ agentic-sdlc learn --record-error "ErrorType" "[description]" \
89
+ --resolution "[how it was fixed]" \
90
+ --approach "[debugging approach used]"
91
+
92
+ # Sync KB
93
+ agentic-sdlc kb compound sync
94
+ ```
95
+
96
+ ## Common Debug Strategies
97
+
98
+ | Strategy | When to Use | Command |
99
+ |----------|-------------|---------|
100
+ | **Binary Search** | Large codebase, unknown location | Comment out half |
101
+ | **Git Bisect** | Regression, worked before | `git bisect start` |
102
+ | **Logging** | Runtime issues | Add console.log/print |
103
+ | **Breakpoints** | Complex state | Use debugger |
104
+ | **Rubber Duck** | Stuck, need fresh perspective | Explain to "duck" |
105
+
106
+ ## Integration
107
+
108
+ - **@DEV** - Primary debugger
109
+ - **@TESTER** - Verify fix with tests
110
+ - **/emergency** - Escalate if production issue
111
+ - **/compound** - Document solution (embedded)
112
+
113
+ #debug #troubleshooting #bugs #development
114
+
115
+ ## ⏭️ Next Steps
116
+ - **If Fixed:** Trigger `/cycle` to resume normal work
117
+ - **If Root Cause Unknown:** Trigger `/explore` for deeper analysis
118
+ - **If Hotfix Needed:** Trigger `/emergency` or `/release`
119
+
120
+ ---
121
+
122
+ ## ENFORCEMENT REMINDER
123
+ Always record error patterns after fixing bugs.
@@ -0,0 +1,82 @@
1
+ ---
2
+ description: Intelligence - Deep Search MCP for Technical Research
3
+ ---
4
+
5
+ # /deep-search - Technical Research Workflow
6
+
7
+ Deep web search using DuckDuckGo, GitHub, and StackOverflow APIs.
8
+ **No third-party AI services** - fully manual implementation.
9
+
10
+ // turbo-all
11
+
12
+ ## Quick Commands
13
+
14
+ ```bash
15
+ # Aggregated search (all sources)
16
+ python mcp/connectors/deep_search.py --search "query"
17
+
18
+ # DuckDuckGo only
19
+ python mcp/connectors/deep_search.py --ddg "query"
20
+
21
+ # GitHub repos/code
22
+ python mcp/connectors/deep_search.py --github "query"
23
+
24
+ # StackOverflow Q&A
25
+ python mcp/connectors/deep_search.py --stackoverflow "query"
26
+
27
+ # Check status
28
+ python mcp/connectors/deep_search.py --status
29
+ ```
30
+
31
+ ## Available Tools
32
+
33
+ | Tool | Description | API Key |
34
+ |------|-------------|---------|
35
+ | `deep_search` | Aggregated multi-source search | None |
36
+ | `ddg_search` | DuckDuckGo web search | None |
37
+ | `github_search` | GitHub repos/code/issues | Optional |
38
+ | `stackoverflow_search` | Stack Overflow Q&A | None |
39
+ | `fetch_content` | Extract content from URL | None |
40
+
41
+ ## Python Usage
42
+
43
+ ```python
44
+ from mcp.connectors.deep_search import DeepSearchConnector
45
+ import json
46
+
47
+ connector = DeepSearchConnector()
48
+
49
+ # Aggregated search
50
+ result = connector.call_tool("deep_search", {"query": "Python async await"})
51
+ print(json.dumps(result, indent=2))
52
+
53
+ # GitHub with filters
54
+ result = connector.call_tool("github_search", {
55
+ "query": "MCP connector",
56
+ "search_type": "repositories",
57
+ "language": "python",
58
+ "sort": "stars"
59
+ })
60
+
61
+ # StackOverflow with tags
62
+ result = connector.call_tool("stackoverflow_search", {
63
+ "query": "async programming",
64
+ "tags": ["python", "asyncio"],
65
+ "sort": "votes"
66
+ })
67
+ ```
68
+
69
+ ## Integration
70
+
71
+ - **@RESEARCH** - Primary user for investigations
72
+ - **@SA** - Architecture decision research
73
+ - **@DEV** - Solution lookup
74
+ - **/explore** - Deep investigation workflow
75
+ - **/planning** - Requirements research
76
+
77
+ #deep-search #research #mcp #technical
78
+
79
+ ## ⏭️ Next Steps
80
+ - **If Found Solution:** Apply to implementation
81
+ - **If Need More Info:** Use `fetch_content` to extract URL details
82
+ - **If GitHub Rate Limited:** Set `GITHUB_TOKEN` env var
@@ -0,0 +1,144 @@
1
+ ---
2
+ description: Support - Documentation Creation Workflow
3
+ ---
4
+
5
+ # /docs - Documentation Workflow
6
+
7
+ ## ⚠️ PURPOSE
8
+ Systematic approach to creating and maintaining project documentation.
9
+
10
+ // turbo-all
11
+
12
+ ## When to Use
13
+
14
+ - Creating new documentation
15
+ - Updating existing docs
16
+ - Writing KB entries
17
+ - API documentation
18
+ - User guides
19
+
20
+ ## Types of Documentation
21
+
22
+ | Type | Template | Location |
23
+ |------|----------|----------|
24
+ | API Docs | Inline/OpenAPI | `docs/api/` |
25
+ | User Guide | `User-Guide-Template.md` | `docs/guides/` |
26
+ | Architecture | `Architecture-Spec-Template.md` | `docs/architecture/` |
27
+ | Sprint Report | `Sprint-Review-Template.md` | `docs/sprints/sprint-[N]/` |
28
+
29
+ ## Workflow Steps
30
+
31
+ ### 1. Identify Doc Type
32
+ - What are you documenting?
33
+ - Who is the audience?
34
+ - What template should you use?
35
+
36
+ ### 2. Check Existing Docs
37
+ ```bash
38
+ # Search for related docs
39
+ find docs -name "*.md" | xargs grep -l "[topic]"
40
+
41
+ # Check KB for similar entries
42
+ agentic-sdlc kb search "[topic]"
43
+ ```
44
+
45
+ ### 3. Choose Template
46
+ ```bash
47
+ # List available templates
48
+ ls .agent/templates/
49
+
50
+ # Copy template
51
+ cp .agent/templates/[Template].md docs/[appropriate-folder]/[new-doc].md
52
+ ```
53
+
54
+ ### 4. Write Content
55
+
56
+ **Structure Guidelines:**
57
+ - Start with clear heading
58
+ - Add overview/purpose section
59
+ - Use code blocks for commands
60
+ - Include examples
61
+ - Add cross-references
62
+
63
+ **Style Guidelines:**
64
+ - Use active voice
65
+ - Keep sentences short
66
+ - Use bullet points/tables
67
+ - Include visuals when helpful
68
+
69
+ ### 5. Add Metadata (for KB entries)
70
+ ```yaml
71
+ ---
72
+ category: feature|bug|architecture|security|performance
73
+ tags: [relevant, tags]
74
+ date: YYYY-MM-DD
75
+ author: @ROLE
76
+ ---
77
+ ```
78
+
79
+ ### 6. Review & Validate
80
+ - [ ] Spelling/grammar check
81
+ - [ ] Links work
82
+ - [ ] Code examples are correct
83
+ - [ ] Follows project conventions
84
+
85
+ ```bash
86
+ # Check for broken links
87
+ find docs -name "*.md" -exec grep -l "\[.*\](.*)" {} \;
88
+ ```
89
+
90
+ ### 7. Update Indexes
91
+ ```bash
92
+ # Update KB index
93
+ agentic-sdlc kb update-index
94
+
95
+ # Sync to Neo4j
96
+ agentic-sdlc kb compound sync
97
+ ```
98
+
99
+ ## Documentation Standards
100
+
101
+ ### Naming Convention
102
+ ```
103
+ [Type]-[Topic]-[Sprint]-v[Version].md
104
+ Example: Architecture-Auth-Sprint-6-v1.md
105
+ ```
106
+
107
+ ### Required Sections
108
+
109
+ **For KB Entries:**
110
+ - Problem/Challenge
111
+ - Solution
112
+ - Implementation
113
+ - Learnings
114
+
115
+ **For User Guides:**
116
+ - Overview
117
+ - Prerequisites
118
+ - Steps
119
+ - Troubleshooting
120
+
121
+ **For API Docs:**
122
+ - Endpoint
123
+ - Parameters
124
+ - Response
125
+ - Examples
126
+
127
+ ## Integration
128
+
129
+ - **@PM** - Project documentation
130
+ - **@SA** - Architecture docs
131
+ - **@DEV** - Code documentation
132
+ - **@REPORTER** - Reports and summaries
133
+ - **/release** - Changelog updates
134
+
135
+ #docs #documentation #writing
136
+
137
+ ## ⏭️ Next Steps
138
+ - **If Docs Created:** Trigger `/review` for feedback
139
+ - **If Index Updated:** Trigger `/housekeeping` to verify health
140
+
141
+ ---
142
+
143
+ ## ENFORCEMENT REMINDER
144
+ Update KB index after adding new entries.