sql-queries

Generates SQL queries from natural language descriptions for multiple database dialects.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/Osirs/pm-skills-sc --skill sql-queries-osirs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/Osirs/pm-skills-sc/tree/main/.trae/skills/sql-queries
Command: npx skills add https://github.com/Osirs/pm-skills-sc --skill sql-queries-osirs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill translates natural language requests into executable SQL queries, making database interaction accessible without deep SQL expertise.

Core Features & Use Cases

  • Multi-dialect SQL Generation: Creates queries for BigQuery, PostgreSQL, MySQL, Snowflake, and more.
  • Schema Awareness: Reads and understands database schemas from provided files or descriptions.
  • Use Case: A product manager needs to understand user engagement trends. They can describe the desired data (e.g., "users who signed up in the last month and had at least 3 sessions") and the Skill generates the appropriate SQL query.

Quick Start

Use the sql-queries skill to generate a PostgreSQL query that counts the number of orders placed per customer in the last 7 days.

Frequently Asked Questions about sql-queries

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

FAQPage Schema
How do I generate SQL queries from natural language for BigQuery?

To generate SQL queries from natural language for BigQuery, you can describe your desired data retrieval or analysis request, and the system parses your database schema to construct an optimized, executable BigQuery query.

Can I use natural language to query a PostgreSQL database schema?

Yes, you can use natural language to query a PostgreSQL database schema by providing your schema files or descriptions, allowing the system to understand table structures and generate the appropriate PostgreSQL query.

What's the best way to write SQL for data analysis without deep SQL expertise?

The best way to write SQL for data analysis without deep expertise is translating natural language descriptions into executable SQL, making database interaction accessible by parsing schemas to construct optimized queries automatically.

Does SQL generation work with multiple database dialects like MySQL and Snowflake?

Yes, SQL generation works with multiple database dialects including MySQL, Snowflake, BigQuery, and PostgreSQL, creating tailored queries based on the specific syntax and schema provided for your data analysis.

How do I provide my database schema to generate accurate SQL queries?

You provide your database schema by uploading schema files or pasting schema descriptions, which the system reads and understands to construct optimized queries for accurate data retrieval from your tables.