Agent skill
kamal-deploy
Deploy Docker applications using Kamal 2 with zero-downtime and automatic SSL. Use this skill when (1) setting up new Kamal deployments, (2) generating deploy.yml configuration, (3) deploying apps that lack health endpoints (using Caddy workaround).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/kamal-deploy
SKILL.md
Kamal 2 Deployment
Workflow
Ask user for:
- Domain — e.g.,
app.example.com(service name:app_example_com) - Server IP(s)
- Health endpoint — Does app return 200 on
/upwithout auth?
Generate config/deploy.yml
service: {{DOMAIN_UNDERSCORED}}
image: jalen0x/{{DOMAIN_UNDERSCORED}}
servers:
web:
hosts:
- {{SERVER_IP}}
proxy:
ssl: true
host: {{DOMAIN}}
registry:
username: jalen0x
password:
- KAMAL_REGISTRY_PASSWORD
ssh:
user: ubuntu
builder:
arch: amd64
Health Endpoint
App must respond 200 on /up at port 80 (default).
Custom path: Add healthcheck.path to proxy config.
No health endpoint: Use Caddy. Copy templates from assets/ and customize:
assets/Caddyfile→ projectCaddyfileassets/start.sh→ projectstart.sh
Generate Dockerfile:
FROM {{BASE_IMAGE}}
RUN apk add --no-cache caddy
COPY Caddyfile /Caddyfile
COPY start.sh /start.sh
RUN chmod +x /start.sh
ENTRYPOINT ["/bin/sh", "/start.sh"]
Commands
kamal setup # First-time
kamal deploy # Deploy
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?