github avatar

Postgresql Optimization

PostgreSQL-optimization is a development assistant that provides expert guidance on PostgreSQL-specific features and optimization patterns for developers working with PostgreSQL databases. It covers advanced capabilities including JSONB operations, array types, window functions, full-text search, custom data types, and the PostgreSQL extensions ecosystem. The skill solves the problem of helping developers leverage PostgreSQL's unique features effectively by offering concrete examples and best practices for performance tuning and complex queries.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
7
skills.sh installs
16.9K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill postgresql-optimization --agent claude-code

Installs into .claude/skills of the current project.

Files

PostgreSQL Development Assistant

Expert PostgreSQL guidance for ${selection} (or entire project if no selection). Focus on PostgreSQL-specific features, optimization patterns, and advanced capabilities.

� PostgreSQL-Specific Features

JSONB Operations

-- Advanced JSONB queries
CREATE TABLE events (
    id SERIAL PRIMARY KEY,
    data JSONB NOT NULL,
    created_at TIMESTAMPTZ DEFAULT NOW()
);

-- GIN index for JSONB performance
CREATE INDEX idx_events_data_gin ON events USING gin(data);

-- JSONB containment and path queries
SELECT * FROM events 
WHERE data @> '{"type": "login"}'
  AND data #>> '{user,role}' = 'admin';

-- JSONB aggregation
SELECT jsonb_agg(data) FROM events WHERE data ? 'user_id';

Array Operations

-- PostgreSQL arrays
CREATE TABLE posts (
    id SERIAL PRIMARY KEY,
    tags TEXT[],
    categories INTEGER[]
);

-- Array queries and operations
SELECT * FROM posts WHERE 'postgresql' = ANY(tags);
SELECT * FROM posts WHERE tags && ARRAY['database', 'sql'];
SELECT * FROM posts WHERE array_length(tags, 1) > 3;

-- Array aggregation
SELECT array_agg(DISTINCT category) FROM posts, unnest(categories) as category;

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Backend & APIs, Git & Pull Requests, AI & Agent Building, Databases

More from github/awesome-copilot

All 318
1google avatargoogle-cloud-recipe-authgoogle/skillsProvides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Cred16.5Kskills.sh installs
2google avatarfirebase-basicsgoogle/skillsUse this skill whenever you are working on a project that uses Firebase products or services, especially for mobile or web apps.15.2Kskills.sh installs
3shopify avatarshopify-storefront-graphqlshopify/shopify-ai-toolkitUse for custom storefronts requiring direct GraphQL queries/mutations for data fetching and cart operations. Choose this when you need full control over data fe13.7Kskills.sh installs
4vuejs-ai avatarvue-options-api-best-practicesvuejs-ai/skillsVue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.12.4Kskills.sh installs
5google-gemini avatargemini-interactions-apigoogle-gemini/gemini-skillsUse this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, s12.3Kskills.sh installs
6github avatartypescript-mcp-server-generatorgithub/awesome-copilotGenerate a complete MCP server project in TypeScript using the MCP TypeScript SDK v2 (@modelcontextprotocol/server) with tools, resources, and proper configurat12.1Kskills.sh installs