Zum Inhalt springen
Skillpedia
Datenbanken48k · #5284

neon-postgres-branches

Was er macht

Dieses Tool hilft dir, Branches (isolierte Kopien) in Neon Postgres zu erstellen. Diese Branches eignen sich zum Testen von Änderungen oder zum Entwickeln neuer Funktionen, ohne die Hauptdatenbank zu beeinflussen.

Wann du ihn nutzt

  • ✓Testen, wie neue Änderungen (Migrations) mit echten Daten funktionieren.
  • ✓Eine eigene Umgebung zum Testen anlegen, ohne die Hauptdatenbank anzufassen.
  • ✓Mit sensiblen Daten arbeiten, bei denen nur die Struktur (Schema) und nicht die Daten selbst gebraucht werden.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-postgres-branches/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-postgres-branches/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich möchte einen Branch erstellen, um eine Datenbank-Migration mit Produktionsdaten zu testen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool entscheidet zuerst, welcher Branch-Typ für dich am besten passt (mit echten Daten oder nur der Struktur). Danach nutzt es Tools wie Neon CLI oder MCP, um den neuen Branch für dich zu erstellen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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:

  1. If the user wants to test complex migrations, performance, or behavior against production-like data, choose a normal branch.
  2. 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

  1. Check MCP first in MCP-enabled environments:
    • If Neon MCP tools are available and authenticated (for example, listing projects works), use MCP.
  2. If MCP is unavailable or not authenticated, check CLI:
    • Run neon --version to confirm CLI is installed.
    • Run neon projects list to confirm auth/context.
  3. If CLI is missing, direct installation via quickstart.
  4. If CLI is installed but not authenticated, guide the user through neon auth (or API key auth), then continue.
  5. If both MCP and CLI paths are unsuccessful, use the Neon REST API:

MCP branch flow

  1. Choose normal vs schema-only based on data sensitivity and migration-testing goals.
  2. Use branch tools (for example, create_branch) to create the branch.
  3. Validate with read tools (for example, describe_branch).
  4. 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

  1. Use MCP if already available/authenticated; otherwise verify CLI with neon --version.
  2. Ensure project context is set (neon set-context --project-id <your-project-id>) or include --project-id on commands.
  3. Create branch:
neon branches create \
  --name <branch-name> \
  --parent <parent-branch-id-or-name> \
  --expires-at 2026-12-15T18:02:16Z
  1. 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

  1. Use MCP if already available/authenticated; otherwise verify CLI with neon --version.
  2. 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:

  1. Ask them to share feedback in the Neon Console:
  2. 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.

…

Häufige Fragen

Was ist der Unterschied zwischen einem normalen Branch und einem „Schema-only“-Branch?

Ein normaler Branch kopiert die echten Daten für vollständige Tests. Ein „Schema-only“-Branch kopiert nur die Struktur der Datenbank (Tabellen, Spalten). Das eignet sich ideal für sensible Daten.

Wie entscheidet das Tool, ob es Neon CLI oder MCP nutzt?

Es versucht zuerst, MCP zu nutzen, wenn es verfügbar und eingerichtet ist. Falls nicht, prüft es, ob Neon CLI installiert und eingerichtet ist, und nutzt dann diese.

Was passiert, wenn ich Neon CLI nicht installiert habe?

Das Tool führt dich durch die Installation und Einrichtung von Neon CLI, damit du deinen Branch erstellen kannst.

Details

Originalbeschreibung des Autors

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.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5284
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills