Comprehensive PostgreSQL database engineering covering indexing, query optimization, replication, and production management.
Works with
Covers 6 index types (B-tree, Hash, GiST, GIN, BRIN, SP-GiST) with decision matrices for choosing the right index for specific query patterns
Includes streaming and logical replication setup, failover procedures, and high-availability configuration with synchronous/asynchronous modes
Provides partitioning strategies (range, list, hash) with automation examples
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionpostgresql-database-engineeringExecute the skills CLI command in your project's root directory to begin installation:
Fetches postgresql-database-engineering from manutej/luxor-claude-marketplace 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-database-engineering. Access via /postgresql-database-engineering 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
49
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
49
stars
A comprehensive skill for professional PostgreSQL database engineering, covering everything from query optimization and indexing strategies to high availability, replication, and production database management. This skill enables you to design, optimize, and maintain high-performance PostgreSQL databases at scale.
Use this skill when:
PostgreSQL uses a process-based architecture with several key components:
PostgreSQL's foundational concurrency mechanism:
Key Implications:
PostgreSQL supports four isolation levels:
Choosing Isolation:
PostgreSQL offers multiple index types for different use cases:
PostgreSQL's query planner determines execution strategies:
Planner Components:
Key Statistics:
n_distinct: Number of distinct values (for selectivity)correlation: Physical row ordering correlationmost_common_vals: MCV list for skewed distributionshistogram_bounds: Value distribution histogramUnderstanding EXPLAIN:
Table partitioning for managing large datasets:
Partition Pruning:
Partition-Wise Operations:
PostgreSQL replication options:
Synchronous vs Asynchronous:
Managing database connections efficiently:
Pooling Modes:
Critical maintenance operations:
Key configuration parameters:
shared_buffers: 25% of RAM (start point)
effective_cache_size: 50-75% of RAM
work_mem: Per-operation memory (sort, hash)
maintenance_work_mem: VACUUM, CREATE INDEX memory
checkpoint_timeout: How often to checkpoint
max_wal_size: WAL size before checkpoint
checkpoint_completion_target: Spread checkpoint I/O
wal_buffers: WAL write buffer size
random_page_cost: Relative cost of random I/O
effective_io_concurrency: Concurrent I/O operations
default_statistics_target: Histogram detail level
max_connections: Maximum client connections
connection_limit: Per-database/user limits
Decision Matrix:
| Query Pattern | Index Type | Reason |
|---|---|---|
WHERE id = 5 |
B-tree | Equality lookup |
WHERE created_at > '2024-01-01' |
B-tree | Range query |
ORDER BY name |
B-tree | Sorting support |
WHERE tags @> ARRAY['sql'] |
GIN | Array containment |
WHERE data->>'status' = 'active' |
GIN (jsonb_path_ops) | JSONB query |
WHERE to_tsvector(content) @@ query |
GIN | Full-text search |
WHERE location <-> point(0,0) |
GiST | Nearest neighbor |
WHERE timestamp BETWEEN ... (large table) |
BRIN | Sequential time-series |
WHERE ip_address << '192.168.0.0/16' |
GiST or SP-GiST | IP range query |
Multi-column indexes for complex queries:
Column Ordering Rules:
Example:
-- Query: WHERE status = 'active' AND created_at > '2024-01-01' ORDER BY created_at
-- Optimal index: (status, created_at)
CREATE INDEX idx_users_status_created ON users(status, created_at);
Index subset of rows:
Benefits:
Use Cases:
WHERE deleted_at IS NULLWHERE created_at > NOW() - INTERVAL '90 days'WHERE status IN ('pending', 'processing')Index computed values:
Examples:
-- Case-insensitive search
CREATE INDEX idx_users_email_lower ON users(LOWER(email));
-- Date truncation
CREATE INDEX idx_events_date ON events(DATE(created_at));
-- JSONB field
CREATE INDEX idx_data_status ON documents((data->>'status'));
Include non-key columns for index-only scans:
CREATE INDEX idx_users_email_include
ON users(email)
INCLUDE (first_name, last_name, created_at);
Benefit: Query satisfied entirely from index, no table lookup
Monitoring Index Usage:
-- Unused indexes
SELECT schemaname, tablename, indexname, idx_scan
FROM pg_stat_user_indexes
WHERE idx_scan = 0
ORDER BY pg_relation_size(indexrelid) DESC;
Detecting Bloat:
-- Index bloat estimation
SELECT schemaname, tablename, indexname,
pg_size_pretty(pg_relation_size(indexrelid)) as index_size,
idx_scan, idx_tup_read, idx_tup_fetch
FROM pg_stat_user_indexes
ORDER BY pg_relation_size(indexrelid) DESC;
Understanding query execution:
-- Basic EXPLAIN
EXPLAIN SELECT * FROM users WHERE email = '[email protected]';
-- EXPLAIN ANALYZE (actually runs query)
EXPLAIN ANALYZE SELECT * FROM users WHERE created_at > '2024-01-01';
-- Detailed output
EXPLAIN (ANALYZE, BUFFERS, VERBOSE)
SELECT u.*, o.total
FROM users u
JOIN orders o ON u.id = o.user_id
WHERE u.created_at > '2024-01-01';
Key Metrics:
Problem: One query per row in a loop Solution: JOIN or batch queries
Problem: Fetches unnecessary columns Solution: Select only needed columns
Make 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.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
postgresql-database-engineering fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: postgresql-database-engineering is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added postgresql-database-engineering from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
postgresql-database-engineering is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in postgresql-database-engineering — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: postgresql-database-engineering is focused, and the summary matches what you get after install.
Registry listing for postgresql-database-engineering matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in postgresql-database-engineering — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: postgresql-database-engineering is focused, and the summary matches what you get after install.
postgresql-database-engineering is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 26