ai-playbook 1.0.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/README.md +146 -0
- package/agents/README.md +168 -0
- package/agents/SKILL.md +633 -0
- package/agents/architect/AGENT.md +44 -0
- package/agents/architect/README.md +5 -0
- package/agents/coder/AGENT.md +43 -0
- package/agents/coder/README.md +5 -0
- package/agents/debugger/AGENT.md +42 -0
- package/agents/debugger/README.md +6 -0
- package/agents/devops/AGENT.md +43 -0
- package/agents/devops/README.md +5 -0
- package/agents/documentation/AGENT.md +45 -0
- package/agents/documentation/README.md +5 -0
- package/agents/examples.md +550 -0
- package/agents/performance/AGENT.md +45 -0
- package/agents/performance/README.md +6 -0
- package/agents/planner/AGENT.md +44 -0
- package/agents/planner/README.md +6 -0
- package/agents/product-owner/AGENT.md +46 -0
- package/agents/product-owner/README.md +6 -0
- package/agents/refactorer/AGENT.md +44 -0
- package/agents/refactorer/README.md +6 -0
- package/agents/release-manager/AGENT.md +45 -0
- package/agents/release-manager/README.md +6 -0
- package/agents/researcher/AGENT.md +44 -0
- package/agents/researcher/README.md +6 -0
- package/agents/reviewer/AGENT.md +43 -0
- package/agents/reviewer/README.md +6 -0
- package/agents/security/AGENT.md +46 -0
- package/agents/security/README.md +6 -0
- package/agents/support/AGENT.md +45 -0
- package/agents/support/README.md +6 -0
- package/agents/tester/AGENT.md +46 -0
- package/agents/tester/README.md +5 -0
- package/bin/cli.js +186 -0
- package/commands/README.md +266 -0
- package/commands/build.md +135 -0
- package/commands/clean.md +126 -0
- package/commands/deploy-prod.md +171 -0
- package/commands/deploy-staging.md +147 -0
- package/commands/deps.md +169 -0
- package/commands/dev.md +132 -0
- package/commands/format.md +142 -0
- package/commands/lint.md +125 -0
- package/commands/migrate.md +159 -0
- package/commands/release.md +183 -0
- package/commands/rollback.md +152 -0
- package/commands/seed.md +178 -0
- package/commands/setup.md +109 -0
- package/commands/test.md +134 -0
- package/commands/validate.md +147 -0
- package/context/README.md +7 -0
- package/context/aem.md +47 -0
- package/context/architecture.md +51 -0
- package/context/bullminder.md +57 -0
- package/context/coding-style.md +42 -0
- package/context/communication.md +53 -0
- package/context/company.md +46 -0
- package/context/engineering.md +63 -0
- package/context/project-template.md +71 -0
- package/context/trading.md +52 -0
- package/hooks/README.md +326 -0
- package/hooks/code-review/README.md +6 -0
- package/hooks/code-review/check-coverage.md +101 -0
- package/hooks/custom/README.md +6 -0
- package/hooks/custom/project-specific-hooks.md +273 -0
- package/hooks/deployment/README.md +6 -0
- package/hooks/deployment/health-check.md +102 -0
- package/hooks/deployment/pre-deploy-check.md +84 -0
- package/hooks/documentation/README.md +6 -0
- package/hooks/documentation/update-changelog.md +146 -0
- package/hooks/post-task/README.md +5 -0
- package/hooks/post-task/run-tests.md +61 -0
- package/hooks/pre-commit/README.md +6 -0
- package/hooks/pre-commit/format.md +63 -0
- package/hooks/pre-commit/lint.md +62 -0
- package/hooks/pre-commit/type-check.md +78 -0
- package/hooks/pre-task/README.md +6 -0
- package/hooks/pre-task/check-branch.md +48 -0
- package/hooks/pre-task/validate-environment.md +48 -0
- package/hooks/security-check/README.md +6 -0
- package/hooks/security-check/dependency-audit.md +85 -0
- package/hooks/security-check/secrets-scan.md +77 -0
- package/hooks/test-before-finish/README.md +6 -0
- package/hooks/test-before-finish/run-all-tests.md +128 -0
- package/index.js +69 -0
- package/knowledge/README.md +33 -0
- package/knowledge/ai-agents.md +74 -0
- package/knowledge/decision-making.md +73 -0
- package/knowledge/documentation.md +67 -0
- package/knowledge/engineering-principles.md +65 -0
- package/knowledge/product-discovery.md +68 -0
- package/knowledge/security-privacy.md +54 -0
- package/knowledge/testing-quality.md +63 -0
- package/package.json +63 -0
- package/patterns/README.md +7 -0
- package/prompts/README.md +208 -0
- package/prompts/architect/README.md +96 -0
- package/prompts/architect/design-system.md +140 -0
- package/prompts/debugger/README.md +96 -0
- package/prompts/debugger/diagnose-issue.md +141 -0
- package/prompts/developer/README.md +129 -0
- package/prompts/developer/fix-bug.md +136 -0
- package/prompts/developer/implement-feature.md +133 -0
- package/prompts/product-owner/README.md +116 -0
- package/prompts/product-owner/define-feature.md +145 -0
- package/prompts/reviewer/README.md +91 -0
- package/prompts/reviewer/code-review.md +129 -0
- package/prompts/support/README.md +154 -0
- package/prompts/support/resolve-issue.md +124 -0
- package/roles/README.md +6 -0
- package/roles/design-architect/README.md +98 -0
- package/roles/design-architect/accessibility/README.md +33 -0
- package/roles/design-architect/accessibility/checklists.md +29 -0
- package/roles/design-architect/accessibility/examples.md +35 -0
- package/roles/design-architect/checklists.md +76 -0
- package/roles/design-architect/component-library/README.md +35 -0
- package/roles/design-architect/component-library/checklists.md +29 -0
- package/roles/design-architect/component-library/examples.md +35 -0
- package/roles/design-architect/design-system/README.md +35 -0
- package/roles/design-architect/design-system/checklists.md +27 -0
- package/roles/design-architect/design-system/examples.md +41 -0
- package/roles/design-architect/examples/README.md +31 -0
- package/roles/design-architect/examples/checklists.md +26 -0
- package/roles/design-architect/examples/examples.md +46 -0
- package/roles/design-architect/examples.md +90 -0
- package/roles/design-architect/figma/README.md +33 -0
- package/roles/design-architect/figma/checklists.md +27 -0
- package/roles/design-architect/figma/examples.md +38 -0
- package/roles/design-architect/responsibilities.md +73 -0
- package/roles/design-architect/responsive/README.md +34 -0
- package/roles/design-architect/responsive/checklists.md +26 -0
- package/roles/design-architect/responsive/examples.md +39 -0
- package/roles/design-architect/role.md +129 -0
- package/roles/design-architect/skill-map.md +42 -0
- package/roles/design-architect/triggers.md +110 -0
- package/roles/design-architect/ui/README.md +36 -0
- package/roles/design-architect/ui/checklists.md +29 -0
- package/roles/design-architect/ui/examples.md +28 -0
- package/roles/design-architect/usability/README.md +34 -0
- package/roles/design-architect/usability/checklists.md +28 -0
- package/roles/design-architect/usability/examples.md +31 -0
- package/roles/design-architect/ux/README.md +36 -0
- package/roles/design-architect/ux/checklists.md +28 -0
- package/roles/design-architect/ux/examples.md +37 -0
- package/roles/design-architect/wireframes/README.md +34 -0
- package/roles/design-architect/wireframes/checklists.md +25 -0
- package/roles/design-architect/wireframes/examples.md +32 -0
- package/roles/design-architect/workflow.md +80 -0
- package/roles/devops/README.md +101 -0
- package/roles/devops/ansible/README.md +6 -0
- package/roles/devops/checklists.md +413 -0
- package/roles/devops/ci-cd/README.md +169 -0
- package/roles/devops/ci-cd/checklists.md +289 -0
- package/roles/devops/ci-cd/examples.md +429 -0
- package/roles/devops/cloud-platforms/README.md +109 -0
- package/roles/devops/cost-optimization/README.md +131 -0
- package/roles/devops/disaster-recovery/README.md +118 -0
- package/roles/devops/docker/README.md +6 -0
- package/roles/devops/examples/README.md +6 -0
- package/roles/devops/examples.md +775 -0
- package/roles/devops/github-actions/README.md +6 -0
- package/roles/devops/helm/README.md +6 -0
- package/roles/devops/infrastructure-as-code/README.md +160 -0
- package/roles/devops/infrastructure-as-code/checklists.md +124 -0
- package/roles/devops/jenkins/README.md +6 -0
- package/roles/devops/kubernetes/README.md +150 -0
- package/roles/devops/kubernetes/checklists.md +192 -0
- package/roles/devops/kubernetes/examples.md +189 -0
- package/roles/devops/monitoring/README.md +93 -0
- package/roles/devops/networking/README.md +83 -0
- package/roles/devops/performance/README.md +104 -0
- package/roles/devops/responsibilities.md +95 -0
- package/roles/devops/role.md +130 -0
- package/roles/devops/security/README.md +126 -0
- package/roles/devops/skill-map.md +162 -0
- package/roles/devops/terraform/README.md +6 -0
- package/roles/devops/triggers.md +241 -0
- package/roles/devops/workflow.md +197 -0
- package/roles/qa/README.md +16 -0
- package/roles/qa/api-testing/README.md +6 -0
- package/roles/qa/automation/README.md +6 -0
- package/roles/qa/checklists.md +24 -0
- package/roles/qa/examples/README.md +6 -0
- package/roles/qa/examples.md +27 -0
- package/roles/qa/performance/README.md +6 -0
- package/roles/qa/playwright/README.md +6 -0
- package/roles/qa/responsibilities.md +16 -0
- package/roles/qa/role.md +47 -0
- package/roles/qa/selenium/README.md +6 -0
- package/roles/qa/skill-map.md +14 -0
- package/roles/qa/triggers.md +10 -0
- package/roles/qa/workflow.md +9 -0
- package/roles/software-architect/README.md +16 -0
- package/roles/software-architect/agents/README.md +6 -0
- package/roles/software-architect/ai-architecture/README.md +6 -0
- package/roles/software-architect/aws/README.md +6 -0
- package/roles/software-architect/azure/README.md +6 -0
- package/roles/software-architect/caching/README.md +6 -0
- package/roles/software-architect/checklists.md +25 -0
- package/roles/software-architect/cloud/README.md +6 -0
- package/roles/software-architect/database-design/README.md +6 -0
- package/roles/software-architect/diagrams/README.md +6 -0
- package/roles/software-architect/distributed-systems/README.md +7 -0
- package/roles/software-architect/docker/README.md +6 -0
- package/roles/software-architect/event-driven/README.md +7 -0
- package/roles/software-architect/examples/README.md +6 -0
- package/roles/software-architect/examples.md +22 -0
- package/roles/software-architect/gcp/README.md +6 -0
- package/roles/software-architect/kubernetes/README.md +6 -0
- package/roles/software-architect/messaging/README.md +6 -0
- package/roles/software-architect/rag/README.md +7 -0
- package/roles/software-architect/responsibilities.md +17 -0
- package/roles/software-architect/role.md +46 -0
- package/roles/software-architect/scalability/README.md +6 -0
- package/roles/software-architect/security/README.md +6 -0
- package/roles/software-architect/skill-map.md +15 -0
- package/roles/software-architect/system-design/README.md +6 -0
- package/roles/software-architect/triggers.md +10 -0
- package/roles/software-architect/vector-db/README.md +6 -0
- package/roles/software-architect/workflow.md +9 -0
- package/roles/software-developer/README.md +116 -0
- package/roles/software-developer/api/README.md +365 -0
- package/roles/software-developer/api/checklist.md +131 -0
- package/roles/software-developer/api/examples.md +459 -0
- package/roles/software-developer/authentication/README.md +26 -0
- package/roles/software-developer/authentication/checklists.md +22 -0
- package/roles/software-developer/authentication/examples.md +32 -0
- package/roles/software-developer/authorization/README.md +26 -0
- package/roles/software-developer/authorization/checklists.md +21 -0
- package/roles/software-developer/authorization/examples.md +27 -0
- package/roles/software-developer/backend/README.md +26 -0
- package/roles/software-developer/backend/checklists.md +21 -0
- package/roles/software-developer/backend/examples.md +21 -0
- package/roles/software-developer/cache/README.md +25 -0
- package/roles/software-developer/cache/checklists.md +21 -0
- package/roles/software-developer/cache/examples.md +22 -0
- package/roles/software-developer/checklists.md +122 -0
- package/roles/software-developer/code-review/README.md +23 -0
- package/roles/software-developer/code-review/checklists.md +22 -0
- package/roles/software-developer/code-review/examples.md +20 -0
- package/roles/software-developer/database/README.md +27 -0
- package/roles/software-developer/database/checklists.md +21 -0
- package/roles/software-developer/database/examples.md +27 -0
- package/roles/software-developer/debugging/README.md +24 -0
- package/roles/software-developer/debugging/checklists.md +20 -0
- package/roles/software-developer/debugging/examples.md +28 -0
- package/roles/software-developer/examples/README.md +22 -0
- package/roles/software-developer/examples/checklists.md +8 -0
- package/roles/software-developer/examples/examples.md +25 -0
- package/roles/software-developer/examples.md +378 -0
- package/roles/software-developer/frontend/README.md +76 -0
- package/roles/software-developer/frontend/accessibility/README.md +136 -0
- package/roles/software-developer/frontend/accessibility/best-practices.md +368 -0
- package/roles/software-developer/frontend/code-quality/README.md +136 -0
- package/roles/software-developer/frontend/code-quality/best-practices.md +309 -0
- package/roles/software-developer/frontend/components/README.md +65 -0
- package/roles/software-developer/frontend/components/best-practices.md +273 -0
- package/roles/software-developer/frontend/debugging/README.md +149 -0
- package/roles/software-developer/frontend/debugging/best-practices.md +329 -0
- package/roles/software-developer/frontend/examples/README.md +19 -0
- package/roles/software-developer/frontend/examples/checklists.md +8 -0
- package/roles/software-developer/frontend/examples/examples.md +17 -0
- package/roles/software-developer/frontend/logging-observability/README.md +196 -0
- package/roles/software-developer/frontend/logging-observability/best-practices.md +430 -0
- package/roles/software-developer/frontend/performance/README.md +99 -0
- package/roles/software-developer/frontend/performance/best-practices.md +350 -0
- package/roles/software-developer/frontend/state-management/README.md +85 -0
- package/roles/software-developer/frontend/state-management/best-practices.md +344 -0
- package/roles/software-developer/frontend/testing/README.md +114 -0
- package/roles/software-developer/frontend/testing/best-practices.md +272 -0
- package/roles/software-developer/fullstack/README.md +25 -0
- package/roles/software-developer/fullstack/checklists.md +19 -0
- package/roles/software-developer/fullstack/examples.md +14 -0
- package/roles/software-developer/graphql/README.md +24 -0
- package/roles/software-developer/graphql/checklists.md +20 -0
- package/roles/software-developer/graphql/examples.md +24 -0
- package/roles/software-developer/integration-tests/README.md +25 -0
- package/roles/software-developer/integration-tests/checklists.md +20 -0
- package/roles/software-developer/integration-tests/examples.md +18 -0
- package/roles/software-developer/java/README.md +24 -0
- package/roles/software-developer/java/checklists.md +16 -0
- package/roles/software-developer/java/examples.md +22 -0
- package/roles/software-developer/javascript/README.md +24 -0
- package/roles/software-developer/javascript/checklists.md +15 -0
- package/roles/software-developer/javascript/examples.md +18 -0
- package/roles/software-developer/logging/README.md +105 -0
- package/roles/software-developer/logging/checklists.md +48 -0
- package/roles/software-developer/logging/examples.md +135 -0
- package/roles/software-developer/messaging/README.md +24 -0
- package/roles/software-developer/messaging/checklists.md +21 -0
- package/roles/software-developer/messaging/examples.md +26 -0
- package/roles/software-developer/microservices/README.md +25 -0
- package/roles/software-developer/microservices/checklists.md +21 -0
- package/roles/software-developer/microservices/examples.md +21 -0
- package/roles/software-developer/node/README.md +25 -0
- package/roles/software-developer/node/checklists.md +15 -0
- package/roles/software-developer/node/examples.md +15 -0
- package/roles/software-developer/nosql/README.md +24 -0
- package/roles/software-developer/nosql/checklists.md +21 -0
- package/roles/software-developer/nosql/examples.md +20 -0
- package/roles/software-developer/observability/README.md +25 -0
- package/roles/software-developer/observability/checklists.md +21 -0
- package/roles/software-developer/observability/examples.md +22 -0
- package/roles/software-developer/performance/README.md +26 -0
- package/roles/software-developer/performance/checklists.md +20 -0
- package/roles/software-developer/performance/examples.md +20 -0
- package/roles/software-developer/python/README.md +25 -0
- package/roles/software-developer/python/checklists.md +15 -0
- package/roles/software-developer/python/examples.md +17 -0
- package/roles/software-developer/react/README.md +24 -0
- package/roles/software-developer/react/checklists.md +15 -0
- package/roles/software-developer/react/examples.md +22 -0
- package/roles/software-developer/refactoring/README.md +23 -0
- package/roles/software-developer/refactoring/checklists.md +21 -0
- package/roles/software-developer/refactoring/examples.md +11 -0
- package/roles/software-developer/responsibilities.md +58 -0
- package/roles/software-developer/role.md +127 -0
- package/roles/software-developer/skill-map.md +88 -0
- package/roles/software-developer/springboot/README.md +25 -0
- package/roles/software-developer/springboot/checklists.md +15 -0
- package/roles/software-developer/springboot/examples.md +21 -0
- package/roles/software-developer/sql/README.md +24 -0
- package/roles/software-developer/sql/checklists.md +22 -0
- package/roles/software-developer/sql/examples.md +20 -0
- package/roles/software-developer/testing/README.md +25 -0
- package/roles/software-developer/testing/checklists.md +21 -0
- package/roles/software-developer/testing/examples.md +19 -0
- package/roles/software-developer/triggers.md +550 -0
- package/roles/software-developer/typescript/README.md +25 -0
- package/roles/software-developer/typescript/checklists.md +15 -0
- package/roles/software-developer/typescript/examples.md +18 -0
- package/roles/software-developer/unit-tests/README.md +24 -0
- package/roles/software-developer/unit-tests/checklists.md +19 -0
- package/roles/software-developer/unit-tests/examples.md +22 -0
- package/roles/software-developer/workflow.md +196 -0
- package/roles/sre/README.md +16 -0
- package/roles/sre/alerts/README.md +6 -0
- package/roles/sre/availability/README.md +6 -0
- package/roles/sre/chaos/README.md +6 -0
- package/roles/sre/checklists.md +24 -0
- package/roles/sre/examples/README.md +6 -0
- package/roles/sre/examples.md +19 -0
- package/roles/sre/observability/README.md +6 -0
- package/roles/sre/reliability/README.md +6 -0
- package/roles/sre/responsibilities.md +16 -0
- package/roles/sre/role.md +46 -0
- package/roles/sre/skill-map.md +14 -0
- package/roles/sre/slos/README.md +6 -0
- package/roles/sre/triggers.md +10 -0
- package/roles/sre/workflow.md +9 -0
- package/roles/support-engineer/README.md +16 -0
- package/roles/support-engineer/checklists.md +24 -0
- package/roles/support-engineer/datadog/README.md +6 -0
- package/roles/support-engineer/examples/README.md +6 -0
- package/roles/support-engineer/examples.md +17 -0
- package/roles/support-engineer/incident-response/README.md +6 -0
- package/roles/support-engineer/kubernetes/README.md +6 -0
- package/roles/support-engineer/linux/README.md +6 -0
- package/roles/support-engineer/logs/README.md +6 -0
- package/roles/support-engineer/monitoring/README.md +6 -0
- package/roles/support-engineer/networking/README.md +6 -0
- package/roles/support-engineer/newrelic/README.md +6 -0
- package/roles/support-engineer/postmortem/README.md +6 -0
- package/roles/support-engineer/production/README.md +6 -0
- package/roles/support-engineer/responsibilities.md +16 -0
- package/roles/support-engineer/role.md +47 -0
- package/roles/support-engineer/root-cause-analysis/README.md +6 -0
- package/roles/support-engineer/runbooks/README.md +6 -0
- package/roles/support-engineer/skill-map.md +14 -0
- package/roles/support-engineer/splunk/README.md +6 -0
- package/roles/support-engineer/triggers.md +10 -0
- package/roles/support-engineer/troubleshooting/README.md +6 -0
- package/roles/support-engineer/workflow.md +9 -0
- package/setup.sh +204 -0
- package/skills/.claude/README.md +7 -0
- package/skills/README.md +21 -0
- package/skills/ai-agents/README.md +207 -0
- package/skills/ai-agents/examples.md +335 -0
- package/skills/ai-agents/skill.md +392 -0
- package/skills/architecture/README.md +198 -0
- package/skills/architecture/examples.md +316 -0
- package/skills/architecture/skill.md +189 -0
- package/skills/design-architecture/README.md +107 -0
- package/skills/design-architecture/examples.md +84 -0
- package/skills/design-architecture/skill.md +192 -0
- package/skills/devops/README.md +177 -0
- package/skills/devops/examples.md +376 -0
- package/skills/devops/skill.md +210 -0
- package/skills/documentation/README.md +182 -0
- package/skills/documentation/examples.md +364 -0
- package/skills/documentation/skill.md +200 -0
- package/skills/performance/README.md +177 -0
- package/skills/performance/examples.md +376 -0
- package/skills/performance/skill.md +199 -0
- package/skills/qa/README.md +106 -0
- package/skills/qa/examples.md +84 -0
- package/skills/qa/skill.md +384 -0
- package/skills/security/README.md +108 -0
- package/skills/security/examples.md +85 -0
- package/skills/security/skill.md +223 -0
- package/skills/software-development/README.md +239 -0
- package/skills/software-development/assessment.md +0 -0
- package/skills/software-development/checklists.md +0 -0
- package/skills/software-development/examples.md +375 -0
- package/skills/software-development/prompts.md +0 -0
- package/skills/software-development/skill.md +390 -0
- package/skills/software-development/templates/README.md +7 -0
- package/skills/software-development/templates/api-development.md +0 -0
- package/skills/software-development/templates/bug-fix.md +0 -0
- package/skills/software-development/templates/code-review.md +0 -0
- package/skills/software-development/templates/feature-implementation.md +0 -0
- package/skills/software-development/templates/llm-integration.md +0 -0
- package/skills/software-development/templates/performance-review.md +0 -0
- package/skills/software-development/templates/security-review.md +0 -0
- package/skills/software-development/templates/test-generation.md +0 -0
- package/skills/software-development/tools.md +0 -0
- package/skills/software-development/workflows.md +0 -0
- package/skills/sre/README.md +107 -0
- package/skills/sre/examples.md +379 -0
- package/skills/sre/skill.md +256 -0
- package/skills/support-engineering/README.md +107 -0
- package/skills/support-engineering/examples.md +85 -0
- package/skills/support-engineering/skill.md +103 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# DevOps Skill
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
The DevOps skill enables organizations to automate infrastructure, deployment pipelines, and operational processes while maintaining reliability, security, and observability. It encompasses designing CI/CD systems that enable rapid deployment, infrastructure as code that enables reproducibility, container orchestration for application scaling, and comprehensive monitoring for rapid incident diagnosis. DevOps bridges development and operations through automation, making deployment safe and frequent rather than risky and rare.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Goals
|
|
10
|
+
|
|
11
|
+
- **Automate Deployments**: Enable safe, frequent deployments through automated testing and deployment pipelines
|
|
12
|
+
- **Infrastructure as Code**: Define all infrastructure in version-controlled code for reproducibility and safety
|
|
13
|
+
- **Rapid Incident Response**: Implement comprehensive monitoring and alerting enabling rapid issue diagnosis
|
|
14
|
+
- **High Reliability**: Design systems with redundancy, auto-healing, and graceful degradation
|
|
15
|
+
- **Security by Default**: Integrate security scanning and secrets management into deployment pipelines
|
|
16
|
+
- **Cost Optimization**: Optimize infrastructure costs through right-sizing, auto-scaling, and resource management
|
|
17
|
+
- **Operational Efficiency**: Reduce manual operational work through automation and self-healing systems
|
|
18
|
+
- **Compliance & Auditing**: Automate compliance checking and maintain audit trails for all changes
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Capabilities
|
|
23
|
+
|
|
24
|
+
### Continuous Integration & Deployment
|
|
25
|
+
- **CI Pipeline Design**: Automated build, test, and quality checks on every commit
|
|
26
|
+
- **CD Pipeline Design**: Automated deployment to staging and production with safety gates
|
|
27
|
+
- **Testing Automation**: Unit, integration, E2E, security, and performance testing
|
|
28
|
+
- **Deployment Strategies**: Blue-green, canary, rolling deployments with automatic rollback
|
|
29
|
+
- **Release Management**: Version management, release notes, deployment notifications
|
|
30
|
+
|
|
31
|
+
### Infrastructure & Cloud
|
|
32
|
+
- **Infrastructure as Code**: Terraform, CloudFormation, Ansible for infrastructure definition
|
|
33
|
+
- **Cloud Platform Management**: AWS, Azure, GCP, multi-cloud strategies
|
|
34
|
+
- **Container Orchestration**: Kubernetes, container management, auto-scaling
|
|
35
|
+
- **Network Architecture**: VPC design, security groups, service mesh, load balancing
|
|
36
|
+
- **Storage & Databases**: Managed database services, backup, replication, disaster recovery
|
|
37
|
+
|
|
38
|
+
### Monitoring & Observability
|
|
39
|
+
- **Metrics Collection**: Prometheus, time-series databases, metric aggregation
|
|
40
|
+
- **Visualization**: Grafana dashboards, SLO dashboards, custom visualizations
|
|
41
|
+
- **Logging**: Centralized log aggregation, structured logging, log analysis
|
|
42
|
+
- **Distributed Tracing**: Service-to-service request tracing, latency analysis
|
|
43
|
+
- **Alerting**: Alert rules, escalation policies, on-call management
|
|
44
|
+
|
|
45
|
+
### Security & Compliance
|
|
46
|
+
- **Secrets Management**: Secure credential storage, rotation, access control
|
|
47
|
+
- **Security Scanning**: SAST, DAST, dependency scanning, container scanning
|
|
48
|
+
- **Access Control**: RBAC, identity management, audit logging
|
|
49
|
+
- **Compliance Automation**: Policy enforcement, compliance reporting
|
|
50
|
+
- **Network Security**: Firewalls, DDoS protection, encryption
|
|
51
|
+
|
|
52
|
+
### Disaster Recovery & Business Continuity
|
|
53
|
+
- **Backup Strategy**: Automated backups, retention policies, backup verification
|
|
54
|
+
- **Replication**: Database replication, geo-redundancy, failover mechanisms
|
|
55
|
+
- **Disaster Recovery Planning**: RTO/RPO definitions, DR procedures, DR testing
|
|
56
|
+
- **High Availability**: Multi-zone deployment, auto-healing, health checks
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## When to Use
|
|
61
|
+
|
|
62
|
+
**Use this skill when you need to:**
|
|
63
|
+
- Design or improve CI/CD pipelines for frequent, safe deployments
|
|
64
|
+
- Define infrastructure using Infrastructure as Code
|
|
65
|
+
- Set up monitoring, logging, and alerting systems
|
|
66
|
+
- Plan deployment strategies for zero-downtime releases
|
|
67
|
+
- Implement secrets and configuration management
|
|
68
|
+
- Design disaster recovery and business continuity plans
|
|
69
|
+
- Optimize cloud infrastructure costs
|
|
70
|
+
- Implement security scanning and compliance automation
|
|
71
|
+
- Scale applications using container orchestration
|
|
72
|
+
|
|
73
|
+
**Typical scenarios:**
|
|
74
|
+
- Pre-production deployment planning
|
|
75
|
+
- Infrastructure modernization (manual to IaC)
|
|
76
|
+
- Scaling challenges requiring orchestration
|
|
77
|
+
- Reliability improvements (monitoring, alerting, DR)
|
|
78
|
+
- Security compliance initiatives
|
|
79
|
+
- Cost optimization efforts
|
|
80
|
+
- Team scaling to support more frequent deployments
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Expected Workflow
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
Define Requirements & Constraints
|
|
88
|
+
↓
|
|
89
|
+
Design Architecture (CI/CD, Infrastructure)
|
|
90
|
+
↓
|
|
91
|
+
Implement Automation & IaC
|
|
92
|
+
↓
|
|
93
|
+
Set Up Monitoring & Alerting
|
|
94
|
+
↓
|
|
95
|
+
Test Deployment Procedures
|
|
96
|
+
↓
|
|
97
|
+
Deploy to Staging
|
|
98
|
+
↓
|
|
99
|
+
Validation & Testing
|
|
100
|
+
↓
|
|
101
|
+
Deploy to Production
|
|
102
|
+
↓
|
|
103
|
+
Monitor & Optimize
|
|
104
|
+
↓
|
|
105
|
+
Continuous Improvement
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Inputs
|
|
111
|
+
|
|
112
|
+
- **Application Architecture**: Services, dependencies, deployment requirements
|
|
113
|
+
- **Infrastructure Requirements**: Compute, storage, networking, database needs
|
|
114
|
+
- **Scale Targets**: Throughput, latency, availability requirements
|
|
115
|
+
- **Compliance Needs**: Regulatory requirements, audit requirements, retention policies
|
|
116
|
+
- **Team Size**: Number of teams, deployment frequency targets
|
|
117
|
+
- **Budget Constraints**: Cloud budget limitations, cost targets
|
|
118
|
+
- **Existing Tools**: Current infrastructure, tools in use, constraints
|
|
119
|
+
- **Risk Tolerance**: Acceptable downtime, data loss tolerance, blast radius
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Outputs
|
|
124
|
+
|
|
125
|
+
- **CI/CD Pipeline Configuration**: GitHub Actions, GitLab CI, Jenkins, CircleCI configurations
|
|
126
|
+
- **Infrastructure as Code**: Terraform modules, CloudFormation templates, Ansible playbooks
|
|
127
|
+
- **Container Orchestration**: Kubernetes manifests, Helm charts, deployment configurations
|
|
128
|
+
- **Monitoring & Observability Setup**: Prometheus/Grafana configs, alert rules, dashboard definitions
|
|
129
|
+
- **Secrets Management**: Vault configuration, secret rotation policies, access controls
|
|
130
|
+
- **Disaster Recovery Plan**: Backup strategies, RTO/RPO definitions, recovery procedures
|
|
131
|
+
- **Runbooks**: Incident response procedures, troubleshooting guides, operational procedures
|
|
132
|
+
- **Documentation**: Infrastructure documentation, deployment guides, operational guides
|
|
133
|
+
- **Cost Analysis**: Cloud cost optimization recommendations, cost allocation strategies
|
|
134
|
+
- **Security Configuration**: Network policies, firewall rules, RBAC definitions
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Related Skills
|
|
139
|
+
|
|
140
|
+
- **Architecture**: System-level design, scalability planning, integration patterns
|
|
141
|
+
- **Design Architecture**: User experience for operational dashboards and tooling
|
|
142
|
+
- **Performance**: Performance optimization, benchmarking, load testing
|
|
143
|
+
- **Documentation**: Creating operational documentation, runbooks, guides
|
|
144
|
+
- **Software Development**: Application design for operational efficiency, structured logging
|
|
145
|
+
- **Security**: Security architecture, threat modeling, security standards
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Best Practices
|
|
150
|
+
|
|
151
|
+
1. **Automate Everything**: Reduce manual processes; manual work introduces errors and delays
|
|
152
|
+
2. **Infrastructure as Code**: Version control all infrastructure; enable reproducibility
|
|
153
|
+
3. **Test Thoroughly**: Test code, infrastructure, and deployments automatically
|
|
154
|
+
4. **Fail Fast**: Detect issues early in pipelines; provide rapid feedback
|
|
155
|
+
5. **Shift Left on Security**: Scan for vulnerabilities early in development, not just production
|
|
156
|
+
6. **Monitor Comprehensively**: Monitor applications, infrastructure, and business metrics
|
|
157
|
+
7. **Plan for Failure**: Design for failure with redundancy, graceful degradation, and quick recovery
|
|
158
|
+
8. **Safe Deployments**: Use canary, blue-green, or rolling deployments with automatic rollback
|
|
159
|
+
9. **Document Procedures**: Create clear runbooks for common tasks and incident response
|
|
160
|
+
10. **Measure & Improve**: Track deployment frequency, lead time, MTTR; continuously improve
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Success Criteria
|
|
165
|
+
|
|
166
|
+
1. **Deployment Frequency**: Multiple deployments per day without manual intervention
|
|
167
|
+
2. **Lead Time**: Changes move from commit to production in minutes to hours
|
|
168
|
+
3. **Mean Time to Recovery**: Systems recover from failures automatically within minutes
|
|
169
|
+
4. **Change Failure Rate**: <15% of deployments cause issues requiring rollback
|
|
170
|
+
5. **Security**: Zero unpatched critical vulnerabilities; compliance maintained automatically
|
|
171
|
+
6. **Reliability**: 99.9%+ availability with clear SLOs and monitoring
|
|
172
|
+
7. **Scalability**: System automatically scales to handle load spikes
|
|
173
|
+
8. **Cost Efficiency**: Cloud costs optimized with appropriate resource allocation
|
|
174
|
+
9. **Visibility**: All deployments, infrastructure, and incidents visible and auditable
|
|
175
|
+
10. **Automation**: >95% of operational tasks automated without manual intervention
|
|
176
|
+
|
|
177
|
+
---
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
# DevOps Skill - Examples
|
|
2
|
+
|
|
3
|
+
## Example 1: Build Complete CI/CD Pipeline
|
|
4
|
+
|
|
5
|
+
**User Request**: "We're deploying manually and this is error-prone. Build a CI/CD pipeline that tests code and deploys automatically to staging/production."
|
|
6
|
+
|
|
7
|
+
**Expected Behavior**:
|
|
8
|
+
- Set up GitHub Actions (or GitLab CI) workflow
|
|
9
|
+
- Create pipeline stages: build, test, security scan, deploy to staging, deploy to production
|
|
10
|
+
- Implement automated testing (unit, integration, E2E tests)
|
|
11
|
+
- Add code quality checks (linting, coverage requirements)
|
|
12
|
+
- Implement security scanning (SAST, dependency scanning)
|
|
13
|
+
- Deploy to staging on every merge to main
|
|
14
|
+
- Require manual approval for production deployment
|
|
15
|
+
- Enable rollback capability
|
|
16
|
+
- Create deployment notifications
|
|
17
|
+
- Implement deployment frequency metrics
|
|
18
|
+
|
|
19
|
+
**Success Criteria**:
|
|
20
|
+
- Deployments happen multiple times per day
|
|
21
|
+
- All tests pass before deployment
|
|
22
|
+
- Security vulnerabilities detected automatically
|
|
23
|
+
- Rollback capability works reliably
|
|
24
|
+
- Deployment time <15 minutes from commit to production
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Example 2: Infrastructure as Code Migration
|
|
29
|
+
|
|
30
|
+
**User Request**: "Our infrastructure is manually configured and undocumented. Migrate to Infrastructure as Code with Terraform."
|
|
31
|
+
|
|
32
|
+
**Expected Behavior**:
|
|
33
|
+
- Audit current infrastructure (compute, storage, networking, databases)
|
|
34
|
+
- Create Terraform modules for each resource type
|
|
35
|
+
- Define variables for environment-specific configurations
|
|
36
|
+
- Implement state management with remote backend
|
|
37
|
+
- Create separate workspaces for dev, staging, production
|
|
38
|
+
- Implement version control for all infrastructure code
|
|
39
|
+
- Design for destroy and recreate ability
|
|
40
|
+
- Create documentation of module usage
|
|
41
|
+
- Plan migration path with minimal downtime
|
|
42
|
+
- Test infrastructure changes before applying
|
|
43
|
+
|
|
44
|
+
**Success Criteria**:
|
|
45
|
+
- All infrastructure defined in Terraform
|
|
46
|
+
- Infrastructure reproducible from code
|
|
47
|
+
- Infrastructure changes tracked in version control
|
|
48
|
+
- Deployment time <1 hour for new environment
|
|
49
|
+
- Zero manual infrastructure configuration
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Example 3: Kubernetes Cluster Setup & Management
|
|
54
|
+
|
|
55
|
+
**User Request**: "Migrate our containerized applications to Kubernetes. Set up cluster with auto-scaling, monitoring, and self-healing."
|
|
56
|
+
|
|
57
|
+
**Expected Behavior**:
|
|
58
|
+
- Set up Kubernetes cluster (EKS, GKE, or AKS)
|
|
59
|
+
- Configure auto-scaling based on CPU/memory
|
|
60
|
+
- Implement pod disruption budgets
|
|
61
|
+
- Set up resource requests/limits
|
|
62
|
+
- Implement health checks and probes
|
|
63
|
+
- Configure persistent storage
|
|
64
|
+
- Set up RBAC for access control
|
|
65
|
+
- Implement network policies
|
|
66
|
+
- Deploy monitoring (Prometheus, Grafana)
|
|
67
|
+
- Create deployment guides and runbooks
|
|
68
|
+
|
|
69
|
+
**Success Criteria**:
|
|
70
|
+
- All applications containerized and deployed
|
|
71
|
+
- Automatic scaling works for traffic spikes
|
|
72
|
+
- Pods automatically restart on failure
|
|
73
|
+
- System remains available during updates
|
|
74
|
+
- Resource utilization optimized
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Example 4: Monitoring & Alerting System
|
|
79
|
+
|
|
80
|
+
**User Request**: "We have no visibility into what's happening in production. Design a comprehensive monitoring and alerting system."
|
|
81
|
+
|
|
82
|
+
**Expected Behavior**:
|
|
83
|
+
- Set up Prometheus for metrics collection
|
|
84
|
+
- Create Grafana dashboards for different audiences (ops, dev, business)
|
|
85
|
+
- Implement distributed tracing across services
|
|
86
|
+
- Set up centralized logging (ELK Stack or similar)
|
|
87
|
+
- Create alert rules for critical metrics
|
|
88
|
+
- Implement escalation policies
|
|
89
|
+
- Configure on-call rotations
|
|
90
|
+
- Create runbooks for common alerts
|
|
91
|
+
- Set up SLO monitoring and dashboards
|
|
92
|
+
- Implement chaos testing for resilience
|
|
93
|
+
|
|
94
|
+
**Success Criteria**:
|
|
95
|
+
- All critical issues detected within 1 minute
|
|
96
|
+
- 90%+ alert accuracy (minimal false positives)
|
|
97
|
+
- Root cause diagnosis <5 minutes
|
|
98
|
+
- Dashboard visibility for all teams
|
|
99
|
+
- On-call team notified automatically
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Example 5: Secrets Management Implementation
|
|
104
|
+
|
|
105
|
+
**User Request**: "Database credentials and API keys are stored in code/config files. Implement secure secrets management."
|
|
106
|
+
|
|
107
|
+
**Expected Behavior**:
|
|
108
|
+
- Set up HashiCorp Vault (or cloud equivalent)
|
|
109
|
+
- Define secret types (database credentials, API keys, tokens)
|
|
110
|
+
- Implement secret rotation policies
|
|
111
|
+
- Create role-based access control for secrets
|
|
112
|
+
- Implement secret injection into applications
|
|
113
|
+
- Migrate existing secrets to vault
|
|
114
|
+
- Create audit logging for secret access
|
|
115
|
+
- Implement automatic secret rotation
|
|
116
|
+
- Design emergency access procedures
|
|
117
|
+
- Create documentation and training
|
|
118
|
+
|
|
119
|
+
**Success Criteria**:
|
|
120
|
+
- All secrets stored securely in vault
|
|
121
|
+
- Zero secrets in code or config files
|
|
122
|
+
- Secrets rotated automatically on schedule
|
|
123
|
+
- Secret access audited and tracked
|
|
124
|
+
- Emergency access procedures documented
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Example 6: Zero-Downtime Deployment Strategy
|
|
129
|
+
|
|
130
|
+
**User Request**: "Our deployments cause 5-10 minutes of downtime. Design a zero-downtime deployment strategy."
|
|
131
|
+
|
|
132
|
+
**Expected Behavior**:
|
|
133
|
+
- Implement blue-green deployment strategy
|
|
134
|
+
- Create pre-deployment health checks
|
|
135
|
+
- Implement graceful shutdown procedures
|
|
136
|
+
- Design connection draining for long-lived connections
|
|
137
|
+
- Set up load balancer traffic switching
|
|
138
|
+
- Create rollback capability if health checks fail
|
|
139
|
+
- Implement health check thresholds
|
|
140
|
+
- Test deployments with chaos engineering
|
|
141
|
+
- Create deployment runbooks
|
|
142
|
+
- Monitor for user-visible issues during deployment
|
|
143
|
+
|
|
144
|
+
**Success Criteria**:
|
|
145
|
+
- Deployments never cause service unavailability
|
|
146
|
+
- Rollback automatic if health checks fail
|
|
147
|
+
- Deployment verification automated
|
|
148
|
+
- Zero customer-visible deployment failures
|
|
149
|
+
- Deployment risk reduced to <1% change failure rate
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Example 7: Database Backup & Disaster Recovery
|
|
154
|
+
|
|
155
|
+
**User Request**: "Design a database backup and disaster recovery strategy that meets 1-hour RTO and 15-minute RPO."
|
|
156
|
+
|
|
157
|
+
**Expected Behavior**:
|
|
158
|
+
- Implement continuous replication to secondary region
|
|
159
|
+
- Create automated daily backups to separate storage
|
|
160
|
+
- Design backup retention policy (daily for 30 days, weekly for 1 year)
|
|
161
|
+
- Implement automated backup testing and validation
|
|
162
|
+
- Create procedures for point-in-time recovery
|
|
163
|
+
- Design failover procedures with clear runbooks
|
|
164
|
+
- Test DR procedures monthly
|
|
165
|
+
- Implement backup monitoring and alerts
|
|
166
|
+
- Document RPO and RTO for each database
|
|
167
|
+
- Create cross-region replication
|
|
168
|
+
|
|
169
|
+
**Success Criteria**:
|
|
170
|
+
- Backups tested and verified weekly
|
|
171
|
+
- Recovery time to secondary <30 minutes
|
|
172
|
+
- Data loss limited to 15 minutes in worst case
|
|
173
|
+
- Backup storage cost optimized
|
|
174
|
+
- DR procedures documented and practiced
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Example 8: Security Scanning in CI/CD
|
|
179
|
+
|
|
180
|
+
**User Request**: "We need to detect security vulnerabilities early in development. Integrate security scanning into CI/CD."
|
|
181
|
+
|
|
182
|
+
**Expected Behavior**:
|
|
183
|
+
- Implement SAST (static application security testing)
|
|
184
|
+
- Add dependency vulnerability scanning
|
|
185
|
+
- Implement container image scanning
|
|
186
|
+
- Add secrets detection (prevent commit of secrets)
|
|
187
|
+
- Implement DAST (dynamic security testing) for APIs
|
|
188
|
+
- Create security policy enforcement
|
|
189
|
+
- Implement policy-as-code for infrastructure
|
|
190
|
+
- Create override procedures for exceptions
|
|
191
|
+
- Generate security reports and dashboards
|
|
192
|
+
- Train developers on security issues
|
|
193
|
+
|
|
194
|
+
**Success Criteria**:
|
|
195
|
+
- 0 critical vulnerabilities in production
|
|
196
|
+
- Security issues detected before production
|
|
197
|
+
- False positive rate <10%
|
|
198
|
+
- Developer awareness of security improved
|
|
199
|
+
- Compliance requirements met automatically
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Example 9: Cost Optimization & FinOps
|
|
204
|
+
|
|
205
|
+
**User Request**: "Our cloud bill is 40% higher than expected. Identify cost optimization opportunities."
|
|
206
|
+
|
|
207
|
+
**Expected Behavior**:
|
|
208
|
+
- Audit cloud spending by service and team
|
|
209
|
+
- Identify unused resources and eliminate them
|
|
210
|
+
- Right-size instances based on actual usage
|
|
211
|
+
- Implement reserved instances for predictable workloads
|
|
212
|
+
- Design spot instance strategy for batch jobs
|
|
213
|
+
- Implement auto-scaling to eliminate over-provisioning
|
|
214
|
+
- Create cost allocation tags
|
|
215
|
+
- Set up budget alerts
|
|
216
|
+
- Design cost monitoring dashboards
|
|
217
|
+
- Create showback/chargeback models
|
|
218
|
+
|
|
219
|
+
**Success Criteria**:
|
|
220
|
+
- Cloud costs reduced by 30-40%
|
|
221
|
+
- Cost per transaction optimized
|
|
222
|
+
- Resource utilization improved to >70%
|
|
223
|
+
- Budget alerts prevent surprises
|
|
224
|
+
- Cost visibility improved across teams
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Example 10: Multi-Environment Deployment Strategy
|
|
229
|
+
|
|
230
|
+
**User Request**: "We have dev, staging, and production environments but they're inconsistent. Design a strategy for environment parity."
|
|
231
|
+
|
|
232
|
+
**Expected Behavior**:
|
|
233
|
+
- Use Infrastructure as Code for all environments
|
|
234
|
+
- Create environment templates with variables
|
|
235
|
+
- Implement promotion pipeline (dev → staging → production)
|
|
236
|
+
- Automate environment provisioning
|
|
237
|
+
- Implement consistency checking between environments
|
|
238
|
+
- Design for rapid environment recreation
|
|
239
|
+
- Create environment lifecycle management
|
|
240
|
+
- Implement secrets management per environment
|
|
241
|
+
- Design disaster recovery for each environment
|
|
242
|
+
- Create environment documentation
|
|
243
|
+
|
|
244
|
+
**Success Criteria**:
|
|
245
|
+
- All environments use identical infrastructure code
|
|
246
|
+
- New environments provisioned in <1 hour
|
|
247
|
+
- Issues found in staging before production
|
|
248
|
+
- No manual environment configuration
|
|
249
|
+
- Environment consistency verified automatically
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Example 11: Automated Testing Strategy
|
|
254
|
+
|
|
255
|
+
**User Request**: "Our tests are flaky and don't catch bugs. Design a comprehensive automated testing strategy."
|
|
256
|
+
|
|
257
|
+
**Expected Behavior**:
|
|
258
|
+
- Implement unit tests with >70% coverage
|
|
259
|
+
- Create integration tests for key flows
|
|
260
|
+
- Design end-to-end tests for user journeys
|
|
261
|
+
- Implement contract tests for APIs
|
|
262
|
+
- Add performance tests and benchmarks
|
|
263
|
+
- Design test data management strategy
|
|
264
|
+
- Implement flake detection and quarantine
|
|
265
|
+
- Create test retry strategies
|
|
266
|
+
- Design test execution parallelization
|
|
267
|
+
- Create test coverage dashboards
|
|
268
|
+
|
|
269
|
+
**Success Criteria**:
|
|
270
|
+
- Test suite runs in <10 minutes
|
|
271
|
+
- >70% code coverage achieved
|
|
272
|
+
- <5% test flakiness
|
|
273
|
+
- 95%+ of bugs caught in testing
|
|
274
|
+
- Deployment confidence increased
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Example 12: Log Aggregation & Analysis
|
|
279
|
+
|
|
280
|
+
**User Request**: "Debugging production issues is difficult because logs are spread across servers. Implement centralized logging."
|
|
281
|
+
|
|
282
|
+
**Expected Behavior**:
|
|
283
|
+
- Set up ELK Stack (Elasticsearch, Logstash, Kibana) or equivalent
|
|
284
|
+
- Implement structured logging in all services
|
|
285
|
+
- Design log retention policies
|
|
286
|
+
- Create dashboards for common searches
|
|
287
|
+
- Implement log-based alerting
|
|
288
|
+
- Design log sampling for high-volume services
|
|
289
|
+
- Create log analysis tools for debugging
|
|
290
|
+
- Implement performance monitoring via logs
|
|
291
|
+
- Create audit logging for compliance
|
|
292
|
+
- Design security logging
|
|
293
|
+
|
|
294
|
+
**Success Criteria**:
|
|
295
|
+
- All logs centralized and searchable
|
|
296
|
+
- Issue diagnosis <5 minutes
|
|
297
|
+
- Log storage costs optimized through sampling
|
|
298
|
+
- Compliance logging automated
|
|
299
|
+
- Debugging capability dramatically improved
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## Example 13: Container Image Management
|
|
304
|
+
|
|
305
|
+
**User Request**: "Build a system for managing container images across dev, staging, and production."
|
|
306
|
+
|
|
307
|
+
**Expected Behavior**:
|
|
308
|
+
- Set up private container registry (ECR, GCR, Harbor)
|
|
309
|
+
- Implement automated image building from CI/CD
|
|
310
|
+
- Design image tagging strategy
|
|
311
|
+
- Implement image scanning for vulnerabilities
|
|
312
|
+
- Design image promotion pipeline
|
|
313
|
+
- Implement image cleanup (remove old images)
|
|
314
|
+
- Design multi-architecture image support
|
|
315
|
+
- Create image documentation
|
|
316
|
+
- Implement image signing and verification
|
|
317
|
+
- Design disaster recovery for image registry
|
|
318
|
+
|
|
319
|
+
**Success Criteria**:
|
|
320
|
+
- All images scanned for vulnerabilities
|
|
321
|
+
- Clear image tagging enables traceability
|
|
322
|
+
- Old images cleaned up automatically
|
|
323
|
+
- Image storage costs optimized
|
|
324
|
+
- Image promotion to production automated
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## Example 14: Network Architecture & Security
|
|
329
|
+
|
|
330
|
+
**User Request**: "Design network architecture that segments services and prevents unauthorized access."
|
|
331
|
+
|
|
332
|
+
**Expected Behavior**:
|
|
333
|
+
- Design VPC with public/private subnets
|
|
334
|
+
- Implement network policies for service-to-service communication
|
|
335
|
+
- Design firewall rules and security groups
|
|
336
|
+
- Implement DDoS protection
|
|
337
|
+
- Design VPN access for engineers
|
|
338
|
+
- Implement network segmentation by environment
|
|
339
|
+
- Create network monitoring and logging
|
|
340
|
+
- Design network resilience (multi-AZ)
|
|
341
|
+
- Implement SSL/TLS for all communication
|
|
342
|
+
- Create network troubleshooting guides
|
|
343
|
+
|
|
344
|
+
**Success Criteria**:
|
|
345
|
+
- Services cannot communicate unless explicitly allowed
|
|
346
|
+
- All external traffic encrypted
|
|
347
|
+
- DDoS attacks mitigated automatically
|
|
348
|
+
- Network outages detected within 1 minute
|
|
349
|
+
- Security audit passes
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Example 15: GitOps & Declarative Infrastructure
|
|
354
|
+
|
|
355
|
+
**User Request**: "We want Git to be the single source of truth for infrastructure and application state."
|
|
356
|
+
|
|
357
|
+
**Expected Behavior**:
|
|
358
|
+
- Set up ArgoCD (or Flux) for GitOps
|
|
359
|
+
- Define desired state in Git for all resources
|
|
360
|
+
- Implement automatic reconciliation of actual vs. declared state
|
|
361
|
+
- Design Git workflow for infrastructure changes
|
|
362
|
+
- Implement PR-based change management
|
|
363
|
+
- Create rollback capability via Git revert
|
|
364
|
+
- Implement secret management in Git
|
|
365
|
+
- Design audit trail for all changes
|
|
366
|
+
- Implement policy enforcement
|
|
367
|
+
- Create GitOps debugging tools
|
|
368
|
+
|
|
369
|
+
**Success Criteria**:
|
|
370
|
+
- All infrastructure changes via Git PRs
|
|
371
|
+
- Automatic rollback if deployment fails
|
|
372
|
+
- Audit trail of all changes in Git
|
|
373
|
+
- Developer and ops workflows unified
|
|
374
|
+
- Deployment reproducibility guaranteed
|
|
375
|
+
|
|
376
|
+
---
|