ecommerce-roas-optimizer

ecommerce-roas-optimizer is a command for Claude Code from Ad-Superpowers/ad-superpowers-plugin. It costs 40 tokens per session (1,454 once invoked), scanned A, original, MIT.

An e-commerce advertising analysis command that compares product sales and advertising results across Meta, Google Shopping or Performance Max, and Google Analytics 4.

In plain words
What is it for?
Use it to review the last 30 days of ad revenue, spending, orders, average order value, return on ad spend, and product or campaign winners and losers.
Why use it?
It helps identify which products and campaigns earn money and which spend without enough return, so decisions are based on product-level results rather than overall averages.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the ad-superpowers plugin — 124 skills, 35 commands, 5 agents, 1 MCP server shipped together

Good fit Use it to review the last 30 days of ad revenue, spending, orders, average order value, return on ad spend, and product or campaign winners and losers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Ad-Superpowers/ad-superpowers-plugin

Made for: Claude Code.

Or install ad-superpowers, the plugin that ships this one along with the rest of its 124 skills, 35 commands, 5 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ecommerce-roas-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer/github.svg)](https://agentmods.dev/commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer)
Your own site
<a href="https://agentmods.dev/commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer"><img src="https://agentmods.dev/badge/commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ecommerce-roas-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer"><img src="https://agentmods.dev/badge/commands/ad-superpowers/ad-superpowers-plugin/ecommerce-roas-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01454
Opus 5.5 $0.00016 $0.00582
Sonnet 5.5 $0.00008 $0.00291
Haiku 4.5 $0.00004 $0.00145

Measured 1mo ago against content hash eb04e26564e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ecommerce-roas-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/commands/ecommerce-roas-optimizer.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Platforms: meta, google_ads, google_analytics Included in trial and paid plans. Your existing quota and permissions still apply.

This command requires the Ad Superpowers MCP connector to access your ad account data. Connect at https://app.adsuperpowers.ai if you haven't already.

E-commerce ROAS Optimizer

Analyze e-commerce ad performance for last 30 days

Conditional: if product_category , focusing on [specify product_category].

OUTPUT FORMAT (CRITICAL - follow this EXACT structure)

REVENUE OVERVIEW

Platform Ad Revenue Ad Spend ROAS Orders from Ads AOV vs Prior Period vs Target
Meta
Google Ads
Total ad spend (per currency)

Revenue, ROAS and orders are each platform's own reported numbers; never sum them across platforms. If GA4 or the shop gives one common revenue figure, add one blended ROAS from it under the table, labelled with the source.

PRODUCT PERFORMANCE - WINNERS

Product/Category Revenue ROAS Orders Platform Action
(Sorted by ROAS descending, top 10)

PRODUCT PERFORMANCE - LOSERS

Product/Category Spend ROAS Issue Recommendation
(ROAS < 1.5x or below target, sorted by spend descending)

CATALOG CAMPAIGN BREAKDOWN

Campaign Type Platform Spend ROAS Top Products
Advantage+ Sales Meta
Shopping / PMax Google

OPTIMIZATION ACTIONS

  1. SCALE: [Products with ROAS > target + sufficient volume]
  2. PAUSE: [Products with ROAS < 1x after 50+ clicks]
  3. FIX: [Products with high spend but low ROAS - bid/creative/landing page]

BENCHMARKS

Your actual ROAS vs industry:

Category Your ROAS Industry Avg Status

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +2 lines eb04e26564e8
  2. 2mo ago Changed · -5 tokens per session 88a3ce3551e9
  3. 3mo ago First seen · 120 lines · 45 tokens per session scan A a238f83b5c59

Subscribe to this mod's changes

ecommerce-roas-optimizer is a command published in the GitHub repository Ad-Superpowers/ad-superpowers-plugin (6 stars, last pushed 14d ago), licensed MIT. It adds 40 tokens to every session and 1,454 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ecommerce-roas-optimizer compared with commands from other repositories

ecommerce-roas-optimizer next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ecommerce-roas-optimizerAd-Superpowers/ad-superpowers-pluginCommand614d agoMITA40Claude Code
feed-auditHYPD-AI/ads-mcp-pluginCommand326d agoMITA16Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code