Skip to content
Back to skills

Stepless Runbook

ASecurity

Restores a staging database from the nightly dump. Use when staging data is broken, when the user asks to reset staging, or after a migration test left it dirty.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add letsloose501/sqs-skills --skill stepless-runbook --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stepless Runbook?

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

Security grade badge for Stepless Runbook
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/letsloose501-stepless-runbook/badge)](https://www.skillsdirectory.com/skills/letsloose501-stepless-runbook)

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: stepless-runbook
description: Restores a staging database from the nightly dump. Use when staging data is broken, when the user asks to reset staging, or after a migration test left it dirty.
---

# Restore staging

**The restore.** First, find the newest dump in the backups bucket; the nightly job names each one after its date, so the newest is the last in the listing, and a dump older than two days means the job has been failing and is worth reporting before anything else happens. Then stop the staging application so nothing writes to the database while it is being replaced, because a write that lands halfway through the restore leaves a table that matches neither the dump nor the old state, and that is much harder to notice than a restore that failed outright. After that, drop the staging database and create it again empty, with the same owner and encoding the old one had, which the connection settings in the deployment config list for this environment. Next, load the dump into the new database and watch the loader output for errors about missing roles, which mean the dump came from a different cluster than the one it was meant for. Finally, start the application again, open the health page, and check that it reports the database as reachable and the row counts as roughly what production had the night before, for example within a few percent on the orders table.

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 ai-agents →

Comments

Loading comments…

Newsletter

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