Cross Channel Budget Allocator
Published by saidsirin-lab in paidops
What this skill does
Recommends how to split a total paid-media budget across channels by fitting a diminishing-returns curve per channel and allocating to equalize marginal return, with MER context and optional caps on how far each channel can move. Use whenever the user asks how to split budget across Google, Meta, TikTok, or Snapchat, where an extra (or a cut) dollar should go, how to reallocate spend, or shares channel-level spend/revenue data. Also use proactively when planning a budget or diagnosing over/under
Add Cross Channel Budget Allocator to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "cross-channel-budget-allocator" from https://github.com/saidsirin-lab/paidopsInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/saidsirin-lab/paidops --skill cross-channel-budget-allocatorSkill instructions
Cross-Channel Budget Allocator
When to use
Splitting or reallocating a total budget across channels on marginal-return logic instead of gut or last-click ROAS. NOT for within-channel budget/pacing (see budget-scaling-planner) or for setting targets (see the tROAS/tCPA calibrators).
Required inputs — refuse to proceed without them
- A CSV of channel, spend, revenue observations. For a real diminishing-returns curve, give multiple spend levels per channel (e.g. weekly rows). One spend level per channel → the tool falls back to constant-ROAS and says so.
- A total budget to allocate.
- Optional: a max-shift cap (e.g. 0.3 = don't move any channel more than 30% from its current average) — recommended, because models extrapolate badly.
Method
- Fit revenue = a · spend^b (b ≤ 1) per channel via log-log least squares; fall back to linear when data is too thin.
- Greedily allocate the budget in small increments to the channel with the highest marginal return (dRevenue/dSpend) at its current allocation — equalizing marginal ROAS.
- Report per-channel spend, projected revenue, marginal ROAS, share, and blended MER.
- Run it:
python scripts/allocate.py --csv channel_perf.csv --budget 100000 --max-shift 0.3--jsonfor machine output,--stepsfor granularity.
Guardrails
- A planning model, not truth. Curves are fit from correlational history and extrapolate poorly.
Validate large shifts with an incrementality test (
incrementality-test-designer) before executing. - Recommendations only — it never changes budgets.
- Use
--max-shiftfor anything but exploratory planning; unconstrained allocation can recommend implausible swings from a couple of data points. - Watch the flags: clamped exponents and single-spend-level fallbacks mean "trust this less."
References
references/diminishing-returns.md— the model, its assumptions, and where it breaks.
Files included
- CHANGELOG.md
- references/diminishing-returns.md
- scripts/allocate.py
- scripts/test_allocate.py
- SKILL.md

