phuryn/pm-skills✦ 精选0°

sql-queries

仓库创建 2026年3月2日最近提交 23 天前SkillHot 收录 20 天前
▸ 精选理由

可直接把业务问题转成优化过的 SQL,节省手写查询与调试时间,支持多种方言。

这个 Skill 做什么

根据自然语言与数据库模式生成适配不同方言的 SQL 查询。

把自然语言或业务问题直接翻成可执行的 SQL,支持 BigQuery、PostgreSQL、MySQL 等方言,能读取你提供的数据库结构来生成精准查询。适合写报表、做数据探索或把产品问题转成查询时使用。特点是自动适配不同 SQL 方言并考虑表结构,少走语法和逻辑调试的弯路。

▸ 展开 SKILL.md 英文原文

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 生成多数据库报表自动化通用
2.5w
Stars
2.5k
Forks
40
仓库内 Skill
+1.8k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/phuryn/pm-skills/main/pm-data-analytics/skills/sql-queries/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/phuryn/pm-skills/main/pm-data-analytics/skills/sql-queries/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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
- If you provide a schema file (SQL, documentation, or diagram description), I will read and analyze it
- Extract table names, column definitions, data types, and relationships
- Identify primary keys, foreign keys, and indexing strategies

### Step 2: Process Your Request
- Clarify the exact data you need to retrieve or analyze
- Confirm the SQL dialect (BigQuery, PostgreSQL, MySQL, S
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有