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-pluginThis skill is limited to using the following tools:
Add authentication to your application.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
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!