Skip to main content

pg-find-unused-index

PostgreSQL 未使用索引检测专用技能。给定 PostgreSQL 实例的连接串(host/port/user/password 或 postgresql:// URL),自动列出实例下所有可连接数据库,逐库扫描未被使用的索引,按索引大小倒序输出索引名、索引大小、表大小及影响评估,并给出后续观察或操作建议。触发条件:用户提到"未使用索引"、"无用索引"、"冗余索引"、"索引瘦身"、"哪些索引可以删"、"index bloat"、"unused index"、"idx_scan"、"帮我检查一下这个库的索引"、"索引优化建议"、"数据库瘦身",或提供了 PostgreSQL 连接串/账号密码并希望做索引健康检查、存储优化、性能调优时,必须使用本 skill。即使用户只说"帮我看看这个 PG 实例有没有浪费空间的索引"或"这个库的索引是不是太多了",也应使用本 skill。

Jump to install

Source facts

Repository
digoal/skills
Last source activity
July 13, 2026 at 08:05
Detected SKILL.md language
Chinese
Stars
3
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.