做什么
设置和管理 使用 Clickhousectl CLI 的 Postgres —— 运行本地多克支持的 Postgres 开发, 并创建和运行管理下的 ClickHouse Cloud Postgres 服务(连接, TLS, 运行时配置, 读取复制件, 故障翻转, 点到时恢复)
技能库 智客分类:运维与云 infra-postgres
设置和管理 使用clickhousectl CLI的postgres——运行一个本地多克后置的Postgres用于开发,并创建和运行所管理的ClickHouse Cloud Postgres服务(连接,TLS,运行时配置,读取复制,故障翻接,点入时恢复). 当用户想要Postgres或PostgreSQL数据库用于他们的应用,本地Postgres dev环境,psql访问,或ClickHouse Cloud中管理/生产Postgres时使用,或者提及将本地Postgres移动到生产.
官方网址:skills.sh
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
设置和管理 使用 Clickhousectl CLI 的 Postgres —— 运行本地多克支持的 Postgres 开发, 并创建和运行管理下的 ClickHouse Cloud Postgres 服务(连接, TLS, 运行时配置, 读取复制件, 故障翻转, 点到时恢复)
用户想要 Postgres 或 PostgreSQL 数据库用于应用, 本地 Postgres dev 环境, psql 访问, 或在 ClickHouse Cloud 中管理/生产 Postgres, 或提及将本地 Postgres 移动到生产
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Postgres with clickhousectl、Which reference to use、Prerequisites (both workflows)、Related。 其中含规范建议的小节:分步指令。
文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。
Sets up and manages Postgres using the clickhousectl CLI — runs a local Docker-backed Postgres for development, and creates and operates managed ClickHouse Cloud Postgres services (connections, TLS, runtime config, read replicas, failover, point-in-time restore). Use when the user wants a Postgres or PostgreSQL database for their application, a local Postgres dev environment, psql access, or a managed/production Postgres in ClickHouse Cloud, or mentions moving a local Postgres to production.
Postgres with clickhousectlWhich reference to usePrerequisites (both workflows)Related
· 许可:Apache-2.0
来源分类:skills.sh agent-skill
nameinfra-postgresdescription具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「infra-postgres」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-a681b140f0b66f11-%E9%82%AE%E6%94%BF.html 请存为 .cursor/skills/infra-postgres/SKILL.md 或 .claude/skills/infra-postgres/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。
npx skills add 'https://github.com/clickhouse/agent-skills' --list
npx skills add 'https://github.com/clickhouse/agent-skills' --skill 'infra-postgres'
CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。
clickhousectl manages Postgres in two environments:
This file routes to the right reference. The step-by-step workflows live in ref/local.md and ref/cloud.md — read the one that matches the user's situation before running commands.
| The user wants to... | Read | |----------------------|------| | Develop or prototype locally, run tests/CI against Postgres, no cloud account needed | ref/local.md | | Go to production, host a managed Postgres, or use ClickHouse Cloud explicitly | ref/cloud.md | | Operate an existing cloud service (passwords, TLS, config, replicas, failover, restore) | ref/cloud.md | | Develop locally now, ship to production later | Start with ref/local.md; it points to ref/cloud.md when it's time to go to prod |
If it's genuinely ambiguous (e.g. "set up Postgres for my app"), default to local for development tasks and ask before creating anything in the cloud — cloud services cost money.
Check that clickhousectl is installed:
which clickhousectl
If not found, install it:
curl -fsSL https://clickhouse.com/cli | sh
This installs to ~/.local/bin/clickhousectl (with a chctl alias). If the command is still not found, suggest export PATH="$HOME/.local/bin:$PATH" or a new terminal.
All commands accept --json for machine-readable output. Exit codes follow gh conventions: 0 success, 1 error, 2 cancelled, 4 auth required.
clickhousectl cloud clickpipe --help).infra-clickhouse skill.运维与云
用于容器管理,图像操作,调试的基本道克命令和工作流程.
运维与云
从开放的代理技能生态系统中发现并安装技能. 使用时:(1)用户问"我如何做X",X可能拥有现有技能,(2)用户说"为X找到技能"或"是否为X有技能",(3)用户问"你能否做X",X是专门能力,(4)用户想扩展代理能力,(5)用户想搜索工具,模板,或工作流程,(6)用户提到他们希望…
运维与云
构建,部署,评价,优化,微调,管理微软创始代理,模型,资源最终结束. 用法:铸造、azd ai代理、azd 提供/部署、托管代理脚手架/开发/运行/部署/拖放、即时代理创建、创建代理、更新代理、添加代理工具、援引代理、代理.yaml、评估代理、批量活化、连续活化、持续监测、代理C…
运维与云
执行已有.azure/部署计划.md和基础设施文件的ALREADY-PREPARED应用程序的Azure部署。 当用户向 CREATE 请求新应用程序时, 请不要使用此技能 。 这种技能运行了 azd上行, azd 部署, trarraform 应用, 和 az 部署命令带有内置…