Agent skill

Modeling Strategy Guide

by wentorai in wentorai/research-plugins

Strategic statistical modeling, experimentation, and causal inference

MITAuto-check passedResearch & Science

Install Modeling Strategy Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill modeling-strategy-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins modeling-strategy-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analysis/statistics/modeling-strategy-guide .claude/skills/modeling-strategy-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
modeling-strategy-guide
GitHub stars
298
Used in
1 other repo
Token cost
~2.2k tokens
SKILL.md length
524 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Strategic statistical modeling, experimentation, and causal inference

  • Works in 7 steps: Primary hypothesis: One clearly stated… → Primary outcome metric: One… → Sample size justification: Power… → …
  • Tasks that involve A/B testing
  • SKILL.md covers Overview, Strategic Modeling Decisions, Causal Inference Methods and Experimentation Design, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Modeling Strategy Guide is an agent skill from wentorai/research-plugins. Strategic statistical modeling, experimentation, and causal inference

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering A/B testing, Econometrics and empirical research and Machine learning. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve A/B testing
  • Tasks that involve Econometrics and empirical research
  • Tasks that involve Machine learning

Example prompts

  • “/modeling-strategy-guide”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Primary hypothesis: One clearly stated prediction.
  2. Primary outcome metric: One pre-specified metric for the main test.
  3. Sample size justification: Power calculation with assumptions.
  4. Randomization procedure: How units are assigned to conditions.
  5. Analysis method: Exact statistical test and model specification.
  6. Multiple comparisons: How secondary analyses will be corrected.
  7. Stopping rules: Conditions for early termination (if applicable).

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Modeling Strategy Guide loads about 2.2k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 524 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 524 words, ~2,187 tokens.

