Skip to main content
Run any Skill in Manus
with one click

pg-find-unused-index

Stars1
Forks0
UpdatedJuly 13, 2026 at 08:05

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

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
4 files
SKILL.md
readonly