# SafeAgentDB

> Gives every branch and PR its own preview database and live URL, so agents can run migrations and test without touching production.

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

- Type: Skill
- Made by: Aidan945
- Category: Databases
- Formats: Skills
- Version: 4f39e03
- Website: https://github.com/aidan945/safeagentdb
- Source: https://github.com/aidan945/safeagentdb/tree/HEAD/skills/safeagentdb
- Page: https://pluginboard.ai/skills/safeagentdb

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the safeagentdb folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Claude

In Claude (web or desktop): Download the safeagentdb folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Gemini

In Gemini: Download the safeagentdb folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.copilot/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Cursor

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.cursor/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Claude Code

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.claude/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Codex

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.agents/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Antigravity

In Antigravity: Copy the safeagentdb folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Gemini CLI

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.gemini/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Replit

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb .agents/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### OpenClaw

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.openclaw/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### OpenCode

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.config/opencode/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

### Hermes Agent

Run in your terminal:

```shell
npx -y degit Aidan945/SafeAgentDB/skills/safeagentdb ~/.hermes/skills/safeagentdb
```

View the folder on GitHub: https://github.com/Aidan945/SafeAgentDB/tree/HEAD/skills/safeagentdb

---
From Pluginboard (https://pluginboard.ai).
