sql-queries

Generate correct, readable SQL for PostgreSQL, Snowflake, BigQuery, Redshift, and Databricks.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/yethikrishna/humble --skill sql-queries-yethikrishna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/yethikrishna/humble/tree/main/core/kortix-master/opencode/skills/GENERAL-KNOWLEDGE-WORKER/sql-queries
Command: npx skills add https://github.com/yethikrishna/humble --skill sql-queries-yethikrishna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing correct, high-performance SQL across multiple data warehouse dialects is error-prone and slows analytics workflows.

Core Features & Use Cases

  • Cross-dialect reference for PostgreSQL, Snowflake, BigQuery, Redshift, and Databricks SQL.
  • Dialect-aware patterns, optimization tips, and best practices for readability and maintainability.
  • Use Case: Port a complex query from one warehouse to another with minimal semantic drift.

Quick Start

Write a cross-dialect SQL query that is correct and optimized for the target warehouse.

Frequently Asked Questions about sql-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write cross-dialect SQL queries that work correctly across PostgreSQL, Snowflake, and BigQuery?

Cross-dialect SQL queries require dialect-aware patterns that respect syntax differences across PostgreSQL, Snowflake, BigQuery, Redshift, and Databricks SQL to ensure correctness and readability. The Skill generates target-warehouse-specific SQL with minimal semantic drift, applying optimization tips and best practices for maintainable analytics workflows.

What is the best way to port a complex SQL query from one data warehouse to another without semantic drift?

Porting SQL between warehouses requires dialect-aware guidance to translate syntax accurately while preserving logic. The Skill provides cross-dialect reference examples and optimization patterns for PostgreSQL, Snowflake, BigQuery, Redshift, and Databricks SQL, minimizing semantic drift during migration and ensuring the ported query remains correct and readable in the target warehouse.

Does this Skill support query optimization tips for Snowflake and Databricks SQL?

Yes, query optimization tips for Snowflake and Databricks SQL are supported. The Skill delivers dialect-aware best practices for performance, maintainability, and correctness across major data warehouse dialects, including PostgreSQL, BigQuery, and Redshift, ensuring real-world queries are both readable and optimized for the specific target warehouse environment.

How do I convert a PostgreSQL query to BigQuery syntax step by step?

Converting PostgreSQL to BigQuery syntax involves applying cross-dialect reference patterns to map equivalent functions and structures. The Skill generates correct, readable BigQuery SQL from the original query while providing dialect-aware optimization tips to maintain performance and correctness without introducing semantic drift during the conversion process.

When do I need dialect-aware SQL patterns for data warehouse queries?

Dialect-aware SQL patterns are needed when writing or porting queries across multiple data warehouse platforms like PostgreSQL, Snowflake, BigQuery, Redshift, or Databricks SQL. They prevent syntax errors and semantic drift by providing target-specific reference examples, optimization tips, and maintainability best practices for correct, high-performance analytics workflows.