Data sql analysis

From BlueSkyXN/Codex-is-all-you-need · View interactive version

Data sql analysis is an AI agent skill from the GitHub repository BlueSkyXN/Codex-is-all-you-need. Use when reviewing or creating SQL for analysis, metric definitions, joins, filters, aggregation, and validation queries.

How to use this skill

Skill file

SQL Analysis Skill

Use this workflow for SQL review or SQL-based analysis.

Steps

  1. Identify the business question and expected output grain.
  2. Review source tables and join keys.
  3. Check join cardinality and risk of fan-out or dropped rows.
  4. Check filters, date ranges, timezone assumptions, null handling, and status fields.
  5. Review grouping, window functions, and aggregation logic.
  6. Verify numerator, denominator, and metric definitions.
  7. Add validation queries for row counts, totals, duplicates, and edge cases.
  8. Explain limitations and ambiguous definitions.

Do not

Output

Return:

  1. Query purpose and grain
  2. Logic review
  3. Metric definition review
  4. Risk list
  5. Validation queries
  6. Recommended changes
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.