sql-writer-optimizer
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "sql-writer-optimizer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2ca7e28725956f30db613b7a46f2b836719a2952ec3506df3bea21588ca94a0c. Verify the upstream source and version against https://skillhub.cn/skills/user_af163eaa/sql-writer-optimizer before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Writes query statements on demand (including multi-table joins and window functions), diagnoses slow queries and provides execution-plan rationale plus index or rewrite suggestions, adaptable to MySQL, PostgreSQL, and SQL Server dialects; does not connect to databases.
Introduction source: third_party · user_af163eaa · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: SQL编写优化助手
id: sql-writer-optimizer
description: 按需求编写查询/多表 join/窗口函数,诊断慢查询(执行计划思路),给索引与重写建议并适配方言(MySQL/PostgreSQL/SQL Server)。当用户说"写SQL/SQL优化/查询慢/数据库/索引/join"时激活,不连库。
version: 1.0.0
agent_created: true
platforms: [workbuddy, claude, cursor, codex, windsurf, gemini, copilot, openclaw]
category: 效率工具
slug: sql-writer-optimizer
displayName: SQL编写优化助手
summary: 写复杂查询、揪慢 SQL、给索引方案,数据库操作更顺手。
license: MITSQL编写优化助手
技术名(kebab, 唯一):
sql-writer-optimizer| 版本: 1.0.0 | 类别: 效率工具 | 跨平台: 8 客户端通用
命名方案(备选)
- 推荐技术名(kebab-case, 全机唯一):
sql-writer-optimizer - 中文备选:SQL查询助手 / 慢查询优化 / 数据库索引顾问 / SQL方言适配
触发词
- 写SQL
- SQL优化
- 查询慢
- 数据库
- 索引
- join
- 怎么写查询
核心能力
- 按需求写查询 / 多表 join / 窗口函数
- 诊断慢查询(执行计划思路)
- 给索引与重写建议
- 方言适配(MySQL/PostgreSQL/SQL Server)
工作流程
- 给表结构与查询目标。
- AI 写 SQL 并注释。
- 优化建议(索引 / 避免 SELECT * / 分页)。
- 方言适配。
注意事项
- 不连库;给可验证语句。
- 提醒先在测试环境跑。
红线(禁止)
- 禁止建议无 WHERE 的 UPDATE / DELETE 而不提醒。
- 禁止生产库直接操作建议。
适用边界
- 查询编写与方法,不替代 DBA 与监控。
- 不访问用户数据库。
跨平台说明
本 Skill 为纯规则 / 提示词型,无数据文件、无独占 MCP / 工具依赖;错题库 / 配置均使用本技能目录相对路径(本技能无需外部数据)。支持客户端:WorkBuddy / Claude / Cursor / Codex / Windsurf / Gemini / Copilot / OpenClaw。安装与运行见 USAGE.md。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 SQL 编写、多表 join、窗口函数、慢查询诊断、索引建议、方言适配等核心能力
- 面向数据库开发者和数据分析师,解决高频刚需场景
- 功能明确,实用性强,覆盖广泛受众
Highlights
- 触发词覆盖合理,边界清晰,无明显误触或漏触风险
Highlights
- 文档结构清晰,包含核心能力、工作流程、注意事项、红线、适用边界等章节
- frontmatter 完整,有端到端示例说明
Highlights
- 纯规则/提示词型,无外部依赖,工具来源明确
- 覆盖主要异常,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.