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,65 @@
|
|
|
1
|
+
# Engineering Principles
|
|
2
|
+
|
|
3
|
+
Use this reference for broad software engineering judgment that applies across
|
|
4
|
+
roles, skills, and projects.
|
|
5
|
+
|
|
6
|
+
## Principles
|
|
7
|
+
|
|
8
|
+
- Make the system easier to understand after the change.
|
|
9
|
+
- Prefer the smallest change that solves the real problem.
|
|
10
|
+
- Keep behavior and refactoring separate when risk is high.
|
|
11
|
+
- Use existing patterns unless there is a clear reason to change them.
|
|
12
|
+
- Design for failure at external boundaries.
|
|
13
|
+
- Verify work proportional to risk and blast radius.
|
|
14
|
+
- Document decisions that future maintainers will need to understand.
|
|
15
|
+
|
|
16
|
+
## Maintainability
|
|
17
|
+
|
|
18
|
+
Maintainable systems have:
|
|
19
|
+
|
|
20
|
+
- Clear names and ownership.
|
|
21
|
+
- Small modules with explicit responsibilities.
|
|
22
|
+
- Stable interfaces and documented contracts.
|
|
23
|
+
- Tests that protect important behavior.
|
|
24
|
+
- Observability for production behavior.
|
|
25
|
+
- Low surprise for future contributors.
|
|
26
|
+
|
|
27
|
+
## Complexity Budget
|
|
28
|
+
|
|
29
|
+
Add complexity only when it pays for itself. Good reasons include:
|
|
30
|
+
|
|
31
|
+
- It removes meaningful duplication.
|
|
32
|
+
- It isolates a volatile dependency.
|
|
33
|
+
- It makes a risky operation safer.
|
|
34
|
+
- It clarifies a domain concept.
|
|
35
|
+
- It enables necessary scale, reliability, or security.
|
|
36
|
+
|
|
37
|
+
Weak reasons include:
|
|
38
|
+
|
|
39
|
+
- The abstraction may be useful someday.
|
|
40
|
+
- The new tool is fashionable.
|
|
41
|
+
- The current code looks too simple.
|
|
42
|
+
- The design optimizes for a theoretical future.
|
|
43
|
+
|
|
44
|
+
## Boundaries
|
|
45
|
+
|
|
46
|
+
Important boundaries deserve explicit validation and error handling:
|
|
47
|
+
|
|
48
|
+
- User input.
|
|
49
|
+
- Network calls.
|
|
50
|
+
- File systems.
|
|
51
|
+
- Databases.
|
|
52
|
+
- Message queues.
|
|
53
|
+
- Third-party APIs.
|
|
54
|
+
- Authentication and authorization.
|
|
55
|
+
- Time, money, and irreversible side effects.
|
|
56
|
+
|
|
57
|
+
## Operational Thinking
|
|
58
|
+
|
|
59
|
+
Before calling work complete, ask:
|
|
60
|
+
|
|
61
|
+
- How will we know it is working?
|
|
62
|
+
- How will we know it is failing?
|
|
63
|
+
- Can we roll it back or disable it?
|
|
64
|
+
- What is the support burden?
|
|
65
|
+
- What documentation will the next person need?
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Product Discovery
|
|
2
|
+
|
|
3
|
+
Use this reference when shaping product ideas, validating problems, prioritizing
|
|
4
|
+
work, or turning user needs into requirements.
|
|
5
|
+
|
|
6
|
+
## Discovery Goals
|
|
7
|
+
|
|
8
|
+
Product discovery reduces uncertainty about:
|
|
9
|
+
|
|
10
|
+
- Who has the problem.
|
|
11
|
+
- How painful or frequent the problem is.
|
|
12
|
+
- What alternatives users already use.
|
|
13
|
+
- Whether the proposed solution fits the workflow.
|
|
14
|
+
- Whether the outcome supports business or project goals.
|
|
15
|
+
|
|
16
|
+
## Problem Statement
|
|
17
|
+
|
|
18
|
+
A useful problem statement names:
|
|
19
|
+
|
|
20
|
+
- User or segment.
|
|
21
|
+
- Situation or trigger.
|
|
22
|
+
- Pain or unmet need.
|
|
23
|
+
- Current workaround.
|
|
24
|
+
- Desired outcome.
|
|
25
|
+
- Evidence source.
|
|
26
|
+
|
|
27
|
+
Example shape:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
When <user> is trying to <job>, they struggle with <pain>, which causes
|
|
31
|
+
<impact>. We know this from <evidence>.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Evidence Quality
|
|
35
|
+
|
|
36
|
+
| Evidence | Strength |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| Direct user behavior | Strong |
|
|
39
|
+
| Repeated customer interviews | Strong |
|
|
40
|
+
| Support tickets and sales calls | Medium to strong |
|
|
41
|
+
| Analytics trend | Medium to strong |
|
|
42
|
+
| Internal stakeholder opinion | Weak to medium |
|
|
43
|
+
| Founder or team intuition | Useful, but needs validation |
|
|
44
|
+
|
|
45
|
+
## Prioritization Dimensions
|
|
46
|
+
|
|
47
|
+
- User impact.
|
|
48
|
+
- Business impact.
|
|
49
|
+
- Confidence.
|
|
50
|
+
- Effort.
|
|
51
|
+
- Risk.
|
|
52
|
+
- Strategic fit.
|
|
53
|
+
- Time sensitivity.
|
|
54
|
+
- Learning value.
|
|
55
|
+
|
|
56
|
+
## Requirement Quality
|
|
57
|
+
|
|
58
|
+
Good requirements describe:
|
|
59
|
+
|
|
60
|
+
- The user outcome.
|
|
61
|
+
- Acceptance criteria.
|
|
62
|
+
- Constraints and non-goals.
|
|
63
|
+
- Edge cases and permissions.
|
|
64
|
+
- Analytics or learning signals.
|
|
65
|
+
- Rollout and rollback expectations.
|
|
66
|
+
|
|
67
|
+
Avoid requirements that prematurely prescribe implementation details unless the
|
|
68
|
+
technical approach is itself part of the constraint.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Security And Privacy
|
|
2
|
+
|
|
3
|
+
Use this reference when a task touches data, identity, permissions, external
|
|
4
|
+
systems, infrastructure, logging, or user trust.
|
|
5
|
+
|
|
6
|
+
## Security Basics
|
|
7
|
+
|
|
8
|
+
- Identify assets, actors, actions, and trust boundaries.
|
|
9
|
+
- Authenticate identity before relying on it.
|
|
10
|
+
- Authorize every protected action.
|
|
11
|
+
- Validate and sanitize untrusted input.
|
|
12
|
+
- Store secrets only in approved secret-management systems.
|
|
13
|
+
- Encrypt sensitive data in transit and at rest where appropriate.
|
|
14
|
+
- Log enough to investigate without leaking sensitive data.
|
|
15
|
+
|
|
16
|
+
## Privacy Basics
|
|
17
|
+
|
|
18
|
+
- Collect the minimum data needed for the stated purpose.
|
|
19
|
+
- Name retention and deletion expectations.
|
|
20
|
+
- Avoid exposing personal data in logs, errors, analytics, or prompts.
|
|
21
|
+
- Separate production data from development and testing whenever possible.
|
|
22
|
+
- Treat screenshots, exports, and generated reports as possible data leaks.
|
|
23
|
+
|
|
24
|
+
## Common Risk Areas
|
|
25
|
+
|
|
26
|
+
| Area | Risk |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| Authentication | Weak token validation, insecure sessions, missing revocation. |
|
|
29
|
+
| Authorization | Broken object-level checks, cross-tenant access, admin bypasses. |
|
|
30
|
+
| APIs | Injection, over-broad responses, missing rate limits. |
|
|
31
|
+
| Logs | Secrets, tokens, personal data, or confidential business data. |
|
|
32
|
+
| Dependencies | Known vulnerabilities, unmaintained packages, supply-chain risk. |
|
|
33
|
+
| AI systems | Prompt injection, data leakage, tool misuse, unverified outputs. |
|
|
34
|
+
| Infrastructure | Public storage, broad IAM permissions, unencrypted state. |
|
|
35
|
+
|
|
36
|
+
## Review Questions
|
|
37
|
+
|
|
38
|
+
- What data can this code read, write, or expose?
|
|
39
|
+
- Who is allowed to perform this action?
|
|
40
|
+
- What happens if a user changes an ID, tenant, role, or token?
|
|
41
|
+
- Are secrets or personal data present in logs, traces, prompts, or errors?
|
|
42
|
+
- What external systems are trusted?
|
|
43
|
+
- What is the worst plausible misuse?
|
|
44
|
+
|
|
45
|
+
## Escalation Triggers
|
|
46
|
+
|
|
47
|
+
Escalate for human review when work involves:
|
|
48
|
+
|
|
49
|
+
- Payment, financial, medical, legal, or regulated data.
|
|
50
|
+
- New authentication or authorization flows.
|
|
51
|
+
- Production credentials or secret handling.
|
|
52
|
+
- Public exposure of private systems.
|
|
53
|
+
- Security scans with high-severity findings.
|
|
54
|
+
- Unclear data retention or consent requirements.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Testing And Quality
|
|
2
|
+
|
|
3
|
+
Use this reference when deciding how to verify work, how much testing is enough,
|
|
4
|
+
or what quality gates should apply.
|
|
5
|
+
|
|
6
|
+
## Verification Principle
|
|
7
|
+
|
|
8
|
+
Verification should match risk. A small documentation fix may need proofreading.
|
|
9
|
+
A production behavior change may need unit tests, integration tests, manual
|
|
10
|
+
checks, monitoring, and rollback planning.
|
|
11
|
+
|
|
12
|
+
## Test Types
|
|
13
|
+
|
|
14
|
+
| Type | Best For |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| Unit test | Pure logic, edge cases, fast feedback. |
|
|
17
|
+
| Integration test | Module boundaries, databases, APIs, queues, file systems. |
|
|
18
|
+
| Contract test | Shared API or event schema compatibility. |
|
|
19
|
+
| End-to-end test | Critical user workflows and system wiring. |
|
|
20
|
+
| Snapshot test | Stable structured output or UI regression with careful review. |
|
|
21
|
+
| Load test | Throughput, latency, saturation, and capacity limits. |
|
|
22
|
+
| Security test | Auth, permissions, injection, secrets, dependency risk. |
|
|
23
|
+
| Manual check | Visual behavior, exploratory workflows, ambiguous UX. |
|
|
24
|
+
|
|
25
|
+
## Quality Gates
|
|
26
|
+
|
|
27
|
+
- Requirements are testable.
|
|
28
|
+
- Important behavior has automated coverage where practical.
|
|
29
|
+
- Failure and edge cases are represented.
|
|
30
|
+
- Tests are deterministic and isolated.
|
|
31
|
+
- Test data does not include real secrets or unnecessary personal data.
|
|
32
|
+
- Local checks or CI commands are documented.
|
|
33
|
+
- Skipped verification is named with a reason.
|
|
34
|
+
|
|
35
|
+
## Risk-Based Depth
|
|
36
|
+
|
|
37
|
+
| Risk | Verification |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| Low | Read-through, formatting, targeted smoke check. |
|
|
40
|
+
| Medium | Relevant automated tests plus manual check of changed behavior. |
|
|
41
|
+
| High | Unit, integration, regression, observability, rollback, and peer review. |
|
|
42
|
+
|
|
43
|
+
## Good Test Cases
|
|
44
|
+
|
|
45
|
+
Good tests usually include:
|
|
46
|
+
|
|
47
|
+
- Normal success path.
|
|
48
|
+
- Boundary values.
|
|
49
|
+
- Empty or missing input.
|
|
50
|
+
- Invalid input.
|
|
51
|
+
- Permission denied.
|
|
52
|
+
- External dependency failure.
|
|
53
|
+
- Retry or idempotency behavior.
|
|
54
|
+
- Backward compatibility when contracts change.
|
|
55
|
+
|
|
56
|
+
## Completion Language
|
|
57
|
+
|
|
58
|
+
When summarizing verification, be precise:
|
|
59
|
+
|
|
60
|
+
- "Ran `npm test` and it passed."
|
|
61
|
+
- "Ran targeted unit tests for the changed module."
|
|
62
|
+
- "Did not run tests; docs-only change."
|
|
63
|
+
- "Could not verify browser behavior because the dev server failed to start."
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-playbook",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Comprehensive AI engineering playbook with agents, prompts, skills, patterns, and best practices",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"ai-playbook": "./bin/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=18.0.0"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"setup": "node bin/cli.js setup",
|
|
15
|
+
"sync": "bash setup.sh",
|
|
16
|
+
"list": "node bin/cli.js list",
|
|
17
|
+
"help": "node bin/cli.js help"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"ai",
|
|
21
|
+
"engineering",
|
|
22
|
+
"prompts",
|
|
23
|
+
"agents",
|
|
24
|
+
"skills",
|
|
25
|
+
"patterns",
|
|
26
|
+
"best-practices",
|
|
27
|
+
"claude",
|
|
28
|
+
"gemini",
|
|
29
|
+
"codex",
|
|
30
|
+
"development"
|
|
31
|
+
],
|
|
32
|
+
"author": "Srikanth Kanteti",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/srikanthkanteti/ai-playbook.git"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/srikanthkanteti/ai-playbook",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/srikanthkanteti/ai-playbook/issues"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"agents/",
|
|
44
|
+
"commands/",
|
|
45
|
+
"context/",
|
|
46
|
+
"hooks/",
|
|
47
|
+
"knowledge/",
|
|
48
|
+
"patterns/",
|
|
49
|
+
"prompts/",
|
|
50
|
+
"roles/",
|
|
51
|
+
"skills/",
|
|
52
|
+
"bin/",
|
|
53
|
+
"setup.sh",
|
|
54
|
+
"index.js",
|
|
55
|
+
"README.md",
|
|
56
|
+
"CLAUDE.md"
|
|
57
|
+
],
|
|
58
|
+
"preferGlobal": true,
|
|
59
|
+
"directories": {
|
|
60
|
+
"lib": "./",
|
|
61
|
+
"bin": "./bin"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# Prompts
|
|
2
|
+
|
|
3
|
+
Reusable prompt templates grouped by role and task type.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Prompts are templates that structure how to communicate with AI assistants for specific tasks. They define:
|
|
8
|
+
|
|
9
|
+
- **When to use** - Which situation calls for this prompt
|
|
10
|
+
- **What to include** - Required context and information
|
|
11
|
+
- **What to expect** - Clear output and success criteria
|
|
12
|
+
- **Quality gates** - How to verify completeness
|
|
13
|
+
|
|
14
|
+
## Available Prompts
|
|
15
|
+
|
|
16
|
+
### Developer Prompts (`developer/`)
|
|
17
|
+
|
|
18
|
+
For software development tasks:
|
|
19
|
+
|
|
20
|
+
- **[implement-feature.md](developer/implement-feature.md)** - Build new features
|
|
21
|
+
- **[fix-bug.md](developer/fix-bug.md)** - Resolve bugs and issues
|
|
22
|
+
|
|
23
|
+
### Architect Prompts (`architect/`)
|
|
24
|
+
|
|
25
|
+
For system design and architecture:
|
|
26
|
+
|
|
27
|
+
- **[design-system.md](architect/design-system.md)** - Design systems and architecture
|
|
28
|
+
|
|
29
|
+
### Reviewer Prompts (`reviewer/`)
|
|
30
|
+
|
|
31
|
+
For code review and quality:
|
|
32
|
+
|
|
33
|
+
- **[code-review.md](reviewer/code-review.md)** - Review pull requests
|
|
34
|
+
|
|
35
|
+
### Debugger Prompts (`debugger/`)
|
|
36
|
+
|
|
37
|
+
For issue diagnosis:
|
|
38
|
+
|
|
39
|
+
- **[diagnose-issue.md](debugger/diagnose-issue.md)** - Debug problems
|
|
40
|
+
|
|
41
|
+
### Product Owner Prompts (`product-owner/`)
|
|
42
|
+
|
|
43
|
+
For product management:
|
|
44
|
+
|
|
45
|
+
- **[define-feature.md](product-owner/define-feature.md)** - Define features
|
|
46
|
+
|
|
47
|
+
### Support Prompts (`support/`)
|
|
48
|
+
|
|
49
|
+
For customer support:
|
|
50
|
+
|
|
51
|
+
- **[resolve-issue.md](support/resolve-issue.md)** - Resolve customer issues
|
|
52
|
+
|
|
53
|
+
## Using Prompts
|
|
54
|
+
|
|
55
|
+
### Basic Workflow
|
|
56
|
+
|
|
57
|
+
1. **Find relevant prompt** - Match task to prompt type
|
|
58
|
+
2. **Read template** - Understand structure
|
|
59
|
+
3. **Gather context** - Collect all needed information
|
|
60
|
+
4. **Fill in template** - Complete each section
|
|
61
|
+
5. **Provide to Claude** - Paste complete prompt
|
|
62
|
+
6. **Review output** - Check against quality gates
|
|
63
|
+
7. **Iterate** - Request refinements as needed
|
|
64
|
+
|
|
65
|
+
### Example
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
# From: developer/implement-feature.md
|
|
69
|
+
|
|
70
|
+
## Feature Spec
|
|
71
|
+
- User can create custom dashboard
|
|
72
|
+
- Drag-and-drop widgets
|
|
73
|
+
- Save and share dashboards
|
|
74
|
+
- Real-time updates
|
|
75
|
+
|
|
76
|
+
## Constraints
|
|
77
|
+
- Use existing widget library
|
|
78
|
+
- Support responsive design
|
|
79
|
+
- No new dependencies
|
|
80
|
+
- Match current UI patterns
|
|
81
|
+
|
|
82
|
+
[... complete template ...]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Best Practices
|
|
86
|
+
|
|
87
|
+
### Writing Effective Prompts
|
|
88
|
+
|
|
89
|
+
**Do:**
|
|
90
|
+
- ✓ Be specific and detailed
|
|
91
|
+
- ✓ Include all relevant context
|
|
92
|
+
- ✓ Define success criteria
|
|
93
|
+
- ✓ List constraints upfront
|
|
94
|
+
- ✓ Provide examples
|
|
95
|
+
|
|
96
|
+
**Don't:**
|
|
97
|
+
- ✗ Be vague or ambiguous
|
|
98
|
+
- ✗ Assume shared knowledge
|
|
99
|
+
- ✗ Skip constraints
|
|
100
|
+
- ✗ Forget edge cases
|
|
101
|
+
- ✗ Mix multiple tasks
|
|
102
|
+
|
|
103
|
+
### Gathering Context
|
|
104
|
+
|
|
105
|
+
For any prompt, provide:
|
|
106
|
+
|
|
107
|
+
1. **Background** - What we're solving
|
|
108
|
+
2. **Requirements** - What needs to happen
|
|
109
|
+
3. **Constraints** - What's off-limits
|
|
110
|
+
4. **Context** - Related code/systems
|
|
111
|
+
5. **Examples** - Concrete scenarios
|
|
112
|
+
|
|
113
|
+
### Iterating on Output
|
|
114
|
+
|
|
115
|
+
1. Review output against quality gates
|
|
116
|
+
2. Ask for clarifications
|
|
117
|
+
3. Request specific refinements
|
|
118
|
+
4. Verify against test cases
|
|
119
|
+
5. Merge when ready
|
|
120
|
+
|
|
121
|
+
## Prompt Structure
|
|
122
|
+
|
|
123
|
+
All prompts include:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
# [Prompt Name] Prompt
|
|
127
|
+
|
|
128
|
+
**Role:** [Which role uses this]
|
|
129
|
+
**Type:** [Category of work]
|
|
130
|
+
**Context Needed:** [What to provide]
|
|
131
|
+
|
|
132
|
+
## Template
|
|
133
|
+
[Fill-in template]
|
|
134
|
+
|
|
135
|
+
## When to Use
|
|
136
|
+
[Situations where this applies]
|
|
137
|
+
|
|
138
|
+
## Required Context
|
|
139
|
+
[Must-have information]
|
|
140
|
+
|
|
141
|
+
## Expected Output
|
|
142
|
+
[What you should get back]
|
|
143
|
+
|
|
144
|
+
## Quality Gates
|
|
145
|
+
[Verification checklist]
|
|
146
|
+
|
|
147
|
+
## Example Usage
|
|
148
|
+
[Real example filled in]
|
|
149
|
+
|
|
150
|
+
## Tips
|
|
151
|
+
[Best practices]
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Quality Gates
|
|
155
|
+
|
|
156
|
+
Every prompt includes quality gates to verify:
|
|
157
|
+
|
|
158
|
+
✓ **Completeness** - All requirements met
|
|
159
|
+
✓ **Clarity** - No ambiguity
|
|
160
|
+
✓ **Correctness** - Works as intended
|
|
161
|
+
✓ **Feasibility** - Realistic scope
|
|
162
|
+
✓ **Measurability** - Success verified
|
|
163
|
+
|
|
164
|
+
## Related Documentation
|
|
165
|
+
|
|
166
|
+
- See `agents/` for AI agent definitions
|
|
167
|
+
- Check `skills/` for domain expertise
|
|
168
|
+
- Review `hooks/` for automation
|
|
169
|
+
- Explore `commands/` for workflows
|
|
170
|
+
|
|
171
|
+
## Tips for Success
|
|
172
|
+
|
|
173
|
+
### Template Customization
|
|
174
|
+
|
|
175
|
+
- Adapt prompts to your needs
|
|
176
|
+
- Add domain-specific sections
|
|
177
|
+
- Adjust detail level
|
|
178
|
+
- Combine related prompts
|
|
179
|
+
- Create new prompts for unique tasks
|
|
180
|
+
|
|
181
|
+
### Integration
|
|
182
|
+
|
|
183
|
+
- Use prompts in documentation
|
|
184
|
+
- Reference in onboarding
|
|
185
|
+
- Include in standards
|
|
186
|
+
- Share with team
|
|
187
|
+
- Evolve over time
|
|
188
|
+
|
|
189
|
+
## Contributing
|
|
190
|
+
|
|
191
|
+
To add new prompts:
|
|
192
|
+
|
|
193
|
+
1. Identify a recurring task
|
|
194
|
+
2. Create template in relevant folder
|
|
195
|
+
3. Include all sections
|
|
196
|
+
4. Provide examples
|
|
197
|
+
5. Test with team
|
|
198
|
+
6. Document in README
|
|
199
|
+
|
|
200
|
+
## Maintenance
|
|
201
|
+
|
|
202
|
+
Review prompts quarterly:
|
|
203
|
+
|
|
204
|
+
- Do they still work?
|
|
205
|
+
- Are they being used?
|
|
206
|
+
- Need improvements?
|
|
207
|
+
- Remove outdated ones?
|
|
208
|
+
- Add missing ones?
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Architect Prompts
|
|
2
|
+
|
|
3
|
+
Reusable prompts for system architecture and design.
|
|
4
|
+
|
|
5
|
+
## Available Prompts
|
|
6
|
+
|
|
7
|
+
### [design-system.md](design-system.md)
|
|
8
|
+
|
|
9
|
+
**Use when:** Designing systems or major architecture changes
|
|
10
|
+
|
|
11
|
+
**Covers:**
|
|
12
|
+
- Problem statement
|
|
13
|
+
- Requirements (functional/non-functional)
|
|
14
|
+
- Constraints
|
|
15
|
+
- Existing architecture
|
|
16
|
+
- Design questions
|
|
17
|
+
- Deliverables
|
|
18
|
+
|
|
19
|
+
**Good for:**
|
|
20
|
+
- New system design
|
|
21
|
+
- Architecture redesign
|
|
22
|
+
- Scalability improvements
|
|
23
|
+
- Migration planning
|
|
24
|
+
|
|
25
|
+
## Using Architect Prompts
|
|
26
|
+
|
|
27
|
+
### Design Process
|
|
28
|
+
|
|
29
|
+
1. **Define problem** - Understand what to solve
|
|
30
|
+
2. **List requirements** - Functional and non-functional
|
|
31
|
+
3. **State constraints** - Tech, budget, timeline
|
|
32
|
+
4. **Analyze existing** - Current state
|
|
33
|
+
5. **Design system** - Architecture solution
|
|
34
|
+
6. **Evaluate tradeoffs** - Different approaches
|
|
35
|
+
7. **Document decisions** - Why certain choices
|
|
36
|
+
|
|
37
|
+
## What Gets Delivered
|
|
38
|
+
|
|
39
|
+
✓ Architecture diagram
|
|
40
|
+
✓ Component descriptions
|
|
41
|
+
✓ Data flow diagrams
|
|
42
|
+
✓ Technology recommendations
|
|
43
|
+
✓ Scalability analysis
|
|
44
|
+
✓ Risk assessment
|
|
45
|
+
✓ Migration plan
|
|
46
|
+
|
|
47
|
+
## Quality Gates
|
|
48
|
+
|
|
49
|
+
Design must address:
|
|
50
|
+
|
|
51
|
+
✓ **Completeness** - All requirements met
|
|
52
|
+
✓ **Feasibility** - Team can build
|
|
53
|
+
✓ **Scalability** - Handles growth
|
|
54
|
+
✓ **Maintainability** - Easy to operate
|
|
55
|
+
✓ **Cost** - Budget realistic
|
|
56
|
+
|
|
57
|
+
## Design Checklist
|
|
58
|
+
|
|
59
|
+
- [ ] All requirements addressed
|
|
60
|
+
- [ ] Constraints acknowledged
|
|
61
|
+
- [ ] Tradeoffs documented
|
|
62
|
+
- [ ] Technology justified
|
|
63
|
+
- [ ] Scalability planned
|
|
64
|
+
- [ ] Risks identified
|
|
65
|
+
- [ ] Costs estimated
|
|
66
|
+
- [ ] Timeline realistic
|
|
67
|
+
- [ ] Team capable
|
|
68
|
+
- [ ] Migration path clear
|
|
69
|
+
|
|
70
|
+
## Best Practices
|
|
71
|
+
|
|
72
|
+
### Effective Design Prompts
|
|
73
|
+
|
|
74
|
+
- Start with problem, not solution
|
|
75
|
+
- Be clear about constraints
|
|
76
|
+
- List all requirements
|
|
77
|
+
- Provide context
|
|
78
|
+
- Ask specific design questions
|
|
79
|
+
- Request alternatives
|
|
80
|
+
- Expect tradeoffs
|
|
81
|
+
|
|
82
|
+
### Evaluating Designs
|
|
83
|
+
|
|
84
|
+
- Does it meet all requirements?
|
|
85
|
+
- Is it feasible with available resources?
|
|
86
|
+
- Can team understand and implement?
|
|
87
|
+
- Does it scale appropriately?
|
|
88
|
+
- Are risks identified and mitigated?
|
|
89
|
+
- Is cost within budget?
|
|
90
|
+
- Is timeline realistic?
|
|
91
|
+
|
|
92
|
+
## Related Documentation
|
|
93
|
+
|
|
94
|
+
- See `../README.md` for overview
|
|
95
|
+
- Check skills/ for architecture skills
|
|
96
|
+
- Review patterns/ for design patterns
|