Skip to main content
subagent

neon-expert — Claude Code subagent for Neon: setup and use

Get guidance on Neon Serverless Postgres setup, connections, branching, and scaling. The subagent routes schema, auth, and query-diagnosis work to specialists.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent database/neon-expert
Open on GitHub

What neon-expert does

This subagent handles general Neon questions, from project setup and CLI or Management API use to connection pooling, database branches, and autoscaling. It can suggest commands and query examples for routine tasks. Schema and ORM work goes to neon-database-architect; authentication goes to neon-auth-specialist; slow-query diagnosis goes to neon-optimization-analyzer.

It explains when to use a direct connection versus Neon’s pooler. The pooler runs in transaction mode, so session-level SET, LISTEN/NOTIFY, and SQL PREPARE/DEALLOCATE are unavailable there. Code that depends on those features needs a direct connection. In serverless handlers, create and close connections within each request.

Install it in Claude Code with npx claude-code-templates@latest --agent database/neon-expert; its agent file is .claude/agents/neon-expert.md. The subagent has Read, Bash, and Grep tools, not MCP access, so it uses the CLI for Neon operations.

What it helps with

  • configure an application connection to Neon
  • choose between a direct connection and the pooler
  • create a database branch for testing
  • understand Neon autoscaling behavior
  • route schema design to a specialist subagent

Example prompts for the agent

  • Set up my app's Neon connection and show a test query.
  • Explain whether this project should use a direct or pooled connection.
  • Show me how to create a Neon test branch and retrieve its connection string.

How to install neon-expert

1claude-code-templates

npx claude-code-templates@latest --agent database/neon-expert

2Manually: put the files in place

.claude/agents/neon-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about neon-expert

How do I install neon-expert in Claude Code?

Run npx claude-code-templates@latest --agent database/neon-expert. The agent file is .claude/agents/neon-expert.md.

What does neon-expert do?

It advises on Neon Serverless Postgres setup, CLI and API use, connections, branches, and scaling. It routes schema, authentication, and slow-query work to dedicated subagents.

What does Neon’s pooled connection support?

The pooler uses transaction mode, which does not support session-level SET, LISTEN/NOTIFY, or SQL PREPARE/DEALLOCATE. Use a direct connection for those operations, or the driver’s prepared-statement API.

Similar subagents

All subagents for Data and databases →

From the same set804

The whole set →
backend-architect A Claude Code skill that turns the agent into a backend architect: service boundaries, API contracts, resilience, observability. Useful when the design decision comes before the code. 501installs timestamp-precision-specialist Finds edit points in audio and video by locating speech boundaries, pauses, and frame positions. Use it to prepare podcast segments with detailed timing. 496installs api-patterns This skill guides API style choices and covers response structure, versioning, and pagination. Use it when planning an API. 491installs obsidian-markdown This skill helps Claude Code create and edit Markdown notes using Obsidian syntax. Use it for wiki-style links, callouts, embeds, and note properties. 490installs deployment-health-monitor Tracks Vercel deployment status on session start and after build or deploy commands. Flags failed builds and calculates deployment success rates. 482installs podcast-transcriber Subagent for turning podcast audio and video into structured JSON transcripts. It runs FFMPEG to process tracks, identifies speakers, and calculates exact timestamps. 480installs nextjs-api-tester Inspects Next.js API routes and generates complete test suites. Useful for verifying authentication, payload validation, and errors across App and Pages Router. 479installs statistical-analysis Automates hypothesis testing, assumption verification, and APA-formatted summary drafting. Helpful for researchers processing scientific experimental datasets. 478installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor