skills/deployment-procedures/SKILL.md
Production deployment principles, CI/CD pipeline design, GitOps workflows, and deployment automation. Safe deployment workflows, rollback strategies, verification, approval gates, and security-first pipelines.
npx skillsauth add melikhanmutlu/web_ar deployment-proceduresInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Deployment principles and decision-making for safe production releases. Learn to THINK, not memorize scripts.
This skill teaches deployment principles, not bash scripts to copy.
What are you deploying?
│
├── Static site / JAMstack
│ └── Vercel, Netlify, Cloudflare Pages
│
├── Simple web app
│ ├── Managed → Railway, Render, Fly.io
│ └── Control → VPS + PM2/Docker
│
├── Microservices
│ └── Container orchestration
│
└── Serverless
└── Edge functions, Lambda
| Platform | Deployment Method | |----------|------------------| | Vercel/Netlify | Git push, auto-deploy | | Railway/Render | Git push or CLI | | VPS + PM2 | SSH + manual steps | | Docker | Image push + orchestration | | Kubernetes | kubectl apply |
| Category | What to Check | |----------|--------------| | Code Quality | Tests passing, linting clean, reviewed | | Build | Production build works, no warnings | | Environment | Env vars set, secrets current | | Safety | Backup done, rollback plan ready |
1. PREPARE
└── Verify code, build, env vars
2. BACKUP
└── Save current state before changing
3. DEPLOY
└── Execute with monitoring open
4. VERIFY
└── Health check, logs, key flows
5. CONFIRM or ROLLBACK
└── All good? Confirm. Issues? Rollback.
| Phase | Principle | |-------|-----------| | Prepare | Never deploy untested code | | Backup | Can't rollback without backup | | Deploy | Watch it happen, don't walk away | | Verify | Trust but verify | | Confirm | Have rollback trigger ready |
| Check | Why | |-------|-----| | Health endpoint | Service is running | | Error logs | No new errors | | Key user flows | Critical features work | | Performance | Response times acceptable |
| Symptom | Action | |---------|--------| | Service down | Rollback immediately | | Critical errors | Rollback | | Performance >50% degraded | Consider rollback | | Minor issues | Fix forward if quick |
| Platform | Rollback Method | |----------|----------------| | Vercel/Netlify | Redeploy previous commit | | Railway/Render | Rollback in dashboard | | VPS + PM2 | Restore backup, restart | | Docker | Previous image tag | | K8s | kubectl rollout undo |
| Strategy | How It Works | |----------|--------------| | Rolling | Replace instances one by one | | Blue-Green | Switch traffic between environments | | Canary | Gradual traffic shift |
| Scenario | Strategy | |----------|----------| | Standard release | Rolling | | High-risk change | Blue-green (easy rollback) | | Need validation | Canary (test with real traffic) |
| Check | Common Issues | |-------|--------------| | Logs | Errors, exceptions | | Resources | Disk full, memory | | Network | DNS, firewall | | Dependencies | Database, APIs |
| ❌ Don't | ✅ Do | |----------|-------| | Deploy on Friday | Deploy early in week | | Rush deployment | Follow the process | | Skip staging | Always test first | | Deploy without backup | Backup before deploy | | Walk away after deploy | Monitor for 15+ min | | Multiple changes at once | One change at a time |
Before deploying:
Remember: Every deployment is a risk. Minimize risk through preparation, not speed.
This skill is applicable to execute the workflow or actions described in the overview.
┌─────────┐ ┌──────┐ ┌─────────┐ ┌────────┐ ┌──────────┐
│ Build │ → │ Test │ → │ Staging │ → │ Approve│ → │Production│
└─────────┘ └──────┘ └─────────┘ └────────┘ └──────────┘
| Pattern | When to Use | |---------|------------| | Manual Approval | High-risk changes, compliance requirements | | Time-Based | Delayed rollout after staging validation | | Multi-Approver | Critical production changes needing team lead sign-off | | Automated | Metric-based promotion (error rate, latency thresholds) |
name: Production Pipeline
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t myapp:${{ github.sha }} .
- name: Push to registry
run: docker push myapp:${{ github.sha }}
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Unit tests
run: make test
- name: Security scan
run: trivy image myapp:${{ github.sha }}
deploy-staging:
needs: test
environment: staging
runs-on: ubuntu-latest
steps:
- name: Deploy to staging
run: kubectl apply -f k8s/staging/
deploy-production:
needs: deploy-staging
environment: production
runs-on: ubuntu-latest
steps:
- name: Canary deployment
run: kubectl argo rollouts promote my-app
verify:
needs: deploy-production
runs-on: ubuntu-latest
steps:
- name: Health check
run: curl -f https://app.example.com/health
| Platform | Strengths | |----------|-----------| | GitHub Actions | Native GitHub integration, marketplace, reusable workflows | | GitLab CI/CD | Built-in, DAG pipelines, multi-project | | Azure DevOps | Enterprise, template libraries, environment approvals | | Jenkins | Extensible, self-hosted, massive plugin ecosystem | | ArgoCD/Flux | GitOps-native, Kubernetes-first, declarative | | Tekton | Cloud-native, Kubernetes-native pipelines |
| Principle | Implementation | |-----------|---------------| | Declarative | All desired state in Git (Helm, Kustomize, manifests) | | Versioned | Git history = deployment history | | Automated | ArgoCD/Flux auto-sync from Git | | Auditable | Every change has a PR, review, and commit |
| Pattern | When to Use | |---------|------------| | App-of-apps | Managing many microservices with ArgoCD | | Mono-repo | Small team, tightly coupled services | | Multi-repo | Large org, independent service ownership | | Environment branches | Simple promotion (dev -> staging -> prod) | | Kustomize overlays | Environment-specific configs from shared base |
| Tool | Approach | |------|----------| | External Secrets Operator | Sync from Vault/AWS Secrets Manager to K8s | | Sealed Secrets | Encrypt secrets that can be stored in Git | | SOPS | Mozilla's encrypted file format for secrets |
| Practice | Guideline | |----------|-----------| | Multi-stage builds | Separate build and runtime stages | | Distroless images | Minimal attack surface, no shell | | Non-root users | Never run containers as root | | Image signing | Use Sigstore/cosign for supply chain security | | Vulnerability scanning | Trivy, Grype, or Snyk in CI pipeline | | SBOM generation | Track dependencies with SPDX or CycloneDX |
| Level | Requirements | |-------|-------------| | Level 1 | Build process documented | | Level 2 | Version control, hosted build service | | Level 3 | Source verified, build reproducible | | Level 4 | Two-party review, hermetic builds |
| Metric | Target (Elite) | How to Measure | |--------|----------------|----------------| | Deployment Frequency | Multiple per day | Count deploys per time period | | Lead Time for Changes | < 1 hour | Commit timestamp to production deploy | | Change Failure Rate | < 5% | Failed deploys / total deploys | | Mean Time to Recovery | < 1 hour | Incident start to resolution | | Pipeline Success Rate | > 95% | Successful runs / total runs |
apiVersion: argoproj.io/v1alpha1
kind: Rollout
spec:
strategy:
canary:
steps:
- setWeight: 10
- pause: {duration: 5m}
- setWeight: 25
- pause: {duration: 5m}
- setWeight: 50
- pause: {duration: 5m}
- setWeight: 100
| Tool | Use Case | |------|----------| | LaunchDarkly | Enterprise feature management | | Flagr | Open-source feature flags | | Unleash | Self-hosted feature toggles |
Benefits: Deploy without releasing, A/B testing, instant rollback, granular control.
| Test Type | Stage | Purpose | |-----------|-------|---------| | Unit tests | Build | Verify business logic | | SAST | Build | Static security analysis | | Integration tests | Staging | Service interaction verification | | DAST | Staging | Runtime security testing | | Smoke tests | Post-deploy | Critical path validation | | Performance tests | Pre-production | Load and latency benchmarks | | Chaos tests | Production | Resilience validation |
| Environment | Purpose | Promotion | |-------------|---------|-----------| | Development | Feature development | Automatic on merge | | Staging | Integration testing | Automatic after tests pass | | Pre-production | Final validation | Manual approval gate | | Production | Live traffic | After pre-prod sign-off |
tools
# AI Marketing Suite — Main Orchestrator You are a comprehensive AI marketing analysis and content generation system for Claude Code. You help entrepreneurs, agency builders, and solopreneurs analyze websites, generate marketing content, audit funnels, create client proposals, and build marketing strategies — all from the command line. ## Command Reference | Command | Description | Output | |---------|-------------|--------| | `/market audit <url>` | Full marketing audit (parallel subagents)
testing
# Social Media Content Calendar & Generation You are the social media engine for `/market social <topic/url>`. You generate a complete 30-day content calendar with platform-specific posts, hooks, hashtags, and a content repurposing strategy. Every post is ready to publish or hand to a social media manager. ## When This Skill Is Invoked The user runs `/market social <topic/url>`. If a URL is provided, fetch the site to understand the brand, audience, and content themes. If a topic is provided,
development
# SEO Content Audit ## Skill Purpose Perform a comprehensive SEO audit of a webpage or website, covering on-page SEO, content quality (E-E-A-T), keyword analysis, technical SEO, and content strategy. This skill combines automated analysis via `scripts/analyze_page.py` with expert-level manual review to produce an actionable SEO audit document. ## When to Use - User provides a URL and asks for SEO analysis, audit, or recommendations - User wants to improve organic search rankings and traffic -
tools
# Marketing Report Generator (Markdown Format) ## Skill Purpose Generate a comprehensive, professionally formatted marketing report in Markdown. This skill compiles data from all previous audit and analysis results into a single, client-ready document with scores, findings, recommendations, and a prioritized action plan with revenue impact estimates. ## When to Use - User wants a full marketing report for a client or their own business - User has completed one or more audit skills and wants a