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,171 @@
|
|
|
1
|
+
# deploy-prod Command
|
|
2
|
+
|
|
3
|
+
**Purpose:** Deploy to production environment with safety checks
|
|
4
|
+
**Usage:** `npm run deploy:prod`
|
|
5
|
+
**Trigger:** Release to users
|
|
6
|
+
|
|
7
|
+
## CRITICAL: Safety Protocol
|
|
8
|
+
|
|
9
|
+
⚠️ This command deploys to PRODUCTION
|
|
10
|
+
⚠️ Requires explicit confirmation
|
|
11
|
+
⚠️ Only run when you're certain
|
|
12
|
+
⚠️ Have rollback plan ready
|
|
13
|
+
|
|
14
|
+
## Pre-deployment Requirements
|
|
15
|
+
|
|
16
|
+
✓ Tested in staging
|
|
17
|
+
✓ QA approved
|
|
18
|
+
✓ All tests passing
|
|
19
|
+
✓ On main/master branch
|
|
20
|
+
✓ Branch up to date
|
|
21
|
+
✓ No uncommitted changes
|
|
22
|
+
|
|
23
|
+
## Safety Checks
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
✓ Validate all checks pass
|
|
27
|
+
✓ Check branch is main
|
|
28
|
+
✓ Verify no uncommitted changes
|
|
29
|
+
✓ Confirm no behind remote
|
|
30
|
+
✓ Build artifacts recent
|
|
31
|
+
✓ Database migrations ready
|
|
32
|
+
✓ Health checks configured
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Deployment Confirmations
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Confirm 1: Type 'DEPLOY TO PRODUCTION'
|
|
39
|
+
Confirm 2: Type 'yes' to confirm again
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Deployment Process
|
|
43
|
+
|
|
44
|
+
1. Final validation
|
|
45
|
+
2. Confirmation (typed)
|
|
46
|
+
3. Build compilation
|
|
47
|
+
4. Set PRODUCTION environment
|
|
48
|
+
5. Deploy to production
|
|
49
|
+
6. Run migrations
|
|
50
|
+
7. Health checks
|
|
51
|
+
8. Monitor for errors
|
|
52
|
+
|
|
53
|
+
## Success Criteria
|
|
54
|
+
|
|
55
|
+
✓ Build succeeds
|
|
56
|
+
✓ Health check passes
|
|
57
|
+
✓ No error spikes
|
|
58
|
+
✓ API responds
|
|
59
|
+
✓ Database queries work
|
|
60
|
+
|
|
61
|
+
## What Gets Deployed
|
|
62
|
+
|
|
63
|
+
- Compiled code
|
|
64
|
+
- Static assets
|
|
65
|
+
- Database migrations
|
|
66
|
+
- Configuration
|
|
67
|
+
- Environment variables
|
|
68
|
+
|
|
69
|
+
## Health Verification
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Check 1: Service available
|
|
73
|
+
Check 2: Database connected
|
|
74
|
+
Check 3: Cache working
|
|
75
|
+
Check 4: External APIs responding
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Failure Handling
|
|
79
|
+
|
|
80
|
+
| Failure | Action |
|
|
81
|
+
|---|---|
|
|
82
|
+
| Pre-deploy check fails | Stop, fix, retry |
|
|
83
|
+
| Build fails | Fix code, rebuild, retry |
|
|
84
|
+
| Migration fails | Investigate, rollback |
|
|
85
|
+
| Health check fails | Investigate, rollback |
|
|
86
|
+
| Error spike | Monitor, rollback if needed |
|
|
87
|
+
|
|
88
|
+
## Monitoring Post-deployment
|
|
89
|
+
|
|
90
|
+
After deploying:
|
|
91
|
+
1. **Immediately:**
|
|
92
|
+
- Check error logs
|
|
93
|
+
- Monitor health endpoint
|
|
94
|
+
- Watch error rate
|
|
95
|
+
|
|
96
|
+
2. **5 minutes:**
|
|
97
|
+
- Check performance
|
|
98
|
+
- Verify features work
|
|
99
|
+
- Monitor database
|
|
100
|
+
|
|
101
|
+
3. **30 minutes:**
|
|
102
|
+
- Check error patterns
|
|
103
|
+
- Verify metrics
|
|
104
|
+
- Review customer reports
|
|
105
|
+
|
|
106
|
+
## Emergency Rollback
|
|
107
|
+
|
|
108
|
+
If critical issues:
|
|
109
|
+
```bash
|
|
110
|
+
npm run rollback
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Restores previous version immediately.
|
|
114
|
+
|
|
115
|
+
## Communication
|
|
116
|
+
|
|
117
|
+
- Notify team before deploy
|
|
118
|
+
- Announce in #deployments
|
|
119
|
+
- Update status page
|
|
120
|
+
- Document any issues
|
|
121
|
+
- Post-mortem if problems
|
|
122
|
+
|
|
123
|
+
## Release Notes
|
|
124
|
+
|
|
125
|
+
What to include:
|
|
126
|
+
- Features added
|
|
127
|
+
- Bugs fixed
|
|
128
|
+
- Breaking changes
|
|
129
|
+
- Database migrations
|
|
130
|
+
- New dependencies
|
|
131
|
+
|
|
132
|
+
## Database Considerations
|
|
133
|
+
|
|
134
|
+
- Migrations run first
|
|
135
|
+
- Data backups created
|
|
136
|
+
- Rollback tested
|
|
137
|
+
- No data loss expected
|
|
138
|
+
|
|
139
|
+
## Deployment Schedule
|
|
140
|
+
|
|
141
|
+
Best times:
|
|
142
|
+
- Weekday mornings
|
|
143
|
+
- Off-peak hours
|
|
144
|
+
- Never Friday afternoon
|
|
145
|
+
- Never before weekend
|
|
146
|
+
- Time for monitoring
|
|
147
|
+
|
|
148
|
+
## Related Commands
|
|
149
|
+
|
|
150
|
+
- `deploy-staging` - Staging deployment
|
|
151
|
+
- `rollback` - Emergency rollback
|
|
152
|
+
- `release` - Release automation
|
|
153
|
+
|
|
154
|
+
## Post-deployment Checklist
|
|
155
|
+
|
|
156
|
+
- [ ] Health checks passing
|
|
157
|
+
- [ ] No error spike
|
|
158
|
+
- [ ] Features working
|
|
159
|
+
- [ ] Performance normal
|
|
160
|
+
- [ ] Database responsive
|
|
161
|
+
- [ ] Team notified
|
|
162
|
+
- [ ] Monitoring active
|
|
163
|
+
|
|
164
|
+
## Notes
|
|
165
|
+
|
|
166
|
+
- Production is high stakes
|
|
167
|
+
- Take your time
|
|
168
|
+
- Double-check everything
|
|
169
|
+
- Have team available
|
|
170
|
+
- Monitor closely
|
|
171
|
+
- Be ready to rollback
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# deploy-staging Command
|
|
2
|
+
|
|
3
|
+
**Purpose:** Deploy to staging environment
|
|
4
|
+
**Usage:** `npm run deploy:staging`
|
|
5
|
+
**Trigger:** Test deployment before production
|
|
6
|
+
|
|
7
|
+
## Description
|
|
8
|
+
|
|
9
|
+
Deploys code to staging environment for testing before production release.
|
|
10
|
+
|
|
11
|
+
## Deployment Process
|
|
12
|
+
|
|
13
|
+
1. Validate all checks pass
|
|
14
|
+
2. Confirm deployment
|
|
15
|
+
3. Build artifacts
|
|
16
|
+
4. Set environment (STAGING)
|
|
17
|
+
5. Deploy to staging
|
|
18
|
+
6. Run migrations (if needed)
|
|
19
|
+
7. Verify health checks
|
|
20
|
+
|
|
21
|
+
## Pre-deployment
|
|
22
|
+
|
|
23
|
+
✓ Code committed
|
|
24
|
+
✓ Tests passing
|
|
25
|
+
✓ Lint passing
|
|
26
|
+
✓ Build successful
|
|
27
|
+
|
|
28
|
+
## Staging Environment
|
|
29
|
+
|
|
30
|
+
- **Purpose:** Production-like testing
|
|
31
|
+
- **Data:** Copy of prod (or test data)
|
|
32
|
+
- **URL:** https://staging.example.com
|
|
33
|
+
- **Reset:** Safe to reset
|
|
34
|
+
|
|
35
|
+
## Deployment Targets
|
|
36
|
+
|
|
37
|
+
| Platform | Method |
|
|
38
|
+
|---|---|
|
|
39
|
+
| Vercel | Auto-deploy on push |
|
|
40
|
+
| Heroku | `git push heroku-staging` |
|
|
41
|
+
| AWS | S3 sync, CloudFormation |
|
|
42
|
+
| Docker | Build and push image |
|
|
43
|
+
|
|
44
|
+
## Process Steps
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
1. Validate code quality
|
|
48
|
+
↓
|
|
49
|
+
2. Build artifacts
|
|
50
|
+
↓
|
|
51
|
+
3. Deploy to staging
|
|
52
|
+
↓
|
|
53
|
+
4. Run migrations
|
|
54
|
+
↓
|
|
55
|
+
5. Smoke tests
|
|
56
|
+
↓
|
|
57
|
+
6. Health checks
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Success Criteria
|
|
61
|
+
|
|
62
|
+
✓ Deployment succeeds
|
|
63
|
+
✓ Health check passes
|
|
64
|
+
✓ No errors in logs
|
|
65
|
+
✓ App responds correctly
|
|
66
|
+
|
|
67
|
+
## Failure Recovery
|
|
68
|
+
|
|
69
|
+
| Failure | Action |
|
|
70
|
+
|---|---|
|
|
71
|
+
| Validation fails | Fix issues, retry |
|
|
72
|
+
| Deployment fails | Check logs, debug |
|
|
73
|
+
| Migration fails | Rollback, fix, retry |
|
|
74
|
+
| Health check fails | Investigate, rollback |
|
|
75
|
+
|
|
76
|
+
## Testing in Staging
|
|
77
|
+
|
|
78
|
+
After deployment:
|
|
79
|
+
1. Verify app loads
|
|
80
|
+
2. Test main features
|
|
81
|
+
3. Check API endpoints
|
|
82
|
+
4. Review logs
|
|
83
|
+
5. Monitor performance
|
|
84
|
+
|
|
85
|
+
## Database Management
|
|
86
|
+
|
|
87
|
+
- **Migrations run:** Automatically
|
|
88
|
+
- **Data reset:** Manual if needed
|
|
89
|
+
- **Backup:** Before major changes
|
|
90
|
+
- **Seed data:** Load test data
|
|
91
|
+
|
|
92
|
+
## Environment Variables
|
|
93
|
+
|
|
94
|
+
All staging secrets in:
|
|
95
|
+
- `.env.staging`
|
|
96
|
+
- Environment configuration
|
|
97
|
+
- Secrets manager
|
|
98
|
+
|
|
99
|
+
## Monitoring
|
|
100
|
+
|
|
101
|
+
After deployment:
|
|
102
|
+
- Check error logs
|
|
103
|
+
- Monitor response times
|
|
104
|
+
- Verify database queries
|
|
105
|
+
- Check memory usage
|
|
106
|
+
|
|
107
|
+
## Related Commands
|
|
108
|
+
|
|
109
|
+
- `validate` - Pre-deployment checks
|
|
110
|
+
- `build` - Build artifacts
|
|
111
|
+
- `migrate` - Database migrations
|
|
112
|
+
- `deploy-prod` - Production deploy
|
|
113
|
+
|
|
114
|
+
## Rolling Back
|
|
115
|
+
|
|
116
|
+
If issues in staging:
|
|
117
|
+
```bash
|
|
118
|
+
# Rollback to previous version
|
|
119
|
+
npm run rollback
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Logs and Debugging
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# View staging logs
|
|
126
|
+
heroku logs -a staging-app
|
|
127
|
+
|
|
128
|
+
# Check health
|
|
129
|
+
curl https://staging.example.com/health
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Approval Process
|
|
133
|
+
|
|
134
|
+
Typically:
|
|
135
|
+
1. Deploy to staging
|
|
136
|
+
2. Team reviews
|
|
137
|
+
3. QA tests
|
|
138
|
+
4. Approve for production
|
|
139
|
+
5. Deploy to production
|
|
140
|
+
|
|
141
|
+
## Notes
|
|
142
|
+
|
|
143
|
+
- Staging should mirror production
|
|
144
|
+
- Test real scenarios in staging
|
|
145
|
+
- Fix issues in staging
|
|
146
|
+
- Never skip staging
|
|
147
|
+
- Monitor staging after deploy
|
package/commands/deps.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# deps Command
|
|
2
|
+
|
|
3
|
+
**Purpose:** Check and update dependencies
|
|
4
|
+
**Usage:** `npm run deps` or `npm outdated`
|
|
5
|
+
**Trigger:** Regular maintenance, security updates
|
|
6
|
+
|
|
7
|
+
## Description
|
|
8
|
+
|
|
9
|
+
Audits dependencies for updates and vulnerabilities, with options to update.
|
|
10
|
+
|
|
11
|
+
## Package Managers
|
|
12
|
+
|
|
13
|
+
| Language | Command |
|
|
14
|
+
|---|---|
|
|
15
|
+
| Node.js | npm outdated, npm audit |
|
|
16
|
+
| Python | pip list --outdated |
|
|
17
|
+
| Go | go list -m -u all |
|
|
18
|
+
| Ruby | bundle outdated |
|
|
19
|
+
|
|
20
|
+
## Checks Performed
|
|
21
|
+
|
|
22
|
+
- **Outdated packages** - New versions available
|
|
23
|
+
- **Security vulnerabilities** - Known exploits
|
|
24
|
+
- **Deprecated packages** - No longer maintained
|
|
25
|
+
- **License conflicts** - Incompatible licenses
|
|
26
|
+
|
|
27
|
+
## Success Criteria
|
|
28
|
+
|
|
29
|
+
✓ No critical vulnerabilities
|
|
30
|
+
✓ Dependencies current
|
|
31
|
+
✓ No deprecated packages
|
|
32
|
+
✓ Licenses compatible
|
|
33
|
+
|
|
34
|
+
## Running Dependency Check
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Check for updates
|
|
38
|
+
npm outdated
|
|
39
|
+
|
|
40
|
+
# Security audit
|
|
41
|
+
npm audit
|
|
42
|
+
|
|
43
|
+
# Update check
|
|
44
|
+
npm run deps
|
|
45
|
+
|
|
46
|
+
# Update packages
|
|
47
|
+
UPDATE=true npm run deps
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Update Strategies
|
|
51
|
+
|
|
52
|
+
### Minor Updates (Safe)
|
|
53
|
+
```bash
|
|
54
|
+
npm update
|
|
55
|
+
```
|
|
56
|
+
- Bug fixes only
|
|
57
|
+
- Backward compatible
|
|
58
|
+
- Safe to do regularly
|
|
59
|
+
|
|
60
|
+
### Major Updates (Risky)
|
|
61
|
+
```bash
|
|
62
|
+
npm install package@latest
|
|
63
|
+
```
|
|
64
|
+
- Breaking changes possible
|
|
65
|
+
- May require code changes
|
|
66
|
+
- Test thoroughly
|
|
67
|
+
|
|
68
|
+
## Severity Levels
|
|
69
|
+
|
|
70
|
+
| Level | Action |
|
|
71
|
+
|---|---|
|
|
72
|
+
| Critical | Update immediately |
|
|
73
|
+
| High | Update soon |
|
|
74
|
+
| Moderate | Plan update |
|
|
75
|
+
| Low | Document, don't rush |
|
|
76
|
+
|
|
77
|
+
## Output Example
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Package Current Wanted Latest
|
|
81
|
+
express 4.17.1 4.18.2 4.18.2
|
|
82
|
+
lodash 4.17.19 4.17.21 4.17.21
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Security Audit
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
npm audit
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Fixes vulnerabilities:
|
|
92
|
+
```bash
|
|
93
|
+
npm audit fix
|
|
94
|
+
npm audit fix --force # Major version bumps
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Update Process
|
|
98
|
+
|
|
99
|
+
1. Check what's outdated: `npm outdated`
|
|
100
|
+
2. Review breaking changes
|
|
101
|
+
3. Update: `npm update` or `npm install package@latest`
|
|
102
|
+
4. Run tests: `npm test`
|
|
103
|
+
5. Verify in dev: `npm run dev`
|
|
104
|
+
6. Commit updates
|
|
105
|
+
|
|
106
|
+
## Python Dependency Updates
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Check updates
|
|
110
|
+
pip list --outdated
|
|
111
|
+
|
|
112
|
+
# Upgrade package
|
|
113
|
+
pip install --upgrade package
|
|
114
|
+
|
|
115
|
+
# Update requirements.txt
|
|
116
|
+
pip freeze > requirements.txt
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Go Dependencies
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Check updates
|
|
123
|
+
go list -m -u all
|
|
124
|
+
|
|
125
|
+
# Update module
|
|
126
|
+
go get -u module
|
|
127
|
+
go mod tidy
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## npm Audit Fixes
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Automatic fixes
|
|
134
|
+
npm audit fix
|
|
135
|
+
|
|
136
|
+
# Review before fixing
|
|
137
|
+
npm audit --json
|
|
138
|
+
|
|
139
|
+
# Force major version updates
|
|
140
|
+
npm audit fix --force
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Maintenance Schedule
|
|
144
|
+
|
|
145
|
+
- **Weekly:** Check for security updates
|
|
146
|
+
- **Monthly:** Check for updates
|
|
147
|
+
- **Quarterly:** Plan major version upgrades
|
|
148
|
+
|
|
149
|
+
## Related Commands
|
|
150
|
+
|
|
151
|
+
- `test` - Verify updates work
|
|
152
|
+
- `validate` - Check compatibility
|
|
153
|
+
- `build` - Test production build
|
|
154
|
+
|
|
155
|
+
## Risk Management
|
|
156
|
+
|
|
157
|
+
✓ Update dev dependencies first
|
|
158
|
+
✓ Test after updates
|
|
159
|
+
✓ Update incrementally
|
|
160
|
+
✓ Keep main dependencies current
|
|
161
|
+
✓ Document breaking changes
|
|
162
|
+
|
|
163
|
+
## Notes
|
|
164
|
+
|
|
165
|
+
- Always test after updating
|
|
166
|
+
- Pin versions in production
|
|
167
|
+
- Major updates need careful planning
|
|
168
|
+
- Security updates should be prioritized
|
|
169
|
+
- Keep dependencies lean
|
package/commands/dev.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# dev Command
|
|
2
|
+
|
|
3
|
+
**Purpose:** Start development server with hot reload and debugging
|
|
4
|
+
**Usage:** `npm run dev`
|
|
5
|
+
**Trigger:** Start local development
|
|
6
|
+
|
|
7
|
+
## Description
|
|
8
|
+
|
|
9
|
+
Starts development server with automatic reload on file changes, debugging enabled, and dev tools active.
|
|
10
|
+
|
|
11
|
+
## What It Does
|
|
12
|
+
|
|
13
|
+
1. Check dependencies are installed
|
|
14
|
+
2. Load `.env` configuration
|
|
15
|
+
3. Start development server
|
|
16
|
+
4. Watch files for changes
|
|
17
|
+
5. Hot reload on file modification
|
|
18
|
+
6. Show debug logs
|
|
19
|
+
|
|
20
|
+
## Server Details
|
|
21
|
+
|
|
22
|
+
- **Default URL:** http://localhost:3000
|
|
23
|
+
- **Hot reload:** Enabled
|
|
24
|
+
- **Source maps:** Enabled
|
|
25
|
+
- **Debugging:** Chrome DevTools
|
|
26
|
+
- **API:** http://localhost:3000/api
|
|
27
|
+
|
|
28
|
+
## Prerequisites
|
|
29
|
+
|
|
30
|
+
- Setup completed (`npm run setup`)
|
|
31
|
+
- `.env` file configured
|
|
32
|
+
- Dependencies installed
|
|
33
|
+
- Port 3000 available
|
|
34
|
+
|
|
35
|
+
## Configuration
|
|
36
|
+
|
|
37
|
+
Set in `.env`:
|
|
38
|
+
- `PORT=3000` - Server port
|
|
39
|
+
- `NODE_ENV=development` - Environment
|
|
40
|
+
- `DEBUG=app:*` - Debug namespaces
|
|
41
|
+
- `DATABASE_URL` - Database connection
|
|
42
|
+
|
|
43
|
+
## Success Criteria
|
|
44
|
+
|
|
45
|
+
✓ Server starts on port 3000
|
|
46
|
+
✓ Files watched for changes
|
|
47
|
+
✓ Hot reload working
|
|
48
|
+
✓ Logs showing requests
|
|
49
|
+
✓ No errors in console
|
|
50
|
+
|
|
51
|
+
## Usage Examples
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Start server
|
|
55
|
+
npm run dev
|
|
56
|
+
|
|
57
|
+
# Start on different port
|
|
58
|
+
PORT=3001 npm run dev
|
|
59
|
+
|
|
60
|
+
# With verbose logging
|
|
61
|
+
DEBUG=* npm run dev
|
|
62
|
+
|
|
63
|
+
# With debugging
|
|
64
|
+
node --inspect-brk [entry-file]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Browser Access
|
|
68
|
+
|
|
69
|
+
1. Open http://localhost:3000
|
|
70
|
+
2. DevTools auto-opens (if Chrome)
|
|
71
|
+
3. Sources tab shows source maps
|
|
72
|
+
4. Breakpoints work normally
|
|
73
|
+
5. Console shows logs
|
|
74
|
+
|
|
75
|
+
## Hot Reload
|
|
76
|
+
|
|
77
|
+
Changes to these files trigger reload:
|
|
78
|
+
- `.js/.ts` files
|
|
79
|
+
- `.css/.scss` files
|
|
80
|
+
- `.html` files
|
|
81
|
+
- Config files (requires restart)
|
|
82
|
+
|
|
83
|
+
## Debugging
|
|
84
|
+
|
|
85
|
+
### Chrome DevTools
|
|
86
|
+
1. Press F12 in browser
|
|
87
|
+
2. Go to Sources tab
|
|
88
|
+
3. Find file in left panel
|
|
89
|
+
4. Click to set breakpoints
|
|
90
|
+
5. Refresh page
|
|
91
|
+
|
|
92
|
+
### VS Code
|
|
93
|
+
1. Open `.vscode/launch.json`
|
|
94
|
+
2. Run "Debug" from Run menu
|
|
95
|
+
3. Breakpoints work in editor
|
|
96
|
+
|
|
97
|
+
## Stopping Server
|
|
98
|
+
|
|
99
|
+
- **Mac/Linux:** Ctrl+C
|
|
100
|
+
- **Windows:** Ctrl+C
|
|
101
|
+
- Process cleanup: Automatic
|
|
102
|
+
|
|
103
|
+
## Common Issues
|
|
104
|
+
|
|
105
|
+
| Issue | Solution |
|
|
106
|
+
|---|---|
|
|
107
|
+
| Port 3000 in use | Change PORT in .env |
|
|
108
|
+
| Module not found | Run npm install |
|
|
109
|
+
| .env missing | Copy .env.example to .env |
|
|
110
|
+
| Hot reload not working | Restart server |
|
|
111
|
+
|
|
112
|
+
## Performance Tips
|
|
113
|
+
|
|
114
|
+
- Start on needed changes only
|
|
115
|
+
- Use Chrome DevTools Performance tab
|
|
116
|
+
- Profile with `--inspect` flag
|
|
117
|
+
- Check Network tab for slow requests
|
|
118
|
+
|
|
119
|
+
## Related Commands
|
|
120
|
+
|
|
121
|
+
- `setup` - Initial setup
|
|
122
|
+
- `build` - Production build
|
|
123
|
+
- `test` - Run tests
|
|
124
|
+
- `lint` - Code quality
|
|
125
|
+
|
|
126
|
+
## Notes
|
|
127
|
+
|
|
128
|
+
- Development server is NOT production-ready
|
|
129
|
+
- Never use dev server in production
|
|
130
|
+
- Hot reload may lose state
|
|
131
|
+
- Source maps slower than production
|
|
132
|
+
- CPU usage higher in dev mode
|