jpskill.com
🛠️ 開発・MCP コミュニティ

shipping-and-launch

本番環境へのリリース準備として、事前チェックリストの作成、監視体制の構築、段階的な展開計画、そして万が一の際のロールバック戦略を支援するSkill。

📜 元の英語説明(参考)

Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

🇯🇵 日本人クリエイター向け解説

一言でいうと

本番環境へのリリース準備として、事前チェックリストの作成、監視体制の構築、段階的な展開計画、そして万が一の際のロールバック戦略を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o shipping-and-launch.zip https://jpskill.com/download/9589.zip && unzip -o shipping-and-launch.zip && rm shipping-and-launch.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9589.zip -OutFile "$d\shipping-and-launch.zip"; Expand-Archive "$d\shipping-and-launch.zip" -DestinationPath $d -Force; ri "$d\shipping-and-launch.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して shipping-and-launch.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → shipping-and-launch フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

配送とローンチ

概要

自信を持って配送しましょう。目標は単にデプロイすることではなく、監視体制を整え、ロールバック計画を用意し、成功がどのようなものかを明確に理解した上で、安全にデプロイすることです。すべてのローンチは、可逆的で、観察可能で、段階的であるべきです。

いつ使うか

  • 機能を初めて本番環境にデプロイするとき
  • ユーザーに重要な変更をリリースするとき
  • データまたはインフラストラクチャを移行するとき
  • ベータ版または早期アクセスプログラムを開始するとき
  • リスクを伴うすべてのデプロイ(すべてが該当します)

ローンチ前のチェックリスト

コード品質

  • [ ] すべてのテストに合格する(ユニット、統合、e2e)
  • [ ] ビルドが警告なしに成功する
  • [ ] リントと型チェックに合格する
  • [ ] コードがレビューされ、承認される
  • [ ] ローンチ前に解決すべき TODO コメントがない
  • [ ] 本番コードに console.log デバッグステートメントがない
  • [ ] エラー処理が予想される障害モードをカバーしている

セキュリティ

  • [ ] コードまたはバージョン管理にシークレットがない
  • [ ] npm audit で重大または高リスクの脆弱性が表示されない
  • [ ] すべてのユーザー向けエンドポイントで入力検証が行われている
  • [ ] 認証および認可チェックが適切に設定されている
  • [ ] セキュリティヘッダーが構成されている(CSP、HSTSなど)
  • [ ] 認証エンドポイントでレート制限が行われている
  • [ ] CORS が特定のオリジンに構成されている(ワイルドカードではない)

パフォーマンス

  • [ ] Core Web Vitals が「良好」の閾値内にある
  • [ ] クリティカルパスに N+1 クエリがない
  • [ ] 画像が最適化されている(圧縮、レスポンシブサイズ、遅延読み込み)
  • [ ] バンドルサイズが予算内である
  • [ ] データベースクエリに適切なインデックスがある
  • [ ] 静的アセットと繰り返されるクエリに対してキャッシュが構成されている

アクセシビリティ

  • [ ] すべてのインタラクティブ要素でキーボードナビゲーションが機能する
  • [ ] スクリーンリーダーがページコンテンツと構造を伝えることができる
  • [ ] 色のコントラストが WCAG 2.1 AA (テキストの場合 4.5:1) を満たしている
  • [ ] モーダルと動的コンテンツに対してフォーカスの管理が正しい
  • [ ] エラーメッセージが記述的で、フォームフィールドに関連付けられている
  • [ ] axe-core または Lighthouse にアクセシビリティの警告がない

インフラストラクチャ

  • [ ] 環境変数が本番環境で設定されている
  • [ ] データベースの移行が適用されている(または適用準備ができている)
  • [ ] DNS と SSL が構成されている
  • [ ] CDN が静的アセット用に構成されている
  • [ ] ロギングとエラーレポートが構成されている
  • [ ] ヘルスチェックエンドポイントが存在し、応答する

ドキュメント

  • [ ] README が新しいセットアップ要件で更新されている
  • [ ] API ドキュメントが最新である
  • [ ] すべてのアーキテクチャ上の決定について ADR が記述されている
  • [ ] 変更履歴が更新されている
  • [ ] ユーザー向けドキュメントが更新されている(該当する場合)

