prod-dry-run

prod-dry-run is a skill for Claude Code from suxrobGM/jobpilot. It costs 61 tokens per session (875 once invoked), scanned A, original, MIT.

A procedure for copying a production PostgreSQL database into a local development database, applying pending database changes, and checking the application against that copy.

In plain words
What is it for?
Use it for migration dry runs, restoring production data locally, or testing a code branch against a production-like database.
Why use it?
It lets developers test database changes with realistic data while keeping production read-only. It also warns about backing up the local database and stopping the local API first.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is DATABASE_URL=<local> VAPID_PRIVATE_KEY= bun ../../.claude/skills/prod-dry-run/scripts/check.ts.

Good fit Use it for migration dry runs, restoring production data locally, or testing a code branch against a production-like database.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/suxrobGM/jobpilot
agentmods
npx agentmods add skills/suxrobgm/jobpilot/prod-dry-run

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prod-dry-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/suxrobgm/jobpilot/prod-dry-run/github.svg)](https://agentmods.dev/skills/suxrobgm/jobpilot/prod-dry-run)
Your own site
<a href="https://agentmods.dev/skills/suxrobgm/jobpilot/prod-dry-run"><img src="https://agentmods.dev/badge/skills/suxrobgm/jobpilot/prod-dry-run/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prod-dry-run

Your own site · 80×15
<a href="https://agentmods.dev/skills/suxrobgm/jobpilot/prod-dry-run"><img src="https://agentmods.dev/badge/skills/suxrobgm/jobpilot/prod-dry-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 875 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00875
Opus 5.5 $0.00024 $0.00350
Sonnet 5.5 $0.00012 $0.00175
Haiku 4.5 $0.00006 $0.00088

Measured 20d ago against content hash 57d9eb5d6852, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prod-dry-run scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Nothing may be connected to the local DB: `curl localhost:4101/api/health` must fail. A
.claude/skills/prod-dry-run/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prod dry run

Prod is read-only here: the tunnel is used for pg_dump and nothing else. The local dev DB is overwritten, so back it up first.

Setup

  • Tools: C:\Program Files\PostgreSQL\18\bin (pg_dump, pg_restore, psql). Not on PATH.
  • URLs: apps/api/.env has a DATABASE_URL for local :5432 and one for the tunnel :5433; one is commented out. Take the user, password and DB from each. %23 in a URL is #.
  • Export DATABASE_URL for local :5432 in every command below, whatever .env has active.
  • Nothing may be connected to the local DB: curl localhost:4101/api/health must fail. A running dev API would run maintenance and send pushes to real users' devices.

Steps

  1. Tunnel. bun run db:tunnel in the background. Poll psql -h localhost -p 5433 ... -c "select 1" until it answers. Note prod's latest _prisma_migrations rows and the users and pilot_runs counts.

  2. Dump. Into .tmp/prod-dump/ (gitignored):

    • prod: pg_dump -h localhost -p 5433 ... -Fc -f prod-<date>.dump
    • local backup: pg_dump -h localhost -p 5432 ... -Fc -f local-before-<date>.dump

    Then stop the tunnel.

  3. Restore. On :5432 against postgres: terminate jobpilot backends, drop database jobpilot, create database jobpilot, then pg_restore --no-owner --no-acl -d jobpilot prod-<date>.dump. Confirm the counts match step 1.

  4. Migrate. bun --cwd=apps/api run db:migrate:apply. Then bun --cwd=apps/api run db:diff must print an empty migration. Prisma misses partial indexes, so also confirm the hand-written ones survive (select indexname from pg_indexes where tablename='pilot_runs').

  5. SQL checks. Query what the new migrations backfill or drop: null counts on new columns, rows a backfill missed (grouped by type and date), and data the branch's behavior changes now act on (for example, unanswered messages that will get a reply after deploy).

  6. App checks. Run this skill's script from apps/api (so .env loads) with push disabled:

Read the full file on GitHub · 57 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago First seen · 57 lines · 61 tokens per session scan A 57d9eb5d6852

Subscribe to this mod's changes

prod-dry-run is a skill published in the GitHub repository suxrobGM/jobpilot (116 stars, last pushed 21d ago), licensed MIT. It adds 61 tokens to every session and 875 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-10.

Related

prod-dry-run compared with skills from other repositories

prod-dry-run next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prod-dry-runsuxrobGM/jobpilotSkill11621d agoMITA61Claude Code
ecto-patternsoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA51Claude Code
cloudflare-hyperdrivesecondsky/claude-skillsSkill2578d agoMITA45Claude Code
ecto-constraint-debugoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA36Claude Code
postgresqliliaal/whetstoneSkill37todayMITA61Claude Code, Codex
pytest-databaseslitestar-org/litestar-skillsSkill197d agoMITA161Claude Code
ia-postgresqliliaal/whetstoneSkill37todayMITA49Claude Code