{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sql-query-optimizer",
    "name": "SQL Query Optimizer",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/HonestQiao/sql-query-optimizer",
    "canonicalUrl": "https://clawhub.ai/HonestQiao/sql-query-optimizer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/sql-query-optimizer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sql-query-optimizer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "skill.yaml"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "sql-query-optimizer",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T03:16:36.727Z",
      "expiresAt": "2026-05-07T03:16:36.727Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sql-query-optimizer",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sql-query-optimizer",
        "contentDisposition": "attachment; filename=\"sql-query-optimizer-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "sql-query-optimizer"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/sql-query-optimizer"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/sql-query-optimizer",
    "agentPageUrl": "https://openagent3.xyz/skills/sql-query-optimizer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sql-query-optimizer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sql-query-optimizer/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "SQL Query Optimizer",
        "body": "分析并优化 SQL 查询，提升数据库性能。"
      },
      {
        "title": "功能",
        "body": "查询性能分析\n索引建议\n执行计划解读\nSQL 优化建议"
      },
      {
        "title": "触发词",
        "body": "\"SQL优化\"\n\"查询优化\"\n\"sql optimization\"\n\"慢查询\""
      },
      {
        "title": "检测问题",
        "body": "-- 检测 SELECT * 问题\nSELECT * FROM users WHERE id = 1;\n\n-- 检测缺少 LIMIT\nSELECT name FROM users;\n\n-- 检测前导通配符\nSELECT * FROM users WHERE name LIKE '%john%';"
      },
      {
        "title": "优化建议",
        "body": "避免 SELECT *，只查询需要的列\n添加 WHERE 条件和 LIMIT\n避免 LIKE 前导通配符\n使用索引列\n避免嵌套子查询\n使用 EXPLAIN 分析执行计划"
      },
      {
        "title": "输出示例",
        "body": "{\n  \"original\": \"SELECT * FROM users WHERE name LIKE '%john%'\",\n  \"suggestions\": [\n    \"避免使用 SELECT *，只查询需要的列\",\n    \"避免 LIKE 前导通配符\",\n    \"添加 LIMIT 限制返回数量\"\n  ],\n  \"optimized\": \"SELECT id, name FROM users WHERE name LIKE '%john%' LIMIT 100\"\n}"
      }
    ],
    "body": "SQL Query Optimizer\n\n分析并优化 SQL 查询，提升数据库性能。\n\n功能\n查询性能分析\n索引建议\n执行计划解读\nSQL 优化建议\n触发词\n\"SQL优化\"\n\"查询优化\"\n\"sql optimization\"\n\"慢查询\"\n检测问题\n-- 检测 SELECT * 问题\nSELECT * FROM users WHERE id = 1;\n\n-- 检测缺少 LIMIT\nSELECT name FROM users;\n\n-- 检测前导通配符\nSELECT * FROM users WHERE name LIKE '%john%';\n\n优化建议\n避免 SELECT *，只查询需要的列\n添加 WHERE 条件和 LIMIT\n避免 LIKE 前导通配符\n使用索引列\n避免嵌套子查询\n使用 EXPLAIN 分析执行计划\n输出示例\n{\n  \"original\": \"SELECT * FROM users WHERE name LIKE '%john%'\",\n  \"suggestions\": [\n    \"避免使用 SELECT *，只查询需要的列\",\n    \"避免 LIKE 前导通配符\",\n    \"添加 LIMIT 限制返回数量\"\n  ],\n  \"optimized\": \"SELECT id, name FROM users WHERE name LIKE '%john%' LIMIT 100\"\n}"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/HonestQiao/sql-query-optimizer",
    "publisherUrl": "https://clawhub.ai/HonestQiao/sql-query-optimizer",
    "owner": "HonestQiao",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sql-query-optimizer",
    "downloadUrl": "https://openagent3.xyz/downloads/sql-query-optimizer",
    "agentUrl": "https://openagent3.xyz/skills/sql-query-optimizer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sql-query-optimizer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sql-query-optimizer/agent.md"
  }
}