agents/monitoring/usage/SKILL.md
Monitor LTX Studio product usage metrics with statistical anomaly detection. Detects data spikes (increases or decreases) in DAU, generations, and token consumption. Use when: (1) daily monitoring and detecting usage anomalies, (2) alerting on segment-specific changes, (3) investigating root causes of engagement shifts.
npx skillsauth add lightricks/ltx-analytics-agents usage-monitorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides autonomous usage monitoring using statistical anomaly detection. It compares yesterday's metrics against the last 10 same-day-of-week data points (e.g., last 10 Mondays) and alerts when values deviate by 2 standard deviations from the mean.
Problem solved: Detect data spikes in usage — both increases and decreases — that indicate significant changes in user behavior, product adoption, feature launches, enterprise churn risk, or engagement shifts. Uses statistical thresholds that adapt to each segment's variance patterns.
Monitor these outcomes autonomously:
Alert logic: |yesterday_value - μ| > 2σ
Where:
Why 2 standard deviations?
Severity levels:
2 < |z| ≤ 33 < |z| ≤ 4.5|z| > 4.5Exceptions:
Before running monitoring, reference:
shared/bq-schema.md — Segmentation CTEs (lines 441-516), table schemashared/metric-standards.md — DAU/WAU/MAU, generation metricsshared/product-context.md — LTX products, user types, business modelshared/event-registry.yaml — Known events per feature, types, statusKey data source: ltx-dwh-prod-processed.web.ltxstudio_agg_user_date
dt (DATE)lt_id, griffin_tier_name, num_tokens_consumed, num_generate_image, num_generate_videoExecute the combined monitoring script:
# Install dependency (one-time)
pip install google-cloud-bigquery
# Monitor yesterday (default)
python3 usage_monitor.py
# Monitor specific date
python3 usage_monitor.py --date yesterday
What the script does:
ARRAY_AGG with window frames to collect last 10 values|z| > 2See: usage_monitor.py for complete SQL query and alerting logic.
When alerts fire:
investigate_root_cause.sqlExample alert output:
⚠️ WARNING ALERTS (2):
• Free - Tokens
Current: 4,497,947 | Mean (μ): 3,068,455 | Std Dev (σ): 426,074
Z-score: 3.36 (|z| > 3σ threshold)
Change: +46.6% from mean
Format findings with:
shared/bq-schema.md (lines 441-516)dt partition column for performanceARRAY_AGG✅ Script executed for target date ✅ Alerts fire with statistical details (mean, stddev, z-score) ✅ Severity levels applied correctly (WARNING/CRITICAL) ✅ Root cause investigation completed for alerts ✅ Findings presented with recommended actions ✅ Enterprise weekend suppression working
development
Adds the analyst layer (segmentation framing, filter/KPI surfacing, LTX-specific definitions, contextual follow-ups) on top of any Data MasterMind data interaction for LTX stakeholders (PMs, marketers, design, leadership). Wraps `get-data` / `validate-data` / `understand-data` / `visualize-data` — dialing intensity from a full guided session (for "look into X", "investigate Y", "do an analysis of …") down to a compressed wrap (for "what's MRR?", "is this number right?"). Output mode (chat-only or HTML artifact) is chosen up front for session-style asks. Always asks about Enterprise / paid non-Enterprise / Free segmentation and Studio-feature tier-gating when relevant. Do NOT use only when the user explicitly opts out ("just give me the number, no extras") or for templated feature dashboards (that's the Hex-based `dashboard-builder`).
testing
Generate LTX Studio sales opportunities report and credit limit alerts. Covers pipeline by rep/product (yesterday + QTD), new PELs/PQLs, future meetings, and enterprise orgs at 80%+ token usage. Use when: sales standup, pipeline review, account health check, or when asked for 'sales numbers' or 'credit alerts'.
data-ai
Generate LTX Studio product daily report with revenue, usage by segment (Enterprise, Pilot, Paying Non-Enterprise, Free), and DoD/DOW-avg comparisons. Use when: daily product standup, executive reporting, or when asked for 'yesterday's product numbers'.
data-ai
Generate LTX Studio marketing & sales daily report with lead gen, spend, PELs/PQLs, sales metrics, and top org usage vs 7-day averages. Use when: daily marketing standup, GTM review, or when asked for 'marketing numbers' or 'lead performance'.