본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)33k · #8716

neon-instagres

하는 일

이 스킬은 AI 에이전트가 새 프로젝트를 위한 PostgreSQL 데이터베이스를 빠르게 설정하도록 돕습니다. 테스트나 초기 빌드를 위해 빨리 작동하는 데이터베이스가 필요한 개발자를 위한 것입니다.

사용하는 경우

  • ✓새 앱을 위해 몇 초 안에 준비되는 데이터베이스가 필요할 때.
  • ✓프로젝트를 시작하면서 마이그레이션이나 테스트에 쓸 PostgreSQL 데이터베이스가 필요할 때.
  • ✓새 데이터베이스를 만들기 전에 에이전트가 기존 DATABASE_URL을 확인하기를 원하는 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/neon-instagres/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/neon-instagres/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“프로토타입에 쓸 Postgres 데이터베이스가 필요해요. 설정하고 연결 정보를 env 파일에 저장해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 데이터베이스를 준비하는 명령을 실행하고, 앱과 마이그레이션용 연결 주소를 환경 파일에 저장합니다. 또한 등록 기간을 알려 주고 등록 링크를 비공개로 유지합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Neon Instagres - Instant Postgres Provisioning

You are an expert at provisioning instant, production-ready PostgreSQL databases using Neon's Instagres service.

Core Command

npx get-db --yes --ref 4eCjZDz

This provisions a Neon Postgres database in 5 seconds and creates:

  • DATABASE_URL - Connection pooler (for app queries)
  • DATABASE_URL_DIRECT - Direct connection (for migrations)
  • PUBLIC_INSTAGRES_CLAIM_URL - Claim URL (72-hour window)

Workflow

1. Check Existing Database

cat .env 2>/dev/null | grep DATABASE_URL

If found, ask user if they want to use existing or create new.

2. Provision Database

For new database:

npx get-db --yes --ref 4eCjZDz

Common Options:

  • --env .env.local - Custom env file (Next.js, Remix)
  • --seed schema.sql - Seed with initial data
  • --key DB_URL - Custom variable name

3. Confirm Success

Tell the user:

✅ Neon Postgres database provisioned!

📁 Connection details in .env:
   DATABASE_URL - Use in your app
   DATABASE_URL_DIRECT - Use for migrations
   PUBLIC_INSTAGRES_CLAIM_URL - Claim within 72h

⚡ Ready for: Drizzle, Prisma, TypeORM, Kysely, raw SQL

⏰ IMPORTANT: Database expires in 72 hours.
   To claim: npx get-db claim

⚠️  SECURITY: PUBLIC_INSTAGRES_CLAIM_URL grants database access.
   Do not share this URL publicly.

Delegation to Expert Agents

After provisioning, you can delegate to specialized Neon agents for advanced workflows:

Complex Schema Design

For complex database schemas, data models, or architecture:

Delegate to @neon-database-architect for:
- Drizzle ORM schema generation
- Table relationship design
- Index optimization
- Schema migrations

Authentication Integration

For auth systems with database integration:

Delegate to @neon-auth-specialist for:
- Stack Auth setup
- Neon Auth integration
- User authentication tables
- Session management

Database Migrations

For production migrations or schema changes:

Delegate to @neon-migration-specialist for:
- Safe migration patterns
- Database branching for testing
- Rollback strategies
- Zero-downtime migrations

Performance Optimization

For query optimization or performance tuning:

Delegate to @neon-optimization-analyzer for:
- Query performance analysis
- Index recommendations
- Connection pooling setup
- Resource monitoring

General Neon Consultation

For complex multi-step Neon workflows:

Delegate to @neon-expert for:
- Orchestrating multiple Neon operations
- Advanced Neon features
- Best practices consultation
- Integration coordination

Framework Integration

Next.js

npx get-db --env .env.local --yes --ref 4eCjZDz

Vite / SvelteKit

Option 1: Manual

npx get-db --yes --ref 4eCjZDz

Option 2: Auto-provisioning with vite-plugin-db

// vite.config.ts
import { postgres } from 'vite-plugin-db';

export default defineConfig({
  plugins: [postgres()]
});

Express / Node.js

npx get-db --yes --ref 4eCjZDz

Then install dependencies and load with dotenv:

npm install dotenv postgres
import 'dotenv/config';
import postgres from 'postgres';
const sql = postgres(process.env.DATABASE_URL);

ORM Setup

Drizzle (Recommended)

After provisioning, suggest delegating to @neon-database-architect for schema design, or set up manually:

// drizzle.config.ts
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  schema: './src/db/schema.ts',
  out: './drizzle',
  dialect: 'postgresql',
  dbCredentials: { url: process.env.DATABASE_URL! }
});
// src/db/index.ts
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';

const client = postgres(process.env.DATABASE_URL!);
export const db = drizzle(client);

Prisma

npx prisma init
# DATABASE_URL already set by get-db
npx prisma db push

TypeORM

import { DataSource } from 'typeorm';

export const AppDataSource = new DataSource({
  type: 'postgres',
  url: process.env.DATABASE_URL,
  entities: ['src/entity/*.ts'],
  synchronize: true
});

Seeding

npx get-db --seed ./schema.sql --yes --ref 4eCjZDz

Example schema.sql:

CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email VARCHAR(255) UNIQUE NOT NULL,
  created_at TIMESTAMP DEFAULT NOW()
);

INSERT INTO users (email) VALUES ('demo@example.com');

Cl

자주 묻는 질문

데이터베이스는 얼마나 유지되나요?

등록하지 않으면 72시간 뒤에 만료됩니다.

ORM과 함께 쓸 수 있나요?

네. 스킬은 Drizzle, Prisma, TypeORM, Kysely 같은 도구와 원시 SQL에서도 작동한다고 말합니다.

등록 링크는 민감한가요?

네. 등록 링크는 데이터베이스에 대한 접근 권한을 주므로 공개적으로 공유하면 안 됩니다.

상세 정보

작성자의 원본 설명

Instantly provision production-ready Postgres databases with Neon Instagres. Use when setting up databases, when users mention PostgreSQL/Postgres, database setup, or need a development database. Works with Drizzle, Prisma, raw SQL.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8716
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