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,198 @@
|
|
|
1
|
+
# Architecture Skill
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
The Architecture skill provides the ability to design, analyze, and evolve complex systems with clear separation of concerns, scalability, and maintainability. It encompasses system-level design patterns, component relationships, data flows, integration strategies, and architectural decision-making that balance technical requirements with business constraints. This skill is essential for building systems that can grow, adapt, and be understood by teams at any scale.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Goals
|
|
10
|
+
|
|
11
|
+
- **Design Scalable Systems**: Create architectures that grow efficiently as requirements evolve and load increases
|
|
12
|
+
- **Minimize Coupling**: Reduce dependencies between components to enable independent development and deployment
|
|
13
|
+
- **Enable Incremental Evolution**: Design systems that can be modified, upgraded, and modernized without major rewrites
|
|
14
|
+
- **Manage Complexity**: Decompose complex problems into manageable components with clear responsibilities
|
|
15
|
+
- **Document Decisions**: Create living architectural documentation that explains trade-offs and informs future decisions
|
|
16
|
+
- **Validate Assumptions**: Test critical architectural decisions early to reduce risk and identify bottlenecks
|
|
17
|
+
- **Enable Team Growth**: Create systems that new team members can understand within reasonable timeframes
|
|
18
|
+
- **Build Resilience**: Design systems that degrade gracefully when components fail
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Capabilities
|
|
23
|
+
|
|
24
|
+
### System Design
|
|
25
|
+
- **System Decomposition**: Break problems into discrete, manageable components
|
|
26
|
+
- **Layered Architecture**: Design horizontal layers with clear contracts
|
|
27
|
+
- **Domain-Driven Design**: Apply DDD principles for complex domain modeling
|
|
28
|
+
- **Evolutionary Architecture**: Design for incremental modification and refactoring
|
|
29
|
+
|
|
30
|
+
### Data Architecture
|
|
31
|
+
- **Data Modeling**: Design schemas and data structures aligned with requirements
|
|
32
|
+
- **Scalability**: Plan for database scaling through replication, sharding, partitioning
|
|
33
|
+
- **Consistency**: Design consistency models for distributed data systems
|
|
34
|
+
- **Storage Strategy**: Choose appropriate storage technologies and patterns
|
|
35
|
+
|
|
36
|
+
### Integration Architecture
|
|
37
|
+
- **API Design**: Design APIs with clear contracts for loose coupling
|
|
38
|
+
- **Integration Patterns**: Select appropriate patterns (APIs, queues, webhooks, events)
|
|
39
|
+
- **Service Communication**: Plan synchronous and asynchronous communication
|
|
40
|
+
- **Contract Management**: Manage API versioning and evolution
|
|
41
|
+
|
|
42
|
+
### Async & Event-Driven Systems
|
|
43
|
+
- **Asynchronous Patterns**: Design async systems for resilience and scalability
|
|
44
|
+
- **Event Sourcing**: Build systems with audit trails and temporal queries
|
|
45
|
+
- **Message Brokers**: Design reliable message-based communication
|
|
46
|
+
- **Consistency Models**: Handle eventual consistency and conflict resolution
|
|
47
|
+
|
|
48
|
+
### Resilience & Reliability
|
|
49
|
+
- **Fault Tolerance**: Design systems that handle failures gracefully
|
|
50
|
+
- **Failure Prevention**: Use circuit breakers, bulkheads, and isolation patterns
|
|
51
|
+
- **Recovery**: Plan disaster recovery and data restoration
|
|
52
|
+
- **Health Monitoring**: Design health checks and alerting
|
|
53
|
+
|
|
54
|
+
### Performance & Scalability
|
|
55
|
+
- **Bottleneck Analysis**: Identify and eliminate performance bottlenecks
|
|
56
|
+
- **Caching Strategy**: Design multi-level caching for performance
|
|
57
|
+
- **Load Balancing**: Plan for distribution of work across resources
|
|
58
|
+
- **Performance Testing**: Design benchmarking and profiling strategies
|
|
59
|
+
|
|
60
|
+
### Security & Compliance
|
|
61
|
+
- **Security Architecture**: Design systems with security as a first-class concern
|
|
62
|
+
- **Access Control**: Plan authentication, authorization, and multi-tenancy
|
|
63
|
+
- **Encryption**: Design encryption strategies at-rest and in-transit
|
|
64
|
+
- **Secrets Management**: Manage sensitive configuration securely
|
|
65
|
+
|
|
66
|
+
### Observability
|
|
67
|
+
- **Distributed Tracing**: Design tracing across service boundaries
|
|
68
|
+
- **Metrics**: Create hierarchical metrics for understanding system behavior
|
|
69
|
+
- **Logging**: Design structured logging for rapid diagnosis
|
|
70
|
+
- **Alerting**: Create alert strategies that reduce false positives
|
|
71
|
+
|
|
72
|
+
### Documentation & Decision Making
|
|
73
|
+
- **Architecture Decision Records**: Document decisions with rationale and trade-offs
|
|
74
|
+
- **Diagrams**: Create C4 models, component diagrams, data flows
|
|
75
|
+
- **Technology Selection**: Evaluate and document technology choices
|
|
76
|
+
- **Trade-off Analysis**: Explicitly document alternatives and trade-offs
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## When to Use
|
|
81
|
+
|
|
82
|
+
**Use this skill when you need to:**
|
|
83
|
+
- Design a new system or major subsystem from scratch
|
|
84
|
+
- Decompose a monolithic application into smaller services
|
|
85
|
+
- Evaluate technology choices for a new project
|
|
86
|
+
- Optimize a system for scalability, performance, or resilience
|
|
87
|
+
- Design a migration or modernization strategy
|
|
88
|
+
- Establish patterns for how teams will build and integrate components
|
|
89
|
+
- Document architectural decisions and trade-offs
|
|
90
|
+
- Analyze technical risks in a proposed design
|
|
91
|
+
- Plan for system evolution and growth
|
|
92
|
+
|
|
93
|
+
**Typical scenarios:**
|
|
94
|
+
- Pre-development design phase for significant features or systems
|
|
95
|
+
- Architecture review before starting a major project
|
|
96
|
+
- System scaling analysis when hitting performance limits
|
|
97
|
+
- Legacy system modernization planning
|
|
98
|
+
- Team scaling or reorganization based on system architecture
|
|
99
|
+
- Technology evaluation for new requirements
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Expected Workflow
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Requirements & Constraints
|
|
107
|
+
↓
|
|
108
|
+
Understand Current State
|
|
109
|
+
(if applicable)
|
|
110
|
+
↓
|
|
111
|
+
Identify Design Options
|
|
112
|
+
↓
|
|
113
|
+
Create Architecture Diagrams
|
|
114
|
+
↓
|
|
115
|
+
Analyze Trade-offs
|
|
116
|
+
↓
|
|
117
|
+
Select Approach
|
|
118
|
+
↓
|
|
119
|
+
Design Components & Interfaces
|
|
120
|
+
↓
|
|
121
|
+
Plan Data Architecture
|
|
122
|
+
↓
|
|
123
|
+
Design Integration Points
|
|
124
|
+
↓
|
|
125
|
+
Create Implementation Roadmap
|
|
126
|
+
↓
|
|
127
|
+
Document Decisions (ADRs)
|
|
128
|
+
↓
|
|
129
|
+
Validation & Stakeholder Review
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Inputs
|
|
135
|
+
|
|
136
|
+
- **Requirements**: Functional and non-functional requirements (latency, throughput, consistency, scale targets)
|
|
137
|
+
- **Constraints**: Budget, team size, existing technology investments, compliance needs
|
|
138
|
+
- **Current State**: Analysis of existing systems, if migrating or integrating
|
|
139
|
+
- **Success Criteria**: Metrics that define a successful architecture
|
|
140
|
+
- **Timeline**: Expected timeline for implementation and growth
|
|
141
|
+
- **Team Structure**: How teams are organized and how systems will be owned
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Outputs
|
|
146
|
+
|
|
147
|
+
- **Architecture Diagrams**: System context, component, deployment, data flow diagrams
|
|
148
|
+
- **Component Specifications**: Component boundaries, interfaces, responsibilities
|
|
149
|
+
- **Data Architecture**: Schema designs, consistency strategies, scaling plans
|
|
150
|
+
- **Integration Design**: API specifications, communication patterns
|
|
151
|
+
- **Technology Selection**: Evaluated options with rationale
|
|
152
|
+
- **Architecture Decision Records**: Documented decisions and trade-offs
|
|
153
|
+
- **Implementation Roadmap**: Phased approach with dependencies and milestones
|
|
154
|
+
- **Risk Assessment**: Identified risks and mitigation strategies
|
|
155
|
+
- **Team Organization**: How teams align with architectural boundaries
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Related Skills
|
|
160
|
+
|
|
161
|
+
- **Design Architecture**: UI/UX design, component design, interaction patterns
|
|
162
|
+
- **DevOps**: Infrastructure architecture, deployment automation, production operations
|
|
163
|
+
- **Performance**: Performance optimization, profiling, benchmarking
|
|
164
|
+
- **Documentation**: Technical writing, API documentation, knowledge bases
|
|
165
|
+
- **Security**: Security patterns, threat modeling, access control
|
|
166
|
+
- **Software Development**: Code organization, testing strategies, development workflows
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Best Practices
|
|
171
|
+
|
|
172
|
+
1. **Start with Requirements, Not Technology**: Understand what you're building before deciding how to build it
|
|
173
|
+
2. **Document Trade-offs**: Every decision involves trade-offs; make them explicit
|
|
174
|
+
3. **Validate Assumptions Early**: Build proof-of-concepts for critical architectural decisions
|
|
175
|
+
4. **Design for Change**: Assume requirements will evolve; design for incremental modification
|
|
176
|
+
5. **Minimize Coupling**: Reduce dependencies between components through clear interfaces
|
|
177
|
+
6. **Consistency Over Perfection**: Use consistent patterns even if not optimal for every case
|
|
178
|
+
7. **Build in Observability**: Design systems that can be understood and debugged in production
|
|
179
|
+
8. **Plan for Evolution**: Design systems that can be upgraded, refactored, and modernized
|
|
180
|
+
9. **Review Continuously**: Regularly review architecture against current and anticipated requirements
|
|
181
|
+
10. **Involve Stakeholders**: Get alignment on architecture with all affected parties
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Success Criteria
|
|
186
|
+
|
|
187
|
+
1. **Meets Requirements**: Architecture addresses all functional and non-functional requirements
|
|
188
|
+
2. **Stakeholder Alignment**: Architecture decisions are understood and agreed by all stakeholders
|
|
189
|
+
3. **Clear Decomposition**: Components have clear boundaries and responsibilities
|
|
190
|
+
4. **Flexible**: System can be modified incrementally without major rewrites
|
|
191
|
+
5. **Scalable**: Architecture can accommodate growth in load, data, and complexity
|
|
192
|
+
6. **Maintainable**: New team members can understand the system within reasonable timeframes
|
|
193
|
+
7. **Resilient**: System handles failures gracefully without cascading impacts
|
|
194
|
+
8. **Documented**: Architecture is thoroughly documented with clear rationale
|
|
195
|
+
9. **Consistent**: Patterns are applied consistently throughout the system
|
|
196
|
+
10. **Testable**: Critical architectural decisions can be validated before full implementation
|
|
197
|
+
|
|
198
|
+
---
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# Architecture Skill - Examples
|
|
2
|
+
|
|
3
|
+
## Example 1: Monolith to Microservices Migration
|
|
4
|
+
|
|
5
|
+
**User Request**: "Our monolithic application has grown to 500k lines of code. Multiple teams are blocked waiting for deployment windows. We need a plan to decompose this into microservices without disrupting existing functionality."
|
|
6
|
+
|
|
7
|
+
**Expected Behavior**:
|
|
8
|
+
- Identify service boundaries using domain-driven design principles
|
|
9
|
+
- Map current monolithic components to proposed services
|
|
10
|
+
- Design strangler pattern approach to extract services incrementally
|
|
11
|
+
- Define service contracts and communication patterns
|
|
12
|
+
- Create phased migration roadmap (6-12 months)
|
|
13
|
+
- Document team structure aligned with service ownership
|
|
14
|
+
- Identify shared infrastructure needs (service mesh, API gateway)
|
|
15
|
+
|
|
16
|
+
**Success Criteria**:
|
|
17
|
+
- Teams can deploy independently within 3 months
|
|
18
|
+
- No breaking changes to external APIs during migration
|
|
19
|
+
- Clear service boundaries documented and agreed by stakeholders
|
|
20
|
+
- Rollback strategies defined for each migration phase
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Example 2: Data Architecture for Scaling
|
|
25
|
+
|
|
26
|
+
**User Request**: "Our relational database is handling 100M queries/day and we're hitting CPU limits. Design a scalability strategy that maintains ACID properties where needed and handles 10x growth."
|
|
27
|
+
|
|
28
|
+
**Expected Behavior**:
|
|
29
|
+
- Analyze query patterns to identify hot tables and partitioning keys
|
|
30
|
+
- Design read replica strategy for read-heavy workloads
|
|
31
|
+
- Create sharding strategy with clear partition keys
|
|
32
|
+
- Identify queries that need cross-shard transactions
|
|
33
|
+
- Design caching layer (distributed cache) for frequently accessed data
|
|
34
|
+
- Plan for backup and disaster recovery at scale
|
|
35
|
+
- Create migration plan with minimal downtime
|
|
36
|
+
|
|
37
|
+
**Success Criteria**:
|
|
38
|
+
- Database can handle 1B queries/day with <50ms p99 latency
|
|
39
|
+
- Data consistency maintained across partitions
|
|
40
|
+
- Backup/recovery tested and validated
|
|
41
|
+
- Team trained on new architecture patterns
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Example 3: API Contract Management
|
|
46
|
+
|
|
47
|
+
**User Request**: "We have 15 internal services and 30+ external API consumers. How do we design APIs that allow independent evolution without breaking integrations?"
|
|
48
|
+
|
|
49
|
+
**Expected Behavior**:
|
|
50
|
+
- Define API versioning strategy (URL vs. header-based)
|
|
51
|
+
- Create contract-first design process with OpenAPI/GraphQL schemas
|
|
52
|
+
- Design deprecation policy with 6-month notice period
|
|
53
|
+
- Establish API governance board for breaking changes
|
|
54
|
+
- Design API gateway for request/response transformation
|
|
55
|
+
- Create SDK generation from schemas for consistency
|
|
56
|
+
- Document backward compatibility guarantees
|
|
57
|
+
|
|
58
|
+
**Success Criteria**:
|
|
59
|
+
- No unplanned API outages due to incompatibility
|
|
60
|
+
- New API versions can coexist with old versions
|
|
61
|
+
- Consumers have 6 months warning before deprecation
|
|
62
|
+
- SDK generation automated, reducing client errors
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Example 4: Resilience & Fault Tolerance Design
|
|
67
|
+
|
|
68
|
+
**User Request**: "Our system depends on 5 external APIs. When one fails, the entire system degrades. Design a resilient architecture that gracefully handles partial failures."
|
|
69
|
+
|
|
70
|
+
**Expected Behavior**:
|
|
71
|
+
- Map dependencies and identify single points of failure
|
|
72
|
+
- Design circuit breaker patterns for each external API
|
|
73
|
+
- Create bulkhead pattern to isolate failure domains
|
|
74
|
+
- Plan timeout strategies and retry logic
|
|
75
|
+
- Design fallback mechanisms (cache, default values, degraded mode)
|
|
76
|
+
- Implement health checks with clear failure thresholds
|
|
77
|
+
- Create chaos engineering strategy to test resilience
|
|
78
|
+
|
|
79
|
+
**Success Criteria**:
|
|
80
|
+
- System remains operational with 1-2 external API failures
|
|
81
|
+
- User-facing impact <5% when non-critical dependency fails
|
|
82
|
+
- Automatic failover to fallback strategies within seconds
|
|
83
|
+
- Monthly chaos tests validate resilience
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Example 5: Event-Driven Architecture Design
|
|
88
|
+
|
|
89
|
+
**User Request**: "We need to build a real-time notification system that processes millions of events per day with guaranteed ordering and exactly-once delivery across multiple services."
|
|
90
|
+
|
|
91
|
+
**Expected Behavior**:
|
|
92
|
+
- Design event schema with versioning strategy
|
|
93
|
+
- Select message broker technology (Kafka, RabbitMQ, etc.)
|
|
94
|
+
- Design partition key strategy to maintain ordering
|
|
95
|
+
- Plan for exactly-once processing semantics
|
|
96
|
+
- Design dead-letter queue handling for failed events
|
|
97
|
+
- Create event replay strategy for debugging
|
|
98
|
+
- Design consumer groups for independent processing
|
|
99
|
+
|
|
100
|
+
**Success Criteria**:
|
|
101
|
+
- Events processed in order within same partition
|
|
102
|
+
- No duplicate processing detected in tests
|
|
103
|
+
- Failed events recoverable and retryable
|
|
104
|
+
- System can handle 10x traffic spike without data loss
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Example 6: Security Architecture for Multi-tenant System
|
|
109
|
+
|
|
110
|
+
**User Request**: "Design a secure multi-tenant architecture where one customer's data cannot leak to another, and sensitive operations require additional authorization."
|
|
111
|
+
|
|
112
|
+
**Expected Behavior**:
|
|
113
|
+
- Design tenant isolation strategy (database, schema, row-level)
|
|
114
|
+
- Implement row-level security policies
|
|
115
|
+
- Design authentication and authorization patterns
|
|
116
|
+
- Create API design with tenant context enforcement
|
|
117
|
+
- Plan for sensitive operations requiring additional factors
|
|
118
|
+
- Design encryption strategy (at-rest and in-transit)
|
|
119
|
+
- Create audit logging for compliance
|
|
120
|
+
|
|
121
|
+
**Success Criteria**:
|
|
122
|
+
- Automated tests verify no data leakage between tenants
|
|
123
|
+
- All sensitive operations require additional authorization
|
|
124
|
+
- Encryption keys rotated without downtime
|
|
125
|
+
- Audit logs enable regulatory compliance verification
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Example 7: Observability Architecture Design
|
|
130
|
+
|
|
131
|
+
**User Request**: "We need to understand what's happening in production across 20+ services. Design an observability system that enables rapid incident diagnosis."
|
|
132
|
+
|
|
133
|
+
**Expected Behavior**:
|
|
134
|
+
- Design distributed tracing across all services
|
|
135
|
+
- Create metrics hierarchy with business and technical metrics
|
|
136
|
+
- Design structured logging with context propagation
|
|
137
|
+
- Plan alert strategy with clear escalation paths
|
|
138
|
+
- Create dashboards for different audiences (ops, business, eng)
|
|
139
|
+
- Design sampling strategy for high-volume systems
|
|
140
|
+
- Plan for cost-effective storage of telemetry
|
|
141
|
+
|
|
142
|
+
**Success Criteria**:
|
|
143
|
+
- Any production incident diagnosed within 5 minutes
|
|
144
|
+
- Root cause identification automated for >80% of incidents
|
|
145
|
+
- Dashboards show system health in real-time
|
|
146
|
+
- Cost per event <$0.001 for telemetry storage
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Example 8: Technology Selection for New Project
|
|
151
|
+
|
|
152
|
+
**User Request**: "We're building a new product line with different requirements than our existing monolith. Recommend technology stack and justify selections."
|
|
153
|
+
|
|
154
|
+
**Expected Behavior**:
|
|
155
|
+
- Evaluate requirements (latency, throughput, consistency, scale)
|
|
156
|
+
- Assess framework options for each layer
|
|
157
|
+
- Compare language choices with team expertise
|
|
158
|
+
- Evaluate database options with trade-off analysis
|
|
159
|
+
- Plan for operational burden and monitoring needs
|
|
160
|
+
- Create migration strategy if integrating with existing systems
|
|
161
|
+
- Document technology decisions and rationale
|
|
162
|
+
|
|
163
|
+
**Success Criteria**:
|
|
164
|
+
- Technology selection enables meeting all requirements
|
|
165
|
+
- Team trained and confident in selected technologies
|
|
166
|
+
- Prototype validates key architectural assumptions
|
|
167
|
+
- Decision document updated as requirements evolve
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Example 9: Configuration & Secrets Management
|
|
172
|
+
|
|
173
|
+
**User Request**: "We're managing 10 different deployment environments with different configurations. Design a configuration system that's secure, flexible, and doesn't require redeployment."
|
|
174
|
+
|
|
175
|
+
**Expected Behavior**:
|
|
176
|
+
- Design configuration hierarchy (global, environment, service)
|
|
177
|
+
- Implement secrets management (rotation, access control)
|
|
178
|
+
- Create feature flag system for safe feature rollout
|
|
179
|
+
- Design A/B testing framework using feature flags
|
|
180
|
+
- Plan for configuration changes without redeployment
|
|
181
|
+
- Create rollback strategy for configuration errors
|
|
182
|
+
- Audit all configuration changes
|
|
183
|
+
|
|
184
|
+
**Success Criteria**:
|
|
185
|
+
- Configuration changes take effect within 30 seconds
|
|
186
|
+
- No secrets exposed in logs or error messages
|
|
187
|
+
- Feature flags enable safe canary deployments
|
|
188
|
+
- Configuration rollback automatic if health checks fail
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Example 10: Dependency Management Strategy
|
|
193
|
+
|
|
194
|
+
**User Request**: "We have hundreds of transitive dependencies and spend 2 weeks per quarter on security updates. Design a dependency management strategy that reduces this burden."
|
|
195
|
+
|
|
196
|
+
**Expected Behavior**:
|
|
197
|
+
- Audit all direct and transitive dependencies
|
|
198
|
+
- Create policies for dependency selection and updates
|
|
199
|
+
- Implement automated vulnerability scanning
|
|
200
|
+
- Design monorepo structure for consistent versions
|
|
201
|
+
- Plan for major version upgrades with impact analysis
|
|
202
|
+
- Create testing strategy for dependency changes
|
|
203
|
+
- Implement supply chain security measures
|
|
204
|
+
|
|
205
|
+
**Success Criteria**:
|
|
206
|
+
- Security updates applied automatically for patch versions
|
|
207
|
+
- Monthly vulnerability scans detect 99% of known issues
|
|
208
|
+
- Dependency upgrade process takes <2 hours per major version
|
|
209
|
+
- No supply chain attacks detected
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Example 11: Domain-Driven Design for Large System
|
|
214
|
+
|
|
215
|
+
**User Request**: "Our system spans multiple business domains and teams are stepping on each other. Use DDD to reorganize around bounded contexts."
|
|
216
|
+
|
|
217
|
+
**Expected Behavior**:
|
|
218
|
+
- Facilitate domain analysis workshops with subject matter experts
|
|
219
|
+
- Identify bounded contexts and ubiquitous language
|
|
220
|
+
- Create context maps showing service relationships
|
|
221
|
+
- Design aggregate boundaries within each context
|
|
222
|
+
- Plan for anti-corruption layers between contexts
|
|
223
|
+
- Design data consistency strategy across contexts
|
|
224
|
+
- Align team structure with bounded contexts
|
|
225
|
+
|
|
226
|
+
**Success Criteria**:
|
|
227
|
+
- Teams have clear ownership of bounded contexts
|
|
228
|
+
- Service dependencies map to bounded contexts
|
|
229
|
+
- Teams can deploy independently without coordination
|
|
230
|
+
- Ubiquitous language documented and used consistently
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## Example 12: Caching Strategy Design
|
|
235
|
+
|
|
236
|
+
**User Request**: "Our database is handling user profile requests but latency is 200ms. Design a caching strategy that gets latency to <10ms while keeping data fresh."
|
|
237
|
+
|
|
238
|
+
**Expected Behavior**:
|
|
239
|
+
- Analyze read/write patterns and cache hit targets
|
|
240
|
+
- Design multi-level caching (in-process, distributed)
|
|
241
|
+
- Choose cache eviction policy (LRU, LFU, TTL)
|
|
242
|
+
- Plan invalidation strategy (time-based, event-based)
|
|
243
|
+
- Design cache warming strategy
|
|
244
|
+
- Plan for cache stampede prevention
|
|
245
|
+
- Create monitoring for cache effectiveness
|
|
246
|
+
|
|
247
|
+
**Success Criteria**:
|
|
248
|
+
- Cache hit rate >85% for profile queries
|
|
249
|
+
- Latency reduced to <10ms for cached queries
|
|
250
|
+
- Stale data window <5 minutes
|
|
251
|
+
- Cache miss latency acceptable
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Example 13: Async Processing Architecture
|
|
256
|
+
|
|
257
|
+
**User Request**: "We have expensive background jobs that block user requests. Design an async processing system with guaranteed execution and retry logic."
|
|
258
|
+
|
|
259
|
+
**Expected Behavior**:
|
|
260
|
+
- Design job queue system with priority levels
|
|
261
|
+
- Plan retry strategy with exponential backoff
|
|
262
|
+
- Design dead-letter queue for failed jobs
|
|
263
|
+
- Create job monitoring and alerting
|
|
264
|
+
- Plan for job deduplication
|
|
265
|
+
- Design graceful shutdown of workers
|
|
266
|
+
- Create visibility into job status
|
|
267
|
+
|
|
268
|
+
**Success Criteria**:
|
|
269
|
+
- User requests return immediately
|
|
270
|
+
- Jobs complete within SLA 99% of time
|
|
271
|
+
- Failed jobs automatically retried without data loss
|
|
272
|
+
- Job processing scales with load automatically
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Example 14: API Gateway & Service Mesh Design
|
|
277
|
+
|
|
278
|
+
**User Request**: "We're moving to microservices and need consistent API routing, rate limiting, and service-to-service security. Design the control plane."
|
|
279
|
+
|
|
280
|
+
**Expected Behavior**:
|
|
281
|
+
- Design API gateway for client request routing
|
|
282
|
+
- Plan rate limiting strategy (per-user, per-IP, global)
|
|
283
|
+
- Design service mesh for inter-service communication
|
|
284
|
+
- Create mTLS strategy for service-to-service auth
|
|
285
|
+
- Plan for observability in service mesh
|
|
286
|
+
- Design traffic routing policies (canary, blue-green)
|
|
287
|
+
- Create failure injection for chaos engineering
|
|
288
|
+
|
|
289
|
+
**Success Criteria**:
|
|
290
|
+
- Clients see single entry point for APIs
|
|
291
|
+
- Rate limiting prevents abuse without impacting legitimate traffic
|
|
292
|
+
- Service-to-service communication encrypted by default
|
|
293
|
+
- Traffic policies enable safe deployments
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## Example 15: Legacy System Modernization Roadmap
|
|
298
|
+
|
|
299
|
+
**User Request**: "We have a 10-year-old system with significant technical debt. Create a modernization roadmap that maintains revenue while improving code quality."
|
|
300
|
+
|
|
301
|
+
**Expected Behavior**:
|
|
302
|
+
- Audit current system architecture and dependencies
|
|
303
|
+
- Identify strangler pattern migration candidates
|
|
304
|
+
- Prioritize modernization by impact and effort
|
|
305
|
+
- Design anti-corruption layers for gradual migration
|
|
306
|
+
- Plan feature flag strategy for gradual rollout
|
|
307
|
+
- Create team capacity planning for refactoring
|
|
308
|
+
- Design rollback strategies for each phase
|
|
309
|
+
|
|
310
|
+
**Success Criteria**:
|
|
311
|
+
- Legacy system continues generating revenue during migration
|
|
312
|
+
- Code quality metrics improve incrementally
|
|
313
|
+
- Team velocity increases as debt is reduced
|
|
314
|
+
- No major outages during modernization
|
|
315
|
+
|
|
316
|
+
---
|