# neon-instagres

This skill creates a Neon PostgreSQL database and writes connection settings to an environment file. Use it when a project needs a development database.

- skill · `type=skill` · Claude Code · 173 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/database/neon-instagres
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/neon-instagres

## What it does

The skill checks `.env` for `DATABASE_URL` before creating anything. If it finds one, it asks whether to keep that database or make another. For a new database, it runs `npx get-db --yes --ref 4eCjZDz` and adds `DATABASE_URL` for app queries, `DATABASE_URL_DIRECT` for migrations, and `PUBLIC_INSTAGRES_CLAIM_URL` for claiming the database in Neon.

You can pass `--seed schema.sql` to load an initial schema or set another environment file with `--env .env.local`. The instructions cover Drizzle, Prisma, TypeORM, Kysely, and raw SQL. Databases expire after 72 hours unless claimed with `npx get-db claim`; running `npx get-db` requires Node.js 18 or newer. Keep `PUBLIC_INSTAGRES_CLAIM_URL` private because it grants access to the database.

## Requirements
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill database/neon-instagres
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill neon-instagres -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/neon-instagres/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/neon-instagres/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/neon-instagres/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/neon-instagres/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates neon-instagres
```

2. **Manually: put the files in place**
- File: `.github/skills/neon-instagres/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/database/neon-instagres
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/neon-instagres/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/database/neon-instagres

## When to use it
- create a PostgreSQL development database
- write connection settings to an environment file
- load an initial schema from a SQL file
- configure a database for Drizzle or Prisma

## Example prompts
- Create a Neon PostgreSQL database for this project and save its connection settings in `.env`.
- Set up a fresh database and load the schema from `schema.sql`.
- Check `.env` first; if a database is already configured, ask whether to reuse it.

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
