Provisions a temporary, registration-free Postgres database via pg.new (Neon Claimable Postgres). Writes DATABASE_URL to .env, supports seeding, and handles pooled vs direct connection strings. Best for prototypes, demos, tests, and agent-automated database setup.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
DATABASE_URL 写进项目 .env 快速跑起来。不该用(负边界):
核心约束:未认领(UNCLAIMED)数据库 72 小时后过期;认领需在浏览器登录/注册 Neon 账号。库立即可用,认领是可选项。
判断走哪条路:
curl 无运行时依赖,便于解析与错误处理。npx get-db@latest --yes):一条命令开库并写 .env,Node 环境下最省事。get-db):在 Node 脚本里编程式开库。vite-plugin-db):Vite 项目 vite dev 时若缺 DATABASE_URL 自动开库。API 路径:
https://pg.new/api/v1/database,body {"ref": "agent-skills"}(经本技能开库统一用 agent-skills)。connection_string、claim_url、expires_at。DATABASE_URL=<connection_string>;不覆盖已有键,先检查再决定。psql "$DATABASE_URL" -f seed.sql。SELECT 1 连通性测试。CLI 路径:先查目标 .env 是否已有 DATABASE_URL(CLI 发现该键会直接退出不开库);若已存在,给三选项并确认:① 删除/注释旧行后重跑;② --env 写到别的文件(如 .env.local);③ --key 换变量名。然后用 @latest --yes 加确认过的选项执行 → 校验写入 → 汇报。
@latest(避免缓存旧版)+ --yes(跳过会卡住 Agent 的交互提示)。ref 必填且非空,否则 400 Missing referrer。connection_string 是 pooled(连接池) URL。需要直连(如 Prisma 迁移)时,把主机名里的 -pooler 去掉;CLI 会自动同时写 pooled 与 direct 两条。GET https://pg.new/api/v1/database/{id},状态流转 UNCLAIMED → CLAIMING → CLAIMED;认领后 connection_string 返回 null。yarn dlx / pnpm dlx / bunx get-db@latest / deno run -A get-db@latest。claim_url 给用户;CLI 用 npx get-db@latest claim(读 .env 里的 claim_url 并自动开浏览器)。用户不能认领进 Vercel 关联的组织,须另选 Neon org。REST 开库(解析 JSON 后写 .env):
curl -s -X POST "https://pg.new/api/v1/database" \
-H "Content-Type: application/json" \
-d '{"ref": "agent-skills"}'
响应(节选):
{
"id": "019beb39-...",
"status": "UNCLAIMED",
"connection_string": "postgresql://...",
"claim_url": "https://pg.new/claim/019beb39-...",
"expires_at": "2026-01-26T14:19:14.580Z"
}
CLI 一步开库 + 写 env(自定义文件、播种、来源标记):
npx get-db@latest --yes --ref agent-skills --env .env.local --seed ./schema.sql
CLI 写入 .env 的内容:
DATABASE_URL=postgresql://... # pooled,应用查询用
DATABASE_URL_DIRECT=postgresql://... # direct,迁移用(如 Prisma)
PUBLIC_POSTGRES_CLAIM_URL=https://pg.new/claim/...
CLI 常用选项:--yes/-y 跳提示|--env/-e(默认 ./.env)|--key/-k(默认 DATABASE_URL)|--prefix/-p(默认 PUBLIC_)|--seed/-s SQL 文件|--logical-replication/-L|--ref/-r。
SDK(Node 编程式开库):
import { instantPostgres } from 'get-db';
const { databaseUrl, databaseUrlDirect, claimUrl, claimExpiresAt } = await instantPostgres({
referrer: 'agent-skills',
seed: { type: 'sql-script', path: './init.sql' },
});
// 返回 pooled / direct 连接串、claimUrl、claimExpiresAt(Date);referrer 必填
Vite 插件:npm install -D vite-plugin-db,vite dev 时缺 DATABASE_URL 自动开库。
--env/--key,API 则跳过写入。DROP/TRUNCATE/大量 DELETE 前确认。.env 后,确认其被 .gitignore 覆盖;未覆盖则警告用户,勿擅自改 .gitignore。ref → 400 Missing referrer;无效 ID → 400 Database not found;JSON body 非法 → 500 Failed to create the database.。curl 或 Node。neon-serverless-postgres —— 同属 Neon 生态,从临时库升级到正式 serverless Postgres;postgresql-optimization —— 库开好后的查询/索引优化。neon-serverless-postgres —— 临时库认领后转入正式管理;ORM/迁移技能(Prisma 等)—— 用 direct 连接串跑迁移。采编自 sickn33/antigravity-awesome-skills(MIT)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录/amazon-alexa-skill-builder当需要用 ASK CLI + AWS Lambda 开发 Amazon Alexa 语音技能、并以 Claude 作为对话大脑(含 DynamoDB 记忆、Polly 语音、APL 屏显、Smart Home 控制)时使用;做交互模型/Lambda 处理器/部署脚本的搭建与产出;不适用于纯网页/移动 App 或非 Alexa 平台语音助手;触发词:Alexa、ASK CLI、语音技能、Smart Home/apify-actor-development当需要创建、修改或调试 Apify Actor(无服务器 Docker 抓取/自动化程序)时使用;引导选模板、配 input/output schema 与 actor.json、写入口逻辑、本地 apify run 测试并 apify push 部署;不适用于已有现成 Actor 直接调用(用 apify-ecommerce-scraper)、无 APIFY_TOKEN、或普通网页抓取无需打包为 Actor。触发词:apify actor、apify create、apify push、input_schema、actor.json、爬虫部署、serverless scraper、crawlee/apify-actorization当需要把现有 JS/TS、Python 脚本或任意 CLI 工具改造成可在 Apify 平台运行的 Actor(接受 JSON 输入、产出结构化 JSON、打包为 Docker 镜像并部署/变现)时使用;做 apify init 初始化 + SDK 生命周期包裹 + 配置 input/output/actor schema + apify run 本地测试 + apify push 部署,产出可上架的 Actor;不适用于从零写新爬虫、单纯调用现成 Actor、或无 apify CLI/APIFY_TOKEN。触发词:apify actor、actorization、改造成 actor、apify push、apify init、input_schema、serverless 爬虫/10-platform:claimable-postgres-provisionfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platformOther plugins' skills for the same job