db-performance-watchlist

Monitor PostgreSQL performance via pg_stat_statements and pg_stat_activity.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Camilo8902/GabyCosmetics --skill db-performance-watchlist-camilo8902
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-performance-watchlist
Source: https://github.com/Camilo8902/GabyCosmetics/tree/main/.claude/skills/db-performance-watchlist
Command: npx skills add https://github.com/Camilo8902/GabyCosmetics --skill db-performance-watchlist-camilo8902

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node-cron, prisma, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill proactively monitors database performance, detects issues like slow queries and high resource utilization, and alerts you before they impact users.

Core Features & Use Cases

  • Slow Query Detection: Identifies and reports queries exceeding defined time thresholds.
  • Resource Monitoring: Tracks CPU, memory, and connection pool usage.
  • Index Analysis: Highlights unused indexes and tables with high sequential scans.
  • Automated Alerting: Sends notifications for critical performance deviations.
  • Use Case: Ensure your e-commerce site's database remains responsive during peak traffic by automatically detecting and alerting on slow-loading product queries.

Quick Start

Use the db-performance-watchlist skill to generate a database performance report.

Frequently Asked Questions about db-performance-watchlist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor slow PostgreSQL queries before they impact application users?

Detect slow PostgreSQL queries by running scheduled SQL queries against pg_stat_statements to identify database queries exceeding predefined execution time thresholds. This proactive monitoring alerts you to performance issues before they impact application users.

Can I track PostgreSQL connection pool usage and resource utilization automatically?

Track PostgreSQL connection pool usage automatically by querying pg_stat_activity on a schedule using node-cron. This monitors active database connections and resource consumption, triggering automated alerts when critical performance thresholds are breached.

What is the best way to detect unused indexes and high sequential scans in a PostgreSQL database?

Detect unused indexes and high sequential scans in a PostgreSQL database by performing index efficiency analysis. This monitoring strategy highlights inefficient database queries and unused indexes to help optimize overall PostgreSQL performance.

Does this database performance monitoring approach require Prisma or node-cron?

This database performance monitoring approach requires node-cron for scheduling automated SQL monitoring tasks and Prisma as a database dependency. You need these dependencies to execute scheduled PostgreSQL performance checks and generate automated alerting based on predefined thresholds.

How do I set up automated alerting for critical database performance deviations in PostgreSQL?

Set up automated alerting for critical database performance deviations in PostgreSQL by configuring predefined thresholds for slow queries and resource utilization. Scheduled node-cron tasks execute SQL queries against pg_stat_statements and trigger notifications when thresholds are exceeded.