/kamal-skills:appfrom kamal-skills
Operate and inspect already-running Kamal apps without redeploying. Manage app containers with `kamal app` (boot, start, stop, containers, details, images, version, logs, exec, remove, stale_containers), set maintenance/live mode (`kamal app maintenance --message`, `kamal app live`, `error_pages_path`), see every container with `kamal details`, review what ran on each server with `kamal audit`, print the resolved config with `kamal config`, run one-off and interactive commands with `kamal app exec` (`--primary/-p`, `--interactive/-i`, `--reuse`, `--raw`), and check the installed CLI version with `kamal version`. Use when the user says "boot/start/stop the app," "show running containers," "exec into the app," "open a Rails console," "run a command on all servers," "put the app in maintenance mode," "show the audit log," or "print my Kamal config." For shipping releases, see deploy. For reverting a release, see rollback. For log-driver and OTel/file config, see logging. For kamal-proxy, see proxy.
Ships in kamal-skills. 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.
You are an expert in operating applications deployed with Kamal. Your goal is to inspect, control, and troubleshoot the containers that are already running on your servers — without redeploying. kamal app manages running apps, while kamal details, kamal audit, and kamal config tell you what is running, what happened, and how Kamal is configured.
To deploy new versions, see the deploy skill; to revert a bad release, see rollback.
Read the project's Kamal config before asking the user questions — it tells you the roles, hosts, and destinations these commands run against.
config/deploy.yml — defines your servers, roles, registry, and build settings.config/deploy.<destination>.yml — destination-specific config, selected with -d, --destination..kamal/secrets — where deploy secrets are read from.To see the values Kamal will actually use, run kamal config (covered below) instead of guessing from the raw YAML.
kamal app Commandkamal app manages your running apps. Run it with no subcommand to list everything it can do:
| Subcommand | What it does |
|---|---|
kamal app boot | Boot app on servers (or reboot app if already running) |
kamal app start | Start existing app container on servers |
kamal app stop | Stop app container on servers |
kamal app remove | Remove app containers and images from servers |
kamal app containers | Show app containers on servers |
kamal app details | Show details about app containers |
kamal app images | Show app images on servers |
kamal app version | Show app version currently running on servers |
kamal app logs | Show log lines from app on servers (use --help to show options) |
kamal app exec [CMD...] | Execute a custom command on servers within the app container |
kamal app maintenance | Set the app to maintenance mode |
kamal app live | Set the app to live mode |
kamal app stale_containers | Detect app stale containers |
For the full listing with notes on each, see references/app-command-reference.md. kamal app exec is covered under Running Commands on Servers.
kamal details
Shows details of all your containers — proxy, app, and accessory containers — grouped by host.
kamal app details # details about app containers
kamal app containers # list app containers on servers
kamal app images # app images on servers
kamal app version # app version currently running on servers
kamal app logs # show log lines from the app on servers
kamal app logs --help # see all log options
Run kamal app logs --help to see all log options. To configure the log driver or ship logs to OpenTelemetry or a file, see the logging skill.
These subcommands manage the app container directly, without running a full deploy.
| Goal | Command |
|---|---|
| Boot the app (or reboot if already running) | kamal app boot |
| Start a stopped app container | kamal app start |
| Stop the running app container | kamal app stop |
| Remove app containers and images | kamal app remove |
| Detect stale app containers | kamal app stale_containers |
kamal app boot boots the app on servers, or reboots it if it's already running. kamal app start and kamal app stop start and stop the existing container without rebuilding. kamal app remove removes app containers and images from the servers.
Take the app offline for users while you work, then bring it back.
kamal app maintenance
While in maintenance mode, kamal-proxy intercepts requests and returns 503 responses using a built-in HTML error page.
Customize the message shown on that page:
kamal app maintenance --message "Scheduled maintenance window from ..."
To serve your own error pages instead of the built-in template, set the error_pages_path config option — a directory (relative to the app root) holding pages named after their HTTP status code, e.g. 503.html:
error_pages_path: public
Bring the app back:
kamal app live
This sets the app back to live mode.
kamal app exec runs a command inside the app container on your servers. Use it for one-off tasks, inspecting the environment, or opening an interactive console. Define aliases in your config for commands you run often.
kamal app exec 'ruby -v'
kamal app exec --primary 'cat .ruby-version'
# short form
kamal app exec -p 'bin/rails runner "puts Rails.application.config.time_zone"'
Interactive commands (a Rails console, a bash session) default to the primary host — use --hosts to connect to another.
kamal app exec -i 'bin/rails console' # new container from the most recent app image
kamal app exec -i --reuse bash # the currently running container
-i / --interactive runs the command interactively over SSH. --reuse runs in the currently running container instead of a fresh one made from the latest image.
--rawBy default exec runs the command's output through SSHKit's capture, which strips leading and trailing whitespace — including trailing newlines and NUL bytes — corrupting binary output such as a tar stream. Pass --raw to emit stdout exactly as produced; it also lowers the logging level so only the command's output is written.
kamal app exec --raw 'tar c -C /rails/storage .' > storage.tar
--raw can't be combined with --interactive or --detach.
For every exec pattern and option, see references/exec-reference.md.
kamal audit
Shows the latest commands that have been run on each server. Under the hood Kamal tails .kamal/app-audit.log on each host, so you get a per-server timeline:
App Host: server1
[2024-04-05T07:14:23Z] [user] Pushed env files
[2024-04-05T07:14:29Z] [user] Pulled image with version 75bf6fa40b975cbd8aec05abf7164e0982f185ac
[2024-04-05T07:14:45Z] [user] [web] Booted app version 75bf6fa40b975cbd8aec05abf7164e0982f185ac
[2024-04-05T07:14:53Z] [user] Tagging registry:4443/app:75bf6fa40b975cbd8aec05abf7164e0982f185ac as the latest image
[2024-04-05T07:14:53Z] [user] Pruned containers
[2024-04-05T07:14:53Z] [user] Pruned images
Use it to confirm who deployed what and when, and to see the push/pull/boot/tag/prune sequence each deploy produced.
kamal config
Displays your config — the values Kamal will use, including the roles, hosts, and primary host; the version, repository, and absolute_image to deploy; the service_with_version; SSH and builder settings; accessories; and logging options:
:roles:
- web
:hosts:
- vm1
- vm2
:primary_host: vm1
:version: 505f4f60089b262c693885596fbd768a6ab663e9
:repository: registry:4443/app
:absolute_image: registry:4443/app:505f4f60089b262c693885596fbd768a6ab663e9
:service_with_version: app-505f4f60089b262c693885596fbd768a6ab663e9
Run it to confirm what a command will target before you run it. See the full example in the official config docs.
There are two distinct "version" questions, each with its own command:
| Question | Command | What it returns |
|---|---|---|
| What app version is running on my servers? | kamal app version | The app version currently running on servers |
| What version of Kamal itself do I have? | kamal version | The version of Kamal installed (e.g. 2.12.0) |
Don't confuse kamal app version (your app's deployed version) with kamal version (the Kamal CLI's version).
| Goal | Command |
|---|---|
| See every container on every host | kamal details |
| List app containers / show details | kamal app containers / kamal app details |
| Show app images | kamal app images |
| Show running app version | kamal app version |
| Show recent app logs | kamal app logs |
| Boot / start / stop the app | kamal app boot / kamal app start / kamal app stop |
| Maintenance / live mode | kamal app maintenance / kamal app live |
| Run a command on all servers | kamal app exec 'CMD' |
| Run on the primary only | kamal app exec -p 'CMD' |
| Open an interactive console | kamal app exec -i 'bin/rails console' |
| Review server activity | kamal audit |
| Print the resolved config | kamal config |
| Kamal CLI version | kamal version |
kamal deploy and kamal redeploy.kamal rollback after a bad deploy.503 during maintenance mode and cuts traffic over on deploy.What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/accessoriesRun and manage accessory services — databases, Redis, search, and other long-lived dependencies your app needs — through Kamal's `accessories:` configuration and the `kamal accessory` command. Use this when the user says things like "add a MySQL/Postgres/Redis accessory," "run a database with Kamal," "kamal accessory boot," "set up a sidecar/companion service," "my app needs a cache or search container," "persist accessory data with volumes," or "reboot/restart/remove an accessory." Covers defining the accessory (image, host/hosts/role/roles/tag/tags, port, env, files, directories, volumes, network, options, registry, proxy) and operating it with boot, reboot, restart, start, stop, details, logs, exec, and remove. For passing configuration and credentials into accessories, see env and secrets. For scheduled jobs, see cron./aliasesDefine custom command aliases under the top-level `aliases` key in `config/deploy.yml` so a long, repeated `kamal` invocation becomes a single `kamal <name>`. Use it when the user says "add a Kamal alias," "shortcut kamal app exec," "make `kamal console` open a Rails console," "create a one-liner to deploy staging," "I keep retyping the same kamal command," or asks about the `aliases` config key, alias naming rules, or a `deploy -d staging` shortcut. Covers how an alias expands into a `kamal` subcommand, the lowercase letters/numbers/dashes/underscores naming rule, and the documented examples `console: app exec -i --reuse "bin/rails console"`, `uname: app exec -p -q -r web "uname -a"`, and `staging_deploy: deploy -d staging`. For the rest of `config/deploy.yml` and DRYing it up with YAML anchors, see config. For the underlying app exec / console / logs commands the aliases wrap, see app./buildConfigure Kamal builders and build then push your app image. Use this skill when the user wants to set up the `builder` block in config/deploy.yml — choosing local, remote, multi-arch, or Docker Build Cloud builds, picking a `driver`, passing build `args`, build `secrets`, or `cache`, switching the `dockerfile`, `context`, or `target`, or building without a Dockerfile via buildpacks (`pack`) — and when they want to run `kamal build push`, `kamal build dev`, or other `kamal build` subcommands. Trigger phrases include "kamal build," "build my image," "push the image to the registry," "build for amd64/arm64," "remote builder," "Apple Silicon cross-build is slow," "speed up my builds with cache," "pass a build arg," "use a build secret," or "build without a Dockerfile." For configuring the container registry, see registry. For the one-step flow that builds and ships in a single command, see deploy. For managing the secret values that build secrets reference, see secrets./ci-deploySet up continuous deployment so every push to main runs `kamal deploy` from GitHub Actions once the tests pass — for any stack Kamal ships (Rails, Next.js, Phoenix, Rust, static sites, and more). Use when the user says "auto-deploy on push," "deploy from GitHub Actions," "continuous deployment with Kamal," "deploy when CI passes," "set up CD," "stop deploying from my laptop," or "use 1Password in GitHub Actions." Covers the deploy ssh key, secrets in a GitHub environment or read from 1Password with a service account, the workflow, the GHA build cache, and verifying the first run. For running a deploy by hand, see deploy. For the secrets file itself, see secrets. For build cache options, see build./configUnderstand and write your Kamal configuration in config/deploy.yml. Use when the user says "set up config/deploy.yml," "what goes in my deploy.yml," "what are the required keys," "add a staging destination," "deploy with -d staging," "DRY up my config with YAML anchors," "what does retain_containers / readiness_delay / primary_role / deploy_timeout do," "kamal init," or "kamal config." Covers the required service and image keys, destinations (-d) and merged per-destination files, x- extensions, every top-level option and its default, and reusing config with anchors and aliases. For configuring servers and roles, see servers. For env and secrets, see env. For command shortcuts, see aliases. For a first deployment, see setup./cronRun recurring, scheduled, or cron jobs on a Kamal deployment. Use when the user says "run a cron job," "schedule a recurring task," "nightly job," "hourly job," "periodic task," "set up cron with Kamal," "scheduled jobs," "run cron in a container," or asks how to keep a crontab running on their servers. Covers defining a dedicated `cron` role under the `servers:` key with a `cmd` that loads a `config/crontab` file and runs `cron -f`, and propagating environment variables into the crontab (cron does not pass them through on its own). For configuring web and worker job roles or targeting hosts/roles, see servers. For running databases, Redis, or other supporting services, see accessories. For setting `env:` values and secrets the jobs need, see env.npx claudepluginhub donnfelker/kamal-skills --plugin kamal-skillsOther plugins' skills for the same job