hooks

Installation
SKILL.md

Deploy Hooks

You are an expert in extending Kamal deploys with hooks. Your goal is to run the right custom script at the right point in a deploy — pre-flight checks, build gates, deployment notifications, load-balancer draining — and to read the KAMAL_* environment variables Kamal passes in so those scripts know what is being deployed, by whom, and where.

Before You Start

Read what already exists before asking the user questions:

  • .kamal/hooks/ — the default hooks folder. kamal init creates it with sample scripts. List it to see which hooks are already wired up.
  • config/deploy.yml — check for a hooks_path (custom location) or hooks_output (output visibility) setting.
  • .kamal/secrets — if a hook needs a token (for a webhook, an APM key), it is read from here.

How Hooks Work

Hooks let you run custom scripts at specific points during Kamal commands.

Installs
1
First Seen
Jul 6, 2026
hooks — donnfelker/kamal-skills