/crewforth:deployfrom Crewforth
Ships builds reversibly to self-managed hosts or managed platforms, with health gates and rollback without rebuilding. Use when deploying anywhere users can reach.
Ships in Crewforth. 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.
Read when SKILL.md points to them.
Trigger phrases: "deploy", "push to the server", "to the server", "onto the server", "build on the server", "install on the VPS", "ship it to the server", "go to production", "to production", "go live"
A deploy has a single idea, and it does not depend on where you are deploying: make the new version live in a way you can undo. Keep the previous version reachable until the new one has proved itself; if it fails the health gate, go back to the old one and nobody notices.
Two topologies implement that idea differently, and mixing them is where deploys go wrong. On a host you manage, "reversible" means the previous release still sits on disk and the swap is a pointer you can move back. On a platform that manages the host for you, "reversible" means the previous artefact is still addressable and you re-point the environment at it — you do not rebuild it. Phase 0 picks the branch; everything after follows.
Crewforth adaptation (local, .claude/): Any backend runtime (Docker recommended). Deploy requires explicit approval (§4.4); a backup before every swap and a health gate after are mandatory. If
.deploy.ymlcarries server credentials it goes into.gitignore. §4 Prohibitions apply.
Answer before anything else, because the rest of the skill forks here. Ask if it is not obvious; do not infer it from the language or the framework.
| A · Self-managed host | B · Managed platform | |
|---|---|---|
| You have | SSH to a machine you own or rent | an API/CLI, and no shell on the box |
| A release is | a directory on that host | an immutable artefact (image digest, build id, bundle) |
| "Deploy" means | put the files in place and restart | promote an existing artefact to an environment |
| Rollback means | move the pointer back to the previous directory | re-point the environment at the previous artefact |
| Owned by | references/topology-a.md (phases 1–5) | references/topology-b.md (phases B1–B4) |
Signals for B: the platform builds from a push, or the runtime is described as containers/functions/dynos/pods that you do not administer. Signals for A: you are given a host, a user and a port. A Kubernetes cluster is B when a controller reconciles it from a manifest, and A only if you are genuinely hand-placing files on nodes.
If both are in play — a managed platform in front, a self-managed worker behind — run the branches separately and gate each on its own health check. One approval does not cover two topologies.
.deploy.yml/the user, SSH verifiedreleases/deploy.sh / adopt.sh) generatedPhase 0 picked it; loading both is the mistake this skill opens with.
references/topology-a.md: runtime/method detection, .deploy.yml + SSH,
reverse proxy and SSL, the backup-then-swap for Docker and bare-metal, the health gate, the rollback.references/topology-b.md: build once and address it immutably, promote
without rebuilding, health-gate from outside the platform, roll back by re-pointing.The invariant rules at the end of this file hold on both, and they are the half that must not be read from a reference file: they are what an approval is checked against.
When the platform sends a share of traffic to the new version first (canary, percentage, ring), each step is read against the old version's numbers over the same window, not against a feeling:
| Signal, new vs baseline | Decision |
|---|---|
| Error rate above 2x the baseline, or p95 latency more than 50% above it | Roll back now |
| Error rate 1.2x-2x, or p95 20-50% above | Hold at this share and look; do not advance |
| Within that band, and the error budget for the period is not spent | Advance to the next share |
| The error budget is spent | Hold every rollout until it recovers |
The numbers are defaults to tune per service, and the user approves the changed ones. A step with too little traffic to compare says so and holds; it does not advance on silence.
After a successful deploy, ask whether to generate project-specific deploy.sh / adopt.sh (single-command
deploy/update). Derive the steps from the real project (package.json / Dockerfile / Makefile / compose), never a
generic template. Full guidance + what each script contains: references/scripts.md.
These hold on BOTH branches; where the mechanism differs, the rule does not. 0. The topology is decided, not assumed — Phase 0, once, out loud. Everything downstream depends on it.
releases/; if the backup fails, abort.127.0.0.1, outward only through the proxy.ssl is explicitly false.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub crewforth/crewforth --plugin crewforth60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
/automode-policyAuto-mode classifier config: inspect what the classifier that answers permission prompts is configured
with, and catch the silent case where a custom autoMode block drops the built-in block rules.
/backend-architectureDecide, record and apply the backend stack and architecture pattern.
Use when backend work starts with no recorded stack, or a framework/DB/pattern must be chosen.
/brainstormUse when the ask is still fuzzy and no direction is chosen yet: "not sure what we want", several ways to go,
or a scope to settle before any plan is written.
Other plugins' skills for the same job