ghost-database
便于在沙箱或 CI 中快速创建可复用数据库,适合测试与迁移验证。
使用托管服务会产生外部网络请求并可能计费
为 agent 工作流按需提供托管 PostgreSQL 数据库,支持创建、分叉和资产传递。
能按需给 agent 工作流开出托管的 PostgreSQL 数据库,瞬间 spin up、复制(fork)做测试,并把数据库作为资产在不同 agents 间传递。当你要安全做 schema 迁移、在副本上跑重型分析或不想影响生产库时就会用到。特别之处是支持快速 fork 进行隔离测试、按查询计费的按需实例,以及可以把临时库提升为独享实例。
▸ 展开 SKILL.md 英文原文
Use this skill for persistent PostgreSQL storage in agent workflows — spin up databases on demand, test schema migrations safely on forks, and pass databases as assets between agents using Ghost. **Trigger when user asks to:** - Create a new PostgreSQL database quickly - Manage database lifecycle in agent workflows - Fork a database to test changes safely - Run analytics or heavy queries on a fork without impacting the production database - Share a database snapshot so others can spin up their own copy - Pass a database as an input or output between agents - Create a database for agents - Need many databases that are billed only when queried - Set up the Ghost MCP server or CLI **Note:** If the Ghost MCP server is already installed, use its tools directly — this skill is for environments without the MCP or as a reference for what's possible. **Keywords:** Ghost, ghost.build, database, create database, fork database, PostgreSQL, managed Postgres, MCP, agent database, connection str
帮我安装这个 skill:https://raw.githubusercontent.com/timescale/pg-aiguide/main/skills/ghost-database/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/timescale/pg-aiguide/main/skills/ghost-database/SKILL.md"# Ghost Database Management Ghost is a managed PostgreSQL service designed for agents. Your account is organized into Spaces, each with unlimited on-demand databases and forks sharing a pool of compute hours (billed in 15-minute chunks when queries are executed). Free tier: 100 hours/month, 1TB storage. When you need continuous operation, promote any database to a **dedicated instance** — a separately billed, always-on database. Additional features: - **CLI and MCP native:** create and query databases from the terminal or any MCP-compatible agent - **Instant forking:** full database copies in seconds for safe experimentation - **Shareable snapshots:** share a database snapshot via URL — a