# PostgreSQL Database Administration

A PostgreSQL administration skill: schema design, indexing, backups and query tuning. Useful when the agent writes SQL for a ticketing system or reporting.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 452 installs · ★ 62
- Author: Claude
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-database-pro/skills/postgresql/SKILL.md
- Updated: 2026-06-13
- HTML: https://affpapa.org/en/nevibecode/skills/postgresql-database-administration

## What it does

The skill covers PostgreSQL work for support systems: users, tickets, comments, change history, organizations and an audit log. It ships `CREATE TABLE` examples with constraints, foreign keys and `JSONB` columns for custom fields. The agent leans on those when it proposes a schema for your project.

There is a separate indexing section. B-tree indexes for common filters by status, customer and agent, partial indexes with a `WHERE` clause, composite ones on status, priority and date. Full-text search gets GIN and `tsvector` groundwork. Audit log partitioning is laid out by month.

You need access to a PostgreSQL 12 or newer installation, basic SQL knowledge and some comfort with the command line. Without a running server the examples stay text: you cannot check a query plan or see how an index behaves. The skill text stops partway through the full-text search section, so treat the GIN material and the rest as covered only by the listed capabilities.

## Requirements
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill postgresql-database-administration -a claude-code
```
```bash
npx skills add manutej/luxor-claude-marketplace --skill postgresql -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/postgresql/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/postgresql/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill postgresql -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/postgresql/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill postgresql -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/postgresql/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install manutej/luxor-claude-marketplace postgresql
```

2. **Manually: put the files in place**
- File: `.github/skills/postgresql/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill postgresql -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/manutej/luxor-claude-marketplace --path plugins/luxor-database-pro/skills/postgresql
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/postgresql/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill postgresql -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-database-pro/skills/postgresql/SKILL.md

## When to use it
- design a ticketing schema with change history
- pick indexes for status and agent filters
- partition the audit log by month
- store custom ticket fields in `JSONB`
- set up full-text search over comments

## Example prompts
- Design a database schema for a support system: users, tickets, comments, history
- Which indexes should I add to the tickets table for status and priority filters?
- Split audit_logs into monthly partitions

## Similar
- [PostgreSQL Database Administrator](https://affpapa.org/en/nevibecode/agents/postgresql-database-administrator.md) — subagent · ★ 40418
- [postgresql-best-practices](https://affpapa.org/en/nevibecode/skills/postgresql-best-practices.md) — skill · 1500 installs
- [postgresql](https://affpapa.org/en/nevibecode/skills/devops-skills-postgresql.md) — skill · 419 installs
- [database-design](https://affpapa.org/en/nevibecode/skills/moizibnyousaf-database-design.md) — skill · 604 installs
- [database-performance-debugging](https://affpapa.org/en/nevibecode/skills/database-performance-debugging.md) — skill · 493 installs

From the same set: [manutej/luxor-claude-marketplace](https://affpapa.org/en/nevibecode/by/manutej/luxor-claude-marketplace.md) — 31 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
