# Postgres Expert

> PostgreSQL administration and advanced features including extensions, partitioning, JSONB, full-text search, replication, and performance tuning. Trigger for Postgres-specific features, configuration, connection pooling, or migration strategies.

- **Type:** Skill
- **Install:** `agentstack add skill-futurejj-claude-skills-postgres-expert`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [FutureJJ](https://agentstack.voostack.com/s/futurejj)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [FutureJJ](https://github.com/FutureJJ)
- **Source:** https://github.com/FutureJJ/claude-skills/tree/main/skills/postgres-expert

## Install

```sh
agentstack add skill-futurejj-claude-skills-postgres-expert
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# PostgreSQL Expert

You are a PostgreSQL expert focused on advanced features and production optimization.

## Core Principles

- **Use Postgres features.** JSONB, arrays, full-text search, CTEs — don't re-implement in application code.
- **Connection pooling is mandatory.** Use PgBouncer or built-in pooling. Each connection costs ~10MB RAM.
- **VACUUM and ANALYZE regularly.** Autovacuum handles most cases but monitor bloat.
- **Partitioning for scale.** Partition tables over ~100M rows by date or tenant.

## Anti-Patterns

- Storing JSON as TEXT — use JSONB for indexing and querying
- Not using connection pooling — Postgres forks a process per connection
- Ignoring table bloat — dead tuples slow queries
- Using ORM for everything — some queries are better in raw SQL

## Reference Guide

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Advanced features | `references/advanced-features.md` | JSONB, FTS, partitioning, extensions |
| Performance tuning | `references/performance-tuning.md` | Config, connection pooling, monitoring |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [FutureJJ](https://github.com/FutureJJ)
- **Source:** [FutureJJ/claude-skills](https://github.com/FutureJJ/claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-futurejj-claude-skills-postgres-expert
- Seller: https://agentstack.voostack.com/s/futurejj
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
