neon-postgres-branches
Skill by sickn33
Helps an assistant choose and create the right Neon branch type for testing and development. It uses the Neon CLI or Neon MCP server. Aimed at developers who test migrations and need isolated Neon Postgres environments.
Install neon-postgres-branches
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/neon-postgres-branches ~/.claude/skills/neon-postgres-branchesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/neon-postgres-branches ~/.gemini/antigravity-cli/skills/neon-postgres-branchesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install neon-postgres-branches in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant choose between a normal Neon branch and a schema-only Neon branch, then create it with the Neon CLI or the Neon MCP server. Normal branches include real data and suit realistic migration and query testing. Schema-only branches (Beta) copy structure without rows, for sensitive data. The skill also covers resetting a child branch from its parent and declaring branch settings in a neon.ts file.
The skill includes command examples for creating branches with expiry dates, fetching connection strings, and running reset-from-parent. It also lists CI/CD patterns such as per-PR preview branches and migration testing before merge. It is written for developers and teams who test database changes on Neon Postgres and want isolated test environments.
Written from the project's SKILL.md and checked against it.
What it can do
- Branch type decisionPicks a normal branch for realistic data testing or a schema-only branch for sensitive data.
- Normal branch creationCreates a branch with real data using the Neon CLI, with an optional expiry date.
- Schema-only branch creationCreates a Beta branch that copies schema structure without copying rows.
- MCP branch flowUses create_branch to create a branch and describe_branch to validate it.
- Reset from parentReplaces a child branch's schema and data with the parent's latest state.
- Connection string retrievalFetches a connection string for a new branch with the Neon CLI.
- neon.ts branch policyDefines branch parent, expiry, protection and compute settings in code.
- CI/CD branch patternsDescribes per-PR previews, per-test-run branches and migration testing in CI.
What you need
- Neon CLI installed and authenticated, or Neon MCP server access
- A Neon project with a parent branch
- Node.js and @neon/config for neon.ts configuration
Try asking
- Create a normal Neon branch from main to test my migration with real data
- Make a schema-only Neon branch for our sensitive customer data tests
- Reset my dev branch from its parent branch in Neon, keeping a backup
Good to know
- Schema-only branching is in Beta
- Only child branches can be reset from parent; root and schema-only root branches cannot
- Reset from parent briefly interrupts active connections
- Root branch allowances and storage limits can cap schema-only branch creation
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/neon-postgres-branches/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB
Alternatives to neon-postgres-branches
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
neon-postgres-branches: common questions
When should I use a normal branch instead of a schema-only branch?
Use a normal branch for migration and performance testing against production-like data. Use a schema-only branch when the data is sensitive and must not be copied.
What happens when I reset a branch from its parent?
The child branch's schema and data are fully replaced with the parent's latest state, and local changes on the child are lost. The skill suggests using --preserve-under-name to keep a backup.
Can the assistant create Neon branches without the CLI?
Yes. The skill checks Neon MCP first, then the CLI, and falls back to the Neon REST API if both are unsuccessful.
How do I install neon-postgres-branches?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is neon-postgres-branches free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is neon-postgres-branches safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to neon-postgres-branches?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
