neon-postgres-branches
できること
このツールは、Neon Postgres でブランチ(独立したコピー)を作成する手助けをします。ブランチは、メインのデータベースに影響を与えずに変更をテストしたり、新機能を開発したりするのに役立ちます。
使う場面
- ✓新しい変更(マイグレーション)が実際のデータでどう動くかを確認したいとき。
- ✓メインのデータベースに触れずに、テスト用の環境を別に作りたいとき。
- ✓機密性の高いデータを扱う際に、データ本体ではなく構造(スキーマ)だけが必要なとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-postgres-branches/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“本番データを使ってデータベースのマイグレーションをテストするために、ブランチを作成したいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールはまず、あなたに最適なブランチの種類(実データ入り、または構造のみ)を判断します。その後、Neon CLI や MCP などのツールを使って、新しいブランチを作成します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
…
よくある質問
通常のブランチと「スキーマのみ」のブランチの違いは何ですか?
通常のブランチは、完全なテストができるよう実際のデータをコピーします。「スキーマのみ」のブランチは、テーブルや列などのデータベースの構造だけをコピーするため、機密データを扱う場合に適しています。
このツールは、Neon CLI と MCP のどちらを使うかをどのように判断しますか?
利用可能で設定済みであれば、まず MCP を使おうとします。使えない場合は、Neon CLI がインストールされて設定済みかを確認し、そちらを使います。
Neon CLI がインストールされていない場合はどうなりますか?
ツールがNeon CLIのインストールと設定を案内し、ブランチを作成できるようにします。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 48k
- ランキング
- #5284
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
clickhouse-io
280kエージェントがClickHouseデータベースのクエリとスキーマを最適化できるようにします。高性能な分析処理向けのベストプラクティスを適用します。分析クエリが遅すぎるときに使います。
scientific-db-pubmed-database
280kエージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。