Skip to main content
skill CX Codex

marketing-mix-modeling-pipeline — Claude Code skill: setup

An end-to-end Python Marketing Mix Modeling pipeline covering geometric adstock, Hill saturation curves, OLS regression, and budget optimization.

no license 130 installs ★ 12 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/marketing-skills --skill marketing-mix-modeling-pipeline -a claude-code
Open on GitHub

What marketing-mix-modeling-pipeline does

This skill sets up a complete Marketing Mix Modeling (MMM) workflow in Python using aggregated historical spend. It computes carryover effects via geometric adstock and accounts for diminishing returns using Hill saturation curves. A statsmodels OLS regression then separates baseline performance from incremental revenue generated by individual media channels.

The project includes Python source modules in src/, exploratory notebooks, and sample budget allocation routines. The mathematical sequence is strict: saturation formulas must run on top of adstocked series, never before them.

Running the code requires Python 3 alongside pandas, numpy, statsmodels, scipy, matplotlib, and seaborn. Since the pipeline processes aggregated weekly numbers, it operates without any user-level tracking.

What it helps with

  • Model carryover advertising effects using geometric adstock decay
  • Capture diminishing returns with Hill saturation functions
  • Estimate channel revenue contribution through OLS regression
  • Reallocate marketing spend to maximize predicted revenue

Example prompts for the agent

  • Build a marketing mix modeling pipeline for weekly media spend
  • Apply geometric adstock and Hill saturation curves to my spend data
  • Fit an OLS regression on transformed channel features and extract coefficients

How to install marketing-mix-modeling-pipeline

1Skills CLI (Vercel)

npx skills add reason-machines/marketing-skills --skill marketing-mix-modeling-pipeline -a claude-code

2Manually: put the files in place

~/.claude/skills/marketing-mix-modeling-pipeline/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/marketing-mix-modeling-pipeline/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about marketing-mix-modeling-pipeline

How to install marketing-mix-modeling-pipeline in Claude Code?

Run npx skills add reason-machines/marketing-skills --skill marketing-mix-modeling-pipeline -a claude-code in your terminal.

Does transformation order matter in this pipeline?

Yes. Geometric adstock must be computed first on raw spend, followed by Hill saturation on the adstocked signal.

What Python dependencies are required?

You will need pandas, numpy, statsmodels, scipy, jupyter, matplotlib, and seaborn.

Similar skills

All skills for Marketing and content →

From the same set79

The whole set →
ai-content-pipeline-automation ai-content-pipeline-automation — a skill for Claude Code, Codex, Cursor, GitHub Copilot, and Gemini CLI that teaches the agent to operate a TypeScript content pipeline — from keyword research to Remotion video rendering. CX Codex +1 547installs marketing-pipeline-automated-content marketing-pipeline-automated-content sets up an automated TypeScript pipeline for research, multi-format drafting, and rendering short videos with Remotion. CX Codex +1 524installs marketing-pipeline-content-automation The marketing-pipeline-content-automation skill links an agent to a content pipeline that researches trends, writes articles, and renders videos or infographics. Use it for repeatable marketing workflows. CX Codex +1 497installs ai-marketing-skills-tom-babb ai-marketing-skills-tom-babb — a set of documented AI workflows for content, branding, distribution, ads, and GEO. Use it when marketing tasks need repeatable agent-guided processes. CX Codex +1 439installs mini-ai-marketing-agency-generator mini-ai-marketing-agency-generator produces starter marketing bundles for small ventures using template-based vanilla JavaScript. Useful for drafting social posts, ad angles, and brand pillars offline. CX Codex +1 286installs mailchimp-marketing-api-toolkit mailchimp-marketing-api-toolkit gives the agent ready Python calls for the Mailchimp Marketing API: audiences, campaigns, A/B tests and welcome automations. CX Codex +1 154installs marketing-mix-modeling-end-to-end-pipeline marketing-mix-modeling-end-to-end-pipeline is a Claude Code skill that builds a Python marketing mix model from weekly spend and revenue, accounting for adstock and saturation. CX Codex +1 128installs n8n-marketing-flows The n8n-marketing-flows skill helps you work with n8n templates for social posts, mention tracking, news digests, and AI content. Use it when you want to build marketing workflows in n8n. CX Codex +1 113installs

Project sponsors

Companies that keep this analytics open