# Sql Postgres

> Write and review Postgres SQL (DDL, DML, indexes, constraints). Use for .sql, schemas, or Postgres mentions.

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

## Install

```sh
agentstack add skill-agent-kit-startup-agent-kit-sql-postgres
```

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

## About

# SQL (Postgres)

**Routing:** small, in-scope schema change: apply this skill in the main window. Large or isolated batch (or when it needs its own context): hand to the `sql-schema` Task subagent (demoted, dogfood-only).

## DDL and conventions

- **CREATE TABLE:** use `IF NOT EXISTS`; explicit primary key; appropriate types (UUID, TEXT, TIMESTAMPTZ, JSONB).
- **Names:** snake_case for tables and columns.
- **Documentation:** `COMMENT ON TABLE ...` and `COMMENT ON COLUMN ...` when it helps maintenance.

## Recommended patterns

- Table scripts: e.g. `001_create_tables.sql`, `002_indexes_constraints.sql`; `uuid-ossp` extension when using UUID.
- Sequences for protocols or numeric IDs when applicable.
- DDL for integrations (filters, logs, events) in dedicated folders (e.g., db/, scripts/, code/).

## Best practices

- Idempotent scripts: `CREATE TABLE IF NOT EXISTS`, `CREATE INDEX IF NOT EXISTS`; avoid failure on re-execution.
- TIMESTAMPTZ for dates/times; UUID for ids when applicable.
- Schema changes: document in docs or module README.

## Source & license

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

- **Author:** [agent-kit-startup](https://github.com/agent-kit-startup)
- **Source:** [agent-kit-startup/agent-kit](https://github.com/agent-kit-startup/agent-kit)
- **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-agent-kit-startup-agent-kit-sql-postgres
- Seller: https://agentstack.voostack.com/s/agent-kit-startup
- 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%.
