sql-queries
根据自然语言描述生成 SQL 查询。支持 BigQuery、PostgreSQL、MySQL 及其他方言。可从上传的架构图或文档中读取数据库模式。适用于编写 SQL、制作数据报告、探索数据库或将业务问题转换为查询。
作者
分类
产品安装
热度:10
下载并解压到你的 skills 目录
复制命令,发送给 OpenClaw 自动安装:
下载并安装这个技能 https://openskills.cc/api/download?slug=phuryn-pm-data-analytics-skills-sql-queries&locale=zh&source=copy
name:sql-queriesdescription:"Generate SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL, and other dialects. Reads database schemas from uploaded diagrams or documentation. Use when writing SQL, building data reports, exploring databases, or translating business questions into queries."
SQL Query Generator
Purpose
Transform natural language requirements into optimized SQL queries across multiple database platforms. This skill helps product managers, analysts, and engineers generate accurate queries without manual syntax work.
How It Works
Step 1: Understand Your Database Schema
Step 2: Process Your Request
Step 3: Generate Optimized Query
Step 4: Explain and Test
Usage Examples
Example 1: Query from Schema File
Upload your database_schema.sql file and say:
"Generate a query to find users who signed up in the last 30 days
and had at least 5 active sessions"Example 2: Query from Diagram Description
"Here's my database: Users table (id, email, created_at), Sessions table
(id, user_id, timestamp, duration). Generate a query for average session
duration per user in January 2026."Example 3: Complex Analysis Query
"Create a BigQuery query to analyze our revenue by region and customer tier,
including year-over-year growth rates."Key Capabilities
Tips for Best Results
Output Format
You'll receive: