Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL, and other dialects. Reads database schemas from uploaded diagrams or documentation. Use when writing SQL, building data reports, exploring databases, or translating business questions into queries.
.claude/skills/phuryn-sql-queries/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-20 | ✗→✓ | ▲ Improved | 68% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 102% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 116% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 150% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 145% | 0% |
Transform natural language requirements into optimized SQL queries across multiple database platforms. This skill helps product managers, analysts, and engineers generate accurate queries without manual syntax work.
Example 1: Query from Schema File
Upload your database_schema.sql file and say:
"Generate a query to find users who signed up in the last 30 days
and had at least 5 active sessions"Example 2: Query from Diagram Description
"Here's my database: Users table (id, email, created_at), Sessions table
(id, user_id, timestamp, duration). Generate a query for average session
duration per user in January 2026."Example 3: Complex Analysis Query
"Create a BigQuery query to analyze our revenue by region and customer tier,
including year-over-year growth rates."You'll receive:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 7,375 | 7,545 | +2% | 1 | 1 | 0% | 1,284 | 2,300 | +79% | 0 | 0 | — |
case-02 | pass→pass | 6,825 | 9,930 | +45% | 1 | 1 | 0% | 1,409 | 2,844 | +102% | 0 | 0 | — |
case-03 | pass→pass | 6,498 | 8,037 | +24% | 1 | 1 | 0% | 1,130 | 2,441 | +116% | 0 | 0 | — |
case-04 | pass→pass | 3,599 | 6,698 | +86% | 1 | 1 | 0% | 861 | 2,155 | +150% | 0 | 0 | — |
case-05 | pass→pass | 2,994 | 4,679 | +56% | 1 | 1 | 0% | 688 | 1,685 | +145% | 0 | 0 | — |
case-06 | pass→pass | 5,024 | 2,947 | -41% | 1 | 1 | 0% | 519 | 1,310 | +152% | 0 | 0 | — |
case-07 | fail→fail | 7,032 | 4,878 | -31% | 1 | 1 | 0% | 1,215 | 1,958 | +61% | 0 | 0 | — |
case-08 | pass→pass | 3,529 | 4,120 | +17% | 1 | 1 | 0% | 608 | 1,599 | +163% | 0 | 0 | — |
case-09 | pass→pass | 5,030 | 6,291 | +25% | 1 | 1 | 0% | 985 | 2,015 | +105% | 0 | 0 | — |
case-10 | pass→pass | 4,400 | 10,267 | +133% | 1 | 1 | 0% | 960 | 2,409 | +151% | 0 | 0 | — |
case-11 | pass→pass | 5,787 | 9,370 | +62% | 1 | 1 | 0% | 1,097 | 2,464 | +125% | 0 | 0 | — |
case-12 | pass→pass | 3,671 | 5,430 | +48% | 1 | 1 | 0% | 641 | 1,425 | +122% | 0 | 0 | — |
case-13 | pass→pass | 4,727 | 4,202 | -11% | 1 | 1 | 0% | 682 | 1,622 | +138% | 0 | 0 | — |
case-14 | pass→pass | 4,628 | 5,741 | +24% | 1 | 1 | 0% | 885 | 1,878 | +112% | 0 | 0 | — |
case-15 | pass→pass | 5,016 | 6,664 | +33% | 1 | 1 | 0% | 936 | 1,986 | +112% | 0 | 0 | — |
case-16 | pass→pass | 3,360 | 6,286 | +87% | 1 | 1 | 0% | 654 | 1,869 | +186% | 0 | 0 | — |
case-17 | pass→pass | 4,717 | 9,666 | +105% | 1 | 1 | 0% | 934 | 2,136 | +129% | 0 | 0 | — |
case-18 | pass→pass | 5,052 | 4,361 | -14% | 1 | 1 | 0% | 826 | 1,641 | +99% | 0 | 0 | — |
case-19 | pass→pass | 3,776 | 8,202 | +117% | 1 | 1 | 0% | 868 | 2,608 | +200% | 0 | 0 | — |
case-20 | fail→pass | 5,255 | 6,898 | +31% | 1 | 1 | 0% | 1,106 | 1,854 | +68% | 0 | 0 | — |
case-21 | pass→pass | 4,451 | 6,302 | +42% | 1 | 1 | 0% | 883 | 1,977 | +124% | 0 | 0 | — |
case-22 | pass→pass | 15,445 | 16,414 | +6% | 1 | 1 | 0% | 3,043 | 3,406 | +12% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.