/opscrew:opscrew-rotatefrom opscrew
Lists credentials OpsCrew created for an app with their ages, then guides the user through rotating one via `npx opscrew rotate` after a leak, teammate departure, or expired token.
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.
OpsCrew makes the credentials an app runs on (each service's password, the app's own secrets, the
SSH keys, the private network's keys, Cloudflare's tokens, the state passphrase, the add-ons'
passwords, the recovery copy's key) and copies them where they are needed. npx opscrew rotate
replaces one everywhere, in the right order, without showing the old or the new value.
Only looking happens through a tool. Rotating stays in the user's terminal, because each
rotation is a plan the user approves by its hash. Never run it through a tool, never pass
--approve, --confirm or --undo on the user's behalf, and never ask for a value, a key or a
token in the chat.
opscrew_credentials (read-only, with app and environment when the repository has
several). Each credential has the name the command takes, how it rotates, when it was made or
last rotated (or "since the first deploy"), and what else changes. Then come the user's own
tokens with their expiry where the provider shows it.opscrew_advise names credentials older than the plan's credentials.maxAgeDays (a year by
default) with the command that rotates each.The user runs npx opscrew rotate <name> (add --env <name>, and --app <key> for a further app).
Before they run it, say what the list says it costs:
APP_KEY and CRON_SECRET, Better
Auth's secret included (its old value stays only to decrypt). The plan says so and the user
types the app's name;network and device:<name> write new WireGuard configurations to import (--qr
draws each as a QR code); grant:<device>/<service> shows the device login's new password once.Several services and the app's own secrets rotate together in one plan
(npx opscrew rotate db cache app); everything else on its own. Other names: app and
app:<NAME> (the app's own secrets, on every target, a site through its GitHub secrets and a
deploy; npx opscrew rotate app --drop-previous drops Laravel's or Better Auth's previous value
once no data encrypted with it remains, after the user types the app's name), deploy-key,
check-key, preview-key, access-token, tunnel-token (terminal only), state-passphrase,
monitoring, portainer, beszel, and recovery-key (--key-out <file> for the new age key;
never read that file).
The user's own tokens (hetzner, digitalocean, contabo, ovhcloud, cloudflare,
github, cloudflare-deploy, ghcr, ntfy): OpsCrew never makes them. The user makes the new
token at the provider and sets it in its variable (Contabo's are a set: all four CNTB_OAUTH2_*
values; on OVHcloud a new service account, added to the IAM policy on the Public Cloud project,
in OVH_CLIENT_ID and OVH_CLIENT_SECRET), then runs npx opscrew rotate <name>. OpsCrew
checks it, replaces every copy it made and names the page where the user deletes the old one.
After a rotation OpsCrew records its date in opscrew/credentials.yaml (names and dates only) and
refreshes the recovery copy, both in the deploy pull request.
Pass on what the error says. Running the same command again goes on from where it stopped. For
services, app secrets and device logins, --undo puts the old values back until they begin to be
dropped. The add-ons (monitoring, beszel) only go forward. Until the rotation completes,
the old values stay on the user's computer and the servers keep the old env files as .previous.
Earlier values a snapshot still needs stay in the generated values on the user's computer and,
encrypted, in the recovery copy (history).
A rotation is refused while a deploy, a move or a snapshot runs. On another computer, provision
stops when its values are older than the record and says to run npx opscrew secrets restore.
The user's guide is docs/guide/credential-rotation.md in the OpsCrew repository.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub opscrew-hub/opscrew --plugin opscrew6 skills in this plugin
/opscrew-adaptPrepare the app's code for container deployment the OpsCrew way (production Dockerfile, .dockerignore, health endpoint, port from the environment, secrets moved to environment variables, build settings). Use after OpsCrew's design step, or whenever the user asks to containerize or productionize the app for OpsCrew./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-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