deployment-patterns

Implements CI/CD pipelines, Docker containerization, deployment strategies, and production readiness checklists for web applications.

5|Updated Jul 8, 2019
One-click install
npx skills add https://github.com/rinchsan/dotfiles --skill deployment-patterns-rinchsan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deployment-patterns
Source: https://github.com/rinchsan/dotfiles/tree/main/.claude/skills/deployment-patterns
Command: npx skills add https://github.com/rinchsan/dotfiles --skill deployment-patterns-rinchsan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Shipping web applications to production involves risky decisions about rollout strategy, health monitoring, environment configuration, and rollback planning, and mistakes cause downtime or failed releases. ## Core Features & Use Cases - Deployment Strategies: Compare rolling, blue-green, and canary deployments with traffic diagrams, trade-offs, and guidance on when to use each. - Health Checks & Kubernetes Probes: Implement simple and detailed health endpoints plus liveness, readiness, and startup probe configurations. - Environment Configuration: Apply twelve-factor config patterns with Zod-based startup validation that fails fast on misconfiguration. - Use Case: Before releasing a Node.js API, use this Skill to pick a canary rollout plan, add a /health endpoint with database and Redis checks, validate environment variables at startup, and complete the production readiness checklist. ## Quick Start Ask the assistant to design a deployment plan with health checks and a rollback strategy for your web application before its next production release.

Frequently Asked Questions about deployment-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between rolling, blue-green, and canary deployments?

Use rolling deployments for standard backward-compatible changes, blue-green for critical services needing instant rollback, and canary for high-traffic services or risky changes where you want real-traffic validation before full rollout.

How do I set up health checks for Kubernetes deployments?

Expose a /health endpoint returning HTTP 200, then configure liveness, readiness, and startup probes pointing at it. Use a startup probe with a high failureThreshold so slow-starting containers are not killed prematurely.

What is the difference between liveness and readiness probes?

Liveness probes detect deadlocked containers and trigger restarts, while readiness probes control whether a pod receives traffic. A failing readiness probe removes the pod from service without restarting it.

How do I validate environment variables at application startup?

Define a schema with a library like Zod covering required variables such as DATABASE_URL and JWT_SECRET, then parse process.env at startup. The application fails fast with a clear error instead of misbehaving later.

What should a rollback plan include before a production release?

Ensure the previous image is tagged and available, database migrations are backward-compatible, feature flags can disable new functionality, and error-rate alerts are configured. Test the rollback in staging before the production release.

When should I not use a canary deployment?

Avoid canary deployments when you lack traffic-splitting infrastructure or monitoring to compare versions, and when changes are not backward-compatible across simultaneously running versions. Small low-traffic services gain little from the added complexity.