Token导航 LogoToken导航

Agent Skill · 研究检索

postgres-pro(Postgres 专业版)

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

postgres-pro 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 31,587。

总安装 2,671周安装 107GitHub Stars 76下载 865核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:postgres-pro(Postgres 专业版)
来源仓库:https://github.com/404kidwiz/claude-supercode-skills
仓库路径:skills/postgres-pro
安装命令:
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill postgres-pro
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill postgres-pro

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

专精 PostgreSQL 高级特性与运维优化,包括 JSONB、全文检索、PostGIS 向量索引等。适用于数据库复制、分区表设计、高可用部署及复杂查询性能调优。可协助编写 SQL 语句、迁移脚本并分析 schema 结构,提升数据可靠性与访问效率。

通过 GitHub 仓库安装并使用 npx 命令添加技能,需具备数据库连接与读写权限。涉及数据变更时应优先 dry-run 或事务保护,避免误删误改导致数据丢失。

来源仓库内路径:skills/postgres-pro

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill post…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

postgres-pro 怎么安装?

在终端执行 npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill postgres-pro。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

postgres-pro 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

postgres-pro 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

postgres-pro 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

postgres-pro 用的人多吗?

公开数据是累计安装 2,671 次,近一周安装 107 次,下载 865 次,GitHub 76 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

postgres-pro 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
postgres-pro

Postgres 专业版 · 本页

2,67176只读MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

PostgreSQL Professional

Purpose

Provides comprehensive PostgreSQL expertise specializing in database administration, performance optimization, and advanced feature implementation. Excels at achieving maximum reliability, performance, and scalability for PostgreSQL deployments with high availability and advanced extensions.

When to Use

  • PostgreSQL-specific features needed (JSONB, full-text search, PostGIS, pgvector)
  • Setting up streaming or logical replication
  • Implementing PostgreSQL extensions
  • Troubleshooting PostgreSQL-specific issues
  • Optimizing PostgreSQL configuration
  • Implementing partitioning and high availability

Quick Start

Invoke this skill when:

  • PostgreSQL-specific features needed (JSONB indexing, full-text search, PostGIS, pgvector)
  • Setting up streaming replication or logical replication for PostgreSQL
  • Implementing PostgreSQL extensions (pg_trgm, PostGIS, timescaledb, pg_partman)
  • Troubleshooting PostgreSQL-specific issues (autovacuum, bloat, WAL archiving)
  • Optimizing PostgreSQL configuration (shared_buffers, work_mem, vacuum settings)
  • Implementing PostgreSQL partitioning (declarative partitioning, constraint exclusion)
  • Setting up PostgreSQL high availability (Patroni, repmgr, pgpool-II)
  • Designing JSONB schema and query optimization with GIN indexes

Do NOT invoke when:

  • General SQL query writing (use sql-pro for ANSI SQL queries)
  • Cross-platform database optimization (use database-optimizer for general tuning)
  • MySQL or SQL Server specific features (use platform-specific skills)
  • Database administration basics (users, permissions - use database-administrator)
  • Simple query optimization without PostgreSQL-specific features
  • ORM query patterns (use backend-developer with ORM expertise)

Core Capabilities

PostgreSQL Architecture

  • Process architecture and memory configuration
  • WAL mechanics and MVCC implementation
  • Storage layout and buffer management
  • Lock management and background workers

Advanced Features

  • JSONB optimization with GIN indexes
  • Full-text search with tsvector and GIN indexes
  • PostGIS spatial queries and indexing
  • Time-series data handling and partitioning
  • Foreign data wrappers and cross-database queries
  • Parallel queries and JIT compilation

Performance Tuning

  • Configuration optimization (memory, connections, checkpoints)
  • Query optimization and execution plan analysis
  • Index strategies and index usage monitoring
  • Vacuum tuning and autovacuum configuration
  • Connection pooling and parallel execution

