data-write-query

Generate dialect-aware SQL queries from natural-language descriptions.

14|3|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/kevinlin/cowork-z --skill data-write-query-kevinlin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data-write-query
Source: https://github.com/kevinlin/cowork-z/tree/main/src-tauri/resources/skill-templates/data-write-query
Command: npx skills add https://github.com/kevinlin/cowork-z --skill data-write-query-kevinlin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write a natural-language description into an optimized SQL query tailored to a specific dialect, reducing guesswork and improving accuracy.

Core Features & Use Cases

  • Generate dialect-aware SQL from plain-language requests for analytics and reporting.
  • Enforce best-practices: explicit column selection, with CTEs, readability, and performance considerations.
  • Use cases include ad-hoc analytics, dashboard data sourcing, and data extraction across multiple warehouses.

Quick Start

Describe your data need and target dialect, and I will generate an optimized SQL query.

Frequently Asked Questions about data-write-query

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

FAQPage Schema
How do I generate optimized SQL queries from natural language for PostgreSQL or Snowflake?▼

To generate optimized SQL queries from natural language, you describe your data need and specify a target dialect like PostgreSQL or Snowflake. The system then produces a dialect-aware query with explicit column selection, CTEs, and performance-oriented guidelines.

Can I use plain English to write BigQuery SQL for ad-hoc analytics and reporting?▼

Yes, you can use plain English to write BigQuery SQL for ad-hoc analytics. Provide a natural-language description of your reporting requirements, and the system generates a dialect-aware query following best-practice patterns for readability and performance.

What is the best way to convert a data extraction request into a MySQL query?▼

The best way to convert a data extraction request into a MySQL query is to provide a plain-language description of your data need. The system applies schema-guided query construction to generate an optimized, dialect-specific MySQL statement.

Does dialect-aware SQL generation apply best-practices like CTEs and explicit column selection?▼

Yes, dialect-aware SQL generation applies best-practices like CTEs and explicit column selection. It constructs queries with readability and performance considerations, ensuring the output is optimized for your specific warehouse environment.

Why should I use a dialect-specific query generator instead of generic SQL for analytics workflows?▼

You should use a dialect-specific query generator because generic SQL may not leverage specific warehouse optimizations. Dialect-aware generation applies best-practice patterns tailored to systems like PostgreSQL, Snowflake, and BigQuery, improving query performance and accuracy.

What limitations exist when generating SQL from natural language for multiple warehouses?▼

When generating SQL from natural language for multiple warehouses, the output depends on the clarity of your description and the target dialect. Complex schema-guided query construction may require explicit context to ensure accurate, optimized SQL across different warehouse environments.