Next.js + Neon PostgresStack
Next.js with serverless Postgres on Neon: the Neon MCP server, Neon Postgres and Neon Auth skills, and Next.js rules.
Install
npx duom@1 add stack/nextjs-neon --client claude-code
Writes to each member's own place (where Claude Code reads it).
What is in it
- General Agent RulesRule
Baseline rules for any project: read before editing, small diffs, run the checks, never touch secrets.
- Next.js (App Router)Rule
Rules for Next.js App Router projects: server components first, data fetching, caching, routing and env vars.
- TypeScriptRule
Strict TypeScript rules: no any, types at boundaries, narrow unknown input, and keep types close to use.
NeonMCPOfficial Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Context7MCPUp-to-date docs for AI agents
Neon PostgresSkillGuides and best practices for working with Lakebase Postgres on Neon: connections, pooled vs direct, schema migrations, branching (including schema-only, reset-from-parent, and branch-per-PR workflows), autoscaling, scale-to-zero, instant restore, read replicas, IP allow lists, logical replication, egress optimization, and Lakebase Search. Use when the work is an existing DATABASE_URL, SQL, schema, inspect, or search. New backends, Auth, files, Functions, and LLM calls go to the parent `neon` skill. Live queries, reactive UIs, and realtime data go to `neon-realtime`. Also use for "@neondatabase/serverless", "@neon/neon-js", "neon inspect db", "neon postgres computes", "Neon branch", "schema-only branch", "reset branch", "branch per PR", high database bills, network transfer or egress, Free plan limits or a compute suspended over quota (SQLSTATE 53000, HTTP 402), SELECT * optimization, query overfetching, "semantic search", "vector search", "full-text search", "BM25", or "hybrid search"
Neon AuthSkillAdd authentication to a new app. Use for "add auth", "add login", Neon Auth (Managed Better Auth), identity routing, sign-up, sign-in, password reset, email OTP, magic links, organizations, phone OTP, OAuth, OAuth server for MCP or third-party OAuth clients, passkeys, MFA, trusted domains, invalid domain, and @neon/auth. No existing identity: default to Managed Better Auth. Keep working Better Auth, Clerk, Supabase Auth, or another IdP. User asked to migrate from Supabase Auth: Managed Better Auth. A required plugin outside Managed support: self-managed Better Auth on a Neon Function or the existing app host. Also use for auth APIs in @neon/neon-js.