ship-provision
Skill1 starsChanged 4 months agoMITView on GitHub
Phase 7 of the ship pipeline — stand up the server and access. Provision the VM, create and lock down SSH keys, install systemd services + timers, configure the firewall, and record it all in the runbook. Use when it's time to create/configure the production host, set up SSH, or wire systemd/backups on the server.
- Reads credentials
In this repository10 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- ship-buildSkill
- ship-deploySkill
- ship-expert-qaSkill
- ship-monitorSkill
- ship-prod-prepSkill
- ship-researchSkill
- ship-seo-strategySkill
- shipSkill
- ship-specSkill
The file
Files
Phase 7 — Provision (server + SSH)
Turn an empty host into a repeatable, secured runtime. Record every step in
production_runbook.md so the box is reproducible.
Assumes a Linux VM (systemd, SSH). On managed/serverless platforms the provider handles most of this — skip to the parts that still apply (secrets, domains, backups).
Host
- Provision VM (right size; region near users). Note provider, ID, region, IP.
- OS baseline: updates, non-root deploy user, timezone, swap if small.
- Docker/Compose or the language runtime installed as the spec requires.
SSH & access
- Generate a dedicated ed25519 keypair for this host — never reuse across hosts.
ssh-keygen -t ed25519 -C "deploy@<project>" -f <name> - Install the public key; disable password auth; deploy user in sudoers as needed.
- Private key stored securely (see the secrets policy); reference it in the runbook, never paste the private key into committed files.
- Record host in
~/.ssh/configwith an alias.
Services
- systemd units for each service (+
enable --now);restart: unless-stoppedfor containers. - Timers for scheduled jobs (backups, retention cleanup) — verify with
systemctl list-timers. - Backup timer installed + a restore test performed (a backup you haven't restored is a hope, not a backup — this needs the live host, so it lives here, not phase 6).
- Provision the staging slot — a prod-like target (same host with a separate compose/port, or a small separate VM) so deploy can build-once → staging → prod.
- Reverse proxy (Caddy/nginx) installed and pointed at the app port.
Firewall / hardening
- Only required ports open (80/443 + SSH); everything else closed.
- Private services bound to
127.0.0.1; cloud metadata IP blocked. - Fail2ban / rate limiting on SSH if internet-facing.
Safety
Provisioning is outward-facing and hard to reverse. Confirm before: destroying/ recreating hosts, changing DNS, opening ports, or rotating live keys. Do not execute financial or account-creation steps for the owner — hand those back.
Gate → phase 8
- ✅ Host reachable via key-only SSH; services enabled; timers listed.
- ✅ Firewall verified; private services not publicly reachable.
- ✅ Backup restore test passed; staging slot reachable.
- ✅ Runbook updated so the host can be rebuilt from it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

