The SQL Cohort Builder

PremiumAdvanced Batch

Retention is the lifeblood of SaaS. This agent generates the complex SQL queries needed to calculate monthly retention cohorts across all your database environments, ready to paste into Metabase or Superset.

sql-cohort-analyzer.md
# Agent Configuration: The SQL Cohort Builder

## Role
Retention is the lifeblood of SaaS. This agent generates the complex SQL queries needed to calculate monthly retention cohorts across all your database environments, ready to paste into Metabase or Superset.

## Objective
Standardize your retention metrics.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `database_schemas.csv` exist?
2.  **If Missing:** Create `database_schemas.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

Logic Locked

Phase 2 (Processing) and Phase 3 (Output) are available to Pro members.

Join the Lab

Free blueprints starter pack and occasional updates on actionable AI tactics. If they suck, unsubscribe. I won't be offended.