You are an expert in PostgreSQL with deep knowledge of advanced queries, indexing, performance tuning, replication, and database administration. You design and manage production PostgreSQL databases that are performant, reliable, and scalable.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionpostgresql-expertExecute the skills CLI command in your project's root directory to begin installation:
Fetches postgresql-expert from personamanagmentlayer/pcl and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate postgresql-expert. Access via /postgresql-expert in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
15
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
15
stars
You are an expert in PostgreSQL with deep knowledge of advanced queries, indexing, performance tuning, replication, and database administration. You design and manage production PostgreSQL databases that are performant, reliable, and scalable.
JSON and JSONB:
-- Create table with JSONB
CREATE TABLE events (
id SERIAL PRIMARY KEY,
event_type VARCHAR(50),
data JSONB NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Insert JSON data
INSERT INTO events (event_type, data) VALUES
('user_signup', '{"email": "[email protected]", "referrer": "google"}'),
('purchase', '{"product_id": 123, "amount": 99.99, "currency": "USD"}');
-- Query JSON
SELECT * FROM events WHERE data->>'email' = '[email protected]';
SELECT * FROM events WHERE data->'amount' > '50';
SELECT * FROM events WHERE data @> '{"currency": "USD"}';
-- Extract JSON values
SELECT
event_type,
data->>'email' as email,
(data->>'amount')::NUMERIC as amount
FROM events;
-- JSON operators
-- -> get JSON object field
-- ->> get JSON object field as text
-- #> get JSON object at path
-- #>> get JSON object at path as text
-- @> contains
-- <@ is contained by
-- ? has key
-- ?| has any keys
-- ?& has all keys
-- Update JSON
UPDATE events
SET data = jsonb_set(data, '{verified}', 'true')
WHERE event_type = 'user_signup';
-- Remove JSON key
UPDATE events
SET data = data - 'temp_field'
WHERE id = 1;
-- JSON aggregation
SELECT
event_type,
jsonb_agg(data) as all_events
FROM events
GROUP BY event_type;
Arrays:
-- Array columns
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name VARCHAR(100),
tags TEXT[],
scores INTEGER[]
);
-- Insert arrays
INSERT INTO users (name, tags, scores) VALUES
('Alice', ARRAY['admin', 'developer'], ARRAY[95, 87, 92]),
('Bob', ARRAY['user', 'viewer'], ARRAY[78, 85]);
-- Query arrays
SELECT * FROM users WHERE 'admin' = ANY(tags);
SELECT * FROM users WHERE tags @> ARRAY['developer'];
SELECT * FROM users WHERE tags && ARRAY['admin', 'moderator']; -- Overlaps
-- Array functions
SELECT
name,
array_length(tags, 1) as tag_count,
array_agg(unnest(scores)) as all_scores
FROM users
GROUP BY name;
-- Unnest array
SELECT
name,
unnest(tags) as tag
FROM users;
UUID:
-- Enable UUID extension
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
email VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Insert with UUID
INSERT INTO users (email) VALUES ('[email protected]');
-- Query by UUID
SELECT * FROM users WHERE id = 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11';
Range Types:
-- Integer range
CREATE TABLE reservations (
id SERIAL PRIMARY KEY,
room_id INTEGER,
dates DATERANGE NOT NULL,
EXCLUDE USING GIST (room_id WITH =, dates WITH &&)
);
-- Insert ranges
INSERT INTO reservations (room_id, dates) VALUES
(101, '[2024-01-01,2024-01-05)');
-- Query ranges
SELECT * FROM reservations
WHERE dates @> '2024-01-03'::DATE;
SELECT * FROM reservations
WHERE dates && '[2024-01-02,2024-01-06)'::DATERANGE;
tsvector and tsquery:
-- Create table with full-text search
CREATE TABLE articles (
id SERIAL PRIMARY KEY,
title TEXT,
content TEXT,
search_vector tsvector
);
-- Generate tsvector
UPDATE articles
SET search_vector =
setweight(to_tsvector('english', COALESCE(title, '')), 'A') ||
setweight(to_tsvector('english', COALESCE(content, '')), 'B');
-- Trigger to automatically update search_vector
CREATE FUNCTION articles_search_trigger() RETURNS TRIGGER AS $$
BEGIN
NEW.search_vector :=
setweight(to_tsvector('english', COALESCEMake data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
erichowens/some_claude_skills
sickn33/antigravity-awesome-skills
erichowens/some_claude_skills
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
postgresql-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for postgresql-expert matched our evaluation — installs cleanly and behaves as described in the markdown.
Registry listing for postgresql-expert matched our evaluation — installs cleanly and behaves as described in the markdown.
Solid pick for teams standardizing on skills: postgresql-expert is focused, and the summary matches what you get after install.
postgresql-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: postgresql-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
postgresql-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for postgresql-expert matched our evaluation — installs cleanly and behaves as described in the markdown.
postgresql-expert is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Solid pick for teams standardizing on skills: postgresql-expert is focused, and the summary matches what you get after install.
showing 1-10 of 69