Communityコーディング&開発github.com

phuryn/sql-queries

自然言語の説明からSQLクエリを生成します。BigQuery、PostgreSQL、MySQLなどのデータベースに対応。アップロードされた図やドキュメントからデータベーススキーマを読み取ります。SQLの作成、データレポートの作成、データベースの探索、ビジネス上の質問をクエリに変換する際に使用します。

sql-queries とは?

このスキルは、自然言語の記述からSQLクエリを生成する強力なツールです。開発者やアナリストが、複雑なデータベースクエリを手動で記述する代わりに、平易な英語(または他の自然言語)でクエリの意図を説明するだけで、正確なSQLを生成できます。BigQuery、PostgreSQL、MySQLを含む複数のデータベース方言をサポートしており、環境に応じたクエリを生成します。また、アップロードされたデータベーススキーマ図やドキュメントを読み取り、それに基づいてクエリを生成するため、テーブル構造を意識した正確なクエリ作成が可能です。主なユースケースとしては、SQLの作成、データレポートの構築、データベースの探索、ビジネス上の質問を即座にクエリに変換する作業などがあります。これにより、SQLの知識が浅いユーザーでもデータベース操作が容易になり、専門家の生産性も向上します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/phuryn/pm-skills/tree/main/skills/sql-queries

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

sql-queries は何をしますか?

自然言語の説明からSQLクエリを生成します。BigQuery、PostgreSQL、MySQLなどのデータベース方言に対応しています。アップロードされた図やドキュメントからデータベーススキーマを読み取り、ビジネス上の質問をクエリに変換する際に使用します。

特徴

  • 自然言語からSQLを生成: 「今月の売上トップ10は?」といった質問からSQLを自動生成。
  • 複数方言対応: BigQuery、PostgreSQL、MySQLなど、主要なデータベース方言をサポート。
  • スキーマ読み取り: アップロードされたER図やドキュメントから、テーブル構造を解析。
  • 即時クエリ生成: データレポート作成やデータベース探索時に、素早く正確なクエリを生成。

使い方

  1. スキーマ情報を提供(図やドキュメントをアップロード、または直接記述)。
  2. 自然言語でクエリの内容を説明。
  3. AIが適切なSQLを生成。
  4. 生成されたクエリを確認・実行。

サポート対象

  • BigQuery(標準SQL)
  • PostgreSQL
  • MySQL
  • その他(要件に応じて拡張可能)

注意事項

  • 生成されたクエリは常に検証してください。
  • データベースのセキュリティポリシーに従って実行してください。
  • 大規模なデータセットに対しては、パフォーマンスを考慮してください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

phuryn/ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop recommendations. Use when evaluating experiment results, checking if a test reached significance, interpreting split test data, or deciding whether to ship a variant.

phuryn/analyze-feature-requests

Analyze and prioritize a list of feature requests by theme, strategic alignment, impact, effort, and risk. Use when reviewing customer feature requests, triaging a backlog, or making prioritization decisions.

phuryn/ansoff-matrix

Generate an Ansoff Matrix analysis mapping growth strategies across market penetration, market development, product development, and diversification. Use when considering growth options, planning market expansion, or evaluating strategic growth paths.

phuryn/brainstorm-experiments-existing

Design experiments to test assumptions for an existing product — prototypes, A/B tests, spikes, and other low-effort validation methods. Use when validating assumptions, testing feature ideas cheaply, or planning product experiments.

phuryn/brainstorm-experiments-new

Design lean startup experiments (pretotypes) for a new product. Creates XYZ hypotheses and suggests low-effort validation methods like landing pages, explainer videos, and pre-orders. Use when validating a new product idea, creating pretotypes, or testing market demand.

phuryn/brainstorm-ideas-existing

Brainstorm product ideas for an existing product using multi-perspective ideation from PM, Designer, and Engineer viewpoints. Use when generating new feature ideas, brainstorming solutions for an identified opportunity, or ideating with a product trio.

phuryn/brainstorm-ideas-new

Brainstorm feature ideas for a new product in initial discovery from PM, Designer, and Engineer perspectives. Use when starting product discovery for a new product, exploring features for a startup idea, or doing initial ideation.

phuryn/brainstorm-okrs

Brainstorm team-level OKRs aligned with company objectives — qualitative objectives with measurable key results. Use when setting quarterly OKRs, aligning team goals with company strategy, drafting objectives, or learning how to write effective OKRs.

phuryn/business-model

Generate a Business Model Canvas with all 9 building blocks. Use when creating a business model, documenting how a business creates value, or analyzing an existing business model.

phuryn/cohort-analysis

Perform cohort analysis on user engagement data — retention curves, feature adoption trends, and segment-level insights. Use when analyzing user retention by cohort, studying feature adoption over time, investigating churn patterns, or identifying engagement trends.

phuryn/competitive-battlecard

Create sales-ready competitive battlecards comparing your product against a specific competitor — positioning, feature comparison, objection handling, and win/loss patterns. Use when preparing sales teams, creating competitive materials, or responding to 'why not competitor X?'

phuryn/competitor-analysis

Analyze competitors with strengths, weaknesses, and differentiation opportunities. Identifies direct competitors and maps the competitive landscape. Use when doing competitive research, preparing a competitive brief, or finding differentiation opportunities.

phuryn/create-prd

Create a Product Requirements Document using a comprehensive 8-section template covering problem, objectives, segments, value propositions, solution, and release planning. Use when writing a PRD, documenting product requirements, preparing a feature spec, or reviewing an existing PRD.

phuryn/customer-journey-map

Create an end-to-end customer journey map with stages, touchpoints, emotions, pain points, and opportunities. Use when mapping the customer experience, identifying friction points, improving onboarding, or visualizing the user journey.

phuryn/draft-nda

Draft a detailed Non-Disclosure Agreement between two parties covering information types, jurisdiction, and clauses needing legal review. Use when creating confidentiality agreements or preparing an NDA for a partnership.

phuryn/dummy-dataset

Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script). Use when creating test data, building mock datasets, or generating sample data for development and demos.

phuryn/grammar-check

Identify grammar, logical, and flow errors in text and suggest targeted fixes without rewriting the entire text. Use when proofreading content, checking writing quality, or reviewing a draft.

phuryn/growth-loops

Identify growth loops (flywheels) for sustainable traction. Evaluates 5 loop types: Viral, Usage, Collaboration, User-Generated, and Referral. Use when designing growth mechanisms, building product-led traction, or understanding how growth loops work.

phuryn/gtm-motions

Identify the best GTM motions and tools across 7 motion types: Inbound, Outbound, Paid Digital, Community, Partners, ABM, and PLG. Use when selecting marketing channels, choosing between inbound and outbound strategy, or planning cross-channel campaigns.

phuryn/gtm-strategy

Create a go-to-market strategy covering marketing channels, messaging, success metrics, and launch timeline. Use when planning a product launch, creating a GTM plan from scratch, or defining a launch strategy for a new market.

関連スキル