Content
65%Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
The body is highly actionable with executable SQL and a clear step sequence, but it explains index concepts Claude already knows, omits an explicit apply-and-verify feedback loop for destructive index changes, and fails to link or surface the bundled scripts and references it ships with.
Suggestions
Remove concept primers Claude already knows (selectivity, INCLUDE/leaf-page mechanics, partial-index sizing) and keep only the SQL and decision rules to tighten conciseness.
Add an explicit apply-verify loop to the workflow: after CREATE/DROP INDEX, re-run EXPLAIN (ANALYZE) to confirm the index is used; on failure run ANALYZE and re-check, with a rollback step.
Surface the bundled files in the body — link scripts/analyze_indexes.py for the analysis run and note the validate/rollback scripts and assets CSV under an Advanced section rather than leaving them unlinked.
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The body is mostly actionable SQL but interspersed with concept explanations Claude already knows (e.g. "High n_distinct ... indicates good index selectivity", "INCLUDE columns are stored in the index leaf pages"), so it could be tightened; not the score-3 lean ideal. | 2 / 3 |
Actionability | It provides fully executable, copy-paste-ready SQL commands throughout (e.g. `SELECT relname, seq_scan, ... FROM pg_stat_user_tables`, `CREATE INDEX ON orders (status, created_at)`), matching the score-3 anchor. | 3 / 3 |
Workflow Clarity | The 10 steps are clearly sequenced and step 2 includes EXPLAIN validation, but the destructive apply phase (CREATE/DROP INDEX) lacks an explicit create-verify-rollback checkpoint loop in the workflow; per the database-operations scoring note this caps at 2. | 2 / 3 |
Progressive Disclosure | The body is well-sectioned but never references the bundled scripts/refs (analyze_indexes.py, the references README) and keeps detailed query catalogs inline; bundle files exist but are not signaled or linked, fitting the score-2 anchor. | 2 / 3 |
Total | 9 / 12 Passed |