/everything-backend:backend-deployfrom everything-backend
Generates deployment artifacts for backend services: Dockerfiles, docker-compose, CI/CD pipelines, Kubernetes manifests, Helm values, and release plans with rollback strategies. Validates locally and records setup in deployment memory.
Ships in everything-backend. 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.
Turns a working backend into something that builds, ships and rolls back safely. This skill generates and validates deployment files and the release plan. It never deploys, pushes images or applies infrastructure on its own: those steps are Always Ask First, and they normally run in the user's CI.
Not for: authoring or applying migrations outside a pipeline (backend-migrate); health endpoint code, resilience, backups and DR, SLO alerts (backend-ops); code-level health checks (backend-doctor); threat modeling, image or secret scanning review (backend-security).
_shared/ inside this skill's folder (bundled installs), then ../_shared/ next to it; other fallbacks are in <shared>/context-loading.md -> Resolving _shared/ Files. A missing shared doc is a warning, not a stop.<shared>/tool-rules.md (mode=auto contract, Production Targets, Command Time Budgets, checkpoints) and <shared>/host-tools.md if the action names below don't match your host's tools. Read the System and Security sections of <shared>/principles.md, and <shared>/secure-coding.md -> S13 and S18 (no secrets in images or CI files; pinned images, actions and installs; no curl | sh; least-privilege CI). Generated Dockerfiles and CI files must pass node <shared>/scripts/security-scan.js <files> before they are reported.<shared>/context-loading.md: project-overview.md, tech-stack.md, deployment.md (priority 7) and db-schema.md for backing services; decisions.md for prior hosting choices. A missing deployment.md is expected on the first run; this skill creates it.<shared>/stacks/, read it. Its Dockerfile, health and shutdown sections take precedence over the generic templates here.Follows <shared>/tool-rules.md -> mode=auto Contract; the contract wins on any conflict.
.dockerignore, compose files, K8s manifests, Helm values, runbook); memory updates; local validation (docker build, docker compose config, linters, helm template, kubeconform); docker compose up --wait only when every service it starts is a local container..github/workflows/*, .gitlab-ci.yml, other pipeline files); creating or editing .env* or secret files; overwriting or editing any existing deployment file (show a diff instead of replacing it); docker push; any deploy (kubectl apply/rollout/scale/delete, helm install/upgrade/rollback/uninstall, terraform/tofu/pulumi apply or destroy, fly deploy, vercel --prod, gcloud ... deploy, aws ... deploy, serverless deploy); applying migrations (only through backend-migrate or the pipeline step the user approved); kubectl ... --dry-run=server, which talks to a cluster.<shared>/context-loading.md -> Standard Prerequisites for the manifest and stack. Any manifest it lists is valid. If no Dockerfile template here fits the stack (Rust, Ruby, PHP, .NET, Elixir), use the general rules in references/dockerfiles.md and the ecosystem's official image; do not stop..nvmrc, engines, .python-version, go.mod, pom.xml/build.gradle toolchain), health routes, migration tool and command, and backing services (database, cache, queue).Dockerfile*, .dockerignore, docker-compose*.yml, compose*.yaml, .github/workflows/*, .gitlab-ci.yml, k8s/, deploy/, charts/, helm/, kustomization.yaml, *.tf, Pulumi.yaml, fly.toml, render.yaml, app.yaml, vercel.json, serverless.yml, template.yaml (SAM), Procfile. Read every one you find.deployment.md -> ## Migration Phases (written by backend-migrate). Note any open entry and its next phase.Output: a short inventory (stack facts, existing artifacts, open migration phases, gaps). In a monorepo, ask which service to target unless the request makes it clear.
| Situation | Target |
|---|---|
| Small team, no ops capacity, one or two services, standard web workload | PaaS (Fly.io, Render, Railway, Heroku, Cloud Run, App Runner, Azure Container Apps) |
| Predictable traffic, a few services, one or two hosts, team can run Docker | Containers on a VM (compose or systemd plus a reverse proxy) |
| Three or more independently deployed services, autoscaling, team or managed offering can run a cluster | Kubernetes (managed: EKS, GKE, AKS) with plain manifests, Kustomize or Helm |
| Spiky or event-driven work, short requests, can accept cold starts and per-request DB limits | Serverless functions (Lambda, Cloud Functions, Azure Functions) |
If deployment.md, decisions.md or existing artifacts already name a target, keep it unless the user asks to change. If the choice is unclear, present the two best options with trade-offs and ask. Platform notes, serverless caveats and IaC boundaries are in references/platforms.md.
Output: the chosen target and release strategy (default: rolling with readiness gates; see step 5).
List every file you will create or change, with its path (see Outputs). For an existing file, plan a diff, not a rewrite.
Start a checkpoint before the first edit:
node <shared>/scripts/checkpoint.js start --skill backend-deploy --feature <slug>
Use a slug such as deploy-setup or k8s-migration. Record each file you create or edit (checkpoint.js record --skill backend-deploy --feature <slug> --created a,b --modified c,d, plus --memory <file> for memory updates and --done <step> per finished step), run checkpoint.js snapshot after each step, and checkpoint.js close when done. If start exits with code 3, an open checkpoint exists: offer to resume it or restart with --restart. If Node is unavailable, follow <shared>/tool-rules.md -> Concurrent & Partial Work by hand.
Generate only what the target needs, using the project's real commands, port, versions and health routes. Never invent script names: take them from the manifest.
.dockerignore: multi-stage, non-root numeric UID, exec-form start command, runtime version from the project, no secrets in layers. references/dockerfiles.md..env.example with empty secret values. references/local-compose.md./healthz and /readyz (as in <shared>/stacks/). If code changes are needed, hand them to backend-ops or apply the stack file's snippet. references/health-shutdown.md.Migration step (required when the service has a database):
pre-upgrade hook. Never in the container start command and never on every replica at startup.pre-deploy) -> app rollout -> verify. Contract migrations (post-deploy) never run in the same pipeline run as the deploy; they run in a later release, from a manually triggered job, after backend-migrate's Contract Gate passes.Run what is available; report each check as passed, failed, or "not run" with the reason (tool missing, needs a cluster). Never report an unrun check as passed.
| Artifact | Checks |
|---|---|
| Dockerfile | docker build -t <app>:local .; hadolint Dockerfile if installed |
| Compose | docker compose config -q; docker compose up -d --wait then hit the readiness route, then docker compose down (never down -v without asking) |
| GitHub Actions | actionlint if installed; otherwise check YAML syntax and that every referenced script exists |
| GitLab CI | YAML syntax and referenced scripts; glab ci lint talks to the GitLab API, so ask first |
| Kubernetes | kubeconform -strict -summary <dir> if installed; kustomize build if used |
| Helm | helm lint <chart>; helm template <release> <chart> -f <values> piped to kubeconform |
Fix failures in files this run created. For a failure in a pre-existing file, report it and propose a diff.
Using references/release-rollback.md, decide and write down:
## Migration Phases.Write docs/runbooks/deploy.md from the template in that reference.
.opencode/everything-backend-memory/deployment.md with the sections below. Update only the sections you own; keep ## Migration Phases (backend-migrate) and ## Backup and DR / ## Runbooks (backend-ops) as they are.decisions.md entry when you chose or changed the platform or release strategy (format in <shared>/memory-schema.md).--status completed.deployment.md sections owned by this skill:
# Deployment
## Targets (environment -> platform, region or cluster, URL, approval required)
## Artifacts (path of each generated file)
## Pipeline (CI system, file, jobs and order, triggers, image registry and tag scheme)
## Migration Step (tool, command, where it runs, lock or concurrency control, approval gate)
## Release Strategy (rolling, blue-green or canary, and why)
## Health Probes (liveness and readiness routes, ports, timings, shutdown grace period)
## Rollback (app rollback command, migration compatibility rule)
## Post-Deploy Verification (smoke tests, watch window, rollback triggers)
## Config and Secrets (env var names and where each secret lives, how it reaches the runtime; never values)
## Last Updated
Summarize: target and strategy, files created and changed, validation results (passed, failed, not run), open migration phases, and the commands left for the user (push, first deploy, secret setup), each marked as needing approval.
Done when: every generated file is at its stated path; every validation check is reported as passed, failed or not run with a reason; the pipeline has an explicit gated migration step (if there is a database) and a deploy and verify stage; docs/runbooks/deploy.md and deployment.md are written; any platform decision is in decisions.md; no push, deploy or apply ran without approval; and the checkpoint is closed.
Only when the user asks to deploy now. Each step that changes a remote system is Always Ask First.
deployment.md and the runbook. Confirm the target environment, image SHA and the previous SHA for rollback.## Migration Phases: if this release includes expand migrations, run them through the approved pipeline job or hand off to backend-migrate to apply them. Stop if any contract migration is pending for this run.deployment.md (last deployed SHA and date) and report.| Output | Path |
|---|---|
| Container image definition | Dockerfile (or <service>/Dockerfile in a monorepo), .dockerignore |
| Local stack | compose.yaml (or the existing docker-compose.yml), compose.override.yaml for local-only overrides, .env.example |
| CI/CD | .github/workflows/ci.yml and .github/workflows/deploy.yml, or .gitlab-ci.yml |
| Kubernetes | deploy/k8s/ (base manifests) or deploy/helm/<app>/values-<env>.yaml for an existing chart |
| Runbook | docs/runbooks/deploy.md |
| Deployment memory | .opencode/everything-backend-memory/deployment.md |
| Decision record | .opencode/everything-backend-memory/decisions.md |
Keep existing paths and file names when the project already has them.
checkpoint.js rollback --skill backend-deploy --feature <slug> reverts files this run edited; created files are deleted only with --delete-created after the user confirms (<shared>/tool-rules.md -> Rollback). It does not undo a push, deploy or migration that already ran; use the release rollback in the runbook for those.
## Migration Phases..dockerignore; Node, Python, Go and Java templates and general rules for other stacks..env.example, or running the stack locally.docs/runbooks/deploy.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Docker, Kubernetes, GitHub Actions, GitLab, Helm, Node, Python, Go
deployment, docker, kubernetes, ci-cd, release-strategy, containerization
16 skills in this plugin
/backend-api-designDesigns API contracts before code is written: resources, endpoints, request and response schemas, error format, pagination, versioning and per-endpoint authorization rules. Writes the contract to an OpenAPI spec (docs/api/openapi.yaml by default, or the existing spec) and records conventions in api-patterns.md memory. REST is fully covered; GraphQL schemas and gRPC .proto contracts get basic guidance. Use when the user says 'design the API', 'what endpoints do I need', 'plan routes', 'write an OpenAPI spec', 'Swagger', 'define the API contract', 'design a GraphQL schema', 'write a proto file', 'add an endpoint to the spec', or 'version or deprecate an endpoint'. Not for writing handler code (backend-implement), choosing the login mechanism or auth endpoints (backend-auth), or reviewing API security (backend-security)./backend-architectDesigns backend architecture for new and existing systems, including architecture pattern (monolith, modular monolith, microservices, serverless), tech stack, module boundaries, consistency rules and non-functional targets, then records the result as docs/architecture/overview.md, numbered ADR files in docs/adr/ and project memory. Use when the user says "design the architecture", "plan the backend", "how should I structure this", "what tech stack should I use", "should we split into microservices", "write an ADR", "redesign this system", or is starting a new project or a major feature. Hands diagrams to backend-visualize and detailed schema and API work to backend-db-design and backend-api-design.npx claudepluginhub codeworksid/everything-backend --plugin everything-backendOther plugins' skills for the same job