フィーチャーフラグ戦略

フィーチャーフラグの背後で配送し、デプロイとリリースを分離します。

// Feature flag check
const flags = await getFeatureFlags(userId);

if (flags.taskSharing) {
  // New feature: task sharing
  return <TaskSharingPanel task={task} />;
}

// Default: existing behavior
return null;

フィーチャーフラグのライフサイクル:

1. DEPLOY with flag OFF     → コードは本番環境にあるが非アクティブ
2. ENABLE for team/beta     → 本番環境での内部テスト
3. GRADUAL ROLLOUT          → 5% → 25% → 50% → 100% のユーザー
4. MONITOR at each stage    → エラー率、パフォーマンス、ユーザーフィードバックを監視
5. CLEAN UP                 → 完全なロールアウト後、フラグと不要なコードパスを削除

ルール:

  • すべてのフィーチャーフラグには、オーナーと有効期限がある
  • 完全なロールアウトから2週間以内にフラグをクリーンアップする
  • フィーチャーフラグをネストしない(組み合わせが指数関数的に増加する)
  • CI で両方のフラグの状態(オンとオフ)をテストする

段階的ロールアウト

ロールアウトシーケンス

1. DEPLOY to staging
   └── ステージング環境での完全なテストスイート
   └── クリティカルフローの手動スモークテスト

2. DEPLOY to production (feature flag OFF)
   └── デプロイが成功したことを確認する(ヘルスチェック)
   └── エラー監視を確認する(新しいエラーがない)

3. ENABLE for team (flag ON for internal users)
   └── チームが本番環境で機能を使用する
   └── 24時間の監視期間

4. CANARY rollout (flag ON for 5% of users)
   └── エラー率、レイテンシ、ユーザーの行動を監視する
   └── メトリクスを比較する:カナリア vs. ベースライン
   └── 24〜48時間の監視期間

5. GRADUAL increase (25% → 50% → 100%)
   └── 各ステップで同じ監視を行う
   └── 任意の時点で前のパーセンテージにロールバックする機能

6. FULL rollout (flag ON for all users)
   └── 1週間監視する
   └── フィーチャーフラグをクリーンアップする

ロールバックのタイミング

以下の場合、直ちにロールバックします。

  • エラー率がベースラインより2倍以上増加した場合
  • P95 レイテンシが50%以上増加した場合
  • ユーザーから報告された問題が急増した場合
  • データ整合性の問題が検出された場合
  • セキュリティの脆弱性が発見された場合

監視と可観測性

監視対象

Application metrics:
├── エラー率(合計およびエンドポイント別)
├── 応答時間(p50、p95、p99)
├── リクエストボリューム
├── アクティブユーザー
└── 主要なビジネスメトリクス(コンバージョン、エンゲージメント)

Infrastructure metrics:
├── CPU およびメモリ使用率
├── データベース接続プールの使用状況
├── ディスク容量
├── ネットワークレイテンシ
└── キューの深さ(該当する場合)

Client metrics:
├── Core Web Vitals (LCP, INP, CLS)
├── JavaScript エラー
├── クライアント視点からの API エラー率
└── ページロード時間

エラー報告

// Set up error boundary with reporting
class ErrorBoundary extends React.Component {
  componentDidCatch(error: Error, info: React.ErrorInfo) {
    // Report to error tracking service
    reportError(error, {
      componentStack: info.componentStack,
      userId: getCurrentUser()?.id,
      page: window.location.pathname,
    });
  }

  render() {
    if (this.state.hasError) {
      return <ErrorFallback onRetry={() => this.setState({ hasError: false })} />;
    }
    return this.props.children;
  }
}

// Server-side error reporting
app.use((err: Error, req: Request, res: Response, next: NextFunction) => {
  reportError(err, {
    method: req.method,
    url: req.url,
    userId: req.user?.id,
  });

  // Don't expose internals to users
  res.status(500).json({
    error: { code: 'INTERNAL_ERROR', message: 'Something went wrong' },
  });
});

