neon-postgres-branches
Helps your agent create and manage different versions (branches) of a database. It's useful for testing changes without affecting main data.
What it does
This tool helps you create 'branches' (isolated copies) in Neon Postgres. These branches are useful for testing changes or developing new features without affecting the main database.
When to use it
- ✓Testing how new changes (migrations) work with real data.
- ✓Creating a separate environment for testing without touching the main database.
- ✓Working with sensitive data, needing only the structure (schema) and not the data itself.
Example of what to ask your AI
“I want to create a branch to test a database migration with production data.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool first decides which type of branch is best for you (with real data or just the structure). Then, it uses tools like Neon CLI or MCP to create this new branch for you.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill neon-postgres-branchesOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/neon-postgres-branches/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Neon Postgres Branching
When to Use
Use this skill when you need choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP. Triggers...
The outcome of this skill should be a created Neon branch (or a clear, actionable next step if creation cannot proceed). Choose the correct branch type, then execute branch creation via MCP or CLI.
- Normal branch for realistic migration and query testing with real data.
- Schema-only branch (Beta) for sensitive data workflows where structure is needed without copying rows.
Branch Type Decision
Use this decision rule first:
- If the user wants to test complex migrations, performance, or behavior against production-like data, choose a normal branch.
- If the user needs to avoid copying sensitive data, choose a schema-only branch.
If the request is ambiguous, ask one clarifying question: "Do you need realistic data for testing, or only schema structure because the data is sensitive?"
Tool Selection: CLI or MCP
Always support both Neon CLI and Neon MCP server. Prefer the tool the user already has installed and authenticated.
MCP link: https://neon.com/docs/ai/neon-mcp-server.md CLI link: https://neon.com/docs/reference/cli-quickstart
Selection order
- Check MCP first in MCP-enabled environments:
- If Neon MCP tools are available and authenticated (for example, listing projects works), use MCP.
- If MCP is unavailable or not authenticated, check CLI:
- Run
neon --versionto confirm CLI is installed. - Run
neon projects listto confirm auth/context.
- Run
- If CLI is missing, direct installation via quickstart.
- If CLI is installed but not authenticated, guide the user through
neon auth(or API key auth), then continue. - If both MCP and CLI paths are unsuccessful, use the Neon REST API:
MCP branch flow
- Choose normal vs schema-only based on data sensitivity and migration-testing goals.
- Use branch tools (for example,
create_branch) to create the branch. - Validate with read tools (for example,
describe_branch). - For migration workflows, prefer branch-based migration flows before applying to main.
Create a Normal Branch (Preferred for Real-Data Migration Testing)
Use this when the user needs realistic testing conditions. Real production-like data can expose edge cases your seed or data migration scripts miss, which helps catch migration issues before going live.
Link: https://neon.com/docs/introduction/branching.md
Steps
- Use MCP if already available/authenticated; otherwise verify CLI with
neon --version. - Ensure project context is set (
neon set-context --project-id <your-project-id>) or include--project-idon commands. - Create branch:
neon branches create \
--name <branch-name> \
--parent <parent-branch-id-or-name> \
--expires-at 2026-12-15T18:02:16Z
- Optionally fetch a connection string for the new branch:
neon connection-string <branch-name>
Create a Schema-Only Branch (Beta, Sensitive Data)
Use this when users must not copy production rows into the test branch.
Link: https://neon.com/docs/guides/branching-schema-only.md
Steps
- Use MCP if already available/authenticated; otherwise verify CLI with
neon --version. - Create schema-only branch:
neon branches create \
--name <schema-only-branch-name> \
--parent <parent-branch-id-or-name> \
--schema-only \
--expires-at 2026-12-15T18:02:16Z
If multiple projects exist, include:
neon branches create \
--name <schema-only-branch-name> \
--parent <parent-branch-id-or-name> \
--schema-only \
--project-id <your-project-id> \
--expires-at 2026-12-15T18:02:16Z
Beta Support Guidance (Mandatory)
Schema-only branching is in Beta. If users report unexpected behavior, errors, or missing capabilities:
- Ask them to share feedback in the Neon Console:
- Recommend opening a support conversation in the Neon Discord:
Reset from parent
Use this when a child branch has drifted and the user wants a clean refresh from the parent branch's latest schema and data.
…
FAQ
What's the difference between a normal branch and a 'schema-only' branch?
A normal branch copies the real data for complete testing. A 'schema-only' branch copies only the database structure (tables, columns), making it ideal for sensitive data.
How does the tool decide whether to use Neon CLI or MCP?
It tries to use MCP first if it's available and configured. If not, it checks if Neon CLI is installed and configured, and uses that.
What happens if I don't have Neon CLI installed?
The tool will guide you to install Neon CLI and set it up so you can create your branch.
Details
Original description by the author
Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3670
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
clickhouse-io
Helps your agent optimize queries and schemas in ClickHouse databases. It applies best practices for high-performance analytical workloads. Use when analytical queries are too slow.
affaan-m/ECC
scientific-db-pubmed-database
Helps your agent search for scientific articles in the biomedical field. It's useful for research needing specific medical information.
affaan-m/ECC
scientific-db-uspto-database
Allows the agent to look up official US patent and trademark data. It's useful for intellectual property research.
affaan-m/ECC