askill
posthog-prod-checklist

posthog-prod-checklistSafety 95Repository

Execute PostHog production deployment checklist and rollback procedures. Use when deploying PostHog integrations to production, preparing for launch, or implementing go-live procedures. Trigger with phrases like "posthog production", "deploy posthog", "posthog go-live", "posthog launch checklist".

0 stars
1.2k downloads
Updated 2/3/2026

Package Files

Loading files...
SKILL.md

PostHog Production Checklist

Overview

Complete checklist for deploying PostHog integrations to production.

Prerequisites

  • Staging environment tested and verified
  • Production API keys available
  • Deployment pipeline configured
  • Monitoring and alerting ready

Instructions

Step 1: Pre-Deployment Configuration

  • Production API keys in secure vault
  • Environment variables set in deployment platform
  • API key scopes are minimal (least privilege)
  • Webhook endpoints configured with HTTPS
  • Webhook secrets stored securely

Step 2: Code Quality Verification

  • All tests passing (npm test)
  • No hardcoded credentials
  • Error handling covers all PostHog error types
  • Rate limiting/backoff implemented
  • Logging is production-appropriate

Step 3: Infrastructure Setup

  • Health check endpoint includes PostHog connectivity
  • Monitoring/alerting configured
  • Circuit breaker pattern implemented
  • Graceful degradation configured

Step 4: Documentation Requirements

  • Incident runbook created
  • Key rotation procedure documented
  • Rollback procedure documented
  • On-call escalation path defined

Step 5: Deploy with Gradual Rollout

# Pre-flight checks
curl -f https://staging.example.com/health
curl -s https://status.posthog.com

# Gradual rollout - start with canary (10%)
kubectl apply -f k8s/production.yaml
kubectl set image deployment/posthog-integration app=image:new --record
kubectl rollout pause deployment/posthog-integration

# Monitor canary traffic for 10 minutes
sleep 600
# Check error rates and latency before continuing

# If healthy, continue rollout to 50%
kubectl rollout resume deployment/posthog-integration
kubectl rollout pause deployment/posthog-integration
sleep 300

# Complete rollout to 100%
kubectl rollout resume deployment/posthog-integration
kubectl rollout status deployment/posthog-integration

Output

  • Deployed PostHog integration
  • Health checks passing
  • Monitoring active
  • Rollback procedure documented

Error Handling

AlertConditionSeverity
API Down5xx errors > 10/minP1
High Latencyp99 > 5000msP2
Rate Limited429 errors > 5/minP2
Auth Failures401/403 errors > 0P1

Examples

Health Check Implementation

async function healthCheck(): Promise<{ status: string; posthog: any }> {
  const start = Date.now();
  try {
    await posthogClient.ping();
    return { status: 'healthy', posthog: { connected: true, latencyMs: Date.now() - start } };
  } catch (error) {
    return { status: 'degraded', posthog: { connected: false, latencyMs: Date.now() - start } };
  }
}

Immediate Rollback

kubectl rollout undo deployment/posthog-integration
kubectl rollout status deployment/posthog-integration

Resources

Next Steps

For version upgrades, see posthog-upgrade-migration.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/13/2026

A comprehensive and well-structured production checklist for PostHog integrations. It effectively combines manual verification steps with executable Kubernetes deployment commands, health check code examples, and rollback procedures. The inclusion of safety checks (canary, rollback) makes it highly valuable.

95
95
85
95
90

Metadata

Licenseunknown
Version1.0.0
Updated2/3/2026
PublisherHelixDevelopment

Tags

apici-cdobservabilitysecuritytesting