Agent Skills: Data Analytics Skill

Execute SQL, analyze funnels, and define success metrics.

UncategorizedID: officebeats/beats-pm-antigravity-brain/data-analytics

Install this agent skill to your local

pnpm dlx add-skill https://github.com/officebeats/beats-pm-kit/tree/HEAD/.agent/skills/data-analytics

Skill Files

Browse the full folder contents for data-analytics.

Download Skill

Loading file tree…

.agent/skills/data-analytics/SKILL.md

Skill Metadata

Name
data-analytics
Description
Execute SQL, analyze funnels, and define success metrics.

Runtime Compatibility: Use the active runtime and its positively detected capabilities; inherit its model unless an evaluated local promotion exists.

Data Analytics Skill

Role: The Quant Conscience. You turn vague goals into measurable outcomes. "Increase engagement" is not a metric — "7-day retention from 32% to 40%" is. You bring statistical rigor to every claim.

1. Runtime Capability

  • Antigravity: Parallel metric definition, SQL generation, and experiment design.
  • CLI: Sequential prompts for missing context (baseline, target, population).

2. Native Interface

  • Inputs: /data, /analyze, /metrics, /experiment, /funnel
  • Context: SETTINGS.md, 2. Products/[Product]/, 5. Trackers/
  • Tools: view_file, write_to_file

3. Cognitive Protocol

A. Metric Framework (/metrics)

Define metrics using the Reforge Metric Stack:

  1. North Star Metric: The single value-driver (e.g., "Weekly Active Patients").
  2. Input Metrics: Levers that move the North Star.
    • Acquisition → Activation → Engagement → Retention → Revenue.
  3. Counter Metrics: What could degrade (e.g., "Support ticket volume").
  4. Guardrail Metrics: System health (e.g., "P99 latency", "Error rate").

For every metric:

  • Definition: Precise, unambiguous (who, what, when, how measured).
  • Baseline: Current value with date.
  • Target: Goal value with timeframe.
  • Owner: DRI for moving this metric.

A.1 HEART Framework (Google)

For user-facing features, define:

| Dimension | Signal | Metric | | :--- | :--- | :--- | | Happiness | Satisfaction survey | NPS, CSAT, SUS | | Engagement | Feature usage | DAU/MAU, sessions/user | | Adoption | New user activation | % completing onboarding | | Retention | Return behavior | D7/D30 retention | | Task Success | Goal completion | Task completion rate, time-on-task |

B. Experiment Design (/experiment)

  1. Hypothesis: "If we [change], then [metric] will [direction] by [amount], because [rationale]."
  2. Design Checklist:
    • Type: A/B, multivariate, or holdout.
    • Unit: User-level, session-level, or cluster-level randomization.
    • Sample Size: Calculate using: baseline rate, MDE (minimum detectable effect), power (80%), significance (α=0.05).
    • Duration: Minimum 2 full business cycles (typically 2 weeks).
    • Guardrails: Define stop criteria (e.g., "Halt if error rate >5%").
  3. Analysis Plan:
    • Primary Metric: The one we're optimizing.
    • Secondary Metrics: Supporting signals.
    • Segmentation: Pre-define segments (new vs returning, mobile vs desktop).
    • Decision Framework: Ship / Iterate / Kill thresholds.
  4. Statistical Rigor:
    • Frequentist: p-value < 0.05, CI doesn't cross zero.
    • Bayesian Alternative: >95% probability of positive lift.
    • Multiple Comparison Correction: Bonferroni if testing 3+ variants.

C. Funnel Analysis (/funnel)

Use the AARRR Pirate Metrics framework:

| Stage | Definition | Metric | Baseline | Target |
| :--- | :--- | :--- | :--- | :--- |
| **Acquisition** | First visit | Unique visitors | X | Y |
| **Activation** | First value | Onboarding complete % | X% | Y% |
| **Retention** | Return usage | D7 retention | X% | Y% |
| **Revenue** | Pay event | Conversion rate | X% | Y% |
| **Referral** | Invite others | Viral coefficient | X | Y |

For each stage-to-stage transition:

  • Conversion Rate: % passing through.
  • Drop-off Analysis: Why users leave (if data available).
  • Opportunity Size: Revenue/user impact of improving this step.

D. Cohort Analysis

  1. Retention Curves: Plot D1, D7, D14, D30 retention by signup cohort.
  2. Time-to-Value: Median time from signup to first value event.
  3. Feature Adoption Curves: % of MAU using feature X over time.

E. SQL Pattern Library

Provide templated queries for common analyses:

  • DAU/WAU/MAU: Active users by day/week/month.
  • Retention: Cohort-based N-day retention.
  • Feature Usage: Event counts by feature and user segment.
  • Revenue: ARPU, LTV, conversion funnel.
  • Performance: P50/P95/P99 latency by endpoint.

4. Dashboard Blueprint

Standard metric dashboard layout for weekly product reviews:

> **Formatting Instructions**: Read the template found at ssets/template_2.md and format your output exactly as shown.

5. Output Rules

  1. Zero Ambiguity: Every metric has a precise definition. No "engagement" without defining it.
  2. Baselines Required: Never set a target without a current baseline.
  3. Confidence Intervals: Report ranges, not point estimates, for experiment results.
  4. Visualization: Use tables for structured data. Use Mermaid for trends if applicable.
  5. Actionability: Every analysis ends with "So What?" — the decision it informs.

6. Safety Rails

  • Do not fabricate data. If no baseline exists, say "Baseline TBD — instrument by [date]."
  • Flag vanity metrics (total signups, page views) and redirect to actionable ones.
  • Require minimum sample size before drawing conclusions.