Postgresql

From Dokhacgiakhoa/antigravity-ide · View interactive version

Postgresql is an AI agent skill from the GitHub repository Dokhacgiakhoa/antigravity-ide. Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

How to use this skill

Skill file

PostgreSQL Table Design

Use this skill when

Do not use this skill when

Instructions

  1. Capture entities, access patterns, and scale targets (rows, QPS, retention).
  2. Choose data types and constraints that enforce invariants.
  3. Add indexes for real query paths and validate with EXPLAIN.
  4. Plan partitioning or RLS where required by scale or access control.
  5. Review migration impact and apply changes safely.

Safety

Core Rules

PostgreSQL “Gotchas”

Data Types

🧠 Knowledge Modules (Fractal Skills)

1. [Do not use the following data types](./sub-skills/do-not-use-the-following-data-types.md)

2. [Update-Heavy Tables](./sub-skills/update-heavy-tables.md)

3. [Insert-Heavy Workloads](./sub-skills/insert-heavy-workloads.md)

4. [Upsert-Friendly Design](./sub-skills/upsert-friendly-design.md)

5. [Safe Schema Evolution](./sub-skills/safe-schema-evolution.md)

6. [Users](./sub-skills/users.md)

7. [Orders](./sub-skills/orders.md)

8. [JSONB](./sub-skills/jsonb.md)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.