一键导入
sql-debug-skill
Debug common SQL query errors by identifying anti-patterns and applying targeted fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Debug common SQL query errors by identifying anti-patterns and applying targeted fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Construct correct regular expressions for common text matching and validation challenges.
Teaches agents how to use the skillforge CLI to distill procedural skills from model traces.
Debug common Python runtime errors by reading tracebacks and applying targeted fixes.
| name | sql-debug-skill |
| description | Debug common SQL query errors by identifying anti-patterns and applying targeted fixes. |
| version | 0.1.0 |
| source_model | mock-strong |
| extracted_from | {"total_traces":10,"passed_traces":10,"failed_traces":0,"extractor":"manual@0.1","extracted_at":"2026-01-01T00:00:00Z"} |
| triggers | ["sql","debug","query","fix"] |
| domains | ["sql-debug"] |
| license | Apache-2.0 |
Apply this skill when you encounter a SQL query that produces incorrect results, errors, or unintended side effects. Covers: missing JOINs, NULL comparisons, GROUP BY misuse, ambiguous columns, integer division, clause ordering, missing WHERE, implicit column lists, COUNT semantics, and correlated subqueries.
= NULL with IS NULL and != NULL with IS NOT NULLusers.id instead of id)CAST(col AS DECIMAL) or multiply by 1.0COUNT(*) when counting all rowsInput: SELECT users.name, orders.total FROM users, orders WHERE users.id = 1;
Fix: SELECT users.name, orders.total FROM users JOIN orders ON users.id = orders.user_id WHERE users.id = 1;
Input: SELECT * FROM employees WHERE manager_id = NULL;
Fix: SELECT * FROM employees WHERE manager_id IS NULL;
Input: SELECT completed_tasks / total_tasks AS completion_rate FROM projects;
Fix: SELECT CAST(completed_tasks AS DECIMAL) / total_tasks AS completion_rate FROM projects;