Clavue Ability · Capability catalog
Skill · Engineering

PostgreSQL Slow Query Tuner

Tune slow PostgreSQL queries using EXPLAIN plans, indexes and statistics.

Executive Summary

Short answer: Tune slow PostgreSQL queries using EXPLAIN plans, indexes and statistics.. Input is Slow query, EXPLAIN ANALYZE output, schema, index list, row counts; output is Bottleneck diagnosis, index DDL, rewritten query, verification steps.

Capabilities on this page come from Clavue Bot's built-in catalog; no 1:1 alignment with any third-party product is claimed.

Commercial ROI & Use Cases

Business value:

PostgreSQL Slow Query Tuner reduces repeated manual work and gets a reviewable result faster.

  • Demand topics: Coding & DevOps

Input/Output Contract

InputOutputTools / Connectors
Slow query, EXPLAIN ANALYZE output, schema, index list, row countsBottleneck diagnosis, index DDL, rewritten query, verification stepsCode · Files · GitHub · Supabase

Connect tools first · Actions like sending mail or making payments always ask for your confirmation first.

Workflow & Instructions

1

Parse the EXPLAIN ANALYZE plan for sequential scans and high-cost nodes.

2

Compare filter and join columns against existing indexes.

3

Check statistics freshness and row-count estimates.

4

Propose minimal index DDL or a rewritten query.

5

Explain expected impact and give a verification query.

Actions like sending mail or making payments always ask for your confirmation first.

SKILL.md

# PostgreSQL Slow Query Tuner

> Tune slow PostgreSQL queries using EXPLAIN plans, indexes and statistics.

## Input/Output Contract

- **Input:** Slow query, EXPLAIN ANALYZE output, schema, index list, row counts
- **Output:** Bottleneck diagnosis, index DDL, rewritten query, verification steps

## Workflow & Instructions

2. Parse the EXPLAIN ANALYZE plan for sequential scans and high-cost nodes.
4. Compare filter and join columns against existing indexes.
6. Check statistics freshness and row-count estimates.
8. Propose minimal index DDL or a rewritten query.
10. Explain expected impact and give a verification query.

## Starter Prompt

```text
Tune this PostgreSQL query using its EXPLAIN ANALYZE plan.
```

Starter Prompt

Tune this PostgreSQL query using its EXPLAIN ANALYZE plan.

FAQ

Is this a real capability in Clavue Bot?

Yes. This page is generated from the product's built-in catalog; names, inputs/outputs and steps correspond to real scenarios, skills, MCP tools or digital employees.

Do I need to configure extra tools or connectors?

Entries marked 'Ready to use' need no extra tools. 'Needs tools' entries list the required connectors — just authorize them on first run.

Will it send emails or make payments without confirmation?

No. Outbound actions such as sending mail, making payments or submitting forms pause for your confirmation and continue only after you approve.

View Markdown source