← 返回 Skills 市场
codekungfu

Sql Optimization

作者 ClawKK · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
215
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install sql-optimization
功能描述
Deep SQL performance workflow—symptom framing, execution plans, indexing strategy, query rewrite, locking/transaction behavior, statistics, partitioning, and...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sql-optimization
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sql-optimization 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug sql-optimization
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Sql Optimization 是什么?

Deep SQL performance workflow—symptom framing, execution plans, indexing strategy, query rewrite, locking/transaction behavior, statistics, partitioning, and... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 215 次。

如何安装 Sql Optimization?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install sql-optimization」即可一键安装,无需额外配置。

Sql Optimization 是免费的吗?

是的,Sql Optimization 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Sql Optimization 支持哪些平台?

Sql Optimization 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Sql Optimization?

由 ClawKK(@codekungfu)开发并维护,当前版本 v1.0.0。

💬 留言讨论