neon-toolkit

द्वारा neondatabase

Creates and manages ephemeral Neon databases for testing, CI/CD pipelines, and isolated development environments. Use when building temporary databases for…

npx skills add https://github.com/neondatabase/ai-rules --skill neon-toolkit

Neon Toolkit Skill

Automates creation, management, and cleanup of temporary Neon databases using the Neon Toolkit.

When to Use

  • Creating fresh databases for each test run
  • Spinning up databases in CI/CD pipelines
  • Building isolated development environments
  • Rapid prototyping without manual setup

Not recommended for: Production databases, shared team environments, local-only development (use Docker), or free tier accounts (requires paid projects).

Code Generation Rules

When generating TypeScript/JavaScript code:

  • BEFORE generating import statements, check tsconfig.json for path aliases (compilerOptions.paths)
  • If path aliases exist (e.g., "@/": ["./src/"]), use them (e.g., import { x } from '@/lib/utils')
  • If NO path aliases exist or unsure, ALWAYS use relative imports (e.g., import { x } from '../../../lib/utils')
  • Verify imports match the project's configuration
  • Default to relative imports - they always work regardless of configuration

Reference Documentation

Primary Resource: See [neon-toolkit.mdc](https://raw.githubusercontent.com/neondatabase-labs/ai-rules/main/neon-toolkit.mdc) in project root for comprehensive guidelines including:

  • Core concepts (Organization, Project, Branch, Endpoint)
  • Installation and authentication setup
  • Database lifecycle management patterns
  • API client usage examples
  • Error handling strategies

Quick Setup

Installation

npm install @neondatabase/toolkit

Basic Usage

import { NeonToolkit } from '@neondatabase/toolkit';

const neon = new NeonToolkit({ apiKey: process.env.NEON_API_KEY! });

// Create ephemeral database
const db = await neon.createEphemeralDatabase();
console.log(`Database URL: ${db.url}`);

// Use the database...

// Cleanup
await db.delete();

Templates & Scripts

  • templates/toolkit-workflow.ts - Complete ephemeral database workflow
  • scripts/create-ephemeral-db.ts - Create a temporary database
  • scripts/destroy-ephemeral-db.ts - Clean up ephemeral database

Common Use Cases

Testing

const db = await neon.createEphemeralDatabase();
// Run tests with fresh database
await db.delete();

CI/CD Integration

export NEON_API_KEY=${{ secrets.NEON_API_KEY }}
npm test  # Uses ephemeral database

Related Skills

  • neon-serverless - For connecting to databases
  • neon-drizzle - For schema and migrations

Want best practices in your project? Run neon-plugin:add-neon-docs with parameter SKILL_NAME="neon-toolkit" to add reference links.

neondatabase की और Skills

add-neon-docs
neondatabase
इस कौशल का उपयोग तब करें जब उपयोगकर्ता Neon के बारे में दस्तावेज़ीकरण, डॉक्स, संदर्भ जोड़ने या दस्तावेज़ीकरण स्थापित करने के लिए कहे। Neon के सर्वोत्तम अभ्यास संदर्भ लिंक जोड़ता है…
official
neon-auth
neondatabase
आपके एप्लिकेशन के लिए Neon Auth सेट करता है। प्रमाणीकरण कॉन्फ़िगर करता है, प्रमाणीकरण रूट बनाता है, और UI घटक उत्पन्न करता है। Next.js में प्रमाणीकरण जोड़ते समय उपयोग करें,…
official
neon-drizzle
neondatabase
एक पूर्णतः कार्यशील Drizzle ORM सेटअप बनाता है जिसमें एक प्रावधानित Neon डेटाबेस होता है। निर्भरताएँ स्थापित करता है, डेटाबेस क्रेडेंशियल्स प्रदान करता है, कनेक्शन कॉन्फ़िगर करता है,…
official
neon-js
neondatabase
पूर्ण Neon JS SDK को एकीकृत प्रमाणीकरण और PostgREST-शैली डेटाबेस क्वेरी के साथ सेट करता है। प्रमाणीकरण क्लाइंट, डेटा क्लाइंट और प्रकार निर्माण को कॉन्फ़िगर करता है। इसका उपयोग तब करें जब...
official
neon-serverless
neondatabase
Neon Serverless Driver को Next.js, Vercel Edge Functions, AWS Lambda और अन्य सर्वरलेस वातावरणों के लिए कॉन्फ़िगर करता है। @neondatabase/serverless इंस्टॉल करता है, सेटअप करता है…
official
neon-toolkit
neondatabase
परीक्षण, CI/CD पाइपलाइनों और पृथक विकास वातावरणों के लिए अस्थायी Neon डेटाबेस बनाता और प्रबंधित करता है। अस्थायी डेटाबेस बनाते समय उपयोग करें...
official
logging-best-practices
neondatabase
विस्तृत घटनाओं (कैननिकल लॉग लाइन्स) पर केंद्रित लॉगिंग की सर्वोत्तम प्रथाएँ, जो शक्तिशाली डिबगिंग और विश्लेषण के लिए हैं।
official
skill-creator
neondatabase
प्रभावी कौशल बनाने के लिए मार्गदर्शिका। इस कौशल का उपयोग तब किया जाना चाहिए जब उपयोगकर्ता एक नया कौशल बनाना (या मौजूदा कौशल को अपडेट करना) चाहते हैं जो Claude की क्षमताओं को बढ़ाता है…
official