Grow AI Skills Saved
↗ Agent skillCommunity skill

PostgreSQL Patterns Skill

Review queries, indexes and schemas using the actual workload and execution evidence.

By Affaan Mustapha·Development

What this skill does

  • Schema choices

    Review data types, constraints and relationships against the application's actual access patterns.

  • Index and query patterns

    Consider B-tree, composite, GIN or BRIN indexes where they match the supplied workload.

  • Operational guidance

    Reason about row-level security, connection pooling and common query or configuration pitfalls.

What to provide & what you get

Input
The PostgreSQL schema, queries and performance or data requirements
Expected output
Schema, query or index guidance with validation steps

Community source

Upstream source

Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.

Read upstream SKILL.md
Repository
affaan-m/ECC
File
skills/postgres-patterns/SKILL.md
Revision
76aaa77df6adc5b889e689007bf99b9a4f74af34

The downloaded SKILL.md text matches this upstream entrypoint. Review the ZIP’s source and license records for the complete packaging details.

Installation

  1. Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only SKILL.md.
  2. Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.

Codex

This project
.agents/skills/postgres-patterns/SKILL.md
All your projects
~/.agents/skills/postgres-patterns/SKILL.md

Claude Code

This project
.claude/skills/postgres-patterns/SKILL.md
All your projects
~/.claude/skills/postgres-patterns/SKILL.md
  1. Check the final path. It must match one of the paths above, with one postgres-patterns/ folder directly under skills/. Avoid an extra ZIP-name folder around it.
  2. Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.

Before the first run

  • PostgreSQL schema and relevant queries
  • A test database only when executing checks.

The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.

What's in the download

3 files across 1 skill folder. Includes postgres-patterns/SKILL.md.

File integrity (SHA256):

008ec715463d627baad4ac536b51d2a203d318193abb55bea712488f9b82ea29

How to use

  1. Provide the schema, relevant queries, PostgreSQL version and available execution evidence.
  2. Ask for a scoped schema or performance review with proposed checks.
  3. Compare plans and results in a suitable environment before applying changes.

Try it in your agent

Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.

Codex

Use $postgres-patterns.

 Review this query and schema, suggest indexes and explain which execution plan would confirm the improvement.

Claude Code

/postgres-patterns

 Review this query and schema, suggest indexes and explain which execution plan would confirm the improvement.

Check the result: An index suggestion needs workload evidence and should not be treated as a guaranteed speed improvement.

Keep exploring

Related skills & prompts

Browse this category ↗