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,140 @@
|
|
|
1
|
+
# Design System Prompt
|
|
2
|
+
|
|
3
|
+
**Role:** Architect
|
|
4
|
+
**Type:** System Design
|
|
5
|
+
**Context Needed:** Requirements, constraints, existing architecture, scale requirements
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Design [system name] with these requirements:
|
|
11
|
+
|
|
12
|
+
## Problem Statement
|
|
13
|
+
[What problem are we solving]
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
### Functional
|
|
17
|
+
- [Requirement 1]
|
|
18
|
+
- [Requirement 2]
|
|
19
|
+
- [Requirement 3]
|
|
20
|
+
|
|
21
|
+
### Non-functional
|
|
22
|
+
- Scale: [Users/requests/data volume]
|
|
23
|
+
- Performance: [Target latency, throughput]
|
|
24
|
+
- Availability: [Uptime, regions]
|
|
25
|
+
- Consistency: [Strong/eventual]
|
|
26
|
+
|
|
27
|
+
## Constraints
|
|
28
|
+
- Technology: [Required/forbidden]
|
|
29
|
+
- Budget: [Cost constraints]
|
|
30
|
+
- Timeline: [When needed]
|
|
31
|
+
- Team: [Expertise, size]
|
|
32
|
+
|
|
33
|
+
## Existing Architecture
|
|
34
|
+
[Diagram or description of current system]
|
|
35
|
+
|
|
36
|
+
## Questions to Answer
|
|
37
|
+
1. [Key design decision]
|
|
38
|
+
2. [Key design decision]
|
|
39
|
+
3. [Key design decision]
|
|
40
|
+
|
|
41
|
+
## Expected Deliverables
|
|
42
|
+
- System architecture diagram
|
|
43
|
+
- Component descriptions
|
|
44
|
+
- Data flow diagram
|
|
45
|
+
- Technology recommendations
|
|
46
|
+
- Scalability analysis
|
|
47
|
+
- Risk assessment
|
|
48
|
+
- Migration plan (if applicable)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## When to Use
|
|
52
|
+
|
|
53
|
+
- Designing new systems
|
|
54
|
+
- Major architecture changes
|
|
55
|
+
- Scalability improvements
|
|
56
|
+
- System redesigns
|
|
57
|
+
- Migration planning
|
|
58
|
+
|
|
59
|
+
## Required Context
|
|
60
|
+
|
|
61
|
+
- Business requirements
|
|
62
|
+
- Current state architecture
|
|
63
|
+
- Scale expectations
|
|
64
|
+
- Constraints (budget, time, tech)
|
|
65
|
+
- Team expertise
|
|
66
|
+
- Growth projections
|
|
67
|
+
|
|
68
|
+
## Expected Output
|
|
69
|
+
|
|
70
|
+
- ✓ Architecture diagram
|
|
71
|
+
- ✓ Component descriptions
|
|
72
|
+
- ✓ Data flows
|
|
73
|
+
- ✓ Technology choices justified
|
|
74
|
+
- ✓ Scalability plan
|
|
75
|
+
- ✓ Risk mitigation
|
|
76
|
+
|
|
77
|
+
## Quality Gates
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Completeness:
|
|
81
|
+
✓ All requirements addressed
|
|
82
|
+
✓ Constraints considered
|
|
83
|
+
✓ Trade-offs explained
|
|
84
|
+
|
|
85
|
+
Feasibility:
|
|
86
|
+
✓ Team can build it
|
|
87
|
+
✓ Timeline realistic
|
|
88
|
+
✓ Budget reasonable
|
|
89
|
+
|
|
90
|
+
Scalability:
|
|
91
|
+
✓ Handles growth
|
|
92
|
+
✓ Performance meets targets
|
|
93
|
+
✓ No hard limits
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Example Usage
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
Design real-time notification system for 10M users
|
|
100
|
+
|
|
101
|
+
## Problem Statement
|
|
102
|
+
Send notifications to millions of users with <1s latency
|
|
103
|
+
|
|
104
|
+
## Requirements
|
|
105
|
+
### Functional
|
|
106
|
+
- Support multiple notification types (email, SMS, push)
|
|
107
|
+
- Target users based on preferences
|
|
108
|
+
- Track delivery status
|
|
109
|
+
- Support scheduling
|
|
110
|
+
|
|
111
|
+
### Non-functional
|
|
112
|
+
- Scale to 10M users
|
|
113
|
+
- <1s delivery latency (p99)
|
|
114
|
+
- 99.9% availability
|
|
115
|
+
- Eventual consistency acceptable
|
|
116
|
+
|
|
117
|
+
## Constraints
|
|
118
|
+
- $50k/month budget
|
|
119
|
+
- Team of 3 engineers
|
|
120
|
+
- Existing PostgreSQL database
|
|
121
|
+
- AWS infrastructure preferred
|
|
122
|
+
|
|
123
|
+
## Existing Architecture
|
|
124
|
+
[Current monolithic notification system, <100k users]
|
|
125
|
+
|
|
126
|
+
## Questions to Answer
|
|
127
|
+
1. Queue-based vs direct push?
|
|
128
|
+
2. Single region or multi-region?
|
|
129
|
+
3. How to handle backpressure?
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Tips
|
|
133
|
+
|
|
134
|
+
- State clear requirements
|
|
135
|
+
- List all constraints
|
|
136
|
+
- Draw diagrams
|
|
137
|
+
- Justify tech choices
|
|
138
|
+
- Consider growth
|
|
139
|
+
- Plan for failure
|
|
140
|
+
- Think about operations
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Debugger Prompts
|
|
2
|
+
|
|
3
|
+
Reusable prompts for diagnosing and fixing issues.
|
|
4
|
+
|
|
5
|
+
## Available Prompts
|
|
6
|
+
|
|
7
|
+
### [diagnose-issue.md](diagnose-issue.md)
|
|
8
|
+
|
|
9
|
+
**Use when:** Investigating production issues or debugging failures
|
|
10
|
+
|
|
11
|
+
**Covers:**
|
|
12
|
+
- Issue description
|
|
13
|
+
- Reproduction steps
|
|
14
|
+
- Error output and logs
|
|
15
|
+
- Affected code
|
|
16
|
+
- When it happens
|
|
17
|
+
- Impact assessment
|
|
18
|
+
|
|
19
|
+
**Good for:**
|
|
20
|
+
- Production debugging
|
|
21
|
+
- Test failures
|
|
22
|
+
- Performance issues
|
|
23
|
+
- Error investigation
|
|
24
|
+
|
|
25
|
+
## Using Debug Prompts
|
|
26
|
+
|
|
27
|
+
### Diagnosis Process
|
|
28
|
+
|
|
29
|
+
1. **Describe issue** - What's happening?
|
|
30
|
+
2. **Reproduction** - How to trigger it?
|
|
31
|
+
3. **Gather logs** - Error messages, stack traces
|
|
32
|
+
4. **Identify patterns** - When does it happen?
|
|
33
|
+
5. **Hypothesize** - What could cause this?
|
|
34
|
+
6. **Investigate** - Look for root cause
|
|
35
|
+
7. **Fix** - Implement solution
|
|
36
|
+
8. **Verify** - Confirm it's fixed
|
|
37
|
+
|
|
38
|
+
## What Gets Delivered
|
|
39
|
+
|
|
40
|
+
✓ Root cause identified
|
|
41
|
+
✓ Clear explanation
|
|
42
|
+
✓ Affected components mapped
|
|
43
|
+
✓ Fix proposal
|
|
44
|
+
✓ Verification plan
|
|
45
|
+
|
|
46
|
+
## Quality Gates
|
|
47
|
+
|
|
48
|
+
Diagnosis must provide:
|
|
49
|
+
|
|
50
|
+
✓ **Reproducibility** - Can be reproduced reliably
|
|
51
|
+
✓ **Root cause** - True cause identified
|
|
52
|
+
✓ **Evidence** - Backed by logs/data
|
|
53
|
+
✓ **Fix** - Solution that works
|
|
54
|
+
✓ **Verification** - How to confirm fixed
|
|
55
|
+
|
|
56
|
+
## Debug Checklist
|
|
57
|
+
|
|
58
|
+
- [ ] Issue description clear
|
|
59
|
+
- [ ] Reproduction steps documented
|
|
60
|
+
- [ ] All logs gathered
|
|
61
|
+
- [ ] Environment details noted
|
|
62
|
+
- [ ] Recent changes identified
|
|
63
|
+
- [ ] Root cause found
|
|
64
|
+
- [ ] Fix is feasible
|
|
65
|
+
- [ ] Can be verified
|
|
66
|
+
- [ ] No side effects
|
|
67
|
+
|
|
68
|
+
## Best Practices
|
|
69
|
+
|
|
70
|
+
### Effective Debug Prompts
|
|
71
|
+
|
|
72
|
+
- Be specific about symptoms
|
|
73
|
+
- Include all error messages
|
|
74
|
+
- Provide reproduction steps
|
|
75
|
+
- List recent changes
|
|
76
|
+
- Describe expected behavior
|
|
77
|
+
- Note environment details
|
|
78
|
+
- Provide logs/traces
|
|
79
|
+
- Share context
|
|
80
|
+
|
|
81
|
+
### Investigation Approach
|
|
82
|
+
|
|
83
|
+
1. **Symptoms** - What do you observe?
|
|
84
|
+
2. **Timeline** - When did it start?
|
|
85
|
+
3. **Changes** - What changed recently?
|
|
86
|
+
4. **Environment** - What's different?
|
|
87
|
+
5. **Evidence** - What do logs show?
|
|
88
|
+
6. **Hypothesis** - What could cause it?
|
|
89
|
+
7. **Testing** - How to verify?
|
|
90
|
+
8. **Fix** - What to change?
|
|
91
|
+
|
|
92
|
+
## Related Documentation
|
|
93
|
+
|
|
94
|
+
- See `../README.md` for overview
|
|
95
|
+
- Check hooks/ for testing/validation
|
|
96
|
+
- Review commands/ for debugging workflows
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Diagnose Issue Prompt
|
|
2
|
+
|
|
3
|
+
**Role:** Debugger
|
|
4
|
+
**Type:** Issue Diagnosis
|
|
5
|
+
**Context Needed:** Error logs, reproduction steps, environment details, affected code
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Diagnose [issue name]:
|
|
11
|
+
|
|
12
|
+
## Issue Description
|
|
13
|
+
[What's wrong]
|
|
14
|
+
|
|
15
|
+
## Reproduction
|
|
16
|
+
1. [Step 1]
|
|
17
|
+
2. [Step 2]
|
|
18
|
+
3. [Step 3]
|
|
19
|
+
|
|
20
|
+
Environment:
|
|
21
|
+
- Node: [version]
|
|
22
|
+
- OS: [OS]
|
|
23
|
+
- Browser: [browser]
|
|
24
|
+
- Time: [When it happens]
|
|
25
|
+
|
|
26
|
+
## Error Output
|
|
27
|
+
[Error message, stack trace, logs]
|
|
28
|
+
|
|
29
|
+
## Affected Code
|
|
30
|
+
File: [path]
|
|
31
|
+
Line: [numbers]
|
|
32
|
+
|
|
33
|
+
## When It Happens
|
|
34
|
+
- Frequency: [Always/intermittent]
|
|
35
|
+
- Recent changes: [What changed]
|
|
36
|
+
- Only with: [Specific conditions]
|
|
37
|
+
|
|
38
|
+
## Impact
|
|
39
|
+
- Users affected: [Scope]
|
|
40
|
+
- Severity: [Critical/High/Medium]
|
|
41
|
+
- Business impact: [What breaks]
|
|
42
|
+
|
|
43
|
+
## Expected Root Cause
|
|
44
|
+
[Your theory if any]
|
|
45
|
+
|
|
46
|
+
## Expected Deliverables
|
|
47
|
+
- Root cause analysis
|
|
48
|
+
- Affected components
|
|
49
|
+
- Reproduction case
|
|
50
|
+
- Fix proposal
|
|
51
|
+
- Verification steps
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## When to Use
|
|
55
|
+
|
|
56
|
+
- Investigating production issues
|
|
57
|
+
- Debugging failed tests
|
|
58
|
+
- Analyzing error logs
|
|
59
|
+
- Understanding why code fails
|
|
60
|
+
- Performance issues
|
|
61
|
+
|
|
62
|
+
## Required Context
|
|
63
|
+
|
|
64
|
+
- Complete error message
|
|
65
|
+
- Reproduction steps
|
|
66
|
+
- Recent code changes
|
|
67
|
+
- Environment details
|
|
68
|
+
- System logs
|
|
69
|
+
- Related code
|
|
70
|
+
|
|
71
|
+
## Expected Output
|
|
72
|
+
|
|
73
|
+
- ✓ Root cause identified
|
|
74
|
+
- ✓ Clear explanation
|
|
75
|
+
- ✓ Affected areas mapped
|
|
76
|
+
- ✓ Fix proposal
|
|
77
|
+
- ✓ Verification plan
|
|
78
|
+
|
|
79
|
+
## Quality Gates
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
Analysis:
|
|
83
|
+
✓ Root cause found
|
|
84
|
+
✓ Well explained
|
|
85
|
+
✓ Evidence provided
|
|
86
|
+
|
|
87
|
+
Reproducibility:
|
|
88
|
+
✓ Can be reproduced
|
|
89
|
+
✓ Steps are clear
|
|
90
|
+
✓ Conditions identified
|
|
91
|
+
|
|
92
|
+
Solution:
|
|
93
|
+
✓ Fix is feasible
|
|
94
|
+
✓ No side effects
|
|
95
|
+
✓ Can be verified
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Example Usage
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Diagnose database connection timeouts in production
|
|
102
|
+
|
|
103
|
+
## Issue Description
|
|
104
|
+
API responses timeout at 10:00 PM every night
|
|
105
|
+
|
|
106
|
+
## Reproduction
|
|
107
|
+
Hard to reproduce locally, only happens in production
|
|
108
|
+
|
|
109
|
+
Environment:
|
|
110
|
+
- Node 18.12
|
|
111
|
+
- PostgreSQL 14
|
|
112
|
+
- AWS RDS Aurora
|
|
113
|
+
- Production environment
|
|
114
|
+
|
|
115
|
+
## Error Output
|
|
116
|
+
timeout exceeded, ECONNREFUSED at socket.js:1025
|
|
117
|
+
|
|
118
|
+
## Affected Code
|
|
119
|
+
File: src/db/connection.ts
|
|
120
|
+
Line: 45-60
|
|
121
|
+
|
|
122
|
+
## When It Happens
|
|
123
|
+
- Frequency: Nightly around 10:00 PM
|
|
124
|
+
- Recent changes: None recently
|
|
125
|
+
- Only with: Production database
|
|
126
|
+
|
|
127
|
+
## Impact
|
|
128
|
+
- Users affected: All users during window
|
|
129
|
+
- Severity: Critical
|
|
130
|
+
- Business impact: API unavailable for ~5 minutes
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Tips
|
|
134
|
+
|
|
135
|
+
- Gather all logs available
|
|
136
|
+
- Look at timing patterns
|
|
137
|
+
- Check recent changes
|
|
138
|
+
- Verify reproduction steps
|
|
139
|
+
- Consider environment differences
|
|
140
|
+
- Think about side effects
|
|
141
|
+
- Look for cascading failures
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Developer Prompts
|
|
2
|
+
|
|
3
|
+
Reusable prompts for software development tasks.
|
|
4
|
+
|
|
5
|
+
## Available Prompts
|
|
6
|
+
|
|
7
|
+
### [implement-feature.md](implement-feature.md)
|
|
8
|
+
|
|
9
|
+
**Use when:** Implementing new features or adding functionality
|
|
10
|
+
|
|
11
|
+
**Covers:**
|
|
12
|
+
- Feature specification
|
|
13
|
+
- Constraints and patterns
|
|
14
|
+
- Files to modify/create
|
|
15
|
+
- Expected output
|
|
16
|
+
- Quality gates
|
|
17
|
+
|
|
18
|
+
**Template structure:**
|
|
19
|
+
- Feature spec
|
|
20
|
+
- Constraints
|
|
21
|
+
- Files to modify
|
|
22
|
+
- Expected output
|
|
23
|
+
- Verification steps
|
|
24
|
+
|
|
25
|
+
**Good for:**
|
|
26
|
+
- New API endpoints
|
|
27
|
+
- UI components
|
|
28
|
+
- Services/utilities
|
|
29
|
+
- Feature completeness
|
|
30
|
+
|
|
31
|
+
### [fix-bug.md](fix-bug.md)
|
|
32
|
+
|
|
33
|
+
**Use when:** Fixing bugs or resolving issues
|
|
34
|
+
|
|
35
|
+
**Covers:**
|
|
36
|
+
- Bug description
|
|
37
|
+
- Reproduction steps
|
|
38
|
+
- Root cause
|
|
39
|
+
- Expected fix
|
|
40
|
+
- Testing approach
|
|
41
|
+
|
|
42
|
+
**Template structure:**
|
|
43
|
+
- Bug description
|
|
44
|
+
- Reproduction steps
|
|
45
|
+
- Error information
|
|
46
|
+
- Root cause (if known)
|
|
47
|
+
- Expected fix
|
|
48
|
+
- Testing plan
|
|
49
|
+
|
|
50
|
+
**Good for:**
|
|
51
|
+
- Production bugs
|
|
52
|
+
- Test failures
|
|
53
|
+
- Regressions
|
|
54
|
+
- Performance issues
|
|
55
|
+
|
|
56
|
+
## Using These Prompts
|
|
57
|
+
|
|
58
|
+
### Basic Usage
|
|
59
|
+
|
|
60
|
+
Copy the template from the relevant prompt and fill in:
|
|
61
|
+
|
|
62
|
+
1. **Understand the prompt** - Read the template structure
|
|
63
|
+
2. **Gather context** - Collect all needed information
|
|
64
|
+
3. **Fill in template** - Complete each section
|
|
65
|
+
4. **Provide to Claude** - Paste filled template
|
|
66
|
+
5. **Review output** - Check against quality gates
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
Implement user profile update feature with these requirements:
|
|
72
|
+
|
|
73
|
+
## Feature Spec
|
|
74
|
+
- Users can edit name, email, avatar
|
|
75
|
+
- Changes saved to database
|
|
76
|
+
- Confirmation email sent
|
|
77
|
+
- Duplicate emails rejected
|
|
78
|
+
|
|
79
|
+
## Constraints
|
|
80
|
+
- Follow existing middleware patterns
|
|
81
|
+
- Use current auth system
|
|
82
|
+
- Support file upload max 5MB
|
|
83
|
+
- No breaking changes
|
|
84
|
+
|
|
85
|
+
[... rest of template filled in ...]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Quality Gates
|
|
89
|
+
|
|
90
|
+
All developer prompts should include:
|
|
91
|
+
|
|
92
|
+
✓ **Correctness** - Code works as intended
|
|
93
|
+
✓ **Testing** - 80%+ coverage
|
|
94
|
+
✓ **Quality** - Follows patterns
|
|
95
|
+
✓ **Performance** - No regressions
|
|
96
|
+
✓ **Documentation** - Clear code
|
|
97
|
+
|
|
98
|
+
## Best Practices
|
|
99
|
+
|
|
100
|
+
### Writing Effective Prompts
|
|
101
|
+
|
|
102
|
+
1. **Be specific** - "Add login" vs "Implement JWT-based login with refresh tokens"
|
|
103
|
+
2. **Include constraints** - Tech stack, patterns, limitations
|
|
104
|
+
3. **List files** - What needs to change
|
|
105
|
+
4. **Define success** - Quality gates, test cases
|
|
106
|
+
5. **Provide context** - Link to related code/specs
|
|
107
|
+
|
|
108
|
+
### Gathering Context
|
|
109
|
+
|
|
110
|
+
- Read relevant architecture docs
|
|
111
|
+
- Check existing patterns in codebase
|
|
112
|
+
- Review related features
|
|
113
|
+
- Understand constraints
|
|
114
|
+
- Define acceptance criteria
|
|
115
|
+
|
|
116
|
+
### Iterating on Output
|
|
117
|
+
|
|
118
|
+
1. Review initial output against quality gates
|
|
119
|
+
2. Ask for clarifications
|
|
120
|
+
3. Request refinements
|
|
121
|
+
4. Verify against test cases
|
|
122
|
+
5. Merge when ready
|
|
123
|
+
|
|
124
|
+
## Related Documentation
|
|
125
|
+
|
|
126
|
+
- See `../README.md` for overview
|
|
127
|
+
- Check agents/ for available AI agents
|
|
128
|
+
- Review hooks/ for automation
|
|
129
|
+
- Explore commands/ for development workflows
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Fix Bug Prompt
|
|
2
|
+
|
|
3
|
+
**Role:** Developer
|
|
4
|
+
**Type:** Bug Fix
|
|
5
|
+
**Context Needed:** Bug description, reproduction steps, error logs, affected code
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Fix [bug name] with these details:
|
|
11
|
+
|
|
12
|
+
## Bug Description
|
|
13
|
+
[What is the issue]
|
|
14
|
+
|
|
15
|
+
## Reproduction Steps
|
|
16
|
+
1. [Step 1]
|
|
17
|
+
2. [Step 2]
|
|
18
|
+
3. [Step 3]
|
|
19
|
+
Expected: [What should happen]
|
|
20
|
+
Actual: [What happens instead]
|
|
21
|
+
|
|
22
|
+
## Error Information
|
|
23
|
+
[Error message, stack trace, logs]
|
|
24
|
+
|
|
25
|
+
## Affected Code
|
|
26
|
+
File: [file path]
|
|
27
|
+
Line: [line numbers]
|
|
28
|
+
[Code snippet if helpful]
|
|
29
|
+
|
|
30
|
+
## Root Cause (if known)
|
|
31
|
+
[What's causing the issue]
|
|
32
|
+
|
|
33
|
+
## Expected Fix
|
|
34
|
+
[How should it behave after fix]
|
|
35
|
+
|
|
36
|
+
## Testing
|
|
37
|
+
- Test case: [What to test]
|
|
38
|
+
- Verification: [How to verify it's fixed]
|
|
39
|
+
- Regression risk: [What could break]
|
|
40
|
+
|
|
41
|
+
## Quality Gates
|
|
42
|
+
✓ Fix does not break existing tests
|
|
43
|
+
✓ New test covers the bug
|
|
44
|
+
✓ Code follows patterns
|
|
45
|
+
✓ Performance not degraded
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## When to Use
|
|
49
|
+
|
|
50
|
+
- Fixing reported bugs
|
|
51
|
+
- Addressing test failures
|
|
52
|
+
- Resolving production issues
|
|
53
|
+
- Fixing regressions
|
|
54
|
+
|
|
55
|
+
## Required Context
|
|
56
|
+
|
|
57
|
+
- Bug description/title
|
|
58
|
+
- Reproduction steps
|
|
59
|
+
- Error logs/stack trace
|
|
60
|
+
- Expected vs actual behavior
|
|
61
|
+
- Affected code location
|
|
62
|
+
- User impact assessment
|
|
63
|
+
|
|
64
|
+
## Expected Output
|
|
65
|
+
|
|
66
|
+
- ✓ Root cause identified
|
|
67
|
+
- ✓ Bug is fixed
|
|
68
|
+
- ✓ New test prevents regression
|
|
69
|
+
- ✓ No test breakage
|
|
70
|
+
- ✓ Code follows patterns
|
|
71
|
+
|
|
72
|
+
## Quality Gates
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Verification:
|
|
76
|
+
✓ Can reproduce bug
|
|
77
|
+
✓ Fix resolves issue
|
|
78
|
+
✓ Error is gone
|
|
79
|
+
✓ Behavior matches expected
|
|
80
|
+
|
|
81
|
+
Testing:
|
|
82
|
+
✓ New test fails without fix
|
|
83
|
+
✓ New test passes with fix
|
|
84
|
+
✓ All existing tests pass
|
|
85
|
+
✓ No regressions
|
|
86
|
+
|
|
87
|
+
Code Quality:
|
|
88
|
+
✓ Minimal changes
|
|
89
|
+
✓ Follows patterns
|
|
90
|
+
✓ No new issues
|
|
91
|
+
✓ Clear logic
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Example Usage
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
Fix payment processing timeout issue
|
|
98
|
+
|
|
99
|
+
## Bug Description
|
|
100
|
+
Payments timeout after 5 seconds, failing even for valid cards
|
|
101
|
+
|
|
102
|
+
## Reproduction Steps
|
|
103
|
+
1. Go to checkout
|
|
104
|
+
2. Add test card
|
|
105
|
+
3. Click "Process Payment"
|
|
106
|
+
4. Wait > 5 seconds
|
|
107
|
+
5. Timeout error appears
|
|
108
|
+
|
|
109
|
+
Expected: Payment processes (usually < 3 seconds)
|
|
110
|
+
Actual: Always times out after 5 seconds
|
|
111
|
+
|
|
112
|
+
## Affected Code
|
|
113
|
+
File: src/services/payment.ts
|
|
114
|
+
Line: 45-60
|
|
115
|
+
Methods: processPayment(), callGateway()
|
|
116
|
+
|
|
117
|
+
## Root Cause
|
|
118
|
+
Payment gateway timeout set to 5 seconds but API calls average 4+ seconds
|
|
119
|
+
|
|
120
|
+
## Expected Fix
|
|
121
|
+
Increase timeout to 10 seconds with proper error handling
|
|
122
|
+
|
|
123
|
+
## Testing
|
|
124
|
+
Test case: Payment with slow network
|
|
125
|
+
Verification: Payment completes within 10 seconds
|
|
126
|
+
Regression risk: Timeouts on truly broken connections
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Tips
|
|
130
|
+
|
|
131
|
+
- Include all reproduction details
|
|
132
|
+
- Show error messages exactly
|
|
133
|
+
- Provide test cases
|
|
134
|
+
- State expected behavior clearly
|
|
135
|
+
- Consider edge cases
|
|
136
|
+
- Think about similar issues
|