sickn33/antigravity-awesome-skills/claimable-postgres
- community
Checking that the SKILL.md file is still in the repository.
Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/claimable-postgresSKILL.md
Claimable Postgres
When to Use
Use this skill when you need provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK. Use when users ask for a quick Postgres environment, a throwaway DATABASE_URL for prototyping/tests, or "just give me a DB...
Instant Postgres databases for local development, demos, prototyping, and test environments. No account required. Databases expire after 72 hours unless claimed to a Neon account.
Treat connection and claim URLs as sensitive capabilities: keep them out of public/client environment variables, logs and commits. A name beginning PUBLIC_ does not make a claim link safe to publish. Verify service availability/expiry/quotas from current primary docs and the actual response; do not promise permanent free retention from claiming alone. Inspect seed SQL inertly and verify the new database target before executing.
Quick Start
Parse connection_string and claim_url from the JSON response. Write connection_string only to an approved ignored private env file without overwriting existing values.
For other methods (CLI, SDK, Vite plugin), see Which Method? below.
Which Method?
- REST API: Returns structured JSON. No runtime dependency beyond
curl. Preferred when the agent needs predictable output and error handling. - CLI (
npx neon-new@latest --yes): Provisions and writes.envin one command. Convenient when Node.js is available and the user wants a simple setup. - SDK (
neon-new/sdk): Scripts or programmatic provisioning in Node.js. - Vite plugin (
vite-plugin-neon-new): Auto-provisions onvite devifDATABASE_URLis missing. Use when the user has a Vite project. - Browser: User cannot run CLI or API. Direct to https://neon.new.
REST API
Base URL: https://neon.new/api/v1
Create a database
| Parameter | Required | Description | |
|---|---|---|---|
ref | Yes | Tracking tag that identifies who provisioned the database. Use "agent-skills" when provisioning through this skill. | |
enable_logical_replication | No | Enable logical replication (default: false, cannot be disabled once enabled) |
The connection_string returned by the API is a pooled connection URL. For a direct (non-pooled) connection (e.g. Prisma migrations), remove -pooler from the hostname. The CLI writes both pooled and direct URLs automatically.
Response:
Check status
Returns the same response shape. Status transitions: UNCLAIMED -> CLAIMING -> CLAIMED. After the database is claimed, connection_string returns null.
Error responses
| Condition | HTTP | Message | |
|---|---|---|---|
Missing or empty ref | 400 | Missing referrer | |
| Invalid database ID | 400 | Database not found | |
| Invalid JSON body | 500 | Failed to create the database. |
CLI
Provisions a database and writes the connection string to .env in one step. Use a reviewed version pinned for this task; --yes is appropriate only after all defaults and side effects match authorized scope. Do not silently execute an unreviewed latest package.
Pre-run Check
Check if DATABASE_URL (or the chosen key) already exists in the target .env. The CLI exits without provisioning if it finds the key.
If the key exists, offer the user three options:
- Remove or comment out the existing line, then rerun.
- Use
--envto write to a different file (e.g.--env .env.local). - Use
--keyto write under a different variable name.
Get confirmation before proceeding.
Options
| Option | Alias | Description | Default | |
|---|---|---|---|---|
--yes | -y | Skip prompts, use defaults | false | |
--env | -e | .env file path | ./.env | |
--key | -k | Connection string env var key | DATABASE_URL | |
--prefix | -p | Prefix for generated public env vars | PUBLIC_ | |
--seed | -s | Path to seed SQL file | none | |
--logical-replication | -L | Enable logical replication | false | |
--ref | -r | Referrer id (use agent-skills when provisioning through this skill) | none |
Alternative package managers: yarn dlx neon-new@latest, pnpm dlx neon-new@latest, bunx neon-new@latest, deno run -A neon-new@latest.
Output
The CLI writes to the target .env:
SDK
Use for scripts and programmatic provisioning flows.
Returns databaseUrl (pooled), databaseUrlDirect (direct, for migrations), claimUrl, and claimExpiresAt (Date object). The referrer parameter is required.
Vite Plugin
For Vite projects, vite-plugin-neon-new auto-provisions a database on vite dev if DATABASE_URL is missing. Install with npm install -D vite-plugin-neon-new. See the Claimable Postgres docs for configuration.
Agent Workflow
API path
- Confirm intent: If the request is ambiguous, confirm the user wants a temporary, no-signup database. Skip this if they explicitly asked for a quick or temporary database.
- Provision: POST to
https://neon.new/api/v1/databasewith{"ref": "agent-skills"}. - Parse response: Extract
connection_string,claim_url, andexpires_atfrom the JSON response. - Write .env: Write
DATABASE_URL=<connection_string>to the project's.env(or the user's preferred file and key). Do not overwrite an existing key without confirmation. - Seed (if needed): If the user has a seed SQL file, run it against the new database:
``bash psql "$DATABASE_URL" -f seed.sql ``
- Report: Tell the user where the connection string was written, which key was used, and share the claim URL. Remind them: the database works now; claim within 72 hours to keep it permanently.
- Optional: Offer a quick connection test (e.g.
SELECT 1).
CLI path
- Check .env: Check the target
.envfor an existingDATABASE_URL(or chosen key). If present, do not run. Offer remove,--env, or--keyand get confirmation. - Confirm intent: If the request is ambiguous, confirm the user wants a temporary, no-signup database. Skip this if they explicitly asked for a quick or temporary database.
- Gather options: Use defaults unless context suggests otherwise (e.g., user mentions a custom env file, seed SQL, or logical replication).
- Run: Execute with
@latest --yesplus the confirmed options. Pin a reviewed compatible version; inspect the exact package and defaults before using --yes.
``bash npx neon-new@latest --yes --ref agent-skills --env .env.local --seed ./schema.sql ``
- Verify: Confirm the connection string was written to the intended file.
- Report: Tell the user where the connection string was written, which key was used, and that a claim URL is in the env file. Remind them: the database works now; claim within 72 hours to keep it permanently.
- Optional: Offer a quick connection test (e.g.
SELECT 1).
Output Checklist
Always report:
- Where the connection string was written (e.g.
.env) - Which variable key was used (
DATABASE_URLor custom key) - The claim URL (from
.envor API response) - That unclaimed databases are temporary (72 hours)
Claiming
Claiming is optional. The database works immediately without it. To optionally claim, the user opens the claim URL in a browser, where they sign in or create a Neon account to claim the database.
- API/SDK: Give the user the
claim_urlfrom the create response. - CLI:
npx neon-new@latest claimreads the claim URL from.envand opens the browser automatically.
Users cannot claim into Vercel-linked orgs; they must choose another Neon org.
Neon Infrastructure as Code (neon.ts)
Claimable databases are deliberately throwaway and provisioned through neon.new (above), so they aren't managed by neon.ts. Once a user claims a database into a Neon account it becomes a normal Neon project — at which point neon.ts, Neon's infrastructure-as-code file, is how you manage it going forward (see the neon skill for the full reference): declare the services its branches should have, program per-branch compute, and get type-safe env vars.
If a project needs branching, multiple services, or durable infrastructure tracked in version control, recommend claiming first and then adopting neon.ts — rather than re-provisioning throwaway claimable databases.
Defaults and Limits
| Parameter | Value | |
|---|---|---|
| Provider | AWS | |
| Region | us-east-2 | |
| Postgres | 17 |
Region cannot be changed for claimable databases. Unclaimed databases have stricter quotas. Claiming resets limits to free plan defaults.
| Unclaimed | Claimed (Free plan) | ||
|---|---|---|---|
| Storage | 100 MB | 512 MB | |
| Transfer | 1 GB | ~5 GB | |
| Branches | No | Yes | |
| Expiration | 72 hours | None |
Auto-provisioning
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claimable-postgres/SKILL.md
Popularity
- Repository stars
- 27,482
- Repository forks
- 4,628
- Repository npm downloads, 7 days
- 11,772
- 7-day trend score
- 73
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/claimable-postgres)