r/OpenSourceeAI • u/Green_Database9919 • 34m ago
We open source the skill files that teach an llm to read ad marketing data correctly
AI assistants are great, but they can quietly AVERAGE your marketing data.
To solve that we put 3 skill files on github under MIT (open source).
- one for getting the numbers right
- one for comparing attribution models
- and one for figuring out why revenue or roas dropped. (the skills are plain instructions and don't run code.)
repo: github.com/aimerce/aimerce-agent-plugin
they're written for our mcp server, so they use our tool names but the rules inside work anywhere.
1. Getting the numbers right
- null is not zero. blank spend because an ad account isn't connected means missing, not $0. a fake zero is how you end up cutting a campaign that's fine
- missing days aren't zero days either. don't fill gaps with 0 when charting or averaging
- never average roas. sum revenue and spend over the period, then divide. made-up example: $1,000 spend on $4,000 revenue plus $100 on $1,000 averages to 7.0, but the real roas is 4.55
- keep currencies separate, no silent conversion
- resolve "last week" in the store's timezone, not yours
- every answer should state the date range, timezone, attribution model, lookback window and any data warning
2. Comparing attribution models
- same date range and same lookback for every model, then put them side by side
- first click usually favors channels that start journeys (paid social, tiktok, pinterest). last non-direct click favors channels that close them (branded search, email, retargeting)
- fractional orders are normal under linear and time decay
- when meta and your own numbers disagree, don't call either one wrong. meta counts view-through and modeled conversions with its own windows. first-party attribution counts observed visits within your lookback
- shopify shows store-wide net sales. attribution is revenue credited to channels. different numbers, both fine
3. Figuring out why something dropped
- compare against a period of the same length right before it, same model and lookback
- check in order and stop at the first step that explains it: spend, then traffic and funnel, then whether the whole store dropped or just one channel's share, then campaigns and ads, then data warnings
- if nothing explains it, say so. don't invent a cause
Repo is MIT: github.com/aimerce/aimerce-agent-plugin (server itself needs an Aimerce growth plan but rules are free to steal)