Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
dev-swarm-stage-deployment【部署与运维】Deploy to production, configure infrastructure, set up monitoring, and prepare for launch. Use when starting stage 11 (deployment) or when user asks to deploy, go-live, or launch the product.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Deploy the fully developed and tested product to production environment, configure production infrastructure, set up monitoring and alerting, and prepare for launch including documentation and marketing readiness.
See dev-swarm/docs/general-dev-stage-rule.md for role selection guidance.
See dev-swarm/docs/general-dev-stage-rule.md for the required role announcement format.
Before starting, verify previous stages:
00-init-ideas/ through 10-sprints/ have content (not just .gitkeep)SKIP.md:
Read all files to understand the project:
ideas.md00-init-ideas/*.md through 10-sprints/*.md - All markdown files09-devops/execution-plan.md to identify any Part 2 items (deferred to Stage 11) that need to be executed before deployment{SRC}/ as the default source code root if not specified in project documentationGeneral Rules: See dev-swarm/docs/general-dev-stage-rule.md → "Create Stage Proposal Rules" section.
If this stage is skipped (has SKIP.md), execute the next non-skipped stage's agent skill. Otherwise, create the file 11-deployment/README.md with the following content:
Brief the goal in 2-3 paragraphs:
Check 09-devops/execution-plan.md Part 2 and list items that were deferred:
Select files from these options based on project needs:
Deployment Planning:
deployment-plan.md - Detailed deployment plan including sequence, dependencies, and timelineproduction-config.md - Production environment configuration (environment variables, feature flags)deployment-diagram/ - Deployment architecture and flow diagrams (follow dev-swarm/docs/mermaid-diagram-guide.md)execution-plan.md - Checklist of deployment tasks with pre-deployment and post-deployment sectionsCloud Infrastructure (Production):
aws-production-setup.md - AWS production setup (EC2, RDS, S3, CloudFront, etc.)runpod-production-setup.md - RunPod GPU production setup (if applicable)ssl-certificate-setup.md - SSL/TLS certificate setup and renewal strategydomain-dns-setup.md - Domain registration and DNS configurationOperations & Reliability:
monitoring-alerting.md - Production monitoring, alerting rules, and on-call proceduresbackup-strategy.md - Backup schedules, retention policies, and disaster recovery planrollback-plan.md - Rollback procedures for failed deploymentssecurity-hardening.md - Production security measures and hardening checklistperformance-optimization.md - Performance tuning and optimization guideVerification & Quality:
post-deployment-verification.md - Smoke tests, health checks, and verification proceduresgo-live-checklist.md - Final checklist before going liveDocumentation:
user-documentation.md - End-user documentation and help guidesadmin-documentation.md - Admin/ops documentation for system managementapi-documentation.md - Public API documentation (if applicable)Launch & Marketing:
marketing-readiness.md - Marketing materials checklist (landing page, screenshots, copy)launch-announcement.md - Launch communication plan (social media, press release, email)Mobile App Store Release (if applicable):
app-store-release.md - Apple App Store submission processgoogle-play-release.md - Google Play Store submission processmobile-release-checklist.md - Pre-submission checklistFor each selected file, provide:
Note: Not all files may be necessary. Select based on project complexity and launch requirements.
Ask user: "Please check the Stage Proposal in 11-deployment/README.md. Update it directly or tell me how to update it."
Once user approves 11-deployment/README.md:
Create each file listed in the approved README:
.md files: Write comprehensive, well-structured documentation with step-by-step instructionsdev-swarm/docs/mermaid-diagram-guide.md to create related diagrams filesQuality Guidelines:
10-sprints/{SRC}/ directory (default) or as specified in project setup.gitignore file to exclude unnecessary files (logs, build artifacts, secrets, node_modules, etc.) from commitsAfter creating all files:
Once user approves all files:
11-deployment/README.md to remove any deleted filesInform user:
Create 11-deployment/execution-plan.md with deployment tasks organized into these sections:
Part 1: Pre-Deployment (Infrastructure from Stage 09)
Items deferred from 09-devops/execution-plan.md Part 2
Part 2: Deployment Execution
{SRC}/ directory by default, ensure .gitignore excludes unnecessary files)Part 3: Post-Deployment Verification
Part 4: Go-Live Activities
Part 5: Mobile App Store Release (if applicable)
For each item, include:
Ask user: "Please review the deployment execution plan. Confirm which items to execute and provide any required credentials."
Once user approves, execute in order with checkpoints after each part:
Execution Guidelines:
After deployment:
Once user confirms deployment is successful:
Inform user:
See dev-swarm/docs/general-dev-stage-rule.md for stage completion, commit, and skip rules.