Sql Queries logo

Sql Queries

Community
lucas-flatwhite
sql-queries

자연어 설명으로 SQL 쿼리 생성. BigQuery, PostgreSQL, MySQL 등 다양한 방언 지원. 업로드된 다이어그램이나 문서에서 데이터베이스 스키마 읽기. SQL 작성, 데이터 보고서 구축, 데이터베이스 탐색, 또는 비즈니스 질문을 쿼리로 변환할 때 활용하세요.

Overview

Publisherlucas-flatwhite
Repositorypm-skills-ko
Skill namesql-queries
Stars
41
Forks
13
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by lucas-flatwhite on GitHub. Read the source before you install it.

Installation

Install the Sql Queries AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lucas-flatwhite/pm-skills-ko/tree/main/pm-data-analytics/skills/sql-queries
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lucas-flatwhite/pm-skills-ko.git /tmp/pm-skills-ko
mkdir -p .claude/skills
cp -r /tmp/pm-skills-ko/pm-data-analytics/skills/sql-queries .claude/skills/sql-queries
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sql Queries in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sql Queries on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sql Queries is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SQL 쿼리 생성기

목적

자연어 요구사항을 여러 데이터베이스 플랫폼에서 최적화된 SQL 쿼리로 변환합니다. 이 스킬은 제품 매니저, 분석가, 엔지니어가 수동 구문 작업 없이 정확한 쿼리를 생성할 수 있도록 도와줍니다.

작동 방식

Step 1: 데이터베이스 스키마 이해

  • 스키마 파일 (SQL, 문서, 또는 다이어그램 설명)을 제공하는 경우 읽고 분석
  • 테이블 이름, 컬럼 정의, 데이터 유형, 관계 추출
  • 기본 키, 외래 키, 인덱싱 전략 식별

Step 2: 요청 처리

  • 검색하거나 분석하려는 정확한 데이터 명확화
  • SQL 방언 확인 (BigQuery, PostgreSQL, MySQL, Snowflake 등)
  • 추가 요구 사항 확인 (필터, 집계, 정렬)

Step 3: 최적화된 쿼리 생성

  • 데이터베이스 구조를 활용하는 효율적인 SQL 작성
  • 복잡한 로직을 설명하는 주석 포함
  • 대용량 데이터셋에 대한 성능 고려 사항 추가
  • 해당하는 경우 대안적 접근법 제공

Step 4: 설명 및 테스트

  • 쿼리 로직을 일반 언어로 설명
  • 결과를 테스트하거나 검증하는 방법 제안
  • 성능 최적화 팁 제공
  • 원하는 경우 테스트 스크립트 또는 샘플 데이터 생성

사용 예시

예시 1: 스키마 파일에서 쿼리 생성

database_schema.sql 파일을 업로드하고 다음과 같이 요청합니다:
"최근 30일 내 가입하여 최소 5번의 활성 세션이 있는
사용자를 찾는 쿼리를 생성해 주세요"

예시 2: 다이어그램 설명에서 쿼리 생성

"제 데이터베이스 구조입니다: Users 테이블 (id, email, created_at),
Sessions 테이블 (id, user_id, timestamp, duration).
2026년 1월 사용자당 평균 세션 시간 쿼리를 생성해 주세요."

예시 3: 복잡한 분석 쿼리

"연간 성장률을 포함하여 지역 및 고객 등급별로
매출을 분석하는 BigQuery 쿼리를 생성해 주세요."

핵심 기능

  • 다중 방언 지원: BigQuery, PostgreSQL, MySQL, Snowflake, SQL Server 지원
  • 파일 읽기: 스키마 파일, SQL 덤프, 데이터 문서 읽기
  • 쿼리 최적화: 인덱스, 파티셔닝, 성능 개선 제안
  • 설명: 학습 및 문서화를 위한 쿼리 분해
  • 테스트: 테스트 쿼리 및 샘플 데이터 스크립트 생성
  • 스크립트 실행: 데이터베이스용 실행 가능한 SQL 스크립트 생성

최상의 결과를 위한 팁

  1. 맥락 제공: 데이터베이스 스키마 또는 구조 공유
  2. 구체적으로: 필요한 데이터와 필터를 명확하게 설명
  3. 데이터베이스 명시: 사용 중인 SQL 방언 지정
  4. 제약 조건 포함: 데이터 볼륨, 시간 범위, 성능 요구 사항 언급
  5. 형식 요청: 특정 출력 형식이 필요한 경우 요청

출력 형식

다음을 제공합니다:

  • SQL 쿼리: 주석이 포함된 프로덕션 준비된 SQL 코드
  • 설명: 쿼리의 동작 및 작동 방식
  • 성능 참고 사항: 최적화 팁 및 고려 사항
  • 테스트 스크립트 (요청 시): 샘플 데이터 및 검증 쿼리

더 읽어보기

Frequently asked questions

What does the Sql Queries AI skill do?

자연어 설명으로 SQL 쿼리 생성. BigQuery, PostgreSQL, MySQL 등 다양한 방언 지원. 업로드된 다이어그램이나 문서에서 데이터베이스 스키마 읽기. SQL 작성, 데이터 보고서 구축, 데이터베이스 탐색, 또는 비즈니스 질문을 쿼리로 변환할 때 활용하세요.

Why use Sql Queries on TypingMind?

Because you install it once and use it with any model. Sql Queries is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sql Queries in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lucas-flatwhite/pm-skills-ko/tree/main/pm-data-analytics/skills/sql-queries. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sql Queries?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sql Queries?

As many as you like. As long as a model supports skills, you can use Sql Queries with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sql Queries AI skill free?

Yes. It is published on GitHub by lucas-flatwhite under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