Performance & Quality Custom Skills · Curated

Database Cleanup Advisor

Identifies safe-to-remove database bloat like old revisions, expired transients, and spam.

What it does

Queries the posts, options, and comments tables for counts of post revisions, expired transients, spam and trashed comments, and orphaned postmeta rows, then separates findings into a clearly safe-to-delete bucket and a needs-review bucket. Each bucket comes with an estimated row count and approximate space that would be recovered.

Install

This skill isn't packaged in an installable registry. It's a plain SKILL.md file you can copy directly. Copy it from the SKILL.md tab and save it at the path for your assistant:

Use it in your AI assistant

Claude Code

.claude/skills/database-cleanup-advisor/ (or ~/.claude/skills/database-cleanup-advisor/ for all projects)

GitHub Copilot (VS Code)

.github/skills/database-cleanup-advisor/

OpenAI Codex

.codex/skills/database-cleanup-advisor/

Cursor

.cursor/skills/database-cleanup-advisor/ (or ~/.cursor/skills/database-cleanup-advisor/ globally)

Compatibility

Any WordPress site; requires direct database access or WP-CLI (wp db query) to run the diagnostic queries.