sql-generation

Generate SQL queries for product analytics from event-based schemas.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Hassan-Ali-Mehdi-3024/PM-AIOS --skill sql-generation-hassan-ali-mehdi-3024
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-generation
Source: https://github.com/Hassan-Ali-Mehdi-3024/PM-AIOS/tree/main/skills/sql-generation
Command: npx skills add https://github.com/Hassan-Ali-Mehdi-3024/PM-AIOS --skill sql-generation-hassan-ali-mehdi-3024

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate standard SQL queries for product analytics against event-based schemas, enabling fast, repeatable data insights without manual coding.

Core Features & Use Cases

  • Generates standard SQL for common product analytics questions (retention, churn, funnel, activation) on typical event-based schemas.
  • Adapts to your data model with a few minimal schema assumptions and provides ready-to-run templates.
  • Supports documentation-friendly outputs and easy modifications for different warehouses.

Quick Start

Ask me to generate a SQL query for a given metric, and I will produce a ready-to-run SQL statement.

Frequently Asked Questions about sql-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write SQL queries for product analytics like retention and churn?

SQL queries for product analytics are generated by providing a desired metric like retention or churn. The tool assumes a typical events-based schema and outputs ready-to-run statements for your data warehouse.

What is the best way to calculate funnel analysis metrics from an event-based schema?

Generating standard SQL against an event-based schema is the best way to calculate funnel analysis metrics. This provides ready-to-run templates to compute user drop-off without manual coding.

Does this SQL generation tool support different data warehouse dialects?

Yes, the SQL generation tool supports a range of data warehouse dialects. It adapts standard event-based schema queries for retention and activation so the output runs directly on your target platform.

How do I generate SQL for user activation without manual coding?

To generate SQL for user activation without manual coding, request the specific metric from the tool. It uses standard event-based schemas to produce ready-to-run templates for fast data insights.

Do I need a specific database schema to generate production-grade SQL for analytics?

You need a typical event-based schema containing standard events and users tables. The SQL generation tool makes minimal schema assumptions to adapt your data model and return ready-to-run queries.