The PostgreSQL Query Optimizer is an AI-driven tuning assistant that analyzes slow query logs, execution plans, and table schemas to deliver optimal indexing strategies, SQL rewrites, and configuration parameter adjustments.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install postgres-query-optimizer-ai
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install postgres-query-optimizer-ai using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The PostgreSQL Query Optimizer is a highly specialized AI agent skill designed to act as a virtual Database Administrator (DBA). By transforming cryptic database execution plan outputs into precise, actionable optimization workflows, it eliminates the guesswork out of query tuning. The system specializes in deep analytical inspections across a wide range of production database scenarios, ensuring your database layer scales efficiently.
Built as a contribution to Openclaw Skills, this tool leverages specialized engineering rules inspired by industry standards like the official PostgreSQL documentation, The Art of PostgreSQL, and pgMustard analysis rules. It cross-references incoming queries against more than 150 performance anti-patterns and 300 automated checklist rules to ensure consistent, enterprise-grade database responses.
EXPLAIN ANALYZE outputs.CREATE INDEX CONCURRENTLY for tables lacking coverage without disrupting running applications.work_mem and shared_buffers against runtime constraints to patch configuration mismatches.EXPLAIN statistics, or Table DDL schema definitions.To deploy and integrate this database tuning tool within your AI workflow, make sure your local agent runtime environment meets the requirement of version 1.0.0 or greater. Install the skill using the package repository CLI tool:
openclaw install postgres-query-optimizer
Configure your database context or execute an optimization run directly through the workspace interface by referencing the skill name inside your system execution block.
The skill manages inputs and returns diagnoses by mapping out runtime parameters against structured performance properties. Below is the framework used by the database optimizer to structure its analytical output:
| Output Component | Format | Description |
|---|---|---|
| Problem Diagnosis Report | Markdown / Structure | Contains severity categorization, root-cause insights, and clear repair paths. |
| Performance Delta Preview | Table / Text | A before-and-after comparison predicting execution times and I/O reduction ratios. |
| Executable Code Block | SQL | Production-ready statements including CREATE INDEX CONCURRENTLY and optimized query structures. |
WHERE clauses within queries to ensure search arguments utilize active structural indexes optimally.autovacuum workers and parallel workers tailored to your infrastructure requirements.Loading
An automated AI-powered tool that gathers Git, task manager, and collaboration data to generate and publish comprehensive, professional daily standup reports for teams.

Convert visual math patterns, sacred geometry, and glyph images into immersive, mathematically mapped resonant audio soundscapes.

An AI-native creative engine that translates fractal patterns and recursive visuals into complex, evolving audio textures.

An advanced Openclaw Skills module that injects deep literary, thematic, and historical context from Isak Dinesen's memoir into your AI agent's operational intelligence.

An advanced AI-powered text auditing tool that detects hallucinations, verifies facts, and calculates trust scores for LLM-generated output.

An AI-powered diagnostic and optimization tool designed to audit Apache Airflow DAGs for performance bottlenecks, cyclic dependencies, and best-practice compliance.








































