Back to Registry View Author Profile
Official Verified
Sql Query Optimizer
Skill by honestqiao
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/honestqiao/sql-query-optimizerOr
SQL Query Optimizer
分析并优化 SQL 查询,提升数据库性能。
功能
- 查询性能分析
- 索引建议
- 执行计划解读
- SQL 优化建议
触发词
- "SQL优化"
- "查询优化"
- "sql optimization"
- "慢查询"
检测问题
-- 检测 SELECT * 问题
SELECT * FROM users WHERE id = 1;
-- 检测缺少 LIMIT
SELECT name FROM users;
-- 检测前导通配符
SELECT * FROM users WHERE name LIKE '%john%';
优化建议
- 避免 SELECT *,只查询需要的列
- 添加 WHERE 条件和 LIMIT
- 避免 LIKE 前导通配符
- 使用索引列
- 避免嵌套子查询
- 使用 EXPLAIN 分析执行计划
输出示例
{
"original": "SELECT * FROM users WHERE name LIKE '%john%'",
"suggestions": [
"避免使用 SELECT *,只查询需要的列",
"避免 LIKE 前导通配符",
"添加 LIMIT 限制返回数量"
],
"optimized": "SELECT id, name FROM users WHERE name LIKE '%john%' LIMIT 100"
}
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-honestqiao-sql-query-optimizer": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.
Related Skills
clawra-selfie
Generate AI images using MiniMax or fal.ai (Grok Imagine) and send to messaging channels via OpenClaw
honestqiao 2387
zhipu-image
Generate images using Zhipu AI's CogView model
honestqiao 2387
Regex Generator
Skill by honestqiao
honestqiao 2387
zhipu-embeddings
Use Zhipu (智谱) web embeddings API for embeddingsing the internet. Use when user asks for web embeddings, latest news, or needs current information.
honestqiao 2387
doubao-image
Use Zhipu (智谱) web search API for searching the internet. Use when user asks for web search, latest news, or needs current information.
honestqiao 2387