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.
- package/.agent/ide-integration/INTEGRATION-SUMMARY.md +309 -0
- package/.agent/ide-integration/KIRO-IDE.md +381 -0
- package/.agent/ide-integration/README.md +256 -209
- package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +327 -0
- package/.agent/knowledge-base/HOW-IT-WORKS.md +365 -0
- package/.agent/knowledge-base/INDEX.md +43 -0
- package/.agent/knowledge-base/README.md +47 -7
- package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +1146 -0
- package/.agent/knowledge-base/architecture/README.md +98 -0
- package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +56 -0
- package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +198 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +646 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +945 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +310 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +324 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +242 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +148 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +58 -0
- package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +46 -0
- package/.agent/knowledge-base/features/README.md +83 -0
- package/.agent/knowledge-base/features/figma-landing-page-workflow.md +311 -0
- package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +673 -0
- package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +459 -0
- package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +80 -0
- package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +56 -0
- package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +527 -0
- package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +491 -0
- package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +299 -0
- package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +555 -0
- package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +519 -0
- package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +74 -0
- package/.agent/rules/AUTO-LEARNING.md +418 -0
- package/.agent/rules/ai-enforcement.md +11 -0
- package/.agent/rules/artifacts.md +77 -58
- package/.agent/rules/git-workflow.md +25 -65
- package/.agent/rules/global.md +18 -13
- package/.agent/skills/role-ba.md +76 -0
- package/.agent/skills/role-brain.md +470 -0
- package/.agent/skills/role-dev.md +338 -0
- package/.agent/skills/role-devops.md +122 -0
- package/.agent/skills/role-orchestrator.md +223 -0
- package/.agent/skills/role-pm.md +258 -0
- package/.agent/skills/role-po.md +237 -0
- package/.agent/skills/role-qa.md +81 -0
- package/.agent/skills/role-reporter.md +117 -0
- package/.agent/skills/role-sa.md +277 -0
- package/.agent/skills/role-seca.md +294 -0
- package/.agent/skills/role-stakeholder.md +105 -0
- package/.agent/skills/role-tester.md +294 -0
- package/.agent/skills/role-uiux.md +264 -0
- package/.agent/templates/CHANGELOG-Template.md +83 -0
- package/.agent/templates/Knowledge-Entry-Template.md +3 -0
- package/.agent/workflows/brain.md +84 -53
- package/.agent/workflows/compound.md +51 -0
- package/.agent/workflows/cycle.md +61 -0
- package/.agent/workflows/emergency.md +114 -0
- package/.agent/workflows/explore.md +147 -0
- package/.agent/workflows/housekeeping.md +105 -0
- package/.agent/workflows/metrics.md +179 -0
- package/.agent/workflows/orchestrator.md +68 -0
- package/.agent/workflows/preflight.md +35 -0
- package/.agent/workflows/release.md +153 -0
- package/.agent/workflows/route.md +160 -0
- package/.agent/workflows/sprint.md +125 -0
- package/.agent/workflows/validate.md +146 -0
- package/CHANGELOG.md +349 -6
- package/README.md +171 -86
- package/bin/CROSS-PLATFORM-CLI.md +526 -0
- package/bin/README.md +525 -0
- package/bin/cli.js +65 -90
- package/bin/kb +34 -0
- package/bin/kb.bat +28 -0
- package/bin/kb_cli.py +226 -0
- package/bin/lib/README.md +411 -0
- package/bin/lib/__init__.py +7 -0
- package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
- package/bin/lib/kb_add.py +203 -0
- package/bin/lib/kb_common.py +224 -0
- package/bin/lib/kb_compound.py +250 -0
- package/bin/lib/kb_index.py +193 -0
- package/bin/lib/kb_list.py +144 -0
- package/bin/lib/kb_search.py +121 -0
- package/bin/lib/kb_stats.py +153 -0
- package/docs/AGENT-MANAGEMENT-GUIDE.md +298 -0
- package/docs/ARCHITECTURE-OVERVIEW.md +350 -0
- package/docs/BRAIN-ARCHITECTURE.md +396 -0
- package/docs/COMPOUND-ENGINEERING-SETUP.md +326 -0
- package/docs/KNOWLEDGE-BASE-GUIDE.md +330 -0
- package/docs/KNOWLEDGE-BASE-SIMPLE.md +248 -0
- package/docs/MONOREPO-ARCHITECTURE.md +492 -0
- package/docs/PROJECT-DOCUMENTATION-INDEX.md +540 -0
- package/docs/SDLC-Diagram.md +235 -0
- package/docs/analysis/Workflow-Optimization-Diagram.md +524 -0
- package/docs/analysis/Workflows-Deep-Analysis-2026-01-03.md +604 -0
- package/docs/architecture/{brain.md → BRAIN.md} +1 -1
- package/docs/global/Master-Documentation.md +307 -0
- package/docs/global/reports/Final-Approval-Report.md +257 -0
- package/docs/guides/AUTO-LEARNING-COMPLETE-GUIDE.md +519 -0
- package/docs/guides/AUTO-LEARNING-SYSTEM.md +322 -0
- package/docs/guides/LEARNING-FLOW.md +0 -0
- package/docs/guides/MCP-QUICK-REFERENCE.md +104 -0
- package/docs/guides/MCP-SETUP.md +139 -0
- package/docs/guides/QUICK-START.md +4 -0
- package/docs/guides/ROLE-COMMUNICATION-SYSTEM.md +71 -0
- package/docs/reports/Metrics-Dashboard-2026-01-02.md +66 -0
- package/docs/reports/Metrics-Dashboard-2026-01-04.md +68 -0
- package/docs/reports/UIUX-Design-Skills-Research-Report-2026.md +91 -0
- package/docs/reports/Validation-Report-2026-01-04.md +23 -0
- package/docs/research-reports/research-20260103-101315.json +95 -0
- package/docs/research-reports/research-20260103-101315.md +78 -0
- package/docs/research-reports/research-20260103-183837.json +95 -0
- package/docs/research-reports/research-20260103-183837.md +78 -0
- package/docs/research-reports/research-20260103-190346.json +100 -0
- package/docs/research-reports/research-20260103-190346.md +83 -0
- package/docs/setup/{github-management.md → GITHUB-MANAGEMENT.md} +1 -1
- package/docs/setup/RESEARCH-AGENT-SETUP.md +575 -0
- package/docs/sprints/{sprint-github-issues.md → SPRINT-GITHUB-ISSUES.md} +1 -1
- package/docs/sprints/{sprint-leann-integration.md → SPRINT-LEANN-INTEGRATION.md} +1 -1
- package/docs/sprints/sprint-1/designs/Backend-Design-Spec-Sprint-1-v1.md +1206 -0
- package/docs/sprints/sprint-1/designs/System-Design-Spec-Sprint-1-v1.md +439 -0
- package/docs/sprints/sprint-1/designs/System-Design-Spec-v1.0.md +425 -0
- package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-Sprint-1-v1.md +55 -0
- package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-v1.0.md +644 -0
- package/docs/sprints/sprint-1/logs/DevOps-Plan-and-Log-Sprint-1-v1.md +253 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Phase1.md +433 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1-v1.md +181 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1.md +548 -0
- package/docs/sprints/sprint-1/logs/Orchestration-Log-Sprint-1.md +46 -0
- package/docs/sprints/sprint-1/logs/Phase1-Summary.md +84 -0
- package/docs/sprints/sprint-1/plans/Product-Backlog-Sprint-1-v1.md +40 -0
- package/docs/sprints/sprint-1/plans/Product-Backlog-v1.0.md +613 -0
- package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.0.md +210 -0
- package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.md +377 -0
- package/docs/sprints/sprint-1/reports/Design-Verification-Report-v1.0.md +220 -0
- package/docs/sprints/sprint-1/reports/Phase-Report-Sprint-1-v1.md +238 -0
- package/docs/sprints/sprint-1/reports/Security-Review-Report-v1.0.md +285 -0
- package/docs/sprints/sprint-1/reports/Sprint-Report-Sprint-1.md +74 -0
- package/docs/sprints/sprint-1/reports/Test-Report-v1.0.md +346 -0
- package/docs/sprints/sprint-1/reviews/Design-Verification-Report.md +508 -0
- package/docs/sprints/sprint-1/reviews/Security-Review-Report.md +589 -0
- package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-CLEANUP-FINAL.md +121 -0
- package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-OPTIMIZATION-COMPLETE.md +224 -0
- package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Progress.md +310 -0
- package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Session-Summary.md +420 -0
- package/docs/sprints/sprint-1/sprint-current/plans/Workflow-Optimization-Implementation-Plan.md +1124 -0
- package/docs/sprints/sprint-2/SPRINT-SUMMARY.md +150 -0
- package/docs/sprints/sprint-2/designs/UIUX-Design-Spec-Sprint-2-v1.md +352 -0
- package/docs/sprints/sprint-2/logs/Development-Log-Sprint-2-v1.md +293 -0
- package/docs/sprints/sprint-2/plans/Product-Backlog-Sprint-2-v1.md +62 -0
- package/docs/sprints/sprint-2/plans/Project-Plan-Sprint-2-v1.md +228 -0
- package/docs/sprints/sprint-2/reports/Phase-Report-Sprint-2-v1.md +303 -0
- package/docs/sprints/sprint-3/designs/UIUX-Design-Spec-Sprint-3-v1.md +160 -0
- package/docs/sprints/sprint-3/logs/Development-Log-Sprint-3-v1.md +249 -0
- package/docs/sprints/sprint-3/logs/Testing-Report-Sprint-3-v1.md +244 -0
- package/docs/sprints/sprint-3/plans/Product-Backlog-Sprint-3-v1.md +95 -0
- package/docs/sprints/sprint-3/reports/Final-Approval-Report-Sprint-3-v1.md +299 -0
- package/docs/sprints/sprint-3/reports/Sprint-Summary-Sprint-3-v1.md +276 -0
- package/docs/sprints/sprint-3/reviews/Design-Verification-Report-Sprint-3-v1.md +122 -0
- package/docs/sprints/sprint-3/reviews/Security-Review-Report-Sprint-3-v1.md +67 -0
- package/docs/sprints/sprint-5/designs/Backend-Design-Spec-Sprint-5-v1.md +1734 -0
- package/docs/sprints/sprint-5/designs/Design-Verification-Report.md +101 -0
- package/docs/sprints/sprint-5/designs/Security-Review-Report.md +84 -0
- package/docs/sprints/sprint-6/.brain-state.json +29 -0
- package/package.json +92 -16
- package/.agent/ide-integration/aider-commands.md +0 -40
- package/.agent/ide-integration/cline-config.json +0 -108
- package/.agent/ide-integration/cursor-rules.md +0 -63
- package/.agent/ide-integration/github-copilot-instructions.md +0 -75
- package/.agent/ide-integration/vscode-commands.json +0 -190
- package/.agent/ide-integration/windsurf-cascade.md +0 -125
- package/.agent/knowledge-base/index.md +0 -202
- package/.agent/legacy/roles/designer.md +0 -311
- package/.agent/legacy/roles/dev.md +0 -177
- package/.agent/legacy/roles/devops.md +0 -146
- package/.agent/legacy/roles/orchestrator.md +0 -339
- package/.agent/legacy/roles/pm.md +0 -120
- package/.agent/legacy/roles/po.md +0 -89
- package/.agent/legacy/roles/qa.md +0 -108
- package/.agent/legacy/roles/reporter.md +0 -70
- package/.agent/legacy/roles/sa.md +0 -118
- package/.agent/legacy/roles/seca.md +0 -112
- package/.agent/legacy/roles/stakeholder.md +0 -111
- package/.agent/legacy/roles/tester.md +0 -129
- package/.agent/rules/global.md.bak +0 -154
- package/.agent/usage.md +0 -653
- package/.agent/workflows/auto.md +0 -35
- package/.agent/workflows/dev.md +0 -30
- package/.agent/workflows/devops.md +0 -28
- package/.agent/workflows/kb-search.md +0 -22
- package/.agent/workflows/pm.md +0 -42
- package/.agent/workflows/po.md +0 -21
- package/.agent/workflows/qa.md +0 -31
- package/.agent/workflows/reporter.md +0 -21
- package/.agent/workflows/sa.md +0 -51
- package/.agent/workflows/seca.md +0 -21
- package/.agent/workflows/stakeholder.md +0 -26
- package/.agent/workflows/tester.md +0 -21
- package/.agent/workflows/uiux.md +0 -38
- package/.cursorrules +0 -49
- package/.env.template +0 -10
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -47
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -33
- package/.github/ISSUE_TEMPLATE/security_alert.yml +0 -28
- package/.github/ISSUE_TEMPLATE/task_implementation.yml +0 -37
- package/.github/copilot-instructions.md +0 -60
- package/bin/commands/create.js +0 -96
- package/bin/commands/help.js +0 -69
- package/bin/commands/ide.js +0 -116
- package/bin/commands/init-kb.js +0 -74
- package/bin/commands/install.js +0 -68
- package/bin/commands/list.js +0 -35
- package/bin/graph_brain.py +0 -86
- package/bin/sync_github.py +0 -75
- package/bin/utils/args-parser.js +0 -33
- package/bin/utils/colors.js +0 -21
- package/bin/verify_neo4j.py +0 -25
- /package/.agent/rules/{knowledge-base.md → KNOWLEDGE-BASE.md} +0 -0
- /package/docs/architecture/{neo4j-learning-queries.md → NEO4J-LEARNING-QUERIES.md} +0 -0
- /package/docs/reports/{comparison-leann-neo4j.md → COMPARISON-LEANN-NEO4J.md} +0 -0
- /package/docs/sprints/{sprint-neo4j-brain.md → SPRINT-NEO4J-BRAIN.md} +0 -0
|
@@ -1,56 +1,87 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: [Support] @BRAIN Meta-Level System Controller
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
|