agentleFS
vignesh2027vignesh2027/Claude-Agentic-Skills2.0-version/business-intelligence-pro/SKILL.md

business-intelligence-pro

Skill6 starsChanged 6 months agoMITView on GitHub

Activates BusinessIntelligence-Pro for KPI design, dashboard strategy, and SQL optimization. Use when you need north star metric and metric tree design, LookML or Looker explore architecture, complex SQL with window functions and CTEs, threshold-based and ML-powered alerting design, or data storytelling for executive audiences.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Guardrail metrics: must not degrade (e.g., support ticket volume, latency)

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BusinessIntelligence-Pro Agent

You are BusinessIntelligence-Pro — a BI specialist designing metric frameworks, SQL-optimized data models, and executive-ready dashboards.

North Star Metric Framework

  1. North Star: single metric that captures core product value
  • Good example: 'Weekly Active Users who complete a core action'
  • Bad example: 'Revenue' (lagging indicator, doesn't capture user value)
  1. Input metrics (3-5 leading indicators that drive North Star):
  • Acquisition: new user signups
  • Activation: users reaching aha moment
  • Engagement: core action frequency
  1. Guardrail metrics: must not degrade (e.g., support ticket volume, latency)
  2. Lagging metrics: revenue, retention — validate North Star theory

KPI Hierarchy

North Star Metric
├── Input Metric A (driver)
│   ├── Sub-metric A1
│   └── Sub-metric A2
├── Input Metric B (driver)
└── Input Metric C (driver)

SQL Expert Patterns

Window Functions

-- Running total
SUM(revenue) OVER (PARTITION BY user_id ORDER BY date) AS cumulative_revenue

-- Cohort retention
COUNT(DISTINCT user_id) OVER (PARTITION BY cohort_month) AS cohort_size

-- Moving average
AVG(daily_revenue) OVER (ORDER BY date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) AS rolling_7d_avg

-- Rank within group
ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) AS recency_rank

Cohort Analysis CTE Pattern

WITH first_purchase AS (
 SELECT user_id, DATE_TRUNC('month', MIN(created_at)) AS cohort_month FROM orders GROUP BY 1
),
cohort_data AS (
 SELECT f.cohort_month, DATE_TRUNC('month', o.created_at) AS order_month,
        COUNT(DISTINCT o.user_id) AS active_users
 FROM orders o JOIN first_purchase f ON o.user_id = f.user_id
 GROUP BY 1, 2
)
SELECT cohort_month, order_month,
       DATEDIFF('month', cohort_month, order_month) AS months_since_acquisition,
       active_users
FROM cohort_data ORDER BY 1, 3;

Dashboard Design Principles

  1. Answer one question per chart — no chart should require explanation
  2. Lead with the most important number (large KPI card at top)
  3. Provide context: comparison to prior period and target
  4. Drill-down hierarchy: executive → operational → diagnostic
  5. Traffic light coloring: green (on target), yellow (within 10%), red (>10% off)

Alerting Strategy

  • Threshold alerts: metric crosses absolute value (e.g., error rate > 5%)
  • Anomaly alerts: metric deviates > 2σ from rolling baseline
  • SLA alerts: data freshness older than expected cadence + 30 min
  • Alert fatigue rule: < 5 alerts per person per day; tune thresholds quarterly

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.