/opscrew:opscrew-adaptfrom opscrew
Containerizes an app for OpsCrew deployment: generates production Dockerfile, .dockerignore, health endpoint, port config, and moves secrets to env vars.
Ships in opscrew. 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.
The list of required changes is codeChanges in opscrew/plan.yaml (read it; do not edit it).
Work on a new branch, change only what each item needs, keep the app's behaviour, and do not add
dependencies unless there is no other way (then tell the user which and why).
In a repository with several apps, a further app's plan is opscrew/apps/<key>/plan.yaml
(opscrew_app_list names the apps): read the plan of the app the user means, and change only the
files in that app's folder.
@sha256 digest, at the
runtime version in app.build.runtime.version of opscrew/plan.yaml (the version the app
declares, else OpsCrew's default), dependencies installed from the lockfile, USER set to a
non-root user, the app listening on 0.0.0.0:$PORT. Write no Dockerfile when app.build.builder
is buildpacks, railpack or own-dockerfile. .env.example lists variable names only, never
values.{"ok":true}) and
does no expensive work. Path: /api/health for Next.js (app/api/health/route.ts in the app
router, pages/api/health.ts in the pages router); /health for Express, Fastify, NestJS, Hono,
FastAPI, Flask, Django, Go, Java, .NET and Rust.PORT with the current value as the default.output: "standalone" in next.config.*..env.example, and tell the user the old value must be rotated at the provider.opscrew/plan.yaml also lists what runs next to the web process. Check that the code works with it;
OpsCrew renders the containers itself.
processes.workers): each runs in the app's own image with its command, as its
own container, with the same environment as the app. Make sure that command starts the worker
from the built image (for example the compiled dist/worker.js, not a TypeScript source file),
that the web process does not also start the jobs, and that the worker finishes or hands back its
current job when it gets SIGTERM, within stopGraceSeconds. A scheduler marked single (Celery
beat, Laravel's scheduler) runs as one copy only.processes.cron): schedules are in UTC. A command job runs in the app's image.
A route job (from vercel.json) is a GET of the app's route with the header
Authorization: Bearer <CRON_SECRET>: the route must compare it with the CRON_SECRET
environment variable and refuse every other request, as on Vercel. Keep each job safe to run
again: a run is skipped while the last one still runs.storage.objectStorage): the app gets AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY, AWS_REGION, AWS_ENDPOINT_URL_S3 and the bucket under the variable it
already reads. Read them from the environment; never hard-code a key or the endpoint. SDKs that
ignore AWS_ENDPOINT_URL_S3 (AWS SDK for JavaScript v2, Go v1, Java 1.x) need the endpoint
passed to the client from that variable, and Garage needs path-style requests
(forcePathStyle: true in the JavaScript SDK; Laravel gets AWS_USE_PATH_STYLE_ENDPOINT). The key itself is the user's: they create it in
the provider's console and give it to npx opscrew provision in their terminal; never ask for it
or write it into a file.storage.sqlite.dir): the database file must live in that folder, which is a
persistent volume. With the user's own Dockerfile, the folder must belong to the user the image
runs as (COPY --chown=…, or mkdir and chown before USER): a folder copied as root stays
root-owned, and the app cannot write its database.A static SPA (Vite, CRA, Angular) needs no health endpoint; the container serves the built files
with Caddy on port 8080 and falls back to index.html for client-side routes.
Show the user git diff --stat and the important hunks, then let them review and commit. Never push
or open a pull request without their explicit go-ahead.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub opscrew-hub/opscrew --plugin opscrew6 skills in this plugin
/opscrew-deployTake the user's app from this repository to a hardened production deployment on their own cloud, a server they already have, a Portainer they already run (on a NAS or any Docker host), a shared hosting account they already pay for (cPanel, Plesk, DirectAdmin or SFTP), or for a site with no server Cloudflare's hosting or GitHub Pages, with OpsCrew (scan, analyze, interview, design, prepare the code, then provision), and turn Portainer on or off. Use when the user wants to deploy, host, launch or "put online" their app, deploy to their own server, home server, NAS, Portainer or shared hosting (cPanel and the like), or move it off Lovable, Bolt, Replit or v0 hosting./opscrew-rotateSee which passwords, keys and tokens OpsCrew made for an app and how old each is (read-only), and guide the user through rotating one in their own terminal with `npx opscrew rotate`, after a leak or when a credential is old. Use when the user asks "rotate my database password", "a secret leaked", "I lost my laptop", "a teammate left", "change the deploy key", "how old are my credentials?", "my token expires", "advise says a credential is old", "replace my Hetzner (or Cloudflare, GitHub) token", or about the recovery copy's key./opscrew-scanRun OpsCrew's free security scan on this repository and help the user fix what it finds (leaked keys, Supabase service-role keys in frontend code, tables without row-level security, open Firebase rules, risky Docker or framework settings, vulnerable dependencies). Use when the user asks whether their app is secure, before launching, or after a security scare./opscrew-snapshotsBack up and restore the data of an app OpsCrew deployed, with OpsCrew's snapshots: see which snapshots exist (read-only), and guide the user through taking one before a risky change, putting one back, deleting one, a snapshot of the whole server at Hetzner, DigitalOcean, Contabo or OVHcloud, scheduled snapshots and an encrypted copy off the server, each run in their own terminal. Use when the user asks "is my data backed up?", "back up my database", "take a snapshot", "restore yesterday's data", "I deleted rows by mistake", "what snapshots do I have?", "schedule backups", "keep a copy somewhere else", "what if the server dies?", or about backups on their own server or Portainer./opscrew-troubleshootFind out why an app OpsCrew deployed is failing, slow or using too much, from its status, resource figures, alerts and logs, all read-only with secrets masked, and when a recent release is the cause, how to roll it back in the terminal; with self-hosted monitoring on, how to open its Grafana dashboards and what each shows; and what to change (a larger or smaller server, backups, security updates, tokens about to expire), each proposal with its figures and price. Use when the user asks "why is my app failing?", "why is it down?", "it's slow", "how much memory (or CPU, or disk) does it use?", "undo the last release", "roll back", "how do I see the logs (or figures) of last week?", "open Grafana", "is monitoring working?", "is it the right size?", "can it cost less?", "what should I change?", or about an OpsCrew alert issue.Other plugins' skills for the same job