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 initcreates it with sample scripts. List it to see which hooks are already wired up.config/deploy.yml— check for ahooks_path(custom location) orhooks_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.