Download SKILL.mdSave it as .claude/skills/modeling-strategy-guide/SKILL.md (or your agent's skills folder).
name
modeling-strategy-guide
description
Strategic statistical modeling, experimentation, and causal inference

Modeling Strategy Guide

A skill for strategic statistical modeling applied to academic research. Covers advanced modeling decisions, experimental design, causal inference, feature engineering, and the critical thinking required to move from data to defensible conclusions.

Overview

Senior data scientists distinguish themselves not by knowing more algorithms but by asking better questions, designing cleaner experiments, and being honest about what the data can and cannot tell them. This skill translates that professional discipline into a research context, helping academics apply modern data science practices to their empirical work. It covers the strategic decisions that matter most: when to use simple models versus complex ones, how to establish causality rather than mere correlation, and how to communicate uncertainty honestly.

The skill is particularly useful for researchers working with observational data who need causal inference techniques, those designing randomized experiments who need proper power calculations and analysis plans, and anyone building predictive models who needs to avoid common overfitting and leakage pitfalls.

Strategic Modeling Decisions

Model Selection Philosophy
Decision Framework:
1. Start with the simplest model that could answer your question
2. Add complexity only when diagnostics reveal inadequacy
3. Prefer interpretable models unless prediction accuracy is the sole goal
4. Always have a baseline (mean, majority class, last observation)

Model Complexity Ladder:
  Level 1: Descriptive statistics, cross-tabulations
  Level 2: Linear/logistic regression
  Level 3: Regularized regression (Lasso, Ridge, Elastic Net)
  Level 4: Tree ensembles (Random Forest, Gradient Boosting)
  Level 5: Deep learning (only with sufficient data and clear justification)
Feature Engineering Principles
python
import pandas as pd
import numpy as np

def engineer_features(df: pd.DataFrame, config: dict) -> pd.DataFrame:
    """
    Apply systematic feature engineering based on domain knowledge.

    config example:
    {
        'log_transform': ['income', 'citations'],
        'interactions': [('experience', 'education')],
        'polynomial': {'age': 2},
        'time_features': 'date_column',
        'lag_features': {'metric': [1, 7, 30]}
    }
    """
    df = df.copy()

    # Log transforms for right-skewed variables
    for col in config.get('log_transform', []):
        df[f'{col}_log'] = np.log1p(df[col])

    # Interaction terms
    for col_a, col_b in config.get('interactions', []):
        df[f'{col_a}_x_{col_b}'] = df[col_a] * df[col_b]

    # Polynomial features
    for col, degree in config.get('polynomial', {}).items():
        for d in range(2, degree + 1):
            df[f'{col}_pow{d}'] = df[col] ** d

    # Time-based features
    if 'time_features' in config:
        time_col = config['time_features']
        df[time_col] = pd.to_datetime(df[time_col])
        df[f'{time_col}_month'] = df[time_col].dt.month
        df[f'{time_col}_dayofweek'] = df[time_col].dt.dayofweek
        df[f'{time_col}_quarter'] = df[time_col].dt.quarter

    return df

Causal Inference Methods

Beyond Correlation
MethodWhen to UseKey Assumption
Randomized experimentYou can randomly assign treatmentProper randomization, no attrition
Difference-in-differencesPolicy change affects one groupParallel trends pre-treatment
Regression discontinuityTreatment assigned by cutoffNo manipulation near cutoff
Instrumental variablesEndogeneity presentValid instrument (relevance + exclusion)
Propensity score matchingObservational data, many confoundersNo unobserved confounders
Synthetic controlSingle treated unit, many controlsGood pre-treatment fit
Propensity Score Matching
python
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import NearestNeighbors

def propensity_score_match(df, treatment_col, covariates, caliper=0.05):
    """
    Match treated and control units based on propensity scores.
    """
    # Estimate propensity scores
    X = df[covariates].values
    y = df[treatment_col].values

    lr = LogisticRegression(max_iter=1000, random_state=42)
    lr.fit(X, y)
    df['pscore'] = lr.predict_proba(X)[:, 1]

    # Match using nearest neighbor within caliper
    treated = df[df[treatment_col] == 1]
    control = df[df[treatment_col] == 0]

    nn = NearestNeighbors(n_neighbors=1, metric='euclidean')
    nn.fit(control[['pscore']].values)

    distances, indices = nn.kneighbors(treated[['pscore']].values)

    # Apply caliper
    valid = distances.flatten() < caliper
    matched_treated = treated[valid].index.tolist()
    matched_control = control.iloc[indices.flatten()[valid]].index.tolist()

    return {
        'matched_treated': matched_treated,
        'matched_control': matched_control,
        'n_matched': sum(valid),
        'n_unmatched': sum(~valid),
        'balance_check': 'Run standardized mean differences on covariates'
    }

Experimentation Design

A/B Testing for Research
python
from scipy import stats
import numpy as np

def design_experiment(baseline_rate, mde, alpha=0.05, power=0.80):
    """
    Calculate required sample size for a two-proportion z-test.

    Args:
        baseline_rate: Current conversion/success rate
        mde: Minimum detectable effect (absolute change)
        alpha: Significance level
        power: Statistical power
    """
    from statsmodels.stats.power import NormalIndPower
    effect_size = mde / np.sqrt(baseline_rate * (1 - baseline_rate))
    analysis = NormalIndPower()
    n = analysis.solve_power(
        effect_size=effect_size, alpha=alpha, power=power, ratio=1.0
    )
    return {
        'sample_size_per_group': int(np.ceil(n)),
        'total_sample_size': int(np.ceil(n)) * 2,
        'baseline_rate': baseline_rate,
        'minimum_detectable_effect': mde,
        'alpha': alpha,
        'power': power
    }
Pre-Analysis Plan Template

Before running any experiment, document:

  1. Primary hypothesis: One clearly stated prediction.
  2. Primary outcome metric: One pre-specified metric for the main test.
  3. Sample size justification: Power calculation with assumptions.
  4. Randomization procedure: How units are assigned to conditions.
  5. Analysis method: Exact statistical test and model specification.
  6. Multiple comparisons: How secondary analyses will be corrected.
  7. Stopping rules: Conditions for early termination (if applicable).
Show full SKILL.md (208 more words)Show less

Model Validation

Cross-Validation Strategy
Data TypeRecommended CVRationale
i.i.d. dataStratified K-fold (K=5 or 10)Preserves class balance
Time seriesTime-series split (expanding window)Prevents look-ahead bias
Grouped dataGroup K-foldPrevents data leakage across groups
Small dataset (n<200)Leave-one-out or repeated K-foldMaximizes training data
Spatial dataSpatial blockingPrevents spatial autocorrelation leakage
Leakage Detection Checklist
  • No future information used as features (check timestamps)
  • No target-derived features (e.g., group means computed on full data)
  • Train/test split performed before any preprocessing
  • Cross-validation folds respect group structure
  • Feature selection performed inside CV loop, not before
  • If accuracy seems too good to be true, it probably is

Communication and Reporting

The Senior DS Reporting Standard
  • Lead with the business/research question, not the algorithm.
  • Report confidence intervals, not just point estimates.
  • Show what you tried that did not work (negative results matter).
  • Quantify uncertainty: "The model predicts X with a 95% interval of [a, b]."
  • Be explicit about limitations and assumptions.
  • Use visualizations that a domain expert (not a statistician) can interpret.

References

  • Angrist, J. D. & Pischke, J.-S. (2009). Mostly Harmless Econometrics. Princeton University Press.
  • Cunningham, S. (2021). Causal Inference: The Mixtape. Yale University Press.
  • Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning (2nd ed.). Springer.

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/analysis/statistics/modeling-strategy-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Modeling Strategy Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Modeling Strategy Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Modeling Strategy Guide this skillwentorai/research-plugins2981 repos~2.2kAutomated safety check: PassMIT
Senior Data Scientistborghei/Claude-Skills886—~1.7kAutomated safety check: PassMIT
Ols Regressionbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~1.2kAutomated safety check: PassCustom licence
Dowhybrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~9.1kAutomated safety check: PassMIT
Ectj Literature Positioningbrycewang-stanford/Awesome-Journal-Skills1.2k—~1.2kAutomated safety check: PassMIT
ML Causalbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~4kAutomated safety check: PassCustom licence

Similar skills

  • Senior Data Scientist

    borghei/Claude-Skills

    A skill your agent uses when the user asks to "design an experiment", "build a predictive model", "run A/B test analysis", "perform causal inference", "engineer features", "evaluate model…

    886 GitHub stars~1.7k tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • Ols Regression

    brycewang-stanford/Auto-Empirical-Research-Skills

    Econometrics skill for OLS regression and linear models. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.5k GitHub stars~1.2k tokensUpdated 4 days ago
    Research & ScienceAuto-check passed
  • Dowhy

    brycewang-stanford/Auto-Empirical-Research-Skills

    Causal inference framework for answering "does X cause Y?" beyond correlation.

    4.5k GitHub stars~9.1k tokensUpdated 4 days ago
    Research & ScienceAuto-check passed
  • Ectj Literature Positioning

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when positioning a The Econometrics Journal (EctJ) paper against econometric theory, applied econometrics, statistics, and machine-learning literatures while keeping the…

    1.2k GitHub stars~1.2k tokensUpdated 12 days ago
    Research & ScienceAuto-check passed
  • ML Causal

    brycewang-stanford/Auto-Empirical-Research-Skills

    Econometrics skill for machine learning methods in causal inference.

    4.5k GitHub stars~4k tokensUpdated 4 days ago
    Data & AnalyticsAuto-check passed
  • ML Experiment Evaluation

    hashgraph-online/awesome-codex-plugins

    Plan evaluation strategies for machine-learning product changes.

    1.3k GitHub stars~801 tokensUpdated today
    Data & AnalyticsAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Modeling Strategy Guide

What does Modeling Strategy Guide do?

Strategic statistical modeling, experimentation, and causal inference. Modeling Strategy Guide is an agent skill from wentorai/research-plugins.

When should I use Modeling Strategy Guide?

Modeling Strategy Guide fits situations like: tasks that involve A/B testing; tasks that involve Econometrics and empirical research; tasks that involve Machine learning.

How do I install Modeling Strategy Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill modeling-strategy-guide -a claude-code`. Or copy the skill folder (skills/analysis/statistics/modeling-strategy-guide in wentorai/research-plugins) into .claude/skills/modeling-strategy-guide in your project. Claude Code loads it when a task matches its description.

How do I install Modeling Strategy Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill modeling-strategy-guide -a codex`. Or copy the skill folder (skills/analysis/statistics/modeling-strategy-guide in wentorai/research-plugins) into .agents/skills/modeling-strategy-guide in your project. Codex loads it when a task matches its description.

Can I use Modeling Strategy Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill modeling-strategy-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/modeling-strategy-guide, .gemini/skills/modeling-strategy-guide, .github/skills/modeling-strategy-guide and .opencode/skills/modeling-strategy-guide in your project.

What does Modeling Strategy Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Modeling Strategy Guide is instructions for the agent only. Our summary lists: Python 3.

Does Modeling Strategy Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Modeling Strategy Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Modeling Strategy Guide use?

Modeling Strategy Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Modeling Strategy Guide use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Modeling Strategy Guide?

Skills that share tags, products or a category with Modeling Strategy Guide: Senior Data Scientist (borghei/Claude-Skills, 886 stars), Ols Regression (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), Dowhy (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars) and Ectj Literature Positioning (brycewang-stanford/Awesome-Journal-Skills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Modeling Strategy Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.