Design Postgis Tables
Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance…
- Type
- Skill
- Repository
- timescale/pg-aiguide
- GitHub stars
- 1.8k
- License
- Apache-2.0
- Repo last updated
- Sep 25, 2026
- Source file
- README.md
What Design Postgis Tables is
Design Postgis Tables is a skill published in the timescale/pg-aiguide repository on GitHub, which has about 1.8k stars. The repository describes itself as: “MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.”
A skill is a folder with a SKILL.md file: frontmatter with a name and a description, followed by instructions Claude follows. Claude loads a skill automatically when a task matches its description, and you can also run it directly with a slash and its name.
Skills work in Claude Code and in Claude Cowork, which makes Design Postgis Tables a portable way to give Claude the same method everywhere.
How to install Design Postgis Tables
Claude Code
- Download the design-postgis-tables folder from the repository.
- Save it as ~/.claude/skills/<skill-name>/SKILL.md for all projects, or .claude/skills/<skill-name>/SKILL.md for one project.
- Claude loads it automatically when a task matches; you can also run it with / and its name.
Claude Cowork
- Zip the skill folder so SKILL.md sits at the top level of the folder.
- Open Customize → Skills, click +, then upload the ZIP.
- Start a task that matches the description, or call it by name with /.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from README.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
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
Video Transcript
Prompt given to Claude Code:
> Please describe the schema you would create for an e-commerce website two times, first with the tiger mcp server disabled, then with the tiger mcp server enabled. For each time, write the schema to its own file in the current working directory. Then compare the two files and let me know which approach generated the better schema, using both qualitative and quantitative reasons. For this example, only use standard Postgres.
Result (summarized):
- 4× more constraints
- 55% more indexes (including partial/expression indexes)
- PG17-recommended patterns
- Modern features (GENERATED ALWAYS AS IDENTITY, NULLS NOT DISTINCT)
- Cleaner naming & documentation
Conclusion: _pg-aiguide produces more robust, performant, maintainable schemas._
🚀 Quickstart
Agent Skills
Install curated PostgreSQL best-practice skills for your AI coding agent:
npx skills add timescale/pg-aiguide --skill postgresOr install the schema exploration skill to investigate an existing PostgreSQL database:
npx skills add timescale/pg-aiguide --skill schema-explorationOr pick individual skills interactively:
npx skills add timescale/pg-aiguideWorks 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
Manual MCP configuration using JSON
{
"mcpServers": {
"pg-aiguide": {
"url": "https://mcp.tigerdata.com/docs"
}
}
}Or it can be used as a Claude Code Plugin:
claude plugin marketplace add timescale/pg-aiguide
claude plugin install pg@aiguideInstall by environment
Claude Code
This repo serves as a claude code marketplace plugin. To install, run:
claude plugin marketplace add timescale/pg-aiguide
claude plugin install pg@aiguideThis plugin uses the skills available in the skills directory as well as our publicly available MCP server endpoint hosted by TigerData for searching PostgreSQL documentation.
Codex
Run the following to add the MCP server to codex:
codex mcp add --url "https://mcp.tigerdata.com/docs" pg-aiguideCursor
One-click install:
Or add the following to .cursor/mcp.json
{
"mcpServers": {
"pg-aiguide": {
"url": "https://mcp.tigerdata.com/docs"
}
}
}Gemini CLI
Run the following to add the MCP server to Gemini CLI:
gemini mcp add -s user pg-aiguide "https://mcp.tigerdata.com/docs" -t httpOpenCode
Add the following to your global OpenCode config file (~/.config/opencode/opencode.json), or to a project level opencode.json. See the OpenCode config docs for more about file locations, and the MCP server docs for more about the mcp options.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Design Postgis Tables?
Design Postgis Tables is a skill for Claude Code and Claude Cowork from the timescale/pg-aiguide repository on GitHub. Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance…
How do I install Design Postgis Tables in Claude Code?
Download the design-postgis-tables folder from the repository. Save it as ~/.claude/skills/<skill-name>/SKILL.md for all projects, or .claude/skills/<skill-name>/SKILL.md for one project. Claude loads it automatically when a task matches; you can also run it with / and its name.
Can I use Design Postgis Tables in Claude Cowork?
Zip the skill folder so SKILL.md sits at the top level of the folder. Open Customize → Skills, click +, then upload the ZIP. Start a task that matches the description, or call it by name with /.
Is Design Postgis Tables safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Tiger pg-aiguide — MCP Server Code Style Guide A tight, transferable style guide for a TypeScript MCP server: ESM with .js import extensions, zod for tool-input validation, and the… CLAUDE.md Example · timescale/pg-aiguide
- Pg Aiguide PostgreSQL documentation and best practices through semantic search and curated skills, including TimescaleDB and Tiger Cloud ecosystem tools. Plugin · timescale/pg-aiguide
- Upgrade Stripe Guide for upgrading Stripe API versions and SDKs Skill · stripe/ai
- Ab Test Store Listing When the user wants to A/B test App Store product page elements to improve conversion rate. Also use when the user mentions "A/B test"… Skill · appeeky/aso-skills
- 3 Statements Integrated 3-statement financial model: linked income statement, balance sheet, and cash flow Skill · ginlix-ai/LangAlpha
- WordPress Skills 26 official WordPress and Automattic skills for blocks, themes, and plugin development Skill · WordPress/agent-skills
- A3 Problem Analysis Toyota A3 problem analysis template covering 7 stages: background, current state, goals, root cause analysis, countermeasures… Skill · NeoLabHQ/context-engineering-kit
- Terraform Skill Use when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity… Skill · antonbabenko/terraform-skill