All skills
nimrodfisher avatar

/query-validation

@2e18ac4

SQL query review for correctness, performance, and best practices. Activate when a query needs review before production use, shows unexpected results, or runs too slowly.

Use this Skill: https://skilld.dev/gh/nimrodfisher/data-analytics-skills/query-validation

This session only. Nothing lands on disk.

assetsoptimization_recommendations.md

≈344 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Query Optimization Recommendations: [Query Name]

Date: [YYYY-MM-DD]
Original runtime: [e.g. 45 s]
Target runtime: [e.g. < 5 s]


Priority 1 — [High-impact fix title]

Problem: [What is the bottleneck — e.g. full table scan on 500M row table]
Root cause: [e.g. WHERE clause applies a function to the partition column, preventing pruning]
Recommendation:

-- Before
WHERE DATE(created_at) = '2024-01-01'

-- After
WHERE created_at >= '2024-01-01' AND created_at < '2024-01-02'

Expected impact: [e.g. Scan reduced from 500M rows to ~1.4M rows — runtime ~30× faster]
Risk: [Low / Medium — semantically equivalent for non-NULL values]


Priority 2 — [Second fix title]

Problem:
Root cause:
Recommendation:

-- Before

-- After

Expected impact:
Risk:


Priority 3 — [Third fix title]

Problem:
Root cause:
Recommendation:
Expected impact:
Risk:


Changes NOT Recommended

Suggestion Why skipped
[e.g. Pre-aggregate events into a summary table] [Would require pipeline change — out of scope for this review]

Benchmark Results (after fixes)

Version Runtime Bytes scanned Notes
Original
After Priority 1 fix
After all fixes

Source: SKILL.md on GitHub

No alerts16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a set of SQL analysis tools and templates for validating query performance and correctness. It uses local scripts to parse SQL and explain plans without making external network calls or executing arbitrary commands.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 2e18ac4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 5 months ago

README badge

README badge for nimrodfisher/data-analytics-skills/query-validation