Agent skill

postgres

PostgreSQL best practices, query optimization, connection troubleshooting, and performance improvement. Load when working with Postgres databases.

Stars 193
Forks 28

Install this agent skill to your Project

npx add-skill https://github.com/PageAI-Pro/ralph-loop/tree/main/.agent/skills/postgres

Metadata

Additional technical details for this skill

author
planetscale
version
1.0.0

SKILL.md

PlanetScale Postgres

Generic Postgres

Topic Reference Use for
Schema Design references/schema-design.md Tables, primary keys, data types, foreign keys
Indexing references/indexing.md Index types, composite indexes, performance
Index Optimization references/index-optimization.md Unused/duplicate index queries, index audit
Partitioning references/partitioning.md Large tables, time-series, data retention
Query Patterns references/query-patterns.md SQL anti-patterns, JOINs, pagination, batch queries
Optimization Checklist references/optimization-checklist.md Pre-optimization audit, cleanup, readiness checks
MVCC and VACUUM references/mvcc-vacuum.md Dead tuples, long transactions, xid wraparound prevention

Operations and Architecture

Topic Reference Use for
Process Architecture references/process-architecture.md Multi-process model, connection pooling, auxiliary processes
Memory Architecture references/memory-management-ops.md Shared/private memory layout, OS page cache, OOM prevention
MVCC Transactions references/mvcc-transactions.md Isolation levels, XID wraparound, serialization errors
WAL and Checkpoints references/wal-operations.md WAL internals, checkpoint tuning, durability, crash recovery
Replication references/replication.md Streaming replication, slots, sync commit, failover
Storage Layout references/storage-layout.md PGDATA structure, TOAST, fillfactor, tablespaces, disk mgmt
Monitoring references/monitoring.md pg_stat views, logging, pg_stat_statements, host metrics
Backup and Recovery references/backup-recovery.md pg_dump, pg_basebackup, PITR, WAL archiving, backup tools

PlanetScale-Specific

Topic Reference Use for
Connection Pooling references/ps-connection-pooling.md PgBouncer, pool sizing, pooled vs direct
Extensions references/ps-extensions.md Supported extensions, compatibility
Connections references/ps-connections.md Connection troubleshooting, drivers, SSL
Insights references/ps-insights.md Slow queries, MCP server, pscale CLI
CLI Commands references/ps-cli-commands.md pscale CLI reference, branches, deploy requests, auth
CLI API Insights references/ps-cli-api-insights.md Query insights via pscale api, schema analysis

Expand your agent's capabilities with these related and highly-rated skills.

PageAI-Pro/ralph-loop

frontend-testing

Generate Vitest + React Testing Library tests for frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Vitest, RTL, unit tests, integration tests, or write/review test requests.

193 28
Explore
PageAI-Pro/ralph-loop

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

193 28
Explore
PageAI-Pro/ralph-loop

frontend-code-review

Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.

193 28
Explore
PageAI-Pro/ralph-loop

component-refactoring

Refactor high-complexity React components in frontend. Use when the user asks for code splitting, hook extraction, or complexity reduction, or when you come across a component that is too complex to understand and refactor it.

193 28
Explore
PageAI-Pro/ralph-loop

mysql

Plan and review MySQL/InnoDB schema, indexing, query tuning, transactions, and operations. Use when creating or modifying MySQL tables, indexes, or queries; diagnosing slow/locking behavior; planning migrations; or troubleshooting replication and connection issues. Load when using a MySQL database.

193 28
Explore
PageAI-Pro/ralph-loop

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

193 28
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results