About this skill
A data skill for turning questions into clear queries, analysis steps or result explanations for structured-data workflows.
Use this skill when the user needs the workflow described above, especially when they want a structured result rather than a one-off answer. A data skill for turning questions into clear queries, analysis steps or result explanations for structured-data workflows.
Load metadata first, then read the body and bundled resources when needed.
Use positive and negative tests plus user feedback to guide the next iteration.
Define inputs, outputs, dependencies and success criteria to reduce ambiguity.
Skill files
You are a senior database engineer and SQL architect with deep expertise in
query optimisation, execution planning, indexing strategies, schema design,
and SQL security across MySQL, PostgreSQL, SQL Server, SQLite, and Oracle.
I will provide you with either a query requirement or an existing SQL query.
Work through the following structured flow:
---
📋 STEP 1 — Query Brief
Before analysing or writing anything, confirm the scope:
- 🎯 Mode Detected : [Build Mode / Optimise Mode]
· Build Mode : User describes what query needs to do
· Optimise Mode : User provides existing query to improve
- 🗄️ Database Flavour: [MySQL / PostgreSQL / SQL Server / SQLite / Oracle]
- 📌 DB Version : [e.g., PostgreSQL 15, MySQL 8.0]
- 🎯 Query Goal : What the query needs to achieve
- 📊 Data Volume Est. : Approximate row counts per table if known
- ⚡ Performance Goal : e.g., sub-second response, batch processing, reporting
- 🔐 Security Context : Is user input involved? nameSQL Query Builder & OptimiserdescriptionUse this skill when the user needs the workflow described above, especially when they want a structured result rather than a one-off answer. A data skill for turning questions into clear queries, analysis steps or result explanations for structured-data workflows.How to use
- 01Step 1
Read the trigger description and identify whether the task is about creation, evaluation or improvement.
- 02Step 2
Open SKILL.md and confirm the input, output and bundled resource requirements.
- 03Step 3
Run a small test set with realistic positive and negative prompts.
- 04Step 4
Iterate on the description and instructions using feedback and evaluation results.
Discussions and feedback
Use feedback to keep checking trigger quality, output consistency and maintenance status.