New advertisers: 50% off your first month with code FIRSTMONTHSee slots
neondatabase avatar

neon-plugin

neondatabase/ai-rulesOfficial

Neon Postgres skills and MCP server for building, connecting, and testing databases with Claude Code.

version
1.1.0
GitHub stars
81
View on GitHub

What it does

  • Adds 6 skills (neon-auth, neon-drizzle, neon-js, neon-serverless, neon-toolkit, add-neon-docs) and a remote Neon MCP server via .mcp.json
  • Covers Drizzle ORM setup with provisioned credentials, schema generation, and migrations, ending in code that connects to the database
  • Guides serverless connections for Vercel Edge, AWS Lambda, and Next.js, including pooling and environment variable configuration
  • Designed for developers who want ephemeral databases for CI pipelines, test isolation, or quick prototyping inside Claude Code

Neon database development skills including authentication, Drizzle ORM, serverless drivers, and toolkit utilities

Add marketplace

/plugin marketplace add neondatabase/ai-rules

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install neon-plugin@neon

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Add Neon Knowledge References to Project

This skill adds reference links to Neon documentation and best practices in your project's AI documentation file, enabling AI assistants to quickly access Neon-specific patterns and guidelines without cluttering your project with large documentation files.

How It Works

This skill follows a simple workflow:

  1. Load metadata - Read skill information from skill-knowledge-map.json
  2. Detect documentation file - Find CLAUDE.md, AGENTS.md, or Cursor rules files
  3. Ask permission - Show what will be added and where
  4. Add references - Insert URLs in a "Resources & References" section
  5. Report completion - Confirm successful installation

For detailed workflow steps, see install-knowledge.md.

Parameters

SKILL_NAME Parameter

Optional. Specifies which skill documentation to install (e.g., "neon-drizzle"). If not provided, you'll be prompted to choose from available skills defined in skill-knowledge-map.json.

Usage Examples

Called from another skill:

Execute the add-neon-docs skill with SKILL_NAME="neon-drizzle"

Called directly by user:

  • "Add neon drizzle knowledge to my project"
  • "Install neon serverless documentation"
  • "Set up Neon best practices for my AI assistant"

What Gets Added

References are added to a "Resources & References" section in your AI documentation file:

## Resources & References

- **Neon and Drizzle ORM best practices**: https://raw.githubusercontent.com/neondatabase-labs/ai-rules/main/neon-drizzle.mdc
- **Serverless connection patterns**: https://raw.githubusercontent.com/neondatabase-labs/ai-rules/main/neon-serverless.mdc

Target Files (in priority order):

  • CLAUDE.md - Most common for Claude Code projects
  • AGENTS.md - Custom AI documentation files
  • .cursor/README.md or .cursor/rules.md - Cursor IDE projects
  • Creates CLAUDE.md if none exist

Behavior:

  • Existing "Resources & References" sections: New links are appended
  • No existing section: Section is created at end of file
  • No documentation file: CLAUDE.md is created with references

Related Skills

  • neon-drizzle - Sets up Drizzle ORM, then offers this skill
  • neon-serverless - Sets up connections, then offers this skill
  • neon-toolkit - Sets up ephemeral databases, then offers this skill

Workflow Reference

For complete implementation details:

  • Workflow: install-knowledge.md - Step-by-step agent workflow with error handling
  • Metadata: skill-knowledge-map.json - Skill definitions and reference URLs

Workflow Implementation

Now I'll execute the installation workflow for you.

Parameter received: SKILL_NAME = ${SKILL_NAME || "not provided - will ask user"}

Execute install-knowledge.md with the specified SKILL_NAME.

Readme

Neon Claude Code Plugin

Complete integration plugin for using Neon Postgres databases with Claude Code, featuring guided skills and MCP server integration.

Features

  • Guided Skills: Step-by-step workflows for common Neon tasks
  • MCP Integration: Real-time Neon resource management through Model Context Protocol
  • Knowledge Installation: Add Neon best practices to your project's AI knowledge base

Available Skills

neon-drizzle

Set up and integrate Drizzle ORM with Neon Postgres databases. Includes comprehensive guides for:

  • New project setup
  • Existing project integration
  • Schema-only workflows
  • Migration troubleshooting

neon-serverless

Connect to Neon databases in serverless environments with the Neon Serverless driver. Optimize for:

  • Edge functions
  • Vercel deployments
  • AWS Lambda
  • Low latency and connection pooling

neon-toolkit

Create and manage ephemeral Neon databases for testing and prototyping. Perfect for:

  • CI/CD pipelines
  • Test isolation
  • Quick development workflows

Knowledge Installation

After completing a skill workflow, you can optionally install Neon best practices to your project's AI knowledge base.

How It Works

  1. Complete any Neon skill workflow (Drizzle, Serverless, Toolkit, etc.)
  2. I'll detect your project's AI structure:
    • Cursor IDE: .cursor/rules/
    • Claude Code: CLAUDE.md or .claude/
    • Custom: agents.md, .ai/, or other locations
  3. I'll ask if you want to install documentation
  4. I'll copy the relevant .mdc files with source attribution
  5. Your AI assistant can now reference these patterns automatically

What Gets Installed

Each skill installs its relevant best practices:

  • neon-drizzle: Drizzle ORM integration, connection adapters, schema patterns
  • neon-serverless: Serverless connections, pooling, edge runtime considerations
  • neon-toolkit: Ephemeral database creation, testing workflows

No AI Structure Yet?

If your project doesn't have an AI knowledge structure yet:

  • I can create a CLAUDE.md file for you
  • Or you can run /init in Claude Code first
  • Or set up Cursor rules manually

For Developers

Skills use a workflow-based approach. See shared/workflows/install-knowledge.md for the universal workflow that guides me through the installation process.

Getting Started

  1. Install the plugin in Claude Code
  2. Activate a skill based on your needs
  3. Follow the guided workflow
  4. Optionally install knowledge to your project

MCP Server Integration

This plugin connects to Neon's remote MCP server for real-time resource management. The MCP server provides:

  • Project listing and creation
  • Branch management
  • Database operations
  • Connection string generation

Configuration is handled automatically through .mcp.json.

Repository Structure

neon-plugin/
├── .claude-plugin/
│   └── plugin.json        # Plugin metadata
├── .mcp.json              # MCP server configuration
└── skills/
    ├── add-neon-docs/
    │   ├── SKILL.md
    │   ├── install-knowledge.md        # Workflow for knowledge installation
    │   └── skill-knowledge-map.json    # Metadata for knowledge installation
    ├── neon-drizzle/
    │   ├── SKILL.md
    │   ├── guides/        # Step-by-step workflow guides
    │   ├── references/    # Technical reference docs
    │   ├── scripts/       # Utility scripts
    │   └── templates/     # Code templates
    ├── neon-serverless/
    │   └── SKILL.md
    └── neon-toolkit/
        └── SKILL.md

Contributing

To add a new skill or update existing ones:

  1. Follow the skill structure pattern
  2. Update skills/add-neon-docs/skill-knowledge-map.json if adding knowledge files
  3. Reference the add-neon-docs skill at the end of your SKILL.md
  4. Test the workflow thoroughly

Resources

License

See the main repository for license information.

Details

Marketplace
neondatabase/ai-rules
Source
neon-plugin
Author
Neon Team
Category
Community
License
MIT
Keywords
neon, postgres, database, drizzle, serverless, auth, mcp
Listed since
Apr 6, 2026

Similar to neon-plugin

More Databases