← Files SQL CopilotARCHIVED FILE
skills/troubleshoot-sql-errors/SKILL.md
1.46 KB · Nov 27, 2026 · 19:07 UTC
--- name: troubleshoot-sql-errors description: Diagnose SQL syntax/runtime errors without mixing dialects or inventing database context. --- # Troubleshoot Sql Errors **Trigger:** Diagnose SQL syntax/runtime errors without mixing dialects or inventing database context. ## Workflow 1. Collect exact error text, query, engine/version and relevant schema/type samples if available. 2. Categorize parsing, missing object/alias, ambiguous column, data conversion, permissions, grouping, window misuse, locking or resource limitation. 3. Locate smallest failing expression and make a minimal proposed correction; avoid broad rewrites. 4. Explain why the error occurs in that dialect, including restrictions on alias scope or evaluation order when relevant. 5. Supply a small confirmation query/test; mark it proposed if no execution tool is available. ## Critical standard Do not treat authorization errors as a reason to request broad grants or weaken security. ## Evidence and execution Only say "executed", "passed", "observed", "optimized" or "deployed" when a connected tool returned evidence for that claim. An SQL draft, a textual review, or local fixture proof alone is not production validation. Never ask the user to paste passwords or raw confidential records. ## Supporting references - Read `../../references/debugging-playbook.md` when relevant. - Read `../../references/dialects.md` when relevant. ## Return Root-cause hypothesis, minimal corrected SQL and a confirmation step.
SHA-256: 3732fee9c5c4bac2c8e20dbca6f704e6afa4c5361e3eb049119bf124997a5910