AgentSkillsCN

go-live-planning

制定全面的上线计划,用于将应用程序部署至生产环境。适用于以下场景: - 用户希望规划应用的发布、部署或上线; - 用户提及“生产”、“发布”、“部署至 prod”或“上线”; - 用户希望向 App Store 或 Play Store 提交应用; - 用户需要配置 DNS、域名或基础设施; - 用户希望仅通过着陆页进行软启动。 本技能涵盖:iOS App Store 提交、Google Play Store 提交、Heroku 部署、PostgreSQL 设置、Cloudflare DNS 配置、R2 存储、Firebase 生产环境设置、软启动策略以及分阶段发布。

SKILL.md
--- frontmatter
name: go-live-planning
description: |
  Create a comprehensive go-live plan for deploying applications to production. Use this skill when:
  - User asks to plan a launch, deployment, or go-live
  - User mentions "production", "release", "deploy to prod", or "launch"
  - User wants to submit apps to App Store or Play Store
  - User needs to configure DNS, domains, or infrastructure
  - User wants a soft launch with landing page only
  
  This skill covers: iOS App Store submission, Google Play Store submission, Heroku deployment,
  PostgreSQL setup, Cloudflare DNS configuration, R2 storage, Firebase production setup,
  soft launch strategies, and staged rollouts.

Go-Live Planning Skill

You are a DevOps engineer and release manager. Create a comprehensive go-live plan for deploying this application to production.

Quick Start

When invoked, follow these steps:

  1. Understand the deployment scope - What needs to go live (mobile apps, web app, backend, database)
  2. Identify soft launch requirements - Landing page only? Credentials for restricted areas?
  3. Load relevant checklists - Read from references/ based on deployment targets
  4. Generate phased plan - Create timeline with dependencies and owners
  5. Output actionable checklist - Specific tasks with verification steps

Tech Stack Context

This skill is configured for:

  • Mobile: React Native (iOS + Android)
  • Backend: Node.js/Express on Heroku
  • Database: PostgreSQL via Prisma on Heroku
  • Auth: Firebase Authentication
  • Storage: Cloudflare R2
  • Payments: Stripe + RevenueCat
  • DNS/CDN: Cloudflare (domain registrar + DNS + CDN)

Deployment Components

ComponentReference
iOS App Store submissionreferences/ios-submission.md
Google Play Store submissionreferences/android-submission.md
Heroku backend + web appreferences/heroku-deployment.md
Cloudflare DNS + R2references/cloudflare-setup.md
Database migrationsreferences/database-go-live.md
Soft launch strategyreferences/soft-launch.md

Soft Launch Strategy

For a soft launch where only the landing page is live:

Web App Soft Launch Options

  1. Route-based protection - Landing page public, app routes behind auth/credentials
  2. Feature flags - Behavioral portal disabled via environment variable
  3. Separate deployments - Landing page as static site, app as separate Heroku app
  4. Basic auth middleware - Password protect /app/* routes

Implementation Pattern

typescript
// Soft launch middleware example
const softLaunchProtection = (req, res, next) => {
  const publicPaths = ['/', '/landing', '/about', '/privacy', '/terms'];
  
  if (publicPaths.some(path => req.path.startsWith(path))) {
    return next(); // Public routes
  }
  
  // Protected routes require credentials or feature flag
  if (process.env.SOFT_LAUNCH_MODE === 'true') {
    // Basic auth or redirect to "coming soon"
    return res.redirect('/coming-soon');
  }
  
  next();
};

Output Format

Generate a go-live plan with the following structure:

1. Pre-Launch Checklist

T-14 Days (2 weeks before)

  • Task with owner and verification step

T-7 Days (1 week before)

  • Task with owner and verification step

T-1 Day (day before)

  • Task with owner and verification step

2. Launch Day Runbook

TimeActionOwnerVerification
09:00Step 1NameHow to verify

3. Post-Launch Checklist

  • Monitoring setup and alerting
  • Smoke tests passed
  • Rollback plan verified

4. Rollback Plan

Steps to revert if critical issues found.

References

For detailed checklists, see:

  • references/ios-submission.md - App Store Connect setup and submission
  • references/android-submission.md - Google Play Console setup and submission
  • references/heroku-deployment.md - Production Heroku configuration
  • references/cloudflare-setup.md - DNS, SSL, R2, security settings
  • references/database-go-live.md - PostgreSQL production checklist
  • references/soft-launch.md - Staged rollout and feature gating