← Back to Skills Marketplace
215
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install sql-optimization
Description
Deep SQL performance workflow—symptom framing, execution plans, indexing strategy, query rewrite, locking/transaction behavior, statistics, partitioning, and...
Usage Guidance
This guidance is coherent and useful for DB tuning, but it assumes access to a database and the ability to run potentially disruptive commands. Before using it: (1) never grant the agent unrestricted production DB credentials — prefer read-only or restricted-analysis roles for initial investigation; (2) require human approval for any DDL (index creation/drop) or changes that affect writes; use CONCURRENT/online DDL where supported; (3) be cautious with EXPLAIN ANALYZE and load tests — they can execute heavy queries and stress systems; run them against staging or shadow traffic when possible; (4) have backups, monitoring, and rollback plans in place before changing schema or indexes; (5) ensure audit logs and change controls capture any commands the agent runs; and (6) if you want the agent to actually execute commands, explicitly provision least-privilege credentials and limit the scope (specific DB, read-only by default). If these operational safeguards are acceptable, the skill's guidance appears appropriate and coherent.
Capability Analysis
Type: OpenClaw Skill
Name: sql-optimization
Version: 1.0.0
The skill bundle provides a structured, high-quality workflow for SQL performance optimization, covering diagnostic steps like execution plan analysis and indexing strategies. The content in SKILL.md consists entirely of instructional guidance for the AI agent and contains no malicious code, data exfiltration attempts, or prompt-injection attacks.
Capability Assessment
Purpose & Capability
Name and description (deep SQL performance workflow) align with the SKILL.md content. The document focuses on framing, measuring, reading plans, indexing, query/transaction tuning, and verification — all directly relevant to SQL optimization. It does not request unrelated binaries, services, or credentials in metadata.
Instruction Scope
Instructions are detailed and remain within SQL optimization scope. They explicitly recommend running EXPLAIN (ANALYZE, BUFFERS), repeated measurements, DDL proposals (create/drop indexes, concurrent operations), load tests/shadow traffic, and monitoring. These are expected for the purpose but are high-impact operations: EXPLAIN ANALYZE and load tests can execute queries and load production systems, and DDL changes can affect writes. The skill does not autonomously prescribe exactly when to execute such operations in production — the user/agent must ensure safe targeting and approvals.
Install Mechanism
No install spec and no code files — instruction-only. This is low risk from an install/execution point of view because nothing is downloaded or written by the skill itself.
Credentials
Metadata declares no required env vars or credentials, which is reasonable for an instruction-only guide. However, the workflow implicitly requires database connectivity and sufficient DB privileges to run EXPLAIN ANALYZE, inspect plans/stats, and (optionally) create/drop indexes or run load tests. That implicit need for DB access (and potentially elevated write/DDL permissions) should be acknowledged before granting an agent access to environments, especially production.
Persistence & Privilege
always:false and no install actions; the skill does not request persistent presence or modify other skills/config. Autonomous invocation is allowed by platform default but the skill itself does not require elevated platform privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sql-optimization - After installation, invoke the skill by name or use
/sql-optimization - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the SQL Optimization workflow skill.
- Provides a structured six-stage process for diagnosing and solving SQL performance issues.
- Covers execution plan analysis, indexing strategy, query and transaction tuning, statistics, and verification.
- Tailored guidance for handling slow queries, lock waits, index bloat, and changes due to migrations.
- Includes practical tips, advanced scenarios, and a checklist to ensure safe and measurable improvements.
Metadata
Frequently Asked Questions
What is Sql Optimization?
Deep SQL performance workflow—symptom framing, execution plans, indexing strategy, query rewrite, locking/transaction behavior, statistics, partitioning, and... It is an AI Agent Skill for Claude Code / OpenClaw, with 215 downloads so far.
How do I install Sql Optimization?
Run "/install sql-optimization" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Sql Optimization free?
Yes, Sql Optimization is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Sql Optimization support?
Sql Optimization is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Sql Optimization?
It is built and maintained by ClawKK (@codekungfu); the current version is v1.0.0.
More Skills