Help us improve
Share bugs, ideas, or general feedback.
From neon-plugin
Sets up Neon Auth in Next.js, React SPA, or Node.js apps. Configures auth routes, session management, social providers, and generates UI components.
npx claudepluginhub neondatabase-labs/ai-rules --plugin neon-pluginHow this skill is triggered — by the user, by Claude, or both
Slash command
/neon-plugin:skills/neon-authThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add authentication to your application.
Sets up Neon JS SDK for unified auth and PostgREST-style DB queries with type generation. For JS/TS apps needing auth+database access or Supabase migration.
Scaffold signin and signup authentication endpoints for a project. Use when the user wants to add authentication, create login/register flows, or set up auth from scratch.
Use when adding authentication or login to any app - detects your stack (React, Next.js, Vue, Nuxt, Angular, Express, Fastify, FastAPI, ASP.NET Core, React Native, Expo, Android, Swift), sets up an Auth0 account if needed, and routes to the correct SDK setup workflow.
Share bugs, ideas, or general feedback.
Add authentication to your application.
Package: @neondatabase/auth (auth only, smaller bundle)
Need database queries too? Use the neon-js skill instead for @neondatabase/neon-js with unified auth + data API.
When generating TypeScript/JavaScript code, follow these rules:
Complete reference: See Code Generation Rules for:
Key points:
tsconfig.json for path aliases before generating importsBetterAuthReactAdapter MUST be imported from auth/react/adapters subpath()Each guide is a complete, self-contained walkthrough with numbered phases:
guides/nextjs-setup.md - Complete Next.js App Router setup guideguides/react-spa-setup.md - Detailed React SPA guide with react-router-dom integrationI'll automatically detect your context (package manager, framework, existing setup) and select the appropriate guide based on your request.
For troubleshooting, see the Troubleshooting Guide in references.
Tell me what you're building - I'll handle the rest:
Primary Resource: See neon-auth.mdc for comprehensive guidelines including:
Framework-Specific Setup (choose your framework):
Framework-Specific UI (choose your framework):
Shared References:
templates/nextjs-api-route.ts - API route handler for Next.jstemplates/auth-client.ts - Client-side auth configurationI will:
Ready to get started? Just describe what you're building!