Deploy checklist
Goal
Turn a vague "ship it" into a short ordered list the person can follow while tired, with a clear point where they stop and roll back.
A good checklist is built from this diff, not copied from a generic template.
When to use
- The user is about to deploy and wants to know what to check.
- The release has a migration, a config change or a new dependency.
- A team wants a repeatable list for a service.
- For undoing a release, use
use_skillwithrollback-runbook.
Steps
- Read the change:
git_diffagainst the last released tag, orrun_commandwithgit log --oneline <tag>..HEAD. List files that touch schema, config, infra, dependencies and public API. - Ask with
ask_userwhat the deploy target is, who is on call, and whether traffic is low at the planned time, only if the repository does not say. - Find migrations with
rgformigrationsandALTER. Mark any that lock tables or cannot be reversed. - Find new environment variables with
rgonprocess.envandos.environin the diff. List where each must be set before the deploy. - Find feature flags and mark the default state in production.
- Write Before: tests green, build artifact identified by version, backups taken if data changes, config set, on call informed, rollback path confirmed.
- Write During: the order of steps (migration, then app, or the reverse), what to watch, and the minutes to wait between stages.
- Write After: health endpoints, one real user path tested by hand, error rate and latency compared with the hour before, queue depth, logs for new error types.
- Define the abort rule with numbers the team agrees on, for example the error rate at which they stop. Do not invent thresholds; ask or leave a blank to fill.
- Note who decides to roll back and where the rollback steps live.
- Use
update_planto track the list if the user is deploying with you now. - Offer to save the list with
create_fileasdocs/deploy-<version>.md.
Gotchas
- Deploying app code before a migration that it needs, or the reverse, is the classic ordering failure. State the order explicitly.
- A green health endpoint proves the process is up, not that checkout or login works.
- A change that is safe alone can fail with the old version still running during a rolling deploy. Check both versions against the new schema.
- Friday evening and holiday deploys fail more painfully because nobody is around to fix them. Say so once.
- A checklist with 40 items is skipped. Keep what this change needs and drop the rest.
- Secrets added to the pipeline but not to the runtime show up only after traffic arrives.
Output
- A Before, During and After checklist with checkboxes, ordered, with the abort rule at the top.
- The riskiest item called out in one line.
- Unknowns listed as questions for the user.