Replication Strategies

  • Streaming replication and logical replication
  • Synchronous setup and cascading replicas
  • Delayed replicas and failover automation
  • Load balancing and conflict resolution

Backup and Recovery

  • pg_dump strategies and physical backups
  • WAL archiving and PITR setup
  • Backup validation and recovery testing
  • Automation scripts and retention policies

Decision Framework

JSONB Index Strategy

JSONB Query Pattern Analysis
│
├─ Containment queries (@> operator)?
│   └─ Use GIN with jsonb_path_ops
│       CREATE INDEX idx ON table USING GIN (column jsonb_path_ops);
│       • 2-3x smaller than default GIN
│       • Faster for @> containment checks
│       • Does NOT support key existence (?)
│
├─ Key existence queries (? or ?| or ?& operators)?
│   └─ Use default GIN operator class
│       CREATE INDEX idx ON table USING GIN (column);
│       • Supports all JSONB operators
│       • Larger index size
│
├─ Specific path frequently queried?
│   └─ Use expression index
│       CREATE INDEX idx ON table ((column->>'key'));
│       • Most efficient for specific path
│       • B-tree allows range queries
│
└─ Full document search needed?
    └─ Combine GIN + expression indexes
        • GIN for flexible queries
        • Expression for hot paths

Replication Strategy Selection

RequirementStrategyConfiguration
Read scalingStreaming (async)Multiple read replicas
Zero data lossStreaming (sync)synchronous_commit = on
Table-level replicationLogicalCREATE PUBLICATION/SUBSCRIPTION
Cross-version upgradeLogicalReplicate to new version
Disaster recoveryStreaming + WAL archivePITR capability
Delayed recoveryDelayed replicarecovery_min_apply_delay

Quality Checklist

Performance:

  • Query performance targets met (OLTP <50ms, Analytics <2s)
  • EXPLAIN ANALYZE reviewed for all critical queries
  • GIN/GiST indexes used for JSONB, array, full-text queries
  • Partitioning implemented for tables >10GB with time-series data
  • Cache hit ratio >95% (shared_buffers + OS cache)
  • Connection pooling implemented (PgBouncer or application pool)

Configuration:

  • shared_buffers = 25% of RAM
  • effective_cache_size = 75% of RAM
  • work_mem tuned for workload (no temp file spills in EXPLAIN)
  • Autovacuum configured (scale_factor ≤0.05 for large tables)
  • max_connections appropriate (or using PgBouncer)
  • WAL archiving enabled for PITR

Replication (if applicable):

  • Replication slots created (prevents WAL deletion)
  • Replication lag <500ms (P95)
  • pg_stat_replication monitored (sync_state, replay_lag)
  • Failover tested (promote replica to primary)
  • pg_hba.conf configured for replication access

Extensions:

  • Required extensions installed (pg_trgm, PostGIS, pgvector, etc.)
  • Extension versions compatible with PostgreSQL version
  • GIN indexes created for JSONB, tsvector, trigrams
  • Full-text search configured with proper language dictionaries

JSONB (if used):

  • GIN indexes created (jsonb_path_ops for containment queries)
  • Expression indexes for frequently queried paths
  • JSONB validation in application (jsonschema or custom)
  • No deeply nested JSONB (>3 levels → consider normalization)

Monitoring:

  • Slow query log configured (log_min_duration_statement = 200ms)
  • pg_stat_statements installed and monitored
  • Autovacuum progress monitored (pg_stat_progress_vacuum)
  • Table bloat monitored (<15% dead tuples)
  • Replication lag alerts configured (<1s threshold)

Additional Resources

平台分布

Claude Code

28.54%
按下载量换算247

OpenCode

21.75%
按下载量换算188

Codex

19.01%
按下载量换算164

Cursor

12.14%
按下载量换算105

Gemini CLI

7.58%
按下载量换算66

windsurf

2.93%
按下载量换算25

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills