A comprehensive six-stage database performance workflow for diagnosing symptoms, analyzing execution plans, and implementing verified query and index optimizations.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install sql-optimization
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 sql-optimization using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The SQL Optimization skill is a high-level performance engineering framework designed for Openclaw Skills users who need to move beyond guesswork. It provides a structured observe-explain-change-verify methodology to tackle complex database bottlenecks. By focusing on technical truths like execution plans, lock behavior, and write amplification, this skill ensures that database improvements are both measurable and sustainable.
This workflow is engine-agnostic but depth-aware, providing tailored guidance for PostgreSQL, MySQL, SQL Server, and more. It helps developers identify the root causes of high P99 latencies, CPU spikes, and replication lag by analyzing the interaction between ORM-generated SQL and the underlying storage engine architecture.
To integrate this workflow into your Openclaw Skills environment, ensure your agent has access to database schema metadata and query execution tools.
# Example: Installing the SQL Optimization skill via Openclaw CLI
openclaw install skill sql-optimization
# Ensure your database user has sufficient permissions for analysis
# PostgreSQL: GRANT pg_read_all_stats TO openclaw_user;
The skill organizes its optimization lifecycle through a structured data taxonomy to ensure repeatable results:
| Data Component | Description |
|---|---|
| Problem Statement | Documentation of the regression, SLO, and specific metric (e.g., p95 latency). |
| Baseline Plan | The original execution plan hash and cost metrics for A/B comparison. |
| DDL Proposal | Proposed schema changes including rationale and a verified rollback strategy. |
| Stats & Histograms | Metadata regarding row counts, column cardinality, and NDV (Number of Distinct Values). |
| Performance Guardrails | Configuration for statement timeouts and alerts for sequential scans. |
Loading
A specialized AI skill for managing stock portfolios and watchlists directly within DingTalk multidimensional tables.

Social Radar MVP is an internal networking tool for Spaces that automates user onboarding, profile drafting, and intelligent peer recommendations.

A powerful command-line interface for rapid DNS reconnaissance and subdomain enumeration leveraging the RapidDNS API.

A specialized image generation skill that produces ethereal product hero shots using a 1990s high-fashion analog film aesthetic.

A specialized configuration utility to bridge Weibo channel credentials with the OpenClaw ecosystem.

A comprehensive framework for modeling domain and UI state, ensuring data consistency across client-side and hybrid applications.








































