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

db-diagnose

Stars8
Forks1
UpdatedJune 12, 2026 at 03:35

数据库诊断与优化,支持实时诊断、TOP SQL分析、慢查询分析、SQL诊断、锁分析、空间诊断、连接分析、复制诊断、索引推荐、性能快照、瓶颈分析、单表诊断、表膨胀/碎片分析、索引使用分析、VACUUM分析、表空间碎片分析。 使用场景: - 用户说"数据库慢了" -> 执行 realtime - 用户说"CPU飙高了" -> 执行 top - 用户说"SQL有问题" -> 执行 sql "<SQL>" - 用户说"有死锁/阻塞" -> 执行 locks - 用户说"空间不够了" -> 执行 space - 用户说"连接数满了" -> 执行 connections - 用户说"慢查询" -> 执行 slow-queries - 用户说"推荐索引" -> 执行 recommend-indexes - 用户说"全面检查" -> 执行 report - 用户说"性能分析" -> 执行 performance-snapshot - 用户说"瓶颈分析" -> 执行 bottleneck - 用户说"诊断单表" -> 执行 table - 用户说"表膨胀/碎片" -> 执行 bloat - 用户说"索引使用情况" -> 执行 index-usage - 用户说"VACUUM状态" -> 执行 vacuum(PostgreSQL) - 用户说"表空间碎片" -> 执行 tablespace-fragmentation(Oracle) - 用户说"复制延迟" / "主从同步" -> 执行 replication(ClickHouse) - 用户说"锁等待" / "死锁" -> 执行 locks(ClickHouse/SQLite) 用法: - python -m dbskiter --output-mode=ai --database=<name> diagnose realtime - python -m dbskiter --output-mode=ai --database=<name> diagnose top - python -m dbskiter --output-mode=ai --database=<name> diagnose sql "SELECT * FROM users" - python -m dbskiter --output-mode=ai --database=<name> diagnose sl

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.

SKILL.md
readonly