/vibe-ship:vibe-shipfrom vibe-ship
Generates and audits production-ready deployment setups for any app. Detects stack from repo and writes hardened Dockerfiles, docker-compose, CI/CD pipelines, Kubernetes manifests, and platform configs for Fly.io, Render, Railway, Cloud Run, AWS, Azure, VPS+Caddy, or Kamal. Verifies output with a 90+ rule static auditor and real Docker builds.
Ships in vibe-ship. 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 any codebase into something you can ship: hardened containers, a wired-up stack, a CI/CD pipeline, and the target platform's config. Every claim is backed by detection output, the audit score, and (when Docker is available) a real build and health check.
Scripts live in this skill's scripts/ directory. They are standard-library Python 3.8+ with no installs. Invoke them as python3 <skill-dir>/scripts/<name>.py, or with python / py -3 on Windows.
| Script | Purpose |
|---|---|
detect.py --path <repo> --json | Evidence: services, stack, versions, ports, entrypoints, backing services, env vars, existing deploy files |
audit.py --path <repo> | 90+ rules across Dockerfile, .dockerignore, Compose, GitHub Actions, GitLab CI, Kubernetes. Score, grade, --format sarif|json|markdown, --fail-on high |
pin_actions.py .github/workflows | Pins every uses: to a commit SHA (# vX.Y.Z comment kept) via git ls-remote |
| The user wants... | Mode |
|---|---|
| deployment files that don't exist yet | Generate |
| an opinion on existing files ("review", "audit", "is this secure", "score my Dockerfile") | Audit |
| existing files improved ("fix", "harden", "make this production-ready" when files exist) | Fix (Audit, then apply) |
| to go live on a specific platform | Target (Generate or reuse the image, then add the platform layer) |
If detect.py reports existing Dockerfile/compose/CI and the user didn't explicitly ask to regenerate, use Audit or Fix. Never overwrite an existing deployment file without saying so first.
python3 <skill-dir>/scripts/detect.py --path . --json
Read the result before anything else:
services[] are what gets a Dockerfile. packages[] are libraries and workspace roots that don't.language, framework, kind (web/worker/static), package_manager + lockfile, runtime_version + version_source, port, entrypoint, build_cmd, health_path, backing_services, workers, migrations, env_vars, notes.monorepo: build with the repo root as context.existing: deployment files already present. git.image_ref is the GHCR image name.warnings: each one becomes either a question to the user or a DEPLOYMENT.md item.If services is empty, or a framework/entrypoint is missing for a web service, ask. A wrong base image or start command is worse than none. If detect.py can't run, inspect the manifests by hand using the same checklist.
The defaults need no question: Docker Compose for local and single-server, GitHub Actions, and GHCR. Ask only when the answer changes files and the user didn't say:
.gitlab-ci.yml exists or the remote is GitLab.In a non-interactive context, use the defaults and state them in the summary.
| Need | Read |
|---|---|
| Dockerfile for each service | references/stacks/<runtime>.md: node (Node/Bun/Deno), python, go, rust, jvm, dotnet, ruby, php, elixir (BEAM/Gleam), static (SPA/SSG), other (Swift/Dart/Haskell/Crystal/Zig/C++/...) |
| Versions when the project declares none | references/versions.md |
| Postgres/MySQL/Mongo/Redis/RabbitMQ/Kafka/Elastic/... in compose | references/services.md |
| TLS, reverse proxy, app-server tuning, signals, trusted proxies | references/servers.md |
| Platform config + deploy job | references/deploy-targets.md |
| Pipelines (GitHub, GitLab, others) + Dependabot | references/cicd-patterns.md |
| Kubernetes / Helm / Kustomize | references/kubernetes.md |
| Final review | references/security-checklist.md, references/scalability-checklist.md, references/anti-patterns.md |
The templates are verified starting points. Adapt them to the detected entrypoint, port, package manager, and versions, and delete lines that don't apply (an asset stage with no frontend, a public/ copy when there's no public/).
| File | Contents |
|---|---|
Dockerfile (one per service; monorepo: apps/<svc>/Dockerfile) | Multi-stage, pinned base, cache mounts, non-root, exec-form CMD, HEALTHCHECK with a tool that exists in the final image |
.dockerignore | Stack baseline + .git, .env* (!.env.example), build output |
compose.yaml | App + workers + detected backing services from services.md, healthchecks, depends_on: condition: service_healthy, one-off migrate service, named volumes, limits, restart, log rotation, no DB ports published |
compose.override.yaml (optional) | Dev-only: source bind mounts, DB ports on 127.0.0.1, dev command |
.env.example | Every var in env_vars + compose interpolations, placeholders and a comment each |
.gitignore | Add .env, .env.*, !.env.example if missing (append, never rewrite) |
.github/workflows/ci-cd.yml | From cicd-patterns.md: test → image (scan, SBOM, provenance, sign) → deploy (if a target was named) |
.github/dependabot.yml | actions + docker + docker-compose + the app's ecosystem, unless Renovate exists |
| Target config | fly.toml, render.yaml, railway.json, heroku.yml, .do/app.yaml, config/deploy.yml, Caddyfile, ECS task def, k8s/... as chosen |
DEPLOYMENT.md | See "DEPLOYMENT.md contract" below |
Rules while writing:
mix phx.gen.release --docker, Vapor's template). Audit and harden it rather than replacing it.0.0.0.0 binding, trusted proxies, output: "standalone") without asking. Offer the exact change and put it in DEPLOYMENT.md..env (gitignored) and the platform/CI secret stores. Use ${VAR:?message} for required compose secrets.python3 <skill-dir>/scripts/pin_actions.py .github/workflows
If there's no network, leave the tags in place and add "run pin_actions.py" to the DEPLOYMENT.md checklist.
python3 <skill-dir>/scripts/audit.py --path . --fail-on medium
Fix every CRITICAL/HIGH/MEDIUM in your own output and re-run until it exits 0. Remaining LOW/INFO must be fixed or justified with an inline # vibe-ship: ignore VS-XXXX <reason>.
Then climb references/verification.md as far as the environment allows: docker compose config, docker build, docker compose up --wait, curl the health path, check the UID, and clean up. In an interactive session, ask once before pulling images or starting containers, unless the user already asked you to test it. Report the highest rung reached, honestly.
Reply in under 15 lines:
Don't paste the file contents. Offer to walk through any file.
python3 <skill-dir>/scripts/audit.py --path <repo-or-file> # human report
python3 <skill-dir>/scripts/audit.py --path . --format markdown # for PR comments / docs
python3 <skill-dir>/scripts/audit.py --path . --format sarif > vibe-ship.sarif # GitHub code scanning
python3 <skill-dir>/scripts/audit.py --path . --fail-on high # CI gate (exit 1)
python3 <skill-dir>/scripts/audit.py --list-rules # full rule catalog
It's a static scan: no Docker daemon or network, nothing executed. It parses Dockerfiles properly (continuations, heredocs, multi-stage inheritance), reads YAML by key path, and checks things generic linters miss:
curl on a slim image that has no curlpull_request_target "pwn requests" and script injection in workflowsPresent results:
file:line, why it matters in one sentence, and the concrete fix.For Helm charts, render first (helm template). Templated files are skipped and reported as such.
Run Audit and apply fixes highest severity first, editing the existing files in place and keeping the user's structure and comments. Re-run the audit after each batch. When a fix changes behaviour (non-root user needing writable dirs, removing a published DB port, pinning a version), say what changed and why. Finish with before/after score and grade.
When an image setup already exists and the user wants it live somewhere, read references/deploy-targets.md for that platform. Write its config, add the deploy job (gated on main + tests, with environment: and concurrency:), and list the exact secrets and one-time setup commands in DEPLOYMENT.md.
Short, scannable, specific to this repo:
cp .env.example .env, then docker compose up --build, then the URL and health URL.sha-<commit>, semver, latest), where findings show up.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Docker, Docker Compose, GitHub Actions, GitLab, Kubernetes, AWS, GCP, Azure
npx claudepluginhub sudais-khalid/vibe-ship --plugin vibe-shipOther plugins' skills for the same job