
MCP服务器和Claude插件,用于Postgres技能和文档。帮助AI编码工具生成更好的PostgreSQL代码。
概览
pg-aiguide 帮助 AI 编码工具大幅提升 PostgreSQL 代码。它提供: - 涵盖官方 PostgreSQL 手册(版本感知)————由 AI 代理自动采用的策划、观点明确的 Postgres 最佳实践——从 TimescaleDB 开始,更多内容即将推出 - 通过 npx 技能 — 支持Claude Code、Cursor、Codex、Gemini CLI及其他40+代理——可与任何AI编码代理使用,或——针对Claude原生技能支持优化。 AI编码工具通常生成Postgres代码,具体如下: - 过时 - 缺少约束和索引 - 不了解现代 PG 功能 - 与现实最佳实践不一致 pg-aiguide 通过为 AI 代理提供深入的、版本化的 PostgreSQL 知识和经过验证的模式,解决了这个问题。 https://github.
概述(AI 翻译)
** 为编码助手提供 AI 优化的 PostgreSQL 专业技能**
pg-aiguide 帮助 AI 编码工具大幅提升 PostgreSQL 代码。它提供:
- **官方PostgreSQL手册中的语义搜索(版本感知)
- AI优化的“技能”——由AI代理自动使用的Postgres精选、观点最佳实践
- 扩展生态系统文档,从TimescaleDB开始,更多内容即将推出
将其用作:
- Agent Skills 通过
npx skills——可与Claude Code、Cursor、Codex、Gemini CLI及其他40+特工合作 - 一个公共MCP服务器,可与任何AI编码代理一起使用,或
- 一个Claude代码插件,针对Claude原生技能支持进行了优化。
⭐ 为什么是 pg-aiguide?
AI编码工具通常生成Postgres代码,具体如下:
- 过时
- 缺少约束和索引
- 不了解现代PG功能
- 与现实最佳实践不符
pg-aiguide 通过为 AI 代理提供深入的、版本化的 PostgreSQL 知识和经过验证的模式,解决了这个问题。
看出区别了
https://github.com/user-attachments/assets/5a426381-09b5-4635-9050-f55422253a3d
视频文字稿
给克劳德代码的提示:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
pg-aiguide
AI-optimized PostgreSQL expertise for coding assistants
pg-aiguide helps AI coding tools write dramatically better PostgreSQL code. It provides:
- Semantic search across the official PostgreSQL manual (version-aware)
- AI-optimized “skills” — curated, opinionated Postgres best practices used automatically by AI agents
- Extension ecosystem docs, starting with TimescaleDB, with more coming soon
Use it as:
- Agent Skills via
npx skills— works with Claude Code, Cursor, Codex, Gemini CLI, and 40+ other agents - a public MCP server that can be used with any AI coding agent, or
- a Claude Code plugin optimized for use with Claude’s native skill support.
⭐ Why pg-aiguide?
AI coding tools often generate Postgres code that is:
- outdated
- missing constraints and indexes
- unaware of modern PG features
- inconsistent with real-world best practices
pg-aiguide fixes that by giving AI agents deep, versioned PostgreSQL knowledge and proven patterns.
See the difference
https://github.com/user-attachments/assets/5a426381-09b5-4635-9050-f55422253a3d
🚀 Quickstart
Agent Skills
Install curated PostgreSQL best-practice skills for your AI coding agent:
npx skills add timescale/pg-aiguide --skill postgres
Or install the schema exploration skill to investigate an existing PostgreSQL database:
npx skills add timescale/pg-aiguide --skill schema-exploration
Or pick individual skills interactively:
npx skills add timescale/pg-aiguide
Works with Claude Code, Cursor, Codex, Gemini CLI, VS Code, and 40+ other agents.
For even deeper PostgreSQL knowledge, also add the MCP server to give your agent semantic search over the official PostgreSQL, TimescaleDB, and PostGIS manuals.
MCP Server
For semantic search over PostgreSQL, TimescaleDB, and PostGIS documentation, add the public MCP server:
https://mcp.tigerdata.com/docs
{
"mcpServers": {
"pg-aiguide": {
安装
npx skills add timescale/pg-aiguide --skill postgres配置
{
"mcpServers": {
"pg-aiguide": {
"url": "https://mcp.tigerdata.com/docs"
}
}
}