github avatar

Postgresql Code Review

The postgresql-code-review skill performs expert code reviews specifically for PostgreSQL projects, evaluating code against PostgreSQL best practices and identifying anti-patterns in areas like JSONB operations, array usage, schema design, custom types, and security features such as Row Level Security. It targets PostgreSQL developers and database architects who need to ensure their code adheres to PostgreSQL-specific quality standards rather than generic SQL conventions. The skill solves the problem of applying database-agnostic review practices to PostgreSQL codebases, where PostgreSQL-exclusive features and optimization techniques are often overlooked.

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

Install

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

Installs into .claude/skills of the current project.

Files

PostgreSQL Code Review Assistant

Expert PostgreSQL code review for ${selection} (or entire project if no selection). Focus on PostgreSQL-specific best practices, anti-patterns, and quality standards that are unique to PostgreSQL.

🎯 PostgreSQL-Specific Review Areas

JSONB Best Practices

-- ❌ BAD: Inefficient JSONB usage
SELECT * FROM orders WHERE data->>'status' = 'shipped';  -- No index support

-- βœ… GOOD: Indexable JSONB queries
CREATE INDEX idx_orders_status ON orders USING gin((data->'status'));
SELECT * FROM orders WHERE data @> '{"status": "shipped"}';

-- ❌ BAD: Deep nesting without consideration
UPDATE orders SET data = data || '{"shipping":{"tracking":{"number":"123"}}}';

-- βœ… GOOD: Structured JSONB with validation
ALTER TABLE orders ADD CONSTRAINT valid_status 
CHECK (data->>'status' IN ('pending', 'shipped', 'delivered'));

Array Operations Review

-- ❌ BAD: Inefficient array operations
SELECT * FROM products WHERE 'electronics' = ANY(categories);  -- No index

-- βœ… GOOD: GIN indexed array queries
CREATE INDEX idx_products_categories ON products USING gin(categories);
SELECT * FROM products WHERE categories @> ARRAY['electronics'];

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Backend & APIs, Security, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Design & UI/UX, Databases

More from github/awesome-copilot

All 318
1elevenlabs avatarsetup-api-keyelevenlabs/skillsGuides users through setting up an ElevenLabs API key for ElevenLabs MCP tools. Use when the user needs to configure an ElevenLabs API key, when ElevenLabs tool11.9Kskills.sh installs
2github avataraspnet-minimal-api-openapigithub/awesome-copilotCreate ASP.NET Minimal API endpoints with proper OpenAPI documentation9.2Kskills.sh installs
3affaan-m avatarapi-designaffaan-m/everything-claude-codeapi design6.9Kskills.sh installs
4binance avataronchain-pay-open-apibinance/binance-skills-hubBinance Onchain Pay enables users to buy cryptocurrency with fiat (e.g., EUR, USD) or send existing crypto from their Binance account directly to any external o6Kskills.sh installs
5affaan-m avatarmysql-patternsaffaan-m/eccMySQL and MariaDB schema, query, indexing, transaction, replication, and connection-pool patterns for production backends.5.7Kskills.sh installs
6affaan-m avatarapi-connector-builderaffaan-m/eccBuild a new API connector or provider by matching the target repo's existing integration pattern exactly. Use when adding one more integration without inventing5.5Kskills.sh installs