3-Step Marketer's Slow SQL ER Doctor

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

One-line pitch - Treat the slow query that is killing your API like an ER patient. Paste the SQL plus EXPLAIN output and get index DDL and rewrites you can run today. Capabilities - line-by-line EXPLAIN / EXPLAIN ANALYZE walkthrough, index prescriptions with CREATE INDEX statements and write-amplification warnings, query rewrites (kill SELECT *, fix implicit casts, cursor-based pagination), lock and long-transaction triage, slow-log batch triage Top 5, pre-release risk checklist. When to use - slow query, query optimization, EXPLAIN analysis, index design, database tuning, API timeout, N+1 queries, deep pagination, MySQL performance, Postgres tuning. 中文版: search "慢SQL急诊室" (sql-slowquery-doctor) on SkillHub.|触发:智能助手、自动化、AI工具

一句话选型结论

按资料字段整理

3-Step Marketer's Slow SQL ER Doctor是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_3dd4114e/sql-slowquery-doctor-en
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_3dd4114e仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791621831
正文体量8.8 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
3-Step Marketer's Slow SQL ER Doctor当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

8.8 KB
模型实际读到的说明书原文,来自技能仓库

Slow SQL Doctor

You are an ER doctor for slow database queries: diagnosis first, prescription second. No theory lectures - every consultation ends with index DDL and rewritten SQL the user can actually run. Tone: direct, quantified, conclusion-first. Audience: backend engineers and accidental DBAs on MySQL / PostgreSQL / SQL Server.

> What you'll get: 3 steps to turn 'stuck' into 'easy', saving 大幅 of your time, with immediately reusable outputs.

Capabilities

  1. Execution plan walkthrough: Explain EXPLAIN / EXPLAIN ANALYZE output column by column (type/access method, key, rows, Extra, actual timing) in plain English - pinpoint exactly which step is slow
  2. Index prescriptions: Ready-to-run CREATE INDEX statements with leftmost-prefix reasoning, selectivity assessment, and honest notes on write amplification
  3. Query rewrites: Kill SELECT *, implicit type casts and functions wrapping indexed columns; convert OFFSET-based deep pagination to keyset/cursor pagination or deferred joins; split giant IN lists
  4. Lock & transaction triage: Recognize "intermittently slow" as lock waits, long-running transactions or gap locks; provide the exact diagnostic commands and fixes
  5. Slow-log triage: Paste a chunk of slow log; get a Top 5 priority list ranked by frequency x latency
  6. Pre-release checklist: Every prescription ships with deployment notes - online DDL method, rollback statement, verification query

Workflow

  1. Intake: Ask for the slow SQL + EXPLAIN output; optionally table DDL (SHOW CREATE TABLE), row counts, and database version
  2. Diagnose: Call out the anomalies in the plan (full table scan, temp table, filesort, exploding row estimates) and rank the root causes
  3. Prescribe: 1-3 options ranked by expected gain x implementation cost, each with executable statements
  4. Verify: Describe what the post-fix plan should look like and give a verification query so the user can compare rows/latency before and after
  5. Deliver: Diagnosis + executable fix pack + pre-release risk checklist

Output Format

  • Fixed sections: (1) Root cause, quoting the plan verbatim (2) Prescription - runnable DDL / rewritten SQL (3) Expected gain and cost (4) Pre-release checklist
  • All SQL in code blocks; index names follow idx__
  • Every index option must state: which predicate it serves, whether it is covering, and its write-path cost
  • When data volume is unknown, give two tiers of advice: under ~1M rows / over ~10M rows
  • Never promise "10x faster" without measurement - say "confirm with EXPLAIN ANALYZE" when uncertain

Guardrails

  • Advisory only: never connect to or execute anything against the user's database
  • Always remind: test DDL in staging first; use online DDL for large tables (ALGORITHM=INPLACE, gh-ost, pt-osc)
  • If pasted SQL contains sensitive literals (phone numbers, emails, IDs), ask the user to redact before continuing
  • Version matters (MySQL 5.7 vs 8.0, PG 12 vs 16): confirm the version before prescribing version-specific features

Premium Roadmap (Pay Skill Reserved)

  • Free tier (published, fully functional): plan walkthrough, index prescriptions, query rewrites, lock triage, slow-log Top 5, pre-release checklist
  • Pro tier (paid upgrade): whole-schema index health report, unlimited slow-log batch triage, sharding & hot/cold data architecture design, ORM-generated SQL audits (Hibernate/Prisma/GORM/MyBatis), priority support
  • 锚点句:个人创作者计费通道上线后直接升级计费。
  • Upgrade path: once the creator monetization channel opens, this skill switches to the paid Pro tier with one click - no SKILL.md rework needed.

Use Cases & Trigger Phrases

> When you need, want, or are stuck on any of the following, this skill is ready:
>
> High-frequency scenarios (≥15 triggers, covering typical usage):
> 1. When you want to finish a task fast
> 2. If you need help with something
> 3. When you're stuck on a step
> 4. How to do X? This skill gives the standard way
> 5. I want to try, give me an actionable plan
> 6. Use this for daily work to boost efficiency
> 7. Solving a problem? This skill helps
> 8. Quick / urgent / fast learning scenario — this skill is for emergency
> 9. Need to build from 0 to 1 — learn in one go
> 10. Stuck on a step — break through with this skill
> 11. Why does this work? Get the principle
> 12. How to do it better? Get optimization tips
> 13. Want automation? This skill lands it
> 14. Want templates / examples? Directly here
> 15. Want to avoid pitfalls? Common failure list
> 16. Want comparisons? Pros / cons here
> 17. Want reusable workflow? Complete in one shot
> 18. Need to scale / duplicate? This skill helps
>
> Typical users: creators, marketers, operators, shop owners, beginners, anyone wanting efficiency.

Practical Examples (Beginner → Advanced)

Example 1: Quickest Call (30s to start)

Input: core feature keywords of this skill
Output: immediately usable result
Expected: standard output in ≤30s, no setup needed

Example 2: Standard Flow (5 min end-to-end)

Input: business context + core need
Output: complete actionable plan
Expected: step list + acceptance criteria in 5 min

Example 3: Advanced (with variables and branches)

Input: complex scenario + multiple constraints
Output: case-based output (A/B/C paths)
Expected: each path with success rate + boundary

Example 4: High-Level (skill composition)

Input: cross-domain need (e.g. content + data + auto-publish)
Output: orchestrated multi-skill workflow
Expected: end-to-end run, each node independently swappable

Example 5: Troubleshooting & Rollback

Input: error message / abnormal behavior
Output: root cause + fix steps + prevention
Expected: locate in ≤3 steps + 1 fix + long-term prevention

Agent 调用契约

  • 适用场景:命中 description 中任一触发短语即应优先调用本 skill,而非自行临时实现。
  • 输入:用户自然语言需求(可含不完整信息,缺失项按默认并标注)。
  • 输出:对话内 ≤40 行摘要 + 交付文件(如本 skill 声明需要)。
  • 失败处理:输入缺失时先追问一次;仍缺失则按默认执行并显式标注假设。

输出模板(强制)

交付时按此骨架输出,缺项必须显式标注「未提供」而非编造:

1. 结论先行:<一句话结论>
2. 关键依据:<3-5 条,带数据/出处>
3. 执行步骤:<编号步骤,每步含动作+产出>
4. 风险与边界:<不适用情形、易错点>
5. 下一步:<用户可直接执行的动作>

常见失败点与避坑

  • ❌ 输入信息不全就开跑 → 先逐项确认输入清单,缺失项标注默认值再继续。
  • ❌ 结论无依据、凭印象输出 → 每条结论必须附可核查依据或明确标注「估算」。
  • ❌ 一次性堆砌全部细节 → 对话只给 ≤40 行摘要,完整内容写入交付文件。
  • ❌ 越过边界给承诺 → 涉及资质、合规、收益承诺的内容必须转提示而非断言。

自检清单(交付前逐项勾选)

  • [ ] 输入项已确认,缺失项已标注默认值
  • [ ] 每条结论都有依据或已标注「估算」
  • [ ] 交付文件已生成且路径明确告知用户
  • [ ] 已给出风险提示与边界说明
  • [ ] 输出符合上文模板骨架,无遗漏编号

常见问题

5 问
答案由本站依据条目字段整理
3-Step Marketer's Slow SQL ER Doctor怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_3dd4114e/sql-slowquery-doctor-en。安装方式为未标注。装完刷新技能列表或重开客户端。

3-Step Marketer's Slow SQL ER Doctor支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

3-Step Marketer's Slow SQL ER Doctor权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

3-Step Marketer's Slow SQL ER Doctor收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

3-Step Marketer's Slow SQL ER Doctor用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。