4.3 KiB
ship
A Claude Code skill that releases and deploys one of your projects with a single command. You say ship proxyma 0.0.2, and Claude does the rest: tidies the source history, tags the release, builds and publishes the container image, prepares the deployment stack and starts it on the server.
What it does, in plain words
Releasing a project by hand means many small steps in several repositories, in the right order. This skill turns that checklist into one command:
- Source: the commits are reorganized into clean, single-purpose commits, the project is tested and a version tag is created.
- Image: a container image is built for amd64 and arm64 and published to the Gitea registry.
- Deployment: a
docker composestack with Traefik labels is prepared in its own repository. - Deploy: the stack is cloned on the target host, configured and started, then checked over HTTPS.
- Cleanup and report: temporary Docker leftovers are removed and you get a short summary with links, versions and anything left for you to do.
Claude acts as a coordinator: it runs one helper agent per repository in parallel, reviews their work, and is the only one that pushes, tags or deploys. Nothing goes online before it has been reviewed.
Install
Clone the repository into your Claude Code skills folder:
git clone https://git.bjphoster.com/skills/ship.git ~/.claude/skills/ship
Restart Claude Code (or open a new session). The skill is then available as /ship.
To update it later:
git -C ~/.claude/skills/ship pull
Usage
/ship [project] [version] [profile] [host=<host>]
Every argument is optional and the order does not matter: Claude recognizes each one by its shape.
| Argument | What it is | If you leave it out |
|---|---|---|
project |
Project name (e.g. proxyma) or path |
The project you are working in |
version |
Release version, no v prefix (e.g. 0.0.2, 0.1.0-alpha2) |
The next patch after the latest tag, or 0.0.1 for a first release |
profile |
bin, full or container (see below) |
Detected from the repositories |
host= |
Server to deploy to | Taken from memory or the existing deployment, otherwise Claude asks |
Examples:
/ship proxyma 0.0.2 full
/ship coredns-web-ui 0.1.0-alpha2 container
/ship 0.0.2
/ship goreflex bin
You can also just ask in your own words, for example "release proxyma 0.0.2 and deploy it": Claude picks the skill up by itself.
Profiles
A profile tells the skill which kind of project it is dealing with.
| Profile | Use it for | Example | Repositories involved |
|---|---|---|---|
bin |
Programs distributed as downloadable binaries, nothing to deploy | goreflex | source/<name> |
full |
Server apps that can run both natively (systemd) and in a container | proxyma | source/<name>, docker/<name>, deployments/<name> |
container |
Apps that only run as a container, with the image built by the source repo | coredns-web-ui | source/<name>, deployments/<name> |
If you are not sure, leave the profile out: the skill looks at what already exists and asks if it is still unclear.
What you need
- Claude Code with the Agent tool (for the parallel helpers).
- Docker on your machine: every build and test runs in containers, nothing is installed on the host.
- Git access to git.bjphoster.com over HTTPS (credential helper
store) and thegtGitea CLI logged in. - SSH access to the target host, which must run Docker and Traefik.
- Optional but recommended: the mnemory MCP server, so Claude remembers hosts and conventions between runs.
What it will and will not do
Running /ship approves the release of that one project: creating the repositories it needs, pushing the branch and the tag, publishing the image and deploying the stack.
It will not touch other projects, force-push existing branches, change the server's Traefik setup, or delete images, volumes or data that existed before the run. Secrets are generated on the host and never printed or committed. If something essential is missing (for example which server to deploy to), Claude asks once before starting.
Files
SKILL.md: the instructions Claude follows.references/: the briefs for the helper agents (source, image, deployment), the shared conventions and the deploy procedure.
License
MIT