Help us improve
Share bugs, ideas, or general feedback.
From pm-data-analytics
Generate optimized SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL dialects and schema from uploaded files.
npx claudepluginhub tarunccet/pm-skills --plugin pm-data-analyticsHow this command is triggered — by the user, by Claude, or both
Slash command
/pm-data-analytics:write-query <what you want to know, in plain English>The summary Claude sees in its command listing — used to decide when to auto-load this command
# /write-query -- SQL Query Generator Describe what data you need in plain English and get an optimized SQL query. Supports multiple dialects and can read your schema from uploaded files. ## Invocation ## Workflow ### Step 1: Understand the Question Parse the user's natural language request to identify: - What data is being requested (metrics, dimensions, filters) - Time range and granularity - Grouping and ordering preferences - Output expectations (raw data, aggregated, ranked) ### Step 2: Determine Schema If a schema is available (uploaded diagram, DDL, or description): - Map th...
/write-queryGenerate optimized SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL dialects and schema from uploaded files.
/bq-generateGenerates optimized BigQuery SQL queries from natural language descriptions of required data, including assumptions, avoided anti-patterns, and customization notes.
/sql-query-builderGenerates optimized SQL queries from natural language descriptions for SELECT, INSERT, UPDATE, DELETE with JOINs, aggregations, CTEs, and indexes. Supports PostgreSQL, MySQL, SQLite.
/optimize-queriesAnalyze slow queries, identify missing indexes, and rewrite queries for performance.
/schemaDesigns data models interactively using a schema-designer agent. Generates entity-relationship diagrams, DDL statements, grain definitions, cardinality analysis, and SCD strategy recommendations.
/design-database-schemaDesigns optimized database schemas from business requirements, modeling entities, relationships, data types, constraints, and generating SQL DDL examples like user management and e-commerce.
Share bugs, ideas, or general feedback.
Describe what data you need in plain English and get an optimized SQL query. Supports multiple dialects and can read your schema from uploaded files.
/write-query Show me daily active users for the last 30 days, broken down by plan tier
/write-query Find users who signed up last month but never completed onboarding
/write-query [upload a schema diagram] What's the conversion rate from trial to paid by cohort?
Parse the user's natural language request to identify:
If a schema is available (uploaded diagram, DDL, or description):
If no schema is provided:
Apply the sql-queries skill:
## SQL Query: [What It Does]
**Dialect**: [BigQuery / PostgreSQL / MySQL / etc.]
**Tables used**: [list]
### Query
[SQL code block with comments]
### What This Returns
[Description of the output: columns, rows, expected result shape]
### Assumptions
- [Schema assumptions made]
- [Business logic assumptions]
### Notes
- [Performance considerations for large datasets]
- [Edge cases handled or flagged]
Offer: