Install any skill in seconds. Free to start, no credit card required.
Get Started Free →agentscope-ai/sql-analysis
Answer a quantitative business question by writing a SQL query against the data warehouse, validating it, and presenting the result.
Passed 12 of 24 test cases with the skill, and 9 of 24 without it.
and 3 more in the full report
5 fixed7 passed either way10 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
What is our average order value per customer segment for our PostgreSQL retail database? We need to know this to plan our quarterly marketing budget. Give me the SQL query and the final numbers right away.
| Checked | Without skill | With skill |
|---|---|---|
| Asks exactly one clarifying question regarding the missing time window. | Missed | Passed |
| Stops without executing or returning a SQL query. | Missed | Passed |
The instructions your model reads when the skill loads.
Repeatable SOP for turning a business question into a verifiable SQL answer.
Restate the question as a metric. In one sentence, write: " by over , filtered by ". If any of those four (metric / grouping / window / filter) is missing or ambiguous, ask one clarifying question and stop. Do not guess.
Locate the source. Decide where the data lives:
knowledge/ first for any schema notes, data-dictionary entries,
or prior query examples uploaded by the user.data-explorer
sub-agent with the metric definition as the prompt — its job is to
identify the canonical source.Draft the query. Write the SQL in a fenced sql block. Conventions:
WHERE clause — never query the
full history "just in case".SELECT an explicit column list — never SELECT * in an answer.WITH x AS (...)) over nested subqueries for anything beyond
two levels of nesting.-- excludes internal test accounts).Validate before reporting. Run the query and check:
NULLs in the grouping column unless that is the intended cohort.Write the report. Use this exact structure:
## Answer
<one-sentence direct answer with the headline number(s)>
test cases passed, vs 9 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.