agentleFS
rade-nugrohorade-nugroho/Agentic-Enteprises-Skill/predictive-analytics/SKILL.md

predictive-analytics

Skill9 starsChanged 7 months agoMITView on GitHub

Guides applied predictive analytics for business—target and leakage framing, tabular feature engineering, regression and classification models (baselines, boosting, regularized linear), validation splits and metrics, calibration and cost-sensitive thresholds, practitioner explainability (importance, SHAP), drift monitoring concepts, and uncertainty comms. Covers churn, demand, fraud, propensity, risk scores—not actuarial reserving. Use for "predictive analytics", "build a predictive model", "propensity model", "churn prediction", "demand forecast model", "classification model", "feature engineering", "model validation", "predict customer behavior", "risk score model", or "predictive modeling workflow". Not for MLOps (ml-infrastructure-engineer-safeguards), DL research (ml-research-engineer-safeguards), actuarial reserving (actuarial-analyst), BI only (data-visualization), warehouse/dbt only (data-warehouse-engineer, analytics-data-engineer), or A/B tests (ab-testing-engineer).

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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:

    Run validation: holdout, cross-validation, or time-based splits with metrics aligned to the decision

    line 25
  2. Distinctive:

    Document label window and feature cutoff (what is knowable at scoring time)

    line 62
  3. Distinctive:

    Check base rate, class imbalance, and whether rules/heuristics already suffice

    line 63
  4. Distinctive:

    Document feature definitions, refresh cadence, and upstream dependencies

    line 73
  5. Distinctive:

    Use cross-validation or rolling-origin evaluation for time-ordered problems

    line 83
  6. Distinctive:

    Use naive and seasonal baselines.

    line 100
  7. Distinctive:

    Document seasonality, promotions, and structural breaks that limit extrapolation

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Predictive Analytics

When to Use

  • Define the prediction target, unit of analysis, horizon, and success criteria before modeling
  • Audit leakage, label timing, and train/validation design for tabular or time-ordered data
  • Engineer and select features for churn, propensity, fraud, demand, or risk scoring use cases
  • Choose model families and baselines (linear, tree ensembles, gradient boosting) matched to data size and interpretability needs
  • Run validation: holdout, cross-validation, or time-based splits with metrics aligned to the decision
  • Tune calibration, thresholds, and cost-sensitive operating points for classification and scores
  • Explain models at practitioner level (importance, partial dependence, SHAP-style intuition—not full XAI research)
  • Plan conceptual post-deployment monitoring: drift signals, retrain triggers, and limitation language for stakeholders

When NOT to Use

  • MLOps platform build—feature stores, model registry, K8s serving, CI for training pipelines → ml-infrastructure-engineer-safeguards, ml-ops-engineer (if installed)
  • Deep learning research, LLM fine-tuning, or novel architecture search → ml-research-engineer-safeguards, ai-engineer
  • Actuarial reserving, loss development, rate indication, or regulatory pricing math → actuarial-analyst, advanced-short-term-actuarial-mathematics, actuary
  • Dashboard-only KPI layout, chart design, or viz specs without modeling → data-visualization, bi-analyst
  • Warehouse/dbt dimensional modeling, mart SQL, or pipeline idempotency only → data-warehouse-engineer, analytics-data-engineer
  • A/B test design, power, randomization, and experiment readouts → ab-testing-engineer
  • Markets/finance factor research, backtests, and alpha hygiene → quantitative-researcher
  • Cloud cost forecasting and FinOps allocation → finops-analyst

Related skills

NeedSkill
Broader ML lifecycle, causal inference, heavy MLOps detaildata-scientist
Factor research, backtests, market time seriesquantitative-researcher
dbt marts, metric layers, analytics pipelinesanalytics-data-engineer
Warehouse modeling, ELT, data quality frameworksdata-warehouse-engineer
Chart type, dashboard layout, honest vizdata-visualization
Experiment design, power, SRM, readoutsab-testing-engineer
Cloud spend models and allocationfinops-analyst
Insurance reserving, pricing, regulatory actuarial workactuarial-analyst
GenAI products, agents, LLM application patternsai-engineer
Training/serving infrastructure and platform guardrailsml-infrastructure-engineer-safeguards

Core Workflows

1. Frame the problem and label

  1. State the business decision the score or forecast will drive
  2. Define target (binary, multiclass, continuous), horizon, and grain (user, account, SKU, region)
  3. Document label window and feature cutoff (what is knowable at scoring time)
  4. Check base rate, class imbalance, and whether rules/heuristics already suffice
  5. List constraints: latency, interpretability, fairness review, regulatory context

See references/problem_framing_and_data_prep.md.

2. Prepare data and features

  1. Profile missingness, cardinality, outliers, and temporal coverage
  2. Build point-in-time feature tables; never join future outcomes into training rows
  3. Encode categoricals, scale numerics, and handle high-cardinality keys deliberately
  4. Document feature definitions, refresh cadence, and upstream dependencies
  5. Split data with the right strategy (random, grouped, or time-based)

See references/problem_framing_and_data_prep.md.

3. Model, validate, and compare

  1. Fit baselines first (majority class, linear/logistic, naive forecast)
  2. Iterate tree ensembles or regularized models; avoid unnecessary complexity
  3. Select metrics tied to the decision (PR-AUC for rare events, MAPE vs WAPE for demand, etc.)
  4. Use cross-validation or rolling-origin evaluation for time-ordered problems
  5. Compare models on holdout data never used for tuning

See references/modeling_and_validation.md.

4. Classification, propensity, and scores

  1. Calibrate probabilities when ranks are not enough for thresholds or expected value
  2. Set thresholds using cost matrices, capacity, or top-decile lift—not default 0.5
  3. Report lift, capture, and stability by segment and time
  4. Separate model quality from policy (who gets contacted, approved, or reviewed)

See references/classification_and_propensity.md.

5. Forecasting and time series (when applicable)

  1. Choose granularity (daily/weekly) and horizon aligned to planning cycles
  2. Use naive and seasonal baselines; add exogenous features only when available at forecast time
  3. Validate with rolling or blocked time splits; report interval or quantile forecasts when decisions need range
  4. Document seasonality, promotions, and structural breaks that limit extrapolation

See references/forecasting_and_time_series.md.

6. Deploy, monitor, and communicate

  1. Specify scoring cadence, input schema, and fallback when features are missing
  2. Define monitoring: label delay, score distribution drift, feature drift, and business outcome tracking
  3. Set retrain triggers (calendar, performance decay, population shift)—conceptual triggers only here
  4. Deliver a model card or memo: intended use, limitations, metrics, and what would falsify trust

See references/deployment_monitoring_and_communication.md.

When to load references

TopicReference
Role boundaries and deliverablesreferences/predictive_analytics_scope.md
Target, leakage, unit of analysis, data prepreferences/problem_framing_and_data_prep.md
Model families, splits, metrics, validationreferences/modeling_and_validation.md
Propensity, calibration, thresholds, costsreferences/classification_and_propensity.md
Demand forecast and time-series workflowreferences/forecasting_and_time_series.md
Monitoring, retrain, stakeholder commsreferences/deployment_monitoring_and_communication.md

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.