jpskill.com
🛠️ 開発・MCP コミュニティ

neon

NeonのサーバーレスPostgreSQLを活用し、データベース構築、開発用ブランチ作成、エッジランタイム連携、Prisma/Drizzle設定などを支援することで、効率的なアプリケーション開発を可能にするSkill。

📜 元の英語説明(参考)

Assists with building applications using Neon serverless PostgreSQL. Use when setting up serverless databases, creating branches for development workflows, integrating with edge runtimes, or configuring Prisma/Drizzle with Neon. Trigger words: neon, serverless postgres, database branching, neon serverless driver, pgvector, neon database.

🇯🇵 日本人クリエイター向け解説

一言でいうと

NeonのサーバーレスPostgreSQLを活用し、データベース構築、開発用ブランチ作成、エッジランタイム連携、Prisma/Drizzle設定などを支援することで、効率的なアプリケーション開発を可能にするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o neon.zip https://jpskill.com/download/15161.zip && unzip -o neon.zip && rm neon.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/15161.zip -OutFile "$d\neon.zip"; Expand-Archive "$d\neon.zip" -DestinationPath $d -Force; ri "$d\neon.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して neon.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → neon フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Neon

概要

Neonは、スケール・トゥ・ゼロのコンピューティング、データベースのブランチング、およびエッジランタイム用のHTTPベースのドライバを備えた、サーバーレスのPostgreSQLを提供します。pgvectorのような拡張機能を含む完全なPostgreSQL互換性を提供し、開発ワークフローのためのコピーオンライトブランチングや、自動プレビューデプロイメントデータベースなどの機能を備えています。

手順

  • 接続を設定する際は、サーバーレス関数にはプールされた接続文字列(-pooler サフィックス)を使用し、長時間実行されるNode.jsサーバーには直接接続文字列を使用します。
  • 開発ワークフローを作成する際は、データベースのブランチング (neon branches create) を使用して、各機能またはPRに、親ブランチからスキーマを継承する独自の隔離されたデータベースを提供します。
  • エッジランタイム(Cloudflare Workers、Vercel Edge)にデプロイする際は、TCPソケットの代わりにHTTP経由で通信する @neondatabase/serverless を使用します。
  • ORMと統合する際は、Prismaには @prisma/adapter-neon を、Drizzleには drizzle-orm/neon-serverless を使用し、複雑なクエリと移行には生のSQLを予約します。
  • AI機能を有効にする際は、ベクター埋め込みとANN検索のために、プロジェクト作成時に pgvector 拡張機能をインストールします。
  • スケーリングを構成する際は、開発には autosuspend_delay を300秒に設定し、本番環境には0(中断しない)に設定し、コンピューティングの自動スケーリングを0.25〜8 CUの間で構成します。
  • 移行を実行する際は、フィーチャーブランチがスキーマの変更を自動的に継承するように、メインブランチに適用します。

例1:Next.jsアプリ用にDrizzle ORMでNeonをセットアップする

ユーザーリクエスト: 「Drizzle ORMを使用して、Next.jsプロジェクトをNeonに接続してください」

アクション:

  1. Neonプロジェクトを作成し、プールされた接続文字列を取得します
  2. @neondatabase/serverlessdrizzle-orm をインストールします
  3. NeonサーバーレスアダプターでDrizzleを構成します
  4. スキーマを定義し、メインブランチで最初の移行を実行します

出力: サーバーコンポーネントとエッジ関数の両方で動作する、Neonを使用したDrizzleによるタイプセーフなデータベースレイヤー。

例2:ブランチごとのPRワークフローをセットアップする

ユーザーリクエスト: 「プルリクエストごとにデータベースブランチを自動的に作成してください」

アクション:

  1. 自動ブランチ作成のためにNeon-Vercel統合を構成します
  2. neonctl branches create --name pr-$PR_NUMBER を使用してCIスクリプトをセットアップします
  3. ブランチ接続文字列を環境変数としてプレビューデプロイメントに渡します
  4. PRが閉じられたときにブランチを削除するクリーンアップステップを追加します

出力: 自動ライフサイクル管理を備えた、PRごとの隔離されたデータベースブランチ。

ガイドライン

  • 接続制限を使い果たさないように、サーバーレス関数には常にプールされた接続文字列(-pooler サフィックス)を使用してください。
  • エッジランタイムには @neondatabase/serverless を使用し、長時間実行されるNode.jsサーバーには標準の pg を使用します。
  • 各機能またはPRに対してデータベースブランチを作成します。メインブランチに対して開発しないでください。
  • ベクター検索が必要になる場合は、プロジェクトの作成時に pgvector 拡張機能を有効にします。
  • 開発には autosuspend_delay を300秒に、本番環境には0に設定します。
  • NeonアダプターでDrizzleまたはPrismaを使用します。複雑なクエリと移行にのみ生のSQLを使用します。
  • メインブランチで移行を実行します。フィーチャーブランチはスキーマを自動的に継承します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Neon

Overview

Neon provides serverless PostgreSQL with scale-to-zero compute, database branching, and an HTTP-based driver for edge runtimes. It offers full PostgreSQL compatibility including extensions like pgvector, with features like copy-on-write branching for development workflows and automatic preview deployment databases.

Instructions

  • When setting up connections, use the pooled connection string (-pooler suffix) for serverless functions and the direct connection string for long-running Node.js servers.
  • When creating development workflows, use database branching (neon branches create) to give each feature or PR its own isolated database that inherits schema from the parent branch.
  • When deploying to edge runtimes (Cloudflare Workers, Vercel Edge), use @neondatabase/serverless which communicates over HTTP instead of TCP sockets.
  • When integrating with ORMs, use @prisma/adapter-neon for Prisma or drizzle-orm/neon-serverless for Drizzle, and reserve raw SQL for complex queries and migrations.
  • When enabling AI features, install the pgvector extension at project creation for vector embeddings and ANN search.
  • When configuring scaling, set autosuspend_delay to 300s for development and 0 (never suspend) for production, and configure compute autoscaling between 0.25 and 8 CU.
  • When running migrations, apply them on the main branch so feature branches inherit schema changes automatically.

Examples

Example 1: Set up Neon with Drizzle ORM for a Next.js app

User request: "Connect my Next.js project to Neon using Drizzle ORM"

Actions:

  1. Create a Neon project and obtain the pooled connection string
  2. Install @neondatabase/serverless and drizzle-orm
  3. Configure Drizzle with the Neon serverless adapter
  4. Define schema and run initial migration on the main branch

Output: A type-safe database layer using Drizzle with Neon that works in both server components and edge functions.

Example 2: Set up branch-per-PR workflow

User request: "Automatically create a database branch for each pull request"

Actions:

  1. Configure Neon-Vercel integration for automatic branch creation
  2. Set up CI script using neonctl branches create --name pr-$PR_NUMBER
  3. Pass branch connection string as environment variable to preview deployment
  4. Add cleanup step to delete branch when PR is closed

Output: An isolated database branch for each PR with automatic lifecycle management.

Guidelines

  • Always use the pooled connection string (-pooler suffix) for serverless functions to avoid exhausting connection limits.
  • Use @neondatabase/serverless for edge runtimes; use standard pg for long-running Node.js servers.
  • Create database branches for each feature or PR; never develop against the main branch.
  • Enable pgvector extension at project creation if vector search will be needed.
  • Set autosuspend_delay to 300s for dev and 0 for production.
  • Use Drizzle or Prisma with the Neon adapter; use raw SQL only for complex queries and migrations.
  • Run migrations on the main branch; feature branches inherit schema automatically.