ローンチ後の検証

最初の1時間後

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Shipping and Launch

Overview

Ship with confidence. The goal is not just to deploy — it's to deploy safely, with monitoring in place, a rollback plan ready, and a clear understanding of what success looks like. Every launch should be reversible, observable, and incremental.

When to Use

  • Deploying a feature to production for the first time
  • Releasing a significant change to users
  • Migrating data or infrastructure
  • Opening a beta or early access program
  • Any deployment that carries risk (all of them)

The Pre-Launch Checklist

Code Quality

  • [ ] All tests pass (unit, integration, e2e)
  • [ ] Build succeeds with no warnings
  • [ ] Lint and type checking pass
  • [ ] Code reviewed and approved
  • [ ] No TODO comments that should be resolved before launch
  • [ ] No console.log debugging statements in production code
  • [ ] Error handling covers expected failure modes

Security

  • [ ] No secrets in code or version control
  • [ ] npm audit shows no critical or high vulnerabilities
  • [ ] Input validation on all user-facing endpoints
  • [ ] Authentication and authorization checks in place
  • [ ] Security headers configured (CSP, HSTS, etc.)
  • [ ] Rate limiting on authentication endpoints
  • [ ] CORS configured to specific origins (not wildcard)

Performance

  • [ ] Core Web Vitals within "Good" thresholds
  • [ ] No N+1 queries in critical paths
  • [ ] Images optimized (compression, responsive sizes, lazy loading)
  • [ ] Bundle size within budget
  • [ ] Database queries have appropriate indexes
  • [ ] Caching configured for static assets and repeated queries

Accessibility

  • [ ] Keyboard navigation works for all interactive elements
  • [ ] Screen reader can convey page content and structure
  • [ ] Color contrast meets WCAG 2.1 AA (4.5:1 for text)
  • [ ] Focus management correct for modals and dynamic content
  • [ ] Error messages are descriptive and associated with form fields
  • [ ] No accessibility warnings in axe-core or Lighthouse

Infrastructure

  • [ ] Environment variables set in production
  • [ ] Database migrations applied (or ready to apply)
  • [ ] DNS and SSL configured
  • [ ] CDN configured for static assets
  • [ ] Logging and error reporting configured
  • [ ] Health check endpoint exists and responds

Documentation

  • [ ] README updated with any new setup requirements
  • [ ] API documentation current
  • [ ] ADRs written for any architectural decisions
  • [ ] Changelog updated
  • [ ] User-facing documentation updated (if applicable)

Feature Flag Strategy

Ship behind feature flags to decouple deployment from release:

// Feature flag check
const flags = await getFeatureFlags(userId);

if (flags.taskSharing) {
  // New feature: task sharing
  return <TaskSharingPanel task={task} />;
}

// Default: existing behavior
return null;

Feature flag lifecycle:

1. DEPLOY with flag OFF     → Code is in production but inactive
2. ENABLE for team/beta     → Internal testing in production environment
3. GRADUAL ROLLOUT          → 5% → 25% → 50% → 100% of users
4. MONITOR at each stage    → Watch error rates, performance, user feedback
5. CLEAN UP                 → Remove flag and dead code path after full rollout

Rules:

  • Every feature flag has an owner and an expiration date
  • Clean up flags within 2 weeks of full rollout
  • Don't nest feature flags (creates exponential combinations)
  • Test both flag states (on and off) in CI

Staged Rollout

The Rollout Sequence

1. DEPLOY to staging
   └── Full test suite in staging environment
   └── Manual smoke test of critical flows

2. DEPLOY to production (feature flag OFF)
   └── Verify deployment succeeded (health check)
   └── Check error monitoring (no new errors)

3. ENABLE for team (flag ON for internal users)
   └── Team uses the feature in production
   └── 24-hour monitoring window

4. CANARY rollout (flag ON for 5% of users)
   └── Monitor error rates, latency, user behavior
   └── Compare metrics: canary vs. baseline
   └── 24-48 hour monitoring window

5. GRADUAL increase (25% → 50% → 100%)
   └── Same monitoring at each step
   └── Ability to roll back to previous percentage at any point

6. FULL rollout (flag ON for all users)
   └── Monitor for 1 week
   └── Clean up feature flag

When to Roll Back

Roll back immediately if:

  • Error rate increases by more than 2x baseline
  • P95 latency increases by more than 50%
  • User-reported issues spike
  • Data integrity issues detected
  • Security vulnerability discovered

Monitoring and Observability

What to Monitor

Application metrics:
├── Error rate (total and by endpoint)
├── Response time (p50, p95, p99)
├── Request volume
├── Active users
└── Key business metrics (conversion, engagement)

Infrastructure metrics:
├── CPU and memory utilization
├── Database connection pool usage
├── Disk space
├── Network latency
└── Queue depth (if applicable)

Client metrics:
├── Core Web Vitals (LCP, INP, CLS)
├── JavaScript errors
├── API error rates from client perspective
└── Page load time

Error Reporting

// Set up error boundary with reporting
class ErrorBoundary extends React.Component {
  componentDidCatch(error: Error, info: React.ErrorInfo) {
    // Report to error tracking service
    reportError(error, {
      componentStack: info.componentStack,
      userId: getCurrentUser()?.id,
      page: window.location.pathname,
    });
  }

  render() {
    if (this.state.hasError) {
      return <ErrorFallback onRetry={() => this.setState({ hasError: false })} />;
    }
    return this.props.children;
  }
}

// Server-side error reporting
app.use((err: Error, req: Request, res: Response, next: NextFunction) => {
  reportError(err, {
    method: req.method,
    url: req.url,
    userId: req.user?.id,
  });

  // Don't expose internals to users
  res.status(500).json({
    error: { code: 'INTERNAL_ERROR', message: 'Something went wrong' },
  });
});

Post-Launch Verification

In the first hour after launch:

1. Check health endpoint returns 200
2. Check error monitoring dashboard (no new error types)
3. Check latency dashboard (no regression)
4. Test the critical user flow manually
5. Verify logs are flowing and readable
6. Confirm rollback mechanism works (dry run if possible)

Rollback Strategy

Every deployment needs a rollback plan before it happens:

## Rollback Plan for [Feature/Release]

### Trigger Conditions
- Error rate > 2x baseline
- P95 latency > [X]ms
- User reports of [specific issue]

### Rollback Steps
1. Disable feature flag (if applicable)
   OR
1. Deploy previous version: `git revert <commit> && git push`
2. Verify rollback: health check, error monitoring
3. Communicate: notify team of rollback

### Database Considerations
- Migration [X] has a rollback: `npx prisma migrate rollback`
- Data inserted by new feature: [preserved / cleaned up]

### Time to Rollback
- Feature flag: < 1 minute
- Redeploy previous version: < 5 minutes
- Database rollback: < 15 minutes

Common Rationalizations

Rationalization Reality
"It works in staging, it'll work in production" Production has different data, traffic patterns, and edge cases. Monitor after deploy.
"We don't need feature flags for this" Every feature benefits from a kill switch. Even "simple" changes can break things.
"Monitoring is overhead" Not having monitoring means you discover problems from user complaints instead of dashboards.
"We'll add monitoring later" Add it before launch. You can't debug what you can't see.
"Rolling back is admitting failure" Rolling back is responsible engineering. Shipping a broken feature is the failure.

Red Flags

  • Deploying without a rollback plan
  • No monitoring or error reporting in production
  • Big-bang releases (everything at once, no staging)
  • Feature flags with no expiration or owner
  • No one monitoring the deploy for the first hour
  • Production environment configuration done by memory, not code
  • "It's Friday afternoon, let's ship it"

Verification

Before deploying:

  • [ ] Pre-launch checklist completed (all sections green)
  • [ ] Feature flag configured (if applicable)
  • [ ] Rollback plan documented
  • [ ] Monitoring dashboards set up
  • [ ] Team notified of deployment

After deploying:

  • [ ] Health check returns 200
  • [ ] Error rate is normal
  • [ ] Latency is normal
  • [ ] Critical user flow works
  • [ ] Logs are flowing
  • [ ] Rollback tested or verified ready