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
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
# 🚀 DevOps - Knowledge Base Guide
|
|
2
|
+
|
|
3
|
+
## Role: @DEVOPS (DevOps Engineer)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🎯 Your Auto-Learning Responsibilities
|
|
8
|
+
|
|
9
|
+
As DEVOPS, you capture knowledge about:
|
|
10
|
+
- Deployment failures and fixes
|
|
11
|
+
- Infrastructure issues
|
|
12
|
+
- Configuration problems
|
|
13
|
+
- CI/CD pipeline challenges
|
|
14
|
+
- Performance bottlenecks
|
|
15
|
+
- Monitoring and alerting patterns
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🔄 Auto-Learning Triggers for DEVOPS
|
|
20
|
+
|
|
21
|
+
### Mandatory KB Entry Creation
|
|
22
|
+
|
|
23
|
+
| Trigger | When | Category | Example |
|
|
24
|
+
|---------|------|----------|---------|
|
|
25
|
+
| **Deployment Failure** | Deployment fails | Platform | KB-[date]-###-deployment-failure |
|
|
26
|
+
| **Rollback Event** | Production rollback | Platform | KB-[date]-###-rollback-incident |
|
|
27
|
+
| **Infrastructure Issue** | Server/container problem | Platform | KB-[date]-###-infrastructure-issue |
|
|
28
|
+
| **Configuration Error** | Config causes failure | Platform | KB-[date]-###-config-error |
|
|
29
|
+
| **Performance Issue** | Production performance problem | Performance | KB-[date]-###-performance-issue |
|
|
30
|
+
| **Security Incident** | Security breach/vulnerability | Security | KB-[date]-###-security-incident |
|
|
31
|
+
| **Monitoring Alert** | Critical alert triggered | Platform | KB-[date]-###-monitoring-alert |
|
|
32
|
+
| **Scaling Issue** | Auto-scaling problem | Performance | KB-[date]-###-scaling-issue |
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 📝 KB Entry Template for DEVOPS
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
# KB-[YYYY-MM-DD]-[###] - [Infrastructure Issue Title]
|
|
40
|
+
|
|
41
|
+
## Document Info
|
|
42
|
+
| Field | Value |
|
|
43
|
+
|-------|-------|
|
|
44
|
+
| ID | KB-[YYYY-MM-DD]-[###] |
|
|
45
|
+
| Date | [YYYY-MM-DD] |
|
|
46
|
+
| Author | @DEVOPS |
|
|
47
|
+
| Category | Platform / Performance / Security |
|
|
48
|
+
| Severity | [Critical/High/Medium/Low] |
|
|
49
|
+
| Auto-Generated | Yes |
|
|
50
|
+
| Source Task | [Task ID] |
|
|
51
|
+
| Sprint | [N] |
|
|
52
|
+
| Tags | #devops #deployment #infrastructure #auto-learned |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Incident Description
|
|
57
|
+
|
|
58
|
+
### Issue
|
|
59
|
+
[Clear description of the infrastructure/deployment issue]
|
|
60
|
+
|
|
61
|
+
### Impact
|
|
62
|
+
- **Downtime:** [Duration]
|
|
63
|
+
- **Users Affected:** [Number/Percentage]
|
|
64
|
+
- **Services Affected:** [List]
|
|
65
|
+
- **Data Loss:** [Yes/No]
|
|
66
|
+
|
|
67
|
+
### Timeline
|
|
68
|
+
- **Detected:** [Timestamp]
|
|
69
|
+
- **Investigation Started:** [Timestamp]
|
|
70
|
+
- **Root Cause Found:** [Timestamp]
|
|
71
|
+
- **Fix Applied:** [Timestamp]
|
|
72
|
+
- **Resolved:** [Timestamp]
|
|
73
|
+
- **Total Duration:** [Duration]
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Context
|
|
78
|
+
|
|
79
|
+
### Environment
|
|
80
|
+
- **Environment:** [Dev/Staging/Production]
|
|
81
|
+
- **Platform:** [AWS/Azure/GCP/Vercel/etc.]
|
|
82
|
+
- **Region:** [Region]
|
|
83
|
+
- **Infrastructure:** [Kubernetes/Docker/Serverless/etc.]
|
|
84
|
+
|
|
85
|
+
### Configuration
|
|
86
|
+
```yaml
|
|
87
|
+
# Relevant configuration
|
|
88
|
+
[config snippet]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Monitoring Data
|
|
92
|
+
```
|
|
93
|
+
# Logs/metrics showing the issue
|
|
94
|
+
[log entries or metrics]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Root Cause Analysis
|
|
100
|
+
|
|
101
|
+
### Investigation Steps
|
|
102
|
+
1. [Step 1 - What was checked]
|
|
103
|
+
2. [Step 2 - What was found]
|
|
104
|
+
3. [Step 3 - Root cause identified]
|
|
105
|
+
|
|
106
|
+
### Root Cause
|
|
107
|
+
[Detailed technical explanation]
|
|
108
|
+
|
|
109
|
+
### Why It Happened
|
|
110
|
+
- [Reason 1]
|
|
111
|
+
- [Reason 2]
|
|
112
|
+
- [Contributing factors]
|
|
113
|
+
|
|
114
|
+
### Warning Signs Missed
|
|
115
|
+
- [Early indicator 1]
|
|
116
|
+
- [Early indicator 2]
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Solution Applied
|
|
121
|
+
|
|
122
|
+
### Immediate Fix
|
|
123
|
+
```bash
|
|
124
|
+
# Commands executed to fix
|
|
125
|
+
[commands]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Configuration Changes
|
|
129
|
+
```yaml
|
|
130
|
+
# Updated configuration
|
|
131
|
+
[config changes]
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Infrastructure Changes
|
|
135
|
+
- [Change 1]
|
|
136
|
+
- [Change 2]
|
|
137
|
+
|
|
138
|
+
### Verification
|
|
139
|
+
```bash
|
|
140
|
+
# Verification commands
|
|
141
|
+
[commands to verify fix]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Prevention Measures
|
|
147
|
+
|
|
148
|
+
### Monitoring Updates
|
|
149
|
+
```yaml
|
|
150
|
+
# New alerts added
|
|
151
|
+
alerts:
|
|
152
|
+
- name: [Alert name]
|
|
153
|
+
condition: [Condition]
|
|
154
|
+
threshold: [Threshold]
|
|
155
|
+
action: [Action]
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Automation Added
|
|
159
|
+
```bash
|
|
160
|
+
# Automated checks/fixes
|
|
161
|
+
[automation scripts]
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Runbook Created
|
|
165
|
+
```markdown
|
|
166
|
+
## Runbook: [Issue Type]
|
|
167
|
+
|
|
168
|
+
### Detection
|
|
169
|
+
- [How to detect]
|
|
170
|
+
|
|
171
|
+
### Investigation
|
|
172
|
+
1. [Step 1]
|
|
173
|
+
2. [Step 2]
|
|
174
|
+
|
|
175
|
+
### Resolution
|
|
176
|
+
1. [Step 1]
|
|
177
|
+
2. [Step 2]
|
|
178
|
+
|
|
179
|
+
### Verification
|
|
180
|
+
- [How to verify]
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Infrastructure as Code Updates
|
|
184
|
+
```terraform
|
|
185
|
+
# Updated IaC
|
|
186
|
+
[terraform/cloudformation/etc.]
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Deployment Checklist Updates
|
|
192
|
+
|
|
193
|
+
### Pre-Deployment
|
|
194
|
+
- [ ] [New check 1]
|
|
195
|
+
- [ ] [New check 2]
|
|
196
|
+
|
|
197
|
+
### During Deployment
|
|
198
|
+
- [ ] [New check 1]
|
|
199
|
+
- [ ] [New check 2]
|
|
200
|
+
|
|
201
|
+
### Post-Deployment
|
|
202
|
+
- [ ] [New check 1]
|
|
203
|
+
- [ ] [New check 2]
|
|
204
|
+
|
|
205
|
+
### Rollback Procedure
|
|
206
|
+
1. [Step 1]
|
|
207
|
+
2. [Step 2]
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Performance Impact
|
|
212
|
+
|
|
213
|
+
### Metrics Before
|
|
214
|
+
- **Response Time:** [Value]
|
|
215
|
+
- **Throughput:** [Value]
|
|
216
|
+
- **Error Rate:** [Value]
|
|
217
|
+
- **Resource Usage:** [Value]
|
|
218
|
+
|
|
219
|
+
### Metrics After
|
|
220
|
+
- **Response Time:** [Value]
|
|
221
|
+
- **Throughput:** [Value]
|
|
222
|
+
- **Error Rate:** [Value]
|
|
223
|
+
- **Resource Usage:** [Value]
|
|
224
|
+
|
|
225
|
+
### Improvement
|
|
226
|
+
- [Metric]: [Percentage] improvement
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Cost Impact (if applicable)
|
|
231
|
+
|
|
232
|
+
### Cost Before
|
|
233
|
+
- [Service]: $[Amount]/month
|
|
234
|
+
|
|
235
|
+
### Cost After
|
|
236
|
+
- [Service]: $[Amount]/month
|
|
237
|
+
|
|
238
|
+
### Savings/Increase
|
|
239
|
+
- [Percentage] [decrease/increase]
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Lessons Learned
|
|
244
|
+
|
|
245
|
+
### What Worked Well
|
|
246
|
+
- [Success 1]
|
|
247
|
+
- [Success 2]
|
|
248
|
+
|
|
249
|
+
### What Didn't Work
|
|
250
|
+
- [Failed approach 1]
|
|
251
|
+
- [Failed approach 2]
|
|
252
|
+
|
|
253
|
+
### Key Takeaways
|
|
254
|
+
1. [Takeaway 1]
|
|
255
|
+
2. [Takeaway 2]
|
|
256
|
+
|
|
257
|
+
### Process Improvements
|
|
258
|
+
- [Improvement 1]
|
|
259
|
+
- [Improvement 2]
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Related Entries
|
|
264
|
+
- KB-[ID]: [Related infrastructure issue]
|
|
265
|
+
- KB-[ID]: [Related deployment pattern]
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## References
|
|
270
|
+
- Incident Report: [Link]
|
|
271
|
+
- Monitoring Dashboard: [Link]
|
|
272
|
+
- Documentation: [Link]
|
|
273
|
+
- Post-Mortem: [Link]
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
#knowledge-base #devops #infrastructure #deployment #auto-learned
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## 🔍 Pre-Deployment KB Search
|
|
283
|
+
|
|
284
|
+
Before deployment, search KB for:
|
|
285
|
+
|
|
286
|
+
```markdown
|
|
287
|
+
### DEVOPS KB Search Checklist
|
|
288
|
+
- [ ] Similar deployment issues
|
|
289
|
+
- [ ] Known infrastructure problems
|
|
290
|
+
- [ ] Configuration gotchas
|
|
291
|
+
- [ ] Performance considerations
|
|
292
|
+
- [ ] Rollback procedures
|
|
293
|
+
- [ ] Monitoring requirements
|
|
294
|
+
|
|
295
|
+
**Search Keywords:**
|
|
296
|
+
- Platform (AWS, Vercel, etc.)
|
|
297
|
+
- Service (Lambda, EC2, etc.)
|
|
298
|
+
- Environment (production, staging)
|
|
299
|
+
- Technology stack
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## 📊 DEVOPS-Specific Metrics
|
|
305
|
+
|
|
306
|
+
Track in your DevOps Plan and Log:
|
|
307
|
+
|
|
308
|
+
```markdown
|
|
309
|
+
## DevOps Knowledge Metrics
|
|
310
|
+
|
|
311
|
+
### Deployment Stats
|
|
312
|
+
- **Total Deployments:** [X]
|
|
313
|
+
- **Successful:** [Y]
|
|
314
|
+
- **Failed:** [Z]
|
|
315
|
+
- **Rollbacks:** [W]
|
|
316
|
+
- **KB Entries Created:** [Number]
|
|
317
|
+
|
|
318
|
+
### Incident Response
|
|
319
|
+
- **Incidents:** [X]
|
|
320
|
+
- **MTTR (Mean Time To Resolve):** [Y] minutes
|
|
321
|
+
- **KB Entries:** [List KB-IDs]
|
|
322
|
+
|
|
323
|
+
### Infrastructure Changes
|
|
324
|
+
- **Changes Made:** [X]
|
|
325
|
+
- **Issues Prevented:** [Y]
|
|
326
|
+
- **KB Entries Referenced:** [Z]
|
|
327
|
+
|
|
328
|
+
### Knowledge Reuse
|
|
329
|
+
- **Time Saved:** [Estimate]
|
|
330
|
+
- **Incidents Prevented:** [Number]
|
|
331
|
+
- **Runbooks Created:** [Number]
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## 🎯 Integration with DevOps Plan
|
|
337
|
+
|
|
338
|
+
Add this section to every DevOps Plan and Log:
|
|
339
|
+
|
|
340
|
+
```markdown
|
|
341
|
+
## Knowledge Base Integration
|
|
342
|
+
|
|
343
|
+
### KB Entries Referenced
|
|
344
|
+
| KB-ID | Title | How It Helped |
|
|
345
|
+
|-------|-------|---------------|
|
|
346
|
+
| KB-[ID] | [Title] | [Description] |
|
|
347
|
+
|
|
348
|
+
### Deployment Patterns Applied from KB
|
|
349
|
+
1. [Pattern 1 from KB-ID]
|
|
350
|
+
2. [Pattern 2 from KB-ID]
|
|
351
|
+
|
|
352
|
+
### New KB Entries Created
|
|
353
|
+
| KB-ID | Title | Category | Trigger |
|
|
354
|
+
|-------|-------|----------|---------|
|
|
355
|
+
| KB-[ID] | [Title] | [Category] | [Deployment failure/etc.] |
|
|
356
|
+
|
|
357
|
+
### Runbooks from KB
|
|
358
|
+
| Runbook | Source KB | Status |
|
|
359
|
+
|---------|-----------|--------|
|
|
360
|
+
| [Name] | KB-[ID] | [Active/Updated] |
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## 🚀 Quick Actions
|
|
366
|
+
|
|
367
|
+
### After Deployment Failure
|
|
368
|
+
```markdown
|
|
369
|
+
1. Immediate rollback if critical
|
|
370
|
+
2. Capture logs and metrics
|
|
371
|
+
3. Document timeline
|
|
372
|
+
4. Create KB entry
|
|
373
|
+
5. Update deployment checklist
|
|
374
|
+
6. Add monitoring alerts
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### After Rollback
|
|
378
|
+
```markdown
|
|
379
|
+
1. Document rollback reason
|
|
380
|
+
2. Create KB entry (mandatory)
|
|
381
|
+
3. Analyze root cause
|
|
382
|
+
4. Update rollback procedure
|
|
383
|
+
5. Add prevention measures
|
|
384
|
+
6. Notify stakeholders
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### After Performance Issue
|
|
388
|
+
```markdown
|
|
389
|
+
1. Capture performance metrics
|
|
390
|
+
2. Identify bottleneck
|
|
391
|
+
3. Create KB entry
|
|
392
|
+
4. Implement fix
|
|
393
|
+
5. Add performance monitoring
|
|
394
|
+
6. Update capacity planning
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
## 📚 Example KB Entries for DEVOPS
|
|
400
|
+
|
|
401
|
+
### Example 1: Deployment Failure
|
|
402
|
+
**KB-2026-01-01-040-vercel-build-timeout.md**
|
|
403
|
+
- Pattern: Build times out on large projects
|
|
404
|
+
- Solution: Optimize build process, increase timeout
|
|
405
|
+
- Prevention: Monitor build times, optimize dependencies
|
|
406
|
+
|
|
407
|
+
### Example 2: Infrastructure Issue
|
|
408
|
+
**KB-2026-01-01-041-docker-memory-leak.md**
|
|
409
|
+
- Pattern: Container memory grows until OOM
|
|
410
|
+
- Solution: Add memory limits, fix leak in code
|
|
411
|
+
- Prevention: Memory monitoring, regular restarts
|
|
412
|
+
|
|
413
|
+
### Example 3: Configuration Error
|
|
414
|
+
**KB-2026-01-01-042-env-var-missing.md**
|
|
415
|
+
- Pattern: Missing environment variable causes crash
|
|
416
|
+
- Solution: Add validation, use defaults
|
|
417
|
+
- Prevention: Config validation in CI/CD
|
|
418
|
+
|
|
419
|
+
### Example 4: Scaling Issue
|
|
420
|
+
**KB-2026-01-01-043-auto-scaling-delay.md**
|
|
421
|
+
- Pattern: Auto-scaling too slow for traffic spike
|
|
422
|
+
- Solution: Adjust scaling thresholds, pre-warm
|
|
423
|
+
- Prevention: Load testing, predictive scaling
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
## 🎓 DEVOPS Best Practices
|
|
428
|
+
|
|
429
|
+
1. **Search KB Before Deployment**
|
|
430
|
+
- Check for known issues
|
|
431
|
+
- Review deployment patterns
|
|
432
|
+
- Verify configuration
|
|
433
|
+
|
|
434
|
+
2. **Document Incidents Immediately**
|
|
435
|
+
- Capture timeline
|
|
436
|
+
- Save logs and metrics
|
|
437
|
+
- Create KB entry
|
|
438
|
+
|
|
439
|
+
3. **Build Runbooks**
|
|
440
|
+
- Every incident gets runbook
|
|
441
|
+
- Link to KB entry
|
|
442
|
+
- Keep updated
|
|
443
|
+
|
|
444
|
+
4. **Automate Prevention**
|
|
445
|
+
- Add monitoring alerts
|
|
446
|
+
- Create automated checks
|
|
447
|
+
- Update CI/CD pipeline
|
|
448
|
+
|
|
449
|
+
5. **Share Infrastructure Patterns**
|
|
450
|
+
- Document IaC patterns
|
|
451
|
+
- Create reusable modules
|
|
452
|
+
- Update documentation
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
## 🔄 DevOps Workflow with KB
|
|
457
|
+
|
|
458
|
+
```markdown
|
|
459
|
+
### KB-Integrated DevOps Flow
|
|
460
|
+
|
|
461
|
+
1. **Pre-Deployment**
|
|
462
|
+
- Search KB for similar deployments
|
|
463
|
+
- Review deployment checklist
|
|
464
|
+
- Check for known issues
|
|
465
|
+
|
|
466
|
+
2. **During Deployment**
|
|
467
|
+
- Monitor metrics
|
|
468
|
+
- Watch for alerts
|
|
469
|
+
- Track deployment progress
|
|
470
|
+
|
|
471
|
+
3. **Post-Deployment**
|
|
472
|
+
- Verify deployment success
|
|
473
|
+
- Check performance metrics
|
|
474
|
+
- Monitor for issues
|
|
475
|
+
|
|
476
|
+
4. **Incident Response**
|
|
477
|
+
- Search KB for similar incidents
|
|
478
|
+
- Follow runbook if available
|
|
479
|
+
- Document new incidents
|
|
480
|
+
|
|
481
|
+
5. **Prevention**
|
|
482
|
+
- Create KB entry
|
|
483
|
+
- Update monitoring
|
|
484
|
+
- Add automation
|
|
485
|
+
- Share lessons learned
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
#devops #infrastructure #deployment #knowledge-base
|
|
491
|
+
|