pgbadgerpostgresql

Use pgBadger when you need to transform raw PostgreSQL logs into readable evidence about slow queries, errors, and workload hotspots.

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 "pgbadgerpostgresql" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f9425d5ca275289a95d67d84b79dbf123af98698ac26bff4c3cbaad466bc2334. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/turn-postgresql-logs-into-incident-and-tuning-reports-with-pgbadger 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

Use pgBadger when you need to transform raw PostgreSQL logs into readable evidence about slow queries, errors, and workload hotspots.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
pgBadger, PostgreSQL logs with compatible log settings, and a shell environment for report generation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "使用pgBadger将PostgreSQL日志转换为事件和调优报告"
slug: "turn-postgresql-logs-into-incident-and-tuning-reports-with-pgbadger"
version: "1.0.0"
displayName: "使用pgBadger将PostgreSQL日志转换为事件和调优报告"
summary: "当需要将原始PostgreSQL日志转换为关于慢查询、错误和工作负载热点的可读证据时,请使用pgBadger。"
license: "MIT"
description: "当需要将原始PostgreSQL日志转换为关于慢查询、错误和工作负载热点的可读证据时,请使用pgBadger。"
github_stars: 3994
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Runbooks & Diagnostics"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 3994

使用pgBadger将PostgreSQL日志转换为事件和调优报告

Use pgBadger when an agent needs to convert raw PostgreSQL logs into readable evidence about slow queries, errors, and workload hotspots after an incident.

Prerequisites

pgBadger, PostgreSQL logs with compatible log settings, and a shell environment for report generation.

Installation

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

  • make && sudo make install

Requirements and caveats from upstream:

  • Requires incremental output directories and the
  • month. Requires incremental output directories and
  • You must enable and set some configuration directives in your postgresql.conf

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 PostgreSQL 日志分析能力,解决数据库性能诊断的实际需求
  • 面向 DBA 和运维人员,具有明确的实用场景
Trigger Precision68/100

Areas to improve

  • 触发词不全 Reported severity: Minor

    description 描述了使用场景,但未覆盖具体命令或参数变体,边界略模糊

    Recommendation: 补充具体触发命令示例(如 pgbadger /var/log/postgresql.log)以提升触发精准度

Highlights

  • description 明确指出了核心功能:将原始 PostgreSQL 日志转换为可读证据
Structure and Standards65/100

Areas to improve

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

    文档缺少清晰的 Phase/步骤划分和端到端示例

    Recommendation: 增加 When to Use 章节和完整的使用示例,帮助用户快速上手

Highlights

  • 文档包含 Prerequisites、Installation、Documentation 等基本结构
  • frontmatter 完整,信息清晰
Execution Reliability58/100

Areas to improve

  • Installation 内容截断 Reported severity: Major

    Installation 部分存在重复和截断描述('incremental output directories and the month'),可能影响用户正确安装

    Recommendation: 修正 Installation 部分的描述,确保信息完整且无重复

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

    未覆盖主要异常处理(如日志格式不兼容、权限问题等)

    Recommendation: 补充常见异常处理说明,提升执行可靠性

Highlights

  • 工具来源明确,提供了 GitHub 仓库和官方文档链接
Evidence Verifiability (mean of the first four)67/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.

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
  • pgbadger.darold.net
  • 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.

pgBadger, PostgreSQL logs with compatible log settings, and a shell environment for report generation.

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