Creates and manages ephemeral Neon databases for testing, CI/CD pipelines, and isolated development environments. Use when building temporary databases for automated tests or rapid prototyping.
/plugin marketplace add neondatabase/ai-rules/plugin install neon-plugin@neonThis skill is limited to using the following tools:
scripts/create-ephemeral-db.tsscripts/destroy-ephemeral-db.tstemplates/toolkit-workflow.tsAutomates creation, management, and cleanup of temporary Neon databases using the Neon Toolkit.
Not recommended for: Production databases, shared team environments, local-only development (use Docker), or free tier accounts (requires paid projects).
When generating TypeScript/JavaScript code:
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:
npm install @neondatabase/toolkit
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/toolkit-workflow.ts - Complete ephemeral database workflowscripts/create-ephemeral-db.ts - Create a temporary databasescripts/destroy-ephemeral-db.ts - Clean up ephemeral databaseconst db = await neon.createEphemeralDatabase();
// Run tests with fresh database
await db.delete();
export NEON_API_KEY=${{ secrets.NEON_API_KEY }}
npm test # Uses ephemeral database
Want best practices in your project? Run neon-plugin:add-neon-docs with parameter SKILL_NAME="neon-toolkit" to add reference links.