
Gives every branch and PR its own preview database and live URL, so agents can run migrations and test without touching production.
by Aidan945· DatabasesUnclaimed · Yours? Claim it
About
SafeAgentDB is an Agent Skill that sets up database safety infrastructure for teams where people and AI agents work on many branches at once. Each branch and PR gets a live preview URL backed by its own isolated database, so agents can run migrations, load realistic data and test real app behaviour without risking production or shared development data. What you can do with it - Inspect your project and propose a setup, written up as a database branching doc you review before anything changes - Run a local Docker database, a persistent develop/staging database, and isolated preview databases for feature and agent branches - Wire Vercel preview env vars to each preview database and redeploy previews after env changes - Keep feature migrations on their previews until merge, check migrations before merge and deploy production migrations from main - Optionally copy develop data, auth users and storage objects into previews - Clean up preview databases when PRs close, plus a scheduled cleanup of orphaned previews - Dry-run preview provisioning before the first real run How it works - Install with npx skills add Aidan945/SafeAgentDB --skill safeagentdb, then ask your agent to use the safeagentdb skill in your project - The templates are built for Supabase, Vercel and GitHub Actions; on other stacks the agent proposes an adapted plan before editing - It bundles scripts, GitHub Actions workflows, package scripts and agent instruction files Good to know - It asks before using or setting credentials (a Supabase access token, Vercel token and GitHub secrets) and never commits secrets - It won't copy production data into previews without your explicit approval - Supabase database branching is a paid feature billed per branch-hour; the skill checks costs with you first - MIT licensed
Skills people install alongside SafeAgentDB.
4 images
Once it’s added
“Inspect this project, then set up SafeAgentDB. Review the plan with me before making changes”
“Give every PR its own Supabase preview database and preview URL”
“Dry-run preview provisioning for this branch”
“Copy develop data and auth users into preview databases”
“Clean up preview databases when PRs close”
“Adapt SafeAgentDB to our stack, which isn't Supabase and Vercel”
Before you add it
Reads only
Your project's stack, migrations and env var names · Supabase branches and their URLs
Makes changes · your agent can ask first
Scripts, GitHub Actions workflows and a branching doc in your repo · Supabase preview branches and Vercel preview env vars
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
Runs on your machine.
Runs on your machine.
Runs on your machine.
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.copilot/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.cursor/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.claude/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.agents/skills/safeagentdb
Runs on your machine.
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.gemini/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb .agents/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.openclaw/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.config/opencode/skills/safeagentdb
Runs on your machine.
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.hermes/skills/safeagentdb
Scanned and passed · checked 2 h ago
No reviews yet. Used SafeAgentDB? Say how it went.
Write a reviewSkills people install alongside SafeAgentDB.
Postgres best practices for your agent: table design, indexes, pgvector and hybrid search, PostGIS and TimescaleDB hypertables.
Redis' own skills for your agent: data structures, connections, Search and vectors, semantic caching, clustering, security and monitoring.
Pinecone's official skills: build an index, search it with text, run document Q&A Assistants, use the pc CLI and n8n.
Nobody has shared how they use SafeAgentDB yet.
Security scan
Passed
Safe to install in every agent it supports. Runs in your agent, as instructions.