Skip to main content
skill CX Codex

ads-math — Claude Code skill: paid-media math and forecasts

Works out CPA, CPL, CPC, CPM, ROAS, MER, break-even, margin and LTV:CAC. Useful when a budget or forecast needs numbers behind it.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add AgriciDaniel/claude-ads --skill ads-math -a claude-code
Open on GitHub

What ads-math does

The skill runs a calculation in steps. It starts by pinning down which decision you are making, then gathers units, currency, period, tax and refund handling, margin, attribution basis and how uncertain the inputs are. Every figure gets tied back to an operator value or a cited artifact, and the formula is shown.

Before any result appears, it checks denominators, signs, gaps, mismatched windows and unit conversions. Where uncertainty changes the answer, you get a base case plus downside and upside. Platform-attributed revenue, blended business revenue, cash flow and contribution margin stay in separate buckets, so the bases do not get mixed.

Output is machine-readable: inputs, formulas, results, sensitivities and what the numbers imply for the decision. Missing financial inputs are not invented, and division by zero is not papered over. A single-point forecast without its assumptions is not something this skill returns, so come ready to state those assumptions yourself.

What it helps with

  • calculate CPA and CPL for a campaign against targets
  • find the break-even point for a new channel
  • separate ROAS and MER across different revenue bases
  • forecast a quarterly budget in three scenarios
  • model LTV:CAC and contribution margin before launch

Example prompts for the agent

  • Calculate CPA and CPL for this campaign and show the formula and assumptions
  • Find the break-even point for the new channel at a 35% margin
  • Forecast next quarter's budget: base, downside and upside cases

How to install ads-math

1Skills CLI (Vercel)

npx skills add AgriciDaniel/claude-ads --skill ads-math -a claude-code

2Manually: put the files in place

~/.claude/skills/ads-math/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ads-math/

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

Questions about ads-math

How do I install ads-math in Claude Code?

Run npx skills add AgriciDaniel/claude-ads --skill ads-math -a claude-code. The skill lands at ~/.claude/skills/ads-math/SKILL.md.

What does ads-math do?

It calculates and models paid-media figures: CPA, CPL, CPC, CPM, ROAS, MER, break-even targets, contribution margin, LTV:CAC, budgets, forecasts and experiment economics.

What inputs does it need?

Units, currency, period, tax and refund treatment, margin, attribution basis and an uncertainty estimate. It will not hand back a point forecast without assumptions.

Source text

SKILL.md · MIT
---
name: ads-math
description: "Calculate and model paid-media CPA, CPL, CPC, CPM, ROAS, MER, break-even targets, contribution margin, LTV:CAC, impression-share opportunity, budgets, forecasts, and experiment economics. Use for PPC math, ad calculator, break-even analysis, ROAS calculator, CPA calculator, budget forecast, LTV CAC, or MER."
---

# Paid Media Financial Model

1. Identify the decision and collect units, currency, period, tax/refund treatment,
   margin, attribution basis, and uncertainty.
2. Show the formula and map every input to an operator value or cited artifact.
3. Validate denominators, sign, missing values, incompatible windows, and unit
   conversions.
4. Calculate base, downside, and upside cases where uncertainty affects the decision.
5. Keep platform-attributed revenue, blended business revenue, cash flow, and
   contribution margin distinct.
6. Return machine-readable inputs, formulas, outputs, sensitivities, and decision
   implications.

Never fabricate missing financial inputs, hide division-by-zero, or present a point
forecast without its assumptions.

© AgriciDaniel · MIT · AgriciDaniel/claude-ads

Similar skills

Everything for Marketing and content →

From the same set32

ads-generate Generates paid-ad image assets from a validated brief and brand profile using a configured image provider. Keeps generation audits with hashes and safe zones. CX Codex +1 3,800installs ads-youtube Audits YouTube Ads campaign setup, video formats and measurement. Use it to review audiences, bidding, brand safety and creative controls. CX Codex +1 3,800installs ads-linkedin Skill for comprehensive LinkedIn Ads campaign review: conversion measurement, Insight Tag, audience targeting, lead generation, ABM, creative, bidding, budgets, pacing, and policy compliance. CX Codex +1 3,800installs ads-create Creates source-grounded ad concepts, copy, and creative briefs from your brand profile. It respects platform character limits and blocks hallucinated claims. CX Codex +1 3,900installs ads-apple Audits Apple Ads campaigns, AdServices and AdAttributionKit tracking, keyword structure, and bids. Useful for reviewing App Store acquisition and MMP reconciliation. CX Codex +1 3,700installs ads-test Walks a paid-media experiment from hypothesis to readout: randomization unit, sample size, stopping rule, and a plain-language decision. CX Codex +1 3,600installs ads-attribution Audits advertising attribution across platforms and blocks totals built from incompatible conversion reports. Use it when GA4, MMP, or platform figures disagree. CX Codex +1 3,400installs ads-amazon Audits Amazon Ads profiles and campaign signals, from targeting to ACOS and TACOS. Use it when reviewing account structure, reporting, and proposed campaign changes. CX Codex +1 3,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor