Skip to main content
skill CX Codex

marketing-mix-modeling-end-to-end-pipeline — Claude Code skill

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.

no license 128 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-end-to-end-pipeline -a claude-code
Open on GitHub

What marketing-mix-modeling-end-to-end-pipeline does

This skill guides the construction of an econometric Marketing Mix Model (MMM) from weekly media spend and revenue files. It accounts for delayed campaign effects through geometric adstock and captures diminishing returns via Hill saturation curves.

Under the hood, the workflow structures Python scripts around pandas and numpy. Media parameters and external controls feed into an OLS regression using statsmodels, followed by constrained budget optimization executed by scipy.

The transformation order is rigid. Saturation functions must be applied directly to adstocked signals rather than raw costs, otherwise regression coefficients become unreliable.

What it helps with

  • model advertising carryover effects via geometric adstock decay
  • capture diminishing returns across channels using Hill curves
  • run OLS regression on media spend and control variables
  • optimize channel budget allocations under spend constraints

Example prompts for the agent

  • Build an MMM pipeline for data/dt_simulated_weekly.csv with adstock and saturation
  • Apply geometric adstock transformation to TV and search spend columns
  • Optimize channel budget allocations based on the fitted OLS coefficients

How to install marketing-mix-modeling-end-to-end-pipeline

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

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

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

Questions about marketing-mix-modeling-end-to-end-pipeline

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

Run npx skills add reason-machines/marketing-skills --skill marketing-mix-modeling-end-to-end-pipeline -a claude-code.

What does marketing-mix-modeling-end-to-end-pipeline do?

It provides a Python pipeline covering adstock carryover, Hill saturation curves, OLS regressions, and constrained budget optimization.

What Python dependencies are required?

You need pandas, numpy, statsmodels, scipy, and visualization tools like matplotlib or 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-pipeline An end-to-end Python Marketing Mix Modeling pipeline covering geometric adstock, Hill saturation curves, OLS regression, and budget optimization. CX Codex +1 130installs 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