agentic-sdlc 1.5.1 → 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 (149) 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 +79 -77
  4. package/.agent/rules/auto-learning.md +78 -0
  5. package/.agent/rules/code-quality.md +40 -0
  6. package/.agent/rules/git-workflow.md +44 -24
  7. package/.agent/rules/global.md +10 -6
  8. package/.agent/rules/naming-conventions.md +55 -0
  9. package/.agent/skills/role-ba.md +6 -2
  10. package/.agent/skills/role-brain.md +5 -1
  11. package/.agent/skills/role-cloud.md +38 -0
  12. package/.agent/skills/role-dev.md +31 -5
  13. package/.agent/skills/role-devops.md +9 -0
  14. package/.agent/skills/role-game.md +35 -0
  15. package/.agent/skills/role-mobile.md +55 -0
  16. package/.agent/skills/role-orchestrator.md +4 -0
  17. package/.agent/skills/role-pm.md +4 -0
  18. package/.agent/skills/role-po.md +4 -0
  19. package/.agent/skills/role-reporter.md +4 -0
  20. package/.agent/skills/role-research.md +78 -0
  21. package/.agent/skills/role-sa.md +4 -0
  22. package/.agent/skills/role-seca.md +4 -0
  23. package/.agent/skills/role-stakeholder.md +4 -0
  24. package/.agent/skills/role-tester.md +15 -3
  25. package/.agent/skills/role-uiux.md +4 -0
  26. package/.agent/templates/CHANGELOG-Template.md +2 -2
  27. package/.agent/templates/Design-Verification-Report-Template.md +4 -4
  28. package/.agent/templates/DevOps-Plan-Template.md +7 -0
  29. package/.agent/templates/Specification-Template.md +38 -0
  30. package/.agent/templates/ab-comparison-report.md +175 -0
  31. package/.agent/templates/observer-report.md +131 -0
  32. package/.agent/templates/quality-score-report.md +197 -0
  33. package/.agent/templates/self-learning-digest.md +268 -0
  34. package/.agent/templates/system-health-report.md +330 -0
  35. package/.agent/workflows/ab.md +101 -0
  36. package/.agent/workflows/autogen.md +65 -0
  37. package/.agent/workflows/brain.md +52 -42
  38. package/.agent/workflows/commit.md +61 -0
  39. package/.agent/workflows/cycle.md +36 -15
  40. package/.agent/workflows/debug.md +123 -0
  41. package/.agent/workflows/deep-search.md +82 -0
  42. package/.agent/workflows/docs.md +144 -0
  43. package/.agent/workflows/emergency.md +17 -15
  44. package/.agent/workflows/explore.md +15 -9
  45. package/.agent/workflows/housekeeping.md +24 -11
  46. package/.agent/workflows/metrics.md +14 -12
  47. package/.agent/workflows/monitor.md +98 -0
  48. package/.agent/workflows/observe.md +84 -0
  49. package/.agent/workflows/onboarding.md +135 -0
  50. package/.agent/workflows/orchestrator.md +21 -14
  51. package/.agent/workflows/planning.md +126 -0
  52. package/.agent/workflows/refactor.md +132 -0
  53. package/.agent/workflows/release.md +19 -12
  54. package/.agent/workflows/review.md +99 -0
  55. package/.agent/workflows/score.md +104 -0
  56. package/.agent/workflows/sprint.md +16 -14
  57. package/.agent/workflows/validate.md +13 -11
  58. package/.agent/workflows/worktree.md +154 -0
  59. package/CHANGELOG.md +88 -0
  60. package/README.md +12 -4
  61. package/bin/cli.js +143 -13
  62. package/docs/.brain-health-history.json +42 -0
  63. package/docs/.brain-improvements.json +53 -0
  64. package/docs/.brain-learner-log.json +27 -0
  65. package/docs/.brain-scores.json +310 -0
  66. package/docs/architecture/system-flow.mermaid +81 -0
  67. package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
  68. package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
  69. package/docs/artifacts/README.md +26 -0
  70. package/docs/guides/MCP-GUIDE.md +1 -0
  71. package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
  72. package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
  73. package/docs/reports/2026-01-05-repository-audit.md +253 -0
  74. package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
  75. package/docs/reports/Metrics-Dashboard-Final.md +29 -0
  76. package/docs/reports/Validation-Report-2026-01-05.md +40 -0
  77. package/docs/reports/Validation-Report-2026-01-08.md +40 -0
  78. package/docs/reports/worktrunk-audit.md +94 -0
  79. package/docs/solutions/README.md +96 -0
  80. package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
  81. package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
  82. package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
  83. package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
  84. package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
  85. package/docs/walkthroughs/2026-01-05-validation.md +32 -0
  86. package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
  87. package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
  88. package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
  89. package/docs/walkthroughs/README.md +25 -0
  90. package/package.json +33 -19
  91. package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
  92. package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
  93. package/.agent/knowledge-base/INDEX.md +0 -43
  94. package/.agent/knowledge-base/README.md +0 -242
  95. package/.agent/knowledge-base/architecture/.gitkeep +0 -1
  96. package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
  97. package/.agent/knowledge-base/architecture/README.md +0 -98
  98. package/.agent/knowledge-base/bugs/.gitkeep +0 -1
  99. package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
  100. package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
  101. package/.agent/knowledge-base/features/.gitkeep +0 -1
  102. package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
  103. package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
  104. package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
  105. package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
  106. package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
  107. package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
  108. package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
  109. package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
  110. package/.agent/knowledge-base/features/README.md +0 -83
  111. package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
  112. package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
  113. package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
  114. package/.agent/knowledge-base/performance/.gitkeep +0 -1
  115. package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
  116. package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
  117. package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
  118. package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
  119. package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
  120. package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
  121. package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
  122. package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
  123. package/.agent/knowledge-base/security/.gitkeep +0 -1
  124. package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
  125. package/.agent/rules/AUTO-LEARNING.md +0 -418
  126. package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
  127. package/.agent/skills/role-qa.md +0 -81
  128. package/.agent/workflows/compound.md +0 -51
  129. package/.agent/workflows/preflight.md +0 -35
  130. package/.agent/workflows/route.md +0 -160
  131. package/bin/kb +0 -34
  132. package/bin/kb.bat +0 -28
  133. package/bin/kb_cli.py +0 -226
  134. package/bin/lib/README.md +0 -411
  135. package/bin/lib/__init__.py +0 -7
  136. package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
  137. package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
  138. package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
  139. package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
  140. package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
  141. package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
  142. package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
  143. package/bin/lib/kb_add.py +0 -203
  144. package/bin/lib/kb_common.py +0 -224
  145. package/bin/lib/kb_compound.py +0 -250
  146. package/bin/lib/kb_index.py +0 -193
  147. package/bin/lib/kb_list.py +0 -144
  148. package/bin/lib/kb_search.py +0 -121
  149. package/bin/lib/kb_stats.py +0 -153
@@ -1,24 +1,27 @@
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:** `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]."`
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
 
19
22
  ### 1. Research Phase (MANDATORY)
20
23
  ```bash
21
- python tools/research/research_agent.py --feature "[task]" --type feature
24
+ agentic-sdlc research --feature "[task]" --type feature
22
25
  ```
23
26
  - [ ] Search KB for similar implementations.
24
27
  - [ ] Check GitHub issues for context.
@@ -26,6 +29,10 @@ python tools/research/research_agent.py --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
- python tools/neo4j/sync_skills_to_neo4j.py
51
- python tools/neo4j/learning_engine.py --record-success "TASK-ID" --task-type "feature"
65
+ agentic-sdlc kb compound sync
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---
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.
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
+ ---
78
+ ## ⚠️ ENFORCEMENT REMINDER
79
+ Before executing this workflow, agent MUST:
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.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Process] Emergency/Hotfix Response Workflow
2
+ description: Process - Emergency/Hotfix Response Workflow
3
3
  ---
4
4
 
5
5
  # /emergency - Critical Incident Response
@@ -12,7 +12,7 @@ description: [Process] Emergency/Hotfix Response Workflow
12
12
 
13
13
  ### 0.0 **Declare Incident:**
14
14
  ```bash
15
- python tools/workflows/emergency.py --severity P0 --issue "[issue description]"
15
+ python tools/infrastructure/workflows/emergency.py --severity P0 --issue "[issue description]"
16
16
  ```
17
17
 
18
18
  ## Severity Levels
@@ -34,7 +34,7 @@ python tools/workflows/emergency.py --severity P0 --issue "[issue description]"
34
34
  ### 2. Rapid Assessment (5 min max)
35
35
  ```bash
36
36
  # Search KB for similar incidents
37
- python tools/research/research_agent.py --task "[issue]" --type bug
37
+ python tools/intelligence/research/research_agent.py --task "[issue]" --type bug
38
38
  ```
39
39
  **Quick Checks:**
40
40
  - [ ] Check monitoring/logs
@@ -77,11 +77,11 @@ git commit -m "hotfix: description (#INCIDENT-ID)"
77
77
  ### 7. Compound Learning (MANDATORY)
78
78
  ```bash
79
79
  # Create KB entry automatically
80
- python tools/workflows/emergency.py --severity P0 --issue "[issue]"
80
+ python tools/infrastructure/workflows/emergency.py --severity P0 --issue "[issue]"
81
81
 
82
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"
83
+ python tools/intelligence/knowledge_graph/sync_skills_to_neo4j.py
84
+ python tools/intelligence/knowledge_graph/learning_engine.py --record-error "ErrorType" "description" --resolution "fix"
85
85
  ```
86
86
 
87
87
  ### 8. Post-Incident
@@ -94,21 +94,23 @@ python tools/neo4j/learning_engine.py --record-error "ErrorType" "description" -
94
94
 
95
95
  ```bash
96
96
  # Interactive workflow
97
- python tools/workflows/emergency.py -s P0 -i "Payment gateway 500 errors"
97
+ python tools/infrastructure/workflows/emergency.py -s P0 -i "Payment gateway 500 errors"
98
98
 
99
99
  # Non-interactive (for automation)
100
- python tools/workflows/emergency.py -s P1 -i "API timeout" --non-interactive
100
+ python tools/infrastructure/workflows/emergency.py -s P1 -i "API timeout" --non-interactive
101
101
  ```
102
102
 
103
103
  ## Output Artifacts
104
104
  - `docs/sprints/sprint-[N]/logs/Incident-Report-[ID].json`
105
- - KB entry in `.agent/knowledge-base/bugs/`
106
105
 
107
106
  #emergency #hotfix #incident #production #p0
108
-
109
-
110
- ---
111
-
112
- ## ENFORCEMENT REMINDER
113
- Before executing, complete /preflight checks.
114
107
 
108
+ ## ⏭️ Next Steps
109
+ - **If Fixed:** Trigger `/compound` to document incident
110
+ - **If Failed:** Escalate to User immediately
111
+ - **If Recurring:** Trigger `/explore` for root cause analysis
112
+
113
+ ---
114
+
115
+ ## ENFORCEMENT REMINDER
116
+ Act immediately for P0/P1 incidents.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Process] Deep Investigation Workflow
2
+ description: Process - Deep Investigation Workflow
3
3
  ---
4
4
 
5
5
  # /explore - Multi-Order Analysis
@@ -23,8 +23,11 @@ description: [Process] Deep Investigation Workflow
23
23
  **Question:** What does the user want?
24
24
 
25
25
  ```bash
26
- # Basic research
27
- python tools/research/research_agent.py --task "[feature]" --type general
26
+ # Basic research with research agent
27
+ python tools/intelligence/research/research_agent.py --task "[feature]" --type general
28
+
29
+ # Deep Search MCP (aggregated: DuckDuckGo + GitHub + StackOverflow)
30
+ python mcp/connectors/deep_search.py --search "[feature]"
28
31
  ```
29
32
 
30
33
  - [ ] Understand explicit requirements
@@ -138,10 +141,13 @@ Fourth-Order: Token revocation, multi-device sessions, privacy compliance
138
141
  ```
139
142
 
140
143
  #explore #analysis #research #architecture #risk-assessment
141
-
142
-
143
- ---
144
-
145
- ## ENFORCEMENT REMINDER
146
- Before executing, complete /preflight checks.
147
144
 
145
+ ## ⏭️ Next Steps
146
+ - **If Recommendation Approved:** Trigger `/cycle` or `/sprint` to implement
147
+ - **If Rejected:** Refine analysis or explore alternatives
148
+ - **If Unclear:** Request stakeholder feedback
149
+
150
+ ---
151
+
152
+ ## ENFORCEMENT REMINDER
153
+ Search KB for related entries before deep investigation.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Support] Housekeeping - Cleanup and Maintenance
2
+ description: Support - Housekeeping - Cleanup and Maintenance
3
3
  ---
4
4
 
5
5
  # /housekeeping - System Maintenance Workflow
@@ -12,7 +12,7 @@ description: [Support] Housekeeping - Cleanup and Maintenance
12
12
  ## Quick Command
13
13
 
14
14
  ```bash
15
- python tools/workflows/housekeeping.py
15
+ python tools/infrastructure/workflows/housekeeping.py
16
16
  ```
17
17
 
18
18
  ## Workflow Steps
@@ -29,10 +29,9 @@ python tools/workflows/housekeeping.py
29
29
 
30
30
  ### Step 3: Update Indexes
31
31
  ```bash
32
- # Updates KB index
33
- python bin/kb_cli.py update-index
32
+ # Updates indexes (KB, Documents, vectors)
33
+ python tools/intelligence/knowledge_graph/brain_parallel.py --sync
34
34
  ```
35
- - Regenerates `.agent/knowledge-base/INDEX.md`
36
35
  - Ensures all entries are indexed
37
36
  - Updates statistics
38
37
 
@@ -43,6 +42,18 @@ Reports:
43
42
  - Current sprint status
44
43
  - System health status
45
44
 
45
+ ### Step 5: Brain Self-Analysis (NEW)
46
+ ```bash
47
+ # Analyze patterns from A/B tests, Judge scores, Learner data
48
+ python tools/intelligence/self_learning/self_improver.py --analyze
49
+
50
+ # Create improvement plan based on patterns
51
+ python tools/intelligence/self_learning/self_improver.py --plan
52
+
53
+ # Sync all brain data
54
+ python tools/intelligence/knowledge_graph/brain_parallel.py --full
55
+ ```
56
+
46
57
  ## Expected Output
47
58
 
48
59
  ```
@@ -96,10 +107,12 @@ Step 4: Verify System Health
96
107
  - **/sprint close** - Triggers housekeeping automatically
97
108
 
98
109
  #housekeeping #maintenance #cleanup #health-check
99
-
100
-
101
- ---
102
-
103
- ## ENFORCEMENT REMINDER
104
- Before executing, complete /preflight checks.
105
110
 
111
+ ## ⏭️ Next Steps
112
+ - **If Issues Found:** Trigger `/cycle` to fix
113
+ - **If Clean:** End session or Trigger `/metrics` for analysis
114
+
115
+ ---
116
+
117
+ ## ENFORCEMENT REMINDER
118
+ Run at least once per sprint.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Utility] Metrics - Project Statistics
2
+ description: Utility - Metrics - Project Statistics
3
3
  ---
4
4
 
5
5
  # /metrics - Metrics Dashboard Generator
@@ -11,16 +11,16 @@ Analyzes KB entries, workflow usage, and project health to generate a metrics da
11
11
 
12
12
  ```bash
13
13
  # Generate dashboard
14
- python tools/kb/metrics-dashboard.py
14
+ python tools/infrastructure/workflows/metrics.py
15
15
 
16
16
  # Weekly report focus
17
- python tools/kb/metrics-dashboard.py --weekly
17
+ python tools/infrastructure/workflows/metrics.py --weekly
18
18
 
19
19
  # Sprint-specific metrics
20
- python tools/kb/metrics-dashboard.py --sprint 6
20
+ python tools/infrastructure/workflows/metrics.py --sprint sprint-2
21
21
 
22
22
  # Custom output path
23
- python tools/kb/metrics-dashboard.py --output ./my-report.md
23
+ python tools/infrastructure/workflows/metrics.py --output ./my-report.md
24
24
  ```
25
25
 
26
26
  ## What It Measures
@@ -169,11 +169,13 @@ Auto-generates recommendations based on:
169
169
  - **/housekeeping** - References health status
170
170
  - **/sprint close** - Include metrics in retrospective
171
171
 
172
- #metrics #dashboard #analytics #health #knowledge-base
173
-
174
-
175
- ---
176
-
177
- ## ENFORCEMENT REMINDER
178
- Before executing, complete /preflight checks.
172
+ #metrics #dashboard #analytics #health
179
173
 
174
+ ## ⏭️ Next Steps
175
+ - **If Trends Negative:** Trigger `/sprint` retrospective
176
+ - **If Goals Met:** Celebrate and plan next sprint
177
+
178
+ ---
179
+
180
+ ## ENFORCEMENT REMINDER
181
+ Run periodically to track project health.