# Ground PostgreSQL code generation in exact docs and best-practice skills through pg-aiguide

> Give coding agents a PostgreSQL-specific reference layer with semantic doc search and curated schema, indexing, and constraint guidance before they generate database code.

- Skill: `agentskillexchange/ground-postgresql-code-generation-in-exact-docs-and-best-pra` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/ground-postgresql-code-generation-in-exact-docs-and-best-pra`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/ground-postgresql-code-generation-in-exact-docs-and-best-pra/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/ground-postgresql-code-generation-in-exact-docs-and-best-pra

---


# Ground PostgreSQL code generation in exact docs and best-practice skills through pg-aiguide

Give coding agents a PostgreSQL-specific reference layer with semantic doc search and curated schema, indexing, and constraint guidance before they generate database code.

## Prerequisites

An AI coding agent with MCP support or npx skills support, plus optional access to the public pg-aiguide docs server.

## Installation

Use the upstream install or setup path that matches your environment:
- npx skills add timescale/pg-aiguide --skill postgres
- npx skills add timescale/pg-aiguide

Basic usage or getting-started notes:
- 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...
- bash
- Or pick individual skills interactively:

- Source: https://github.com/timescale/pg-aiguide
- Extracted from upstream docs: https://raw.githubusercontent.com/timescale/pg-aiguide/HEAD/README.md

## Documentation

- https://github.com/timescale/pg-aiguide

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/ground-postgresql-code-generation-in-exact-docs-and-best-practice-skills-through-pg-aiguide/)

