Skip to content
Back to skills

Ship Safely

ASecurity

Prepare a tagged production release with additive migrations, health checks, protected secrets and a tested way back.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
developmentapidatabase

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add BuffApe/BuffApe --skill ship-safely --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship Safely?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ship Safely
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/buffape-ship-safely/badge)](https://www.skillsdirectory.com/skills/buffape-ship-safely)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ship-safely
description: Prepare a tagged production release with additive migrations, health checks, protected secrets and a tested way back.
---

# Ship safely

Use the project's release process and the owner's authorized destination.
Prepare a reviewable release before seeking any missing deployment approval.
Existing authorization covers only the release and destination it names.
Do not publish or deploy as a side effect of preparing the release.

## Name the release

Release from a tag that identifies one reviewed source revision.
Check the working tree is clean and required reviews and checks have passed.
Write release notes with behavior changes and any upgrade steps.
Confirm the tag points to the revision that was tested.

Build a release artifact from that revision and record its identity.
Use that same artifact through staging and production where the stack permits.
Keep environment settings separate from the build so a move does not change code.
Follow the owner's rules for creating or publishing tags; a tag may trigger release.

## Keep secrets outside the repository

Use the platform's secret store or a protected settings file outside version control.
Give each service only the access it needs.
Do not put passwords, keys or tokens in command arguments or release notes.
Check staged files and build output for secrets, local settings and database dumps.
Keep logs and health responses free of credentials and personal records.
If a secret was exposed, stop and have it revoked or rotated before continuing.

## Make data changes safe for the old version

During a release, migrations only add what the running version can tolerate.
Do not drop or rename a field the old version reads, narrow its type or make
an optional value required while old code may still write it.
Add the new shape first, move readers and writers, then remove the old shape
in a later release after the supported way back no longer needs it.

Rehearse the migration on a disposable copy of a recent backup.
Record whether it completed, how long it took and whether row counts agree.
Use the project's access controls for that copy and remove it after rehearsal.
Never use a production database as a test workspace.

Take a fresh backup before applying the release.
Know where the backup is, who can restore it and when restore was last tested.
Keep a copy outside the machine being upgraded.
If the data cannot remain compatible, stop for a separately reviewed change plan.

## Know the way back

Keep the previous working artifact and the settings needed to start it.
Write the rollback command or steps for this project's actual platform.
Check that the previous app can run against the database after this migration.
Rolling back code does not undo data changes.

Rehearse the switch back in staging before relying on it in production.
Include all shipped parts: API, workers, browser assets and other processes.
On a first release there is no previous artifact; define how to stop the failed
release, preserve needed data and tell the owner what is unavailable.

## Deploy and observe

Confirm the target, release identity, settings and authorization before switching.
Use the established deployment command; stop at its first failed step.
Allow work in progress to finish or follow the project's safe shutdown rules.
Apply the compatible migrations and start the release's processes.

Check health from outside the app and verify every required process stays up.
Health must test needed dependencies, not merely that a port answers.
An unknown or failed dependency is not healthy.
Watch for crashes, restart loops, failed jobs and growing queues.
Run a smoke journey such as sign-in and one safe core action.

Observe for the project's stated window before declaring success.
If the release fails, switch to the known working artifact and check it again.
If rollback fails, stop further release attempts and notify the owner promptly.
Do not repeatedly deploy in the hope that an unexplained failure disappears.

## Report the outcome

Record the tag, source revision, artifact identity, destination and time.
Report migration, health, process and smoke-check results as they happened.
State whether the new release is running, was rolled back or remains failed.
Name any action the owner must take and where the safe logs can be found.
Keep the release record free of secrets.

## With BuffCore

`ape backup test --migrations --json` rehearses pending migrations on a backup;
`ape migrate check` checks compatibility with the running release. `ape deploy`
ships the checked-out commit, checks health and processes, and restores the previous
image on failure; check out the approved tag before preparing that deployment.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.