Analyzing Business

by mthangtr

data

Analyzes business metrics, KPIs, revenue, and growth patterns for BookInk. Use for cohort analysis, unit economics, investor reporting, and data-driven decisions. Triggers on "business metrics", "KPIs", "revenue analysis", "cohort".

Skill Details


name: analyzing-business description: Analyzes business metrics, KPIs, revenue, and growth patterns for BookInk. Use for cohort analysis, unit economics, investor reporting, and data-driven decisions. Triggers on "business metrics", "KPIs", "revenue analysis", "cohort".

Business Analysis for BookInk

Transforms BookInk data into actionable insights for growth decisions.

BookInk Business Model Context

  • Revenue: Subscription-based for shop owners
  • Key Entities: Shops, Bookings, Services, Reviews
  • Growth Metrics: New shops, booking volume, customer retention

Quick Metrics Queries

Use mcp__supabase__execute_sql for all queries:

Shop Growth

SELECT 
    DATE_TRUNC('month', created_at) as month,
    COUNT(*) as new_shops,
    COUNT(*) FILTER (WHERE created_at >= NOW() - INTERVAL '30 days') as last_30d
FROM shops
GROUP BY DATE_TRUNC('month', created_at)
ORDER BY month DESC;

Booking Volume

SELECT 
    DATE_TRUNC('week', created_at) as week,
    COUNT(*) as total_bookings,
    COUNT(*) FILTER (WHERE status = 'completed') as completed,
    COUNT(*) FILTER (WHERE status = 'cancelled') as cancelled,
    ROUND(COUNT(*) FILTER (WHERE status = 'completed') * 100.0 / NULLIF(COUNT(*), 0), 1) as completion_rate
FROM bookings
GROUP BY DATE_TRUNC('week', created_at)
ORDER BY week DESC
LIMIT 12;

Revenue per Shop (if pricing exists)

SELECT 
    s.name as shop_name,
    COUNT(b.id) as total_bookings,
    SUM(sv.price) as total_revenue,
    AVG(sv.price) as avg_booking_value
FROM shops s
LEFT JOIN bookings b ON s.id = b.shop_id AND b.status = 'completed'
LEFT JOIN services sv ON b.service_id = sv.id
GROUP BY s.id, s.name
ORDER BY total_revenue DESC NULLS LAST;

Service Popularity

SELECT 
    sv.name as service_name,
    s.name as shop_name,
    COUNT(b.id) as times_booked,
    sv.price,
    sv.duration_minutes
FROM services sv
JOIN shops s ON sv.shop_id = s.id
LEFT JOIN bookings b ON sv.id = b.service_id
WHERE sv.is_active = true
GROUP BY sv.id, sv.name, s.name, sv.price, sv.duration_minutes
ORDER BY times_booked DESC;

Key Performance Indicators

For BookInk MVP

KPI Query Focus Target
Active Shops Shops with bookings in last 30 days Growth
Booking Conversion Completed / Total bookings >80%
Avg Bookings/Shop Total bookings / Active shops Engagement
Review Rate Reviews / Completed bookings >20%
Repeat Customers Customers with 2+ bookings Retention

Cohort Analysis Template

-- Shop activation cohort
WITH shop_cohorts AS (
    SELECT 
        id as shop_id,
        DATE_TRUNC('month', created_at) as cohort_month
    FROM shops
),
monthly_activity AS (
    SELECT 
        b.shop_id,
        DATE_TRUNC('month', b.created_at) as activity_month
    FROM bookings b
    GROUP BY b.shop_id, DATE_TRUNC('month', b.created_at)
)
SELECT 
    sc.cohort_month,
    COUNT(DISTINCT sc.shop_id) as cohort_size,
    ma.activity_month,
    COUNT(DISTINCT ma.shop_id) as active_shops,
    ROUND(COUNT(DISTINCT ma.shop_id) * 100.0 / COUNT(DISTINCT sc.shop_id), 1) as retention_pct
FROM shop_cohorts sc
LEFT JOIN monthly_activity ma ON sc.shop_id = ma.shop_id
GROUP BY sc.cohort_month, ma.activity_month
ORDER BY sc.cohort_month, ma.activity_month;

Unit Economics (Future)

When monetization is implemented:

CAC = Marketing Spend / New Paying Shops
LTV = ARPU * (1 / Monthly Churn Rate)
Payback Period = CAC / Monthly Revenue per Shop
Target: LTV:CAC > 3:1

Report Template

# BookInk Business Report - [Date]

## Executive Summary
- Total Shops: X (±Y% vs last month)
- Total Bookings: X (±Y% vs last month)
- Completion Rate: X%

## Growth Metrics
| Metric | This Month | Last Month | Change |
|--------|------------|------------|--------|
| New Shops | X | Y | ±Z% |
| Bookings | X | Y | ±Z% |
| Active Shops | X | Y | ±Z% |

## Top Performing Shops
[Table of shops by booking volume]

## Insights & Recommendations
1. [Key insight with supporting data]
2. [Actionable recommendation]

Alert Thresholds

Monitor and flag:

  • Weekly bookings drop >20%
  • Cancellation rate >25%
  • New shop signups stall
  • Average bookings per shop declining

Related Skills

Xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

data

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Analyzing Financial Statements

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

data

Data Storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

data

Kpi Dashboard Design

Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.

designdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Sql Optimization Patterns

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

designdata

Anndata

This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.

arttooldata

Xlsx

Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.

tooldata

Skill Information

Category:Data
Last Updated:1/15/2026