postgresql-performance-diagnostic-suite

Diagnose PostgreSQL performance issues using pg_stat_statements, pg_stat_activity, and EXPLAIN ANALYZE. Integrates with pgBadger for log analysis and with pg_stat_user_tables for index recommendations.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "postgresql-performance-diagnostic-suite" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7e926d02559c35186145ed40f51fccd677f30faab7d95dbd5955043bb751740f. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/postgresql-performance-diagnostic-suite before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Diagnose PostgreSQL performance issues using pg_stat_statements, pg_stat_activity, and EXPLAIN ANALYZE. Integrates with pgBadger for log analysis and with pg_stat_user_tables for index recommendations.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "PostgreSQL 性能诊断套件"
slug: "postgresql-performance-diagnostic-suite"
version: "1.0.0"
displayName: "PostgreSQL 性能诊断套件"
summary: "使用 pg_stat_statements、pg_stat_activity 和 EXPLAIN ANALYZE 诊断 PostgreSQL 性能问题。与 pgBadger 集成进行日志分析,并与 pg_stat_user_tables 集成进行索引推荐。"
license: "MIT"
description: "使用pg_stat_statements、pg_stat_activity和EXPLAIN ANALYZE诊断PostgreSQL性能问题。与pgBadger集成进行日志分析,并与pg_stat_user_tables集成进行索引推荐。"
github_stars: 13127
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Runbooks & Diagnostics"
framework: "MCP"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 13127
  npm_package: "pg"
  npm_weekly_downloads: 23169914

PostgreSQL 性能诊断套件

Diagnoses PostgreSQL performance issues using pg_stat_statements, pg_stat_activity, and EXPLAIN ANALYZE. Integrates with pgBadger for log analysis and pg_stat_user_tables for index recommendations.

Installation

Use the upstream install or setup path that matches your environment:

  • npm install pg
  • From your workspace root run yarn and then yarn lerna bootstrap
  • Run yarn test to run all the tests.

Requirements and caveats from upstream:

  • node-postgres

  • Build Status
  • Non-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.

Basic usage or getting-started notes:

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供专业的 PostgreSQL 性能诊断能力,解决数据库运维核心痛点
  • 集成多种标准工具(pg_stat_statements、pgBadger等)形成完整诊断链条
Trigger Precision90/100

Highlights

  • 触发词精准覆盖核心功能点,边界清晰
  • 明确描述了与 pgBadger 和 pg_stat_user_tables 的集成能力
Structure and Standards55/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档未提供具体的使用场景说明和端到端示例

    Recommendation: 补充典型使用场景说明和完整的诊断流程示例

Highlights

  • frontmatter 信息完整,包含版本、许可证等必要信息
Execution Reliability65/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未处理数据库连接失败、查询超时等常见异常情况

    Recommendation: 增加异常处理逻辑和错误恢复机制

  • 不可逆操作缺乏确认机制 Reported severity: Minor

    索引推荐后直接执行可能带来性能风险

    Recommendation: 为索引创建等不可逆操作添加用户确认步骤

Highlights

  • 依赖的 npm 包来源明确,生态系统成熟
Evidence Verifiability (mean of the first four)71/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 28
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.