/gabbe:deploymentfrom GABBE
Checks a release before and after shipping: pipeline health, container and IaC scans, environment variables, migrations, staging smoke tests, and rollback plan. Use when preparing, reviewing, or running a deployment.
Ships in GABBE. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Ensure software is deployed safely, securely, and repeatably. Verify CI/CD pipeline health, container security, environment configuration, and rollback readiness before any production deployment.
Pre-deployment checklist
[ ] All tests passing (integrity-check.skill completed)
[ ] SECURITY_CHECKLIST.md completed
[ ] No critical CVEs in dependencies
[ ] Environment variables documented and configured
[ ] Database migrations reviewed and tested
[ ] Rollback plan documented
[ ] Monitoring and alerting in place
Verify CI/CD pipeline
# GitHub Actions example structure to verify:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: [install command]
- run: [test command] # Must be here
- run: [typecheck command] # Must be here
- run: [lint command] # Must be here
- run: [security scan] # Must be here
build:
needs: [test] # Build only after tests pass
steps:
- run: docker build -t app:${{ github.sha }} .
- run: trivy image app:${{ github.sha }} # Container scan
deploy-staging:
needs: [build]
environment: staging # Requires manual approval in GitHub
Docker container security check
# Verify Dockerfile follows security best practices:
FROM node:22-alpine AS base # Use specific version (not :latest)
WORKDIR /app
# Security: run as non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
# Security: copy only necessary files
COPY package*.json ./
RUN npm ci --only=production # No dev dependencies in production
COPY --chown=appuser:appgroup . .
USER appuser # Never run as root
EXPOSE 3000
CMD ["node", "dist/server.js"]
# Scan container for vulnerabilities
trivy image app:latest --severity HIGH,CRITICAL
docker scout cves app:latest # Docker Scout alternative
IaC security check (if applicable)
# Terraform/Kubernetes manifests
checkov -d infra/
tfsec infra/terraform/
# Kubernetes
kubesec scan infra/kubernetes/deployment.yaml
Environment configuration
# Verify all required env vars are documented and configured
# Check: .env.example has all vars without values
# Check: production env vars set in GitHub Secrets / AWS SSM / Vault
# Never: env vars with secrets in CI/CD config files
# Never: docker-compose.yml with hardcoded production secrets
Database migration execution (before deploying new code). Show the exact command and the target database, and run it only after the human confirms.
# Run migrations BEFORE deploying new code (backward compatible)
# This ensures rollback is possible without data issues
# Prisma
npx prisma migrate deploy --schema=prisma/schema.prisma
# Laravel
php artisan migrate --force --no-interaction
# Python (Alembic)
uv run alembic upgrade head
Python Docker Security:
FROM python:3.12-slim-bookworm AS base
WORKDIR /app
# Security: non-root user
RUN addgroup --system appgroup && adduser --system --group appuser
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY --chown=appuser:appgroup . .
USER appuser
CMD ["uv", "run", "fastapi", "run", "src/main/main.py", "--port", "8000"]
Deploy to staging first
# Blue-Green or rolling deployment
# Run smoke tests after staging deploy
# Smoke test examples:
curl -f https://staging.app.com/health || exit 1
curl -f https://staging.app.com/api/v1/ping || exit 1
Smoke tests after deployment
// tests/smoke/health.spec.ts
test('health check returns 200', async ({ request }) => {
const response = await request.get('/health');
expect(response.status()).toBe(200);
const body = await response.json();
expect(body.status).toBe('ok');
});
test('authentication endpoint accepts requests', async ({ request }) => {
const response = await request.post('/auth/login', {
data: { email: '[email protected]', password: 'wrong' }
});
expect(response.status()).toBe(401); // Wrong creds — correct behavior
});
Production deployment gate
git tag v[semver] -m "Release [version]" and the GitHub Release text; the human runs them, or the request asked for themrelease-validation.skillPost-deployment verification
# Verify production health
curl -f https://app.com/health
# Check error rates in monitoring (Sentry, Datadog, etc.)
# Verify no sudden spike in error rate after deploy
# Verify response times are within baseline
# If error rate spikes: propose the rollback command at once and run it after the human confirms
For a full post-deploy verification (canary, p95, scripted journey) see production-verifier.skill.
Rollback plan (rollback commands are run only after the human confirms, or as the approved plan says)
# Document before deploying:
# 1. Previous stable version: v1.2.3
# 2. Rollback command: kubectl rollout undo deployment/app
# 3. Database: were there migrations? Can they be rolled back?
# 4. Cache: does rollback require cache flush?
# 5. Decision maker: who approves the rollback call?
# Kubernetes rollback:
kubectl rollout undo deployment/app --to-revision=N
# Docker Compose rollback:
docker pull app:v1.2.3
docker compose up -d
Deployment checklist completion + CI/CD pipeline verification + staging test results + production deployment confirmation or rollback if issues found.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe49 skills in this plugin
/adr-writerGenerate Architecture Decision Records for significant technical decisions. Use when: architecture decision, ADR, why did we choose, why are we using, architectural choice./api-designAPI contract (OpenAPI, GraphQL SDL or proto) written before code, with resources, errors, pagination and authentication. Use when a new endpoint or API is needed or the contract of an existing one must change./arch-designArchitecture design from approved requirements — quality scenarios, style choice, decomposition, 4+1 or arc42 views, ADRs and risks. Use when a new system or major subsystem needs an architecture before implementation planning.Other plugins' skills for the same job