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
@@ -0,0 +1,55 @@
1
+ ---
2
+ title: Agent Execution Rules
3
+ version: 1.0.0
4
+ category: rule
5
+ priority: critical
6
+ ---
7
+ # Agent Execution Rules
8
+ ## Agent Behavior Rules
9
+ ### Core Principles
10
+ 1. **Single Responsibility** - Each agent focuses on its defined role
11
+ 2. **Explicit Handoffs** - Never assume another agent's work is done
12
+ 3. **Transparency** - Log all significant decisions
13
+ 4. **Non-Destructive** - Prefer reversible actions
14
+ ### Execution Boundaries
15
+ - Stay within assigned role scope
16
+ - Request escalation for out-of-scope work
17
+ - Never modify files outside designated areas
18
+ - Always verify before destructive operations
19
+ ---
20
+ ## Inter-Agent Communication
21
+ ### Communication Channels
22
+ | Channel | Purpose | Participants |
23
+ |---------|---------|--------------|
24
+ | general | Announcements, status updates | All agents |
25
+ | planning | Design discussions | PM, SA, BA, UIUX |
26
+ | development | Code discussions | DEV, TESTER, DEVOPS |
27
+ | reviews | PR and design reviews | SA, SECA, TESTER |
28
+ ### Message Format
29
+ [ROLE] -> [TARGET]: [MESSAGE]
30
+ Example: DEV -> TESTER: Feature X ready for testing (#123)
31
+ ---
32
+ ## Handoff Procedures
33
+ ### Standard Handoff Flow
34
+ PM -> SA: Requirements approved, design needed
35
+ SA -> UIUX: Architecture approved, UI design needed
36
+ UIUX -> DEV: Designs approved, implementation ready
37
+ DEV -> TESTER: Code complete, testing needed
38
+ TESTER -> DEVOPS: Tests passed, deployment ready
39
+ ---
40
+ ## Escalation Rules
41
+ | Level | Trigger | Escalate To |
42
+ |-------|---------|-------------|
43
+ | L1 | Clarification needed | Direct predecessor |
44
+ | L2 | Blocked > 1 hour | PM |
45
+ | L3 | Critical/Security issue | PM + SECA |
46
+ | L4 | Production incident | DEVOPS + PM (emergency) |
47
+ ---
48
+ ## Error Handling
49
+ ### On Error
50
+ 1. STOP current operation
51
+ 2. Log error details
52
+ 3. Assess impact
53
+ 4. Attempt recovery if safe
54
+ 5. Escalate if unrecoverable
55
+ #rules #agent-execution #communication
@@ -3,9 +3,10 @@
3
3
  ### Pre-Task Requirements
4
4
  1. **Read Workflow File First** - When user types /command, READ .agent/workflows/[command].md before any action
5
5
  2. **Activate Appropriate Roles** - Check the Role Activation Matrix in GEMINI.md
6
- 3. **Follow State Machine** - Run python tools/brain/brain_cli.py status to check current state
7
- 4. **Search Knowledge Base** - Before implementing, search .agent/knowledge-base/INDEX.md
8
- 5. **Document Learnings** - After task completion, consider KB entry if solution was non-obvious
6
+ 3. **Follow State Machine** - Run python tools/brain/brain_cli.py status to check current state
7
+ 4. **Search Brain** - Before implementing, run `agentic-sdlc learn --search "[keywords]"`
8
+ 5. **Create Specification** - For new features, create `specification.md` BEFORE `implementation_plan.md`
9
+ 6. **Document Learnings** - After task completion, consider KB entry if solution was non-obvious
9
10
  ### Violation = System Failure
10
11
  If an AI agent implements without following workflows, the brain system is NOT being used.
11
12
  ---
@@ -1,77 +1,79 @@
1
- ---
2
- description: Artifact and Naming Conventions
3
- ---
4
- # Artifact & Naming Conventions
5
- ## ⚠️ DOCUMENTATION LOCATION RULE (PROJECT-SPECIFIC)
6
- Documentation MUST be located within each project's directory, NOT in the root docs/ folder (except for global guides).
7
- ### Correct Structure
8
- `
9
- root/
10
- ├── docs/ (Global System Docs ONLY)
11
- │ ├── ARCHITECTURE.md
12
- │ └── BRAIN-GUIDE.md
13
-
14
- └── projects/
15
- └── [project-name]/
16
- └── docs/ (Project Specific Docs)
17
- └── sprints/
18
- └── sprint-[N]/
19
- ├── plans/
20
- ├── requirements/
21
- ├── designs/
22
- └── logs/
23
- `
24
- ## Artifact Naming Convention
25
- Use versioned names attached to the current Sprint:
26
- | Artifact | Owner |
27
- |----------|-------|
28
- | Project-Plan-Sprint-[N]-v*.md | PM |
29
- | Product-Backlog-Sprint-[N]-v*.md | PO |
30
- | UIUX-Design-Spec-Sprint-[N]-v*.md | UIUX |
31
- | System-Design-Spec-Sprint-[N]-v*.md | SA |
32
- | Design-Verification-Report-Sprint-[N]-v*.md | QA |
33
- | Security-Review-Report-Sprint-[N]-v*.md | SecA |
34
- | Development-Log-Sprint-[N]-v*.md | DEV |
35
- | DevOps-Plan-and-Log-Sprint-[N]-v*.md | DevOps |
36
- | Test-Report-Sprint-[N]-v*.md | TESTER |
37
- | Phase-Report-Sprint-[N]-v*.md | REPORTER |
38
- | Master-Documentation.md | REPORTER |
39
- | Final-Project-Report.md | REPORTER |
40
- | Final-Approval-Report.md | STAKEHOLDER |
41
- ## ⚠️ CRITICAL LOCATION RULE (SPRINT FOLDERS)
42
- ALL project artifacts MUST be created in the **PROJECT'S** workspace with organized structure based on **Sprint**:
43
- **Base Directory:** projects/[project-name]/docs/sprints/sprint-[N]/
44
- | Category | Folder Path | Content Example | Owner |
45
- |----------|-------------|-----------------|-------|
46
- | Plans | .../plans/ | Project-Plan-Sprint-[N]-v*.md, Product-Backlog-Sprint-[N]-v*.md | PM, PO |
47
- | Designs | .../designs/ | System-Design-Spec-Sprint-[N]-v*.md, UIUX-Design-Spec-Sprint-[N]-v*.md | SA, UIUX |
48
- | Reviews | .../reviews/ | Design-Verification-Report-Sprint-[N]-v*.md, Security-Review-Report-Sprint-[N]-v*.md | QA, SecA |
49
- | Logs | .../logs/ | Development-Log-Sprint-[N]-v*.md, DevOps-Plan-and-Log-Sprint-[N]-v*.md | DEV, DevOps |
50
- | Tests | .../tests/ | Test-Report-Sprint-[N]-v*.md | TESTER |
51
- | Reports | .../reports/ | Phase-Report-Sprint-[N]-v*.md | REPORTER |
52
- | Global | .../global/reports/ | Final-Project-Report.md, Final-Approval-Report.md | REPORTER, STAKEHOLDER |
53
- | Global | projects/[project-name]/docs/global/ | Master-Documentation.md | REPORTER |
54
- **FORBIDDEN LOCATIONS:**
55
- - .agent/ directory (reserved for instructions only)
56
- - Global docs/ folder for project-specific artifacts.
57
- ## ⚠️ CHANGELOG RULE
58
- **CRITICAL:** Do NOT create or update CHANGELOG.md in the project root.
59
- - CHANGELOG.md exists ONLY as a template in .agent/templates/
60
- - All project changes are documented in sprint-specific reports
61
- - Use Phase-Report-Sprint-[N]-v*.md for sprint summaries
62
- - Use Final-Project-Report.md for overall project changelog
63
- ## Mandatory Documentation Tags
64
- Every action must be tagged with appropriate hashtags:
65
- | Category | Tags |
66
- |----------|------|
67
- | **Planning** | #planning, #product-owner, #backlog |
68
- | **Design** | #designing, #uiux-design |
69
- | **Verification** | #verify-design, #security-review |
70
- | **Development** | #development, #devops |
71
- | **Testing** | #testing |
72
- | **Bug Fixes** | #fixbug-critical, #fixbug-high, #fixbug-medium, #fixbug-low |
73
- | **Status** | #blocked, #hotfix, #rollback |
74
- | **Deployment** | #deployed-staging, #deployed-production |
75
- | **Research** | #searching |
76
- | **Reporting** | #reporting, #stakeholder-review |
77
- | **Knowledge** | #knowledge-base, #lessons-learned |
1
+ ---
2
+ description: Artifact and Naming Conventions
3
+ ---
4
+ # Artifact & Naming Conventions
5
+ ## ⚠️ DOCUMENTATION LOCATION RULE (PROJECT-SPECIFIC)
6
+ Documentation MUST be located within each project's directory, NOT in the root docs/ folder (except for global guides).
7
+ ### Correct Structure
8
+ `
9
+ root/
10
+ ├── docs/ (Global System Docs ONLY)
11
+ │ ├── ARCHITECTURE.md
12
+ │ └── BRAIN-GUIDE.md
13
+
14
+ └── projects/
15
+ └── [project-name]/
16
+ └── docs/ (Project Specific Docs)
17
+ └── sprints/
18
+ └── sprint-[N]/
19
+ ├── plans/
20
+ ├── requirements/
21
+ ├── designs/
22
+ └── logs/
23
+ `
24
+ ## Artifact Naming Convention
25
+ Use versioned names attached to the current Sprint:
26
+ | Artifact | Owner |
27
+ |----------|-------|
28
+ | Project-Plan-Sprint-[N]-v*.md | PM |
29
+ | Product-Backlog-Sprint-[N]-v*.md | PO |
30
+ | UIUX-Design-Spec-Sprint-[N]-v*.md | UIUX |
31
+ | System-Design-Spec-Sprint-[N]-v*.md | SA |
32
+ | Design-Verification-Report-Sprint-[N]-v*.md | QA |
33
+ | Security-Review-Report-Sprint-[N]-v*.md | SecA |
34
+ | Development-Log-Sprint-[N]-v*.md | DEV |
35
+ | DevOps-Plan-and-Log-Sprint-[N]-v*.md | DevOps |
36
+ | Test-Report-Sprint-[N]-v*.md | TESTER |
37
+ | Phase-Report-Sprint-[N]-v*.md | REPORTER |
38
+ | Master-Documentation.md | REPORTER |
39
+ | Final-Project-Report.md | REPORTER |
40
+ | Final-Approval-Report.md | STAKEHOLDER |
41
+ ## ⚠️ CRITICAL LOCATION RULE (SPRINT FOLDERS)
42
+ ALL project artifacts MUST be created in the **PROJECT'S** workspace with organized structure based on **Sprint**:
43
+ **Base Directory:** projects/[project-name]/docs/sprints/sprint-[N]/
44
+ | Category | Folder Path | Content Example | Owner |
45
+ |----------|-------------|-----------------|-------|
46
+ | Plans | .../plans/ | Project-Plan-Sprint-[N]-v*.md, Product-Backlog-Sprint-[N]-v*.md | PM, PO |
47
+ | Designs | .../designs/ | System-Design-Spec-Sprint-[N]-v*.md, UIUX-Design-Spec-Sprint-[N]-v*.md | SA, UIUX |
48
+ | Reviews | .../reviews/ | Design-Verification-Report-Sprint-[N]-v*.md, Security-Review-Report-Sprint-[N]-v*.md | QA, SecA |
49
+ | Logs | .../logs/ | Development-Log-Sprint-[N]-v*.md, DevOps-Plan-and-Log-Sprint-[N]-v*.md | DEV, DevOps |
50
+ | Tests | .../tests/ | Test-Report-Sprint-[N]-v*.md | TESTER |
51
+ | Reports | .../reports/ | Phase-Report-Sprint-[N]-v*.md | REPORTER |
52
+ | Global | .../global/reports/ | Final-Project-Report.md, Final-Approval-Report.md | REPORTER, STAKEHOLDER |
53
+ | Global | projects/[project-name]/docs/global/ | Master-Documentation.md | REPORTER |
54
+ **FORBIDDEN LOCATIONS:**
55
+ - .agent/ directory (reserved for instructions only)
56
+ - Global docs/ folder for project-specific artifacts.
57
+ ## ⚠️ CHANGELOG RULE (UPDATED 2026-01-04)
58
+ **Repository vs Project:**
59
+ 1. **Root CHANGELOG.md:** ALLOWED for **Repository versioning only**.
60
+ - MUST be managed AUTOMATICALLY by `release.py`.
61
+ - Manual edits are FORBIDDEN except for fixing formatting.
62
+ 2. **Project Reports:**
63
+ - Detailed project changes must still be documented in sprint reports.
64
+ - Use Phase-Report-Sprint-[N]-v*.md for detailed tracking.
65
+ ## Mandatory Documentation Tags
66
+ Every action must be tagged with appropriate hashtags:
67
+ | Category | Tags |
68
+ |----------|------|
69
+ | **Planning** | #planning, #product-owner, #backlog |
70
+ | **Design** | #designing, #uiux-design |
71
+ | **Verification** | #verify-design, #security-review |
72
+ | **Development** | #development, #devops |
73
+ | **Testing** | #testing |
74
+ | **Bug Fixes** | #fixbug-critical, #fixbug-high, #fixbug-medium, #fixbug-low |
75
+ | **Status** | #blocked, #hotfix, #rollback |
76
+ | **Deployment** | #deployed-staging, #deployed-production |
77
+ | **Research** | #searching |
78
+ | **Reporting** | #reporting, #stakeholder-review |
79
+
@@ -0,0 +1,78 @@
1
+ # 🧠 Automatic Knowledge Base Learning System
2
+ ## Purpose
3
+ This system automatically captures and stores knowledge from every task, issue, and bug fix into the **Neo4j Project Brain** to build intelligence over time.
4
+ ---
5
+ ## 🔄 Auto-Learning Triggers
6
+ ### Mandatory Knowledge Capture
7
+ The following events **MUST** trigger automatic knowledge capture via gentic-sdlc learn (or learning_engine.py):
8
+ | Event | Trigger Condition | Measure |
9
+ |-------|------------------|---------|
10
+ | **Bug Fixed** | Any bug with priority medium+ | Record error pattern & fix |
11
+ | **Multiple Attempts** | Task required 3+ attempts | Record complexity & approach |
12
+ | **Error Pattern** | Same error occurred 2+ times | Record error resolution |
13
+ | **Complex Feature** | Implementation took 4+ hours | Record feature implementation details |
14
+ | **Security Issue** | Any vulnerability found | Record vulnerability & patch |
15
+ | **Performance Fix** | Optimization applied | Record optimization technique |
16
+ | **Architecture Decision** | Major design choice | Record decision reasoning |
17
+ ---
18
+ ## 📝 Learning Workflow
19
+ ### Step 1: Detection (Automatic via Agent)
20
+ When completing a task, verify if it meets any learning criteria.
21
+ ### Step 2: Capture (Command Line)
22
+ Use the CLI to record the learning immediately:
23
+ `ash
24
+ # General success recording
25
+ agentic-sdlc learn --record-success "task-id" --task-type "feature" --success-approach "Used strategy X"
26
+ # Error pattern recording
27
+ agentic-sdlc learn --record-error "TypeError" "Cannot read property of undefined" --resolution "Added null check"
28
+ # Explicit recording
29
+ python tools/neo4j/learning_engine.py --record-success "..."
30
+ `
31
+ ### Step 3: Storage (Neo4j)
32
+ The system automatically:
33
+ 1. Creates a **KnowledgeNode** in Neo4j.
34
+ 2. Extracts metadata (error type, tags, component).
35
+ 3. Links it to the current **Sprint**, **Role**, and **Task**.
36
+ 4. Updates **LEANN** vector index for semantic search.
37
+ ### Step 4: Retrieval (Brain Search)
38
+ Agents must recall this info using:
39
+ `ash
40
+ agentic-sdlc learn --search "authentication error"
41
+ # or
42
+ python tools/neo4j/brain_parallel.py --recommend "task description"
43
+ `
44
+ ---
45
+ ## 🎯 Role-Specific Auto-Learning
46
+ ### @DEV - Development
47
+ - **Focus:** Code patterns, bug fixes, performance tricks.
48
+ - **Example:** gentic-sdlc learn --record-error "ConnectionRefused" "Db container not ready" --resolution "Added wait-for-it script"
49
+ ### @DEVOPS - Infrastructure
50
+ - **Focus:** Deployment configs, pipeline fixes.
51
+ - **Example:** gentic-sdlc learn --record-success "deploy-fix" --task-type "hotfix" --success-approach "Increased memory limit"
52
+ ### @TESTER - QA
53
+ - **Focus:** Flaky tests, edge cases.
54
+ - **Example:** gentic-sdlc learn --record-error "TimeoutError" "Test took too long" --resolution "Mocked external API"
55
+ ### @SA - Architecture
56
+ - **Focus:** Design patterns, trade-offs.
57
+ - **Example:** gentic-sdlc learn --record-success "auth-system" --task-type "architecture" --success-approach "JWT with refresh tokens"
58
+ ---
59
+ ## 🔍 Pre-Task Usage (Mandatory)
60
+ Before starting ANY task, agents **MUST**:
61
+ 1. **Ask the Brain:**
62
+ `ash
63
+ agentic-sdlc learn --recommend "Implement user login"
64
+ `
65
+ 2. **Check for Past Errors:**
66
+ `ash
67
+ agentic-sdlc learn --similar-errors "Auth failed"
68
+ `
69
+ 3. **Apply Learnings:**
70
+ - Use returned patterns.
71
+ - Avoid listed anti-patterns.
72
+ ---
73
+ ## 🔄 Continuous Improvement Loop
74
+ 1. **Capture:** Agents record data during/after tasks.
75
+ 2. **Synthesize:** Weekly job (cron) runs learning_engine.py --analyze.
76
+ 3. **Optimize:** Brain suggests process improvements based on recurring issues.
77
+ ---
78
+ #auto-learning #brain #neo4j #continuous-improvement
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Code Quality Standards
3
+ version: 1.0.0
4
+ category: rule
5
+ priority: high
6
+ ---
7
+ # Code Quality Standards
8
+ ## Language-Specific Linting
9
+ ### Python
10
+ - Linter: ruff or flake8
11
+ - Formatter: black with default settings
12
+ - Type Checker: mypy in strict mode
13
+ - Max Line Length: 88 characters
14
+ ### JavaScript / TypeScript
15
+ - Linter: eslint with recommended rules
16
+ - Formatter: prettier
17
+ - Max Line Length: 100 characters
18
+ ### Rust
19
+ - Linter: clippy with pedantic warnings
20
+ - Formatter: rustfmt
21
+ ## Test Coverage Requirements
22
+ | Project Type | Minimum Coverage | Target Coverage |
23
+ |--------------|------------------|-----------------|
24
+ | Core/Critical | 80% | 90% |
25
+ | Feature Code | 70% | 80% |
26
+ | Utilities | 60% | 70% |
27
+ | Scripts | 40% | 60% |
28
+ ## Code Complexity Rules
29
+ - Cyclomatic Complexity: <= 10 per function
30
+ - Nesting Depth: <= 4 levels
31
+ - Function Length: <= 50 lines
32
+ - File Length: <= 400 lines
33
+ - Parameters: <= 5 per function
34
+ ## Security Standards
35
+ - NO hardcoded secrets or API keys
36
+ - NO SQL injection vulnerabilities
37
+ - Use parameterized queries
38
+ - Validate and sanitize all inputs
39
+ - Use environment variables for secrets
40
+ #rules #code-quality #standards
@@ -1,25 +1,45 @@
1
- ---
2
- description: Unified Git and Task Workflow (Branching, Committing, Merging)
3
- ---
4
- # Git & Task Management Workflow
5
- **Requirement:** All tasks and artifacts must follow the **Branch-Based Workflow**.
6
- ## A. Branching Strategy (MANDATORY)
7
- ❌ **NEVER** commit directly to main or master.
8
- ### Branch Naming Convention
9
- | Type | Prefix | Use Case |
10
- |------|--------|----------|
11
- | **Planning** | plan/ | Project plans, product backlogs |
12
- | **Design** | design/ | Architecture schematics, UI specs |
13
- | **Feature** | eat/ | New functionality |
14
- | **Fix** | ix/ | Bug fixes |
15
- | **Docs** | docs/ | General documentation |
16
- **Format:** prefix/TASK-ID-short-name (e.g., plan/SPRINT-2-setup)
17
- ### Workflow
18
- 1. **Start:** git checkout -b prefix/TASK-ID-name from main.
19
- 2. **Work:** Create artifacts or code.
20
- 3. **Push:** git push -u origin prefix/TASK-ID-name.
21
- 4. **Docs-as-Code:** Treat documentation exactly like code.
22
- ## B. Definition of Done (DoD)
23
- 1. Branch created.
24
- 2. Artifacts implemented.
1
+ ---
2
+ description: Unified Git and Task Workflow (Branching, Committing, Merging)
3
+ ---
4
+ # Git & Task Management Workflow
5
+ **Requirement:** All tasks and artifacts must follow the **Branch-Based Workflow**.
6
+ ## A. Branching Strategy (MANDATORY)
7
+ ❌ **NEVER** commit directly to main or master.
8
+ ### Branch Naming Convention
9
+ | Type | Prefix | Use Case |
10
+ |------|--------|----------|
11
+ | **Planning** | plan/ | Project plans, product backlogs |
12
+ | **Design** | design/ | Architecture schematics, UI specs |
13
+ | **Feature** | feat/ | New functionality |
14
+ | **Fix** | fix/ | Bug fixes |
15
+ | **Docs** | docs/ | General documentation |
16
+ **Format:** prefix/TASK-ID-short-name (e.g., plan/SPRINT-2-setup)
17
+ ### Workflow
18
+ 1. **Start:** git checkout -b prefix/TASK-ID-name from main.
19
+ 2. **Work:** Create artifacts or code.
20
+ 3. **Push:** git push -u origin prefix/TASK-ID-name.
21
+ 4. **Docs-as-Code:** Treat documentation exactly like code.
22
+ ## B. Definition of Done (DoD)
23
+ 1. Branch created.
24
+ 2. Artifacts implemented.
25
25
  3. Pull Request created & merged.
26
+ ## C. Release Workflow (AUTOMATED)
27
+ Releases are managed by the Release Agent (`release.py`).
28
+ 1. **Trigger:** Human or CI runs `/release`.
29
+ 2. **Commit:** Agent creates `chore(release): vX.Y.Z` commit.
30
+ 3. **Tag:** Agent creates `vX.Y.Z` tag.
31
+ 4. **Push:** Agent pushes commit and tags.
32
+ ## D. Commit Conventions (MANDATORY)
33
+ We follow [Conventional Commits](https://www.conventionalcommits.org/) to enable automated semantic versioning.
34
+ **Format:** `type(scope): description`
35
+ **Types:**
36
+ - `feat`: New feature (MINOR bump)
37
+ - `fix`: Bug fix (PATCH bump)
38
+ - `docs`: Documentation only
39
+ - `style`: Formatting, missing semi-colons, etc.
40
+ - `refactor`: Code change that neither fixes a bug nor adds a feature
41
+ - `perf`: Code change that improves performance
42
+ - `test`: Adding missing tests or correcting existing tests
43
+ - `chore`: Build process, auxiliary tools, libraries updates
44
+ **Breaking Changes:**
45
+ Append `!` after type/scope (e.g., `feat!: drop support for Node 12`) for MAJOR bump.
@@ -1,7 +1,7 @@
1
1
  # TeamLifecycle Global Rules & Conventions
2
- (Version 1.4 – Strict IT SDLC Simulation for Google Antigravity)
2
+ (Version 1.5 – Strict IT SDLC Simulation for Google Antigravity)
3
3
 
4
- **Last Updated:** 2026-01-01
4
+ **Last Updated:** 2026-01-04
5
5
  **Maintainer:** Project Team
6
6
 
7
7
  ---
@@ -73,8 +73,8 @@ This document defines the mandatory rules, conventions, and lifecycle flow that
73
73
  - Covers: Naming conventions, folder structure, forbidden locations.
74
74
  2. **Git & Task Workflow:** `.agent/rules/git-workflow.md`
75
75
  - Covers: Jira-style task tracking, atomic commits, Definition of Done.
76
- 3. **Knowledge Base:** `.agent/rules/knowledge-base.md`
77
- - Covers: When and how to create knowledge entries.
76
+
77
+
78
78
  4. **Auto-Learning System:** `.agent/rules/auto-learning.md`
79
79
  - Covers: Automatic knowledge capture from tasks, issues, and bug fixes.
80
80
 
@@ -134,6 +134,11 @@ Use this at the end of **every artifact**:
134
134
  #[appropriate-tags]
135
135
  ```
136
136
 
137
+ ### 8. Tooling Standards (New)
138
+ - **Polyglot Support:** Tools should run in environment-agnostic ways (e.g. CLI bridges).
139
+ - **Testing:** All tools MUST be covered by integration tests in `tests/`.
140
+ - **CLI Interface:** All tools MUST support `--help` for discoverability.
141
+
137
142
  ---
138
143
 
139
144
  ## Final Note
@@ -150,10 +155,9 @@ Use this at the end of **every artifact**:
150
155
 
151
156
  | Version | Date | Changes |
152
157
  |---------|------|---------|
158
+ | 1.5 | 2026-01-04 | Added Tooling Standards, Polyglot Support. |
153
159
  | 1.4 | 2026-01-01 | Split large rules into artifacts.md, git-workflow.md, knowledge-base.md |
154
160
  | 1.3 | 2026-01-01 | Added Task Management & Atomic Git Commit Rules |
155
161
  | 1.2 | 2026-01-01 | Migrated to Native Agent structure (.agent/). Updated paths. |
156
162
  | 1.1 | 2025-12-23 | Added PO role, new tags (#product-owner, #backlog, #blocked, #hotfix, #rollback, #deployed-*), Definition of Done, Cross-Role Dependencies diagram, Incident/Hotfix workflow, Changelog |
157
163
  | 1.0 | Initial | Initial release with 10 roles and core SDLC flow |
158
-
159
-
@@ -0,0 +1,55 @@
1
+ ---
2
+ title: Naming Conventions
3
+ version: 1.0.0
4
+ category: rule
5
+ priority: high
6
+ ---
7
+ # Naming Conventions
8
+ ## File Naming
9
+ | Language | Convention | Example |
10
+ |----------|------------|---------|
11
+ | Python | snake_case.py | user_service.py |
12
+ | JavaScript/TypeScript | kebab-case.ts | user-service.ts |
13
+ | React Components | PascalCase.tsx | UserProfile.tsx |
14
+ | CSS/SCSS | kebab-case.css | user-profile.css |
15
+ | Tests | *.test.ts, *_test.py | user.test.ts |
16
+ ## Code Naming
17
+ ### Variables and Functions
18
+ | Element | Convention | Example |
19
+ |---------|------------|---------|
20
+ | Variables (JS/TS) | camelCase | userName, isActive |
21
+ | Variables (Python) | snake_case | user_name, is_active |
22
+ | Constants | UPPER_SNAKE_CASE | MAX_RETRIES, API_URL |
23
+ | Functions (JS/TS) | camelCase | getUserById |
24
+ | Functions (Python) | snake_case | get_user_by_id |
25
+ | Private | Prefix with _ | _internalState |
26
+ ### Classes and Types
27
+ | Element | Convention | Example |
28
+ |---------|------------|---------|
29
+ | Classes | PascalCase | UserService, AuthController |
30
+ | Interfaces (TS) | PascalCase | IUserRepository |
31
+ | Type Aliases | PascalCase | UserId, ResponseData |
32
+ | Enums | PascalCase | UserStatus, OrderType |
33
+ | Enum Members | UPPER_SNAKE_CASE | USER_ACTIVE |
34
+ ## Database Naming
35
+ | Element | Convention | Example |
36
+ |---------|------------|---------|
37
+ | Tables | snake_case plural | users, order_items |
38
+ | Columns | snake_case | user_id, created_at |
39
+ | Primary Keys | id or table_id | id, user_id |
40
+ | Foreign Keys | referenced_table_id | user_id, order_id |
41
+ | Indexes | idx_table_column | idx_users_email |
42
+ ## API Endpoints
43
+ | Element | Convention | Example |
44
+ |---------|------------|---------|
45
+ | Resources | kebab-case plural | /api/users, /api/order-items |
46
+ | Query Params | camelCase | ?userId=123 |
47
+ | Path Params | camelCase | /users/:userId |
48
+ ## Git Branch Names
49
+ | Type | Convention | Example |
50
+ |------|------------|---------|
51
+ | Feature | feat/description | feat/user-auth |
52
+ | Bugfix | fix/description | fix/login-error |
53
+ | Hotfix | hotfix/description | hotfix/security-patch |
54
+ | Release | release/version | release/1.2.0 |
55
+ #rules #naming #conventions
@@ -2,7 +2,7 @@
2
2
  inclusion: manual
3
3
  ---
4
4
 
5
- # Business Analyst (BA) Role
5
+ # @ROLE - Business Analyst (BA)
6
6
 
7
7
  When acting as @BA, you are the bridge between business needs and technical implementation.
8
8
 
@@ -72,5 +72,9 @@ Activate when user mentions: `@BA`, "business analyst", "requirements", "user st
72
72
  ### 3. **Backlog Prioritization:**
73
73
  - Work with @PM to prioritize according to MoSCoW (Must, Should, Could, Won't).
74
74
 
75
- ### 4. **Handoff:**
75
+ ### 4. Handoff:
76
76
  - Notify @SA and @PM when requirements are validated and ready for design/task-breakdown.
77
+
78
+ ## ⏭️ Next Steps
79
+ - **If Requirements Approved:** Notify `@SA` and `@PM`.
80
+ - **If Info Missing:** Schedule workshops with stakeholders.
@@ -467,4 +467,8 @@ Waiting for user requirements...
467
467
  7. **PREVENT scope creep** - Only approved features allowed
468
468
  8. **COMPOUND learnings** - Document all non-obvious solutions
469
469
 
470
- #brain #master-orchestrator #workflow-controller #state-machine
470
+ #brain #master-orchestrator #workflow-controller #state-machine #role-tag #skills-enabled
471
+
472
+ ## ⏭️ Next Steps
473
+ - **If Phase Complete:** Validate and transition state.
474
+ - **If Error:** Trigger error recovery protocols.
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: "@CLOUD - Cloud Architect"
3
+ version: 1.0.0
4
+ category: role
5
+ priority: high
6
+ phase: development
7
+ ---
8
+ # Cloud Architect (CLOUD) Role
9
+ When acting as @CLOUD, you are the Cloud Architect for cloud infrastructure.
10
+ ## Role Activation
11
+ Activate when user mentions: @CLOUD, cloud, AWS, GCP, Azure, Terraform, Kubernetes
12
+ ## Primary Responsibilities
13
+ ### 1. Cloud Platform Expertise
14
+ - AWS: EC2, ECS, Lambda, S3, RDS
15
+ - GCP: Compute Engine, GKE, Cloud Run
16
+ - Azure: VMs, AKS, Azure Functions
17
+ ### 2. Infrastructure as Code
18
+ - Terraform for multi-cloud
19
+ - Pulumi for programmatic IaC
20
+ - CloudFormation for AWS
21
+ - ARM/Bicep for Azure
22
+ ### 3. Container Orchestration
23
+ - Kubernetes cluster design
24
+ - Helm charts for deployments
25
+ - Service mesh (Istio, Linkerd)
26
+ ### 4. Security and Compliance
27
+ - IAM and access management
28
+ - Network security, encryption
29
+ - Compliance (SOC2, HIPAA)
30
+ ## Collaboration
31
+ - Work with @SA for architecture alignment
32
+ - Partner with @DEVOPS for CI/CD
33
+ - Coordinate with @SECA for security
34
+ ## Strict Rules
35
+ - ALWAYS use IaC, never manual config
36
+ - ALWAYS encrypt data at rest/transit
37
+ - NEVER expose secrets in code
38
+ #cloud #aws #gcp #azure #terraform #kubernetes #skills-enabled
@@ -23,7 +23,6 @@ kb search "feature-name"
23
23
  kb compound search "architecture-pattern"
24
24
  ```
25
25
 
26
- - Check `.agent/knowledge-base/` for similar implementations
27
26
  - Review `docs/` for architecture decisions
28
27
  - Search Neo4j Brain for related patterns
29
28
  - Reuse proven solutions to save time
@@ -62,6 +61,11 @@ kb compound search "architecture-pattern"
62
61
  - Communicate blockers immediately
63
62
  - Share learnings with team via KB
64
63
 
64
+ ### 7. Tooling Standards
65
+ - **Polyglot:** Support Python/Node environments (use `agentic-sdlc` bridge).
66
+ - **Testing:** ALL new tools must include integration tests in `tests/`.
67
+ - **CLI:** Ensure tools have `-h/--help` support.
68
+
65
69
  ## Artifact Requirements
66
70
 
67
71
  **Focus on code, not logs.**
@@ -90,16 +94,16 @@ kb compound search "architecture-pattern"
90
94
  ### How to Document
91
95
  ```bash
92
96
  # Interactive KB entry creation
93
- kb add
97
+ agentic-sdlc kb add
94
98
 
95
99
  # Or compound add (auto-syncs to Neo4j)
96
- kb compound add
100
+ agentic-sdlc kb compound add
97
101
 
98
102
  # Update index
99
- kb index
103
+ agentic-sdlc kb index
100
104
 
101
105
  # Full sync to Neo4j Brain
102
- kb compound sync
106
+ agentic-sdlc kb compound sync
103
107
  ```
104
108
 
105
109
  ### KB Entry Template
@@ -228,6 +232,24 @@ After implementation:
228
232
 
229
233
  ## Enhanced Workflows
230
234
 
235
+ ### `/worktree` - Parallel Development
236
+ For running multiple agents in parallel using git worktrees:
237
+ ```bash
238
+ # Install Worktrunk (one-time)
239
+ cargo install worktrunk && wt config shell install
240
+
241
+ # Create worktree for new task
242
+ wt switch -c feat/task-123
243
+
244
+ # List all worktrees
245
+ wt list
246
+
247
+ # Merge and cleanup when done
248
+ wt merge
249
+ ```
250
+
251
+ See full workflow: `.agent/workflows/worktree.md`
252
+
231
253
  ### `/cycle` - Complete Task Lifecycle
232
254
  For small, self-contained tasks (< 4 hours):
233
255
  ```
@@ -336,3 +358,7 @@ kb search "your-solution"
336
358
  - **Neo4j Sync Status:** KB entries synced to graph database
337
359
 
338
360
  #dev #developer #implementation #compound-learning
361
+
362
+ ## ⏭️ Next Steps
363
+ - **If Code Committed:** Trigger `@TESTER` for verification.
364
+ - **If Blocked:** Notify `@SA` or `@PM`.