Skip to main content
ClaudeWave
ES, Spanish
Skill906 estrellas del repoactualizado 16d ago

budget-optimizer

Budget-optimizer analyzes marketing spend efficiency across channels using performance metrics and industry benchmarks, then recommends reallocated budget distribution with projected ROI improvement and a phased implementation timeline. Use it when conducting data-driven budget planning, evaluating channel spend reallocation opportunities, or justifying budget changes based on ROI performance by individual marketing channel.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/indranilbanerjee/digital-marketing-pro /tmp/budget-optimizer && cp -r /tmp/budget-optimizer/skills/budget-optimizer ~/.claude/skills/budget-optimizer
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# /digital-marketing-pro:budget-optimizer

## Purpose

Data-driven marketing budget optimization across channels using performance data and industry benchmarks. Analyzes current spend efficiency, models diminishing returns per channel, and produces an optimized allocation with projected ROI improvement and a phased reallocation timeline.

## Input Required

The user must provide (or will be prompted for):

- **Current budget by channel**: How spend is distributed today (e.g., paid search, paid social, SEO, email, content, display, affiliate, events, etc.)
- **Performance data by channel**: Key metrics per channel — spend, revenue or conversions, CPA, ROAS, and conversion volume over the measurement period
- **Total budget available**: Overall marketing budget for the optimization period (monthly, quarterly, or annual)
- **Business goals**: Primary objective — maximize revenue, minimize CPA, hit a specific lead or revenue target, balance growth with efficiency
- **Constraints**: Minimum spend requirements, channel mandates from leadership, seasonal considerations, contractual commitments, or platform minimums
- **Measurement period**: Timeframe the performance data covers (last 30, 60, 90 days, or custom range)
- **Attribution model**: How conversions are currently attributed (last-click, first-click, linear, data-driven, or unknown)
- **Seasonality factors**: Upcoming seasonal peaks, promotional periods, or industry events that affect channel performance
- **Historical context**: Whether performance data reflects a typical period or was influenced by one-time events (product launch, viral moment, outage)

## Process

1. **Load brand context**: Read `~/.claude-marketing/brands/_active-brand.json` for the active slug, then load `~/.claude-marketing/brands/{slug}/profile.json`. Apply brand voice, compliance rules for target markets (`skills/context-engine/compliance-rules.md`), and industry context. **Also check for guidelines** at `~/.claude-marketing/brands/{slug}/guidelines/_manifest.json` — if present, load restrictions and relevant category files. Check for custom templates at `~/.claude-marketing/brands/{slug}/templates/`. Check for agency SOPs at `~/.claude-marketing/sops/`. If no brand exists, ask: "Set up a brand first (/digital-marketing-pro:brand-setup)?" — or proceed with defaults.
2. **Run budget-optimizer.py script**: Execute `python "${CLAUDE_PLUGIN_ROOT}/scripts/budget-optimizer.py" --channels '[{"name":"google_ads","spend":10000,"roas":4.2}]' --total-budget {amount}` (`--total-budget` is required; pass channel data via `--channels` JSON or `--file`) to compute baseline efficiency metrics and generate optimization scenarios
3. **Calculate efficiency metrics per channel**: Compute ROAS, CPA, cost per lead, revenue per dollar, contribution margin, and marginal cost of acquisition for each channel
4. **Rank channels by marginal efficiency**: Order channels by incremental return per additional dollar spent, accounting for current saturation levels and historical performance trends
5. **Apply diminishing returns model**: Model how each channel's efficiency degrades as spend increases — identify the inflection point and saturation ceiling for each channel
6. **Generate optimized allocation**: Redistribute budget to maximize the stated objective while respecting all constraints and minimum viable spend thresholds
7. **Compare current vs optimized**: Build a side-by-side comparison showing spend shifts, projected metric changes, and net improvement across all KPIs
8. **Project ROI improvement**: Estimate total revenue, conversion volume, ROAS, and CPA gains from the reallocation with confidence intervals
9. **Account for minimum viable spend thresholds**: Ensure no channel drops below the minimum spend needed to generate meaningful data, maintain auction competitiveness, or fulfill contractual obligations
10. **Include testing budget**: Reserve 10-15% of total budget for experimentation — new channels, creative testing, audience expansion, or emerging platforms
11. **Flag attribution caveats**: Note where attribution model limitations may skew efficiency calculations and recommend adjustments
12. **Create reallocation timeline**: Phase budget shifts over 4-8 weeks to avoid performance disruption — gradual ramp-up and ramp-down with weekly checkpoints and rollback triggers

## Output

A structured budget optimization plan containing:

- **Current vs optimized allocation table**: Side-by-side channel budgets with dollar amounts, percentage of total, and change from current
- **Projected ROI improvement**: Expected gains in revenue, conversions, ROAS, and CPA with confidence ranges
- **Channel efficiency ranking**: Channels ordered by marginal return with diminishing returns curves and saturation indicators
- **Reallocation recommendations**: Specific dollar shifts with clear rationale for each increase, decrease, or hold
- **Scenario comparison**: Best-case, expected, and conservative projections for the optimized allocation
- **Implementation timeline**: Phased reallocation schedule with weekly checkpoints, performance triggers, and rollback criteria
- **Risk assessment**: Potential downsides of each shift, minimum viable spend warnings, attribution blind spots, and mitigation strategies
- **Testing budget plan**: Recommended experiments with allocated budget, hypotheses, success criteria, and measurement approach
- **Attribution notes**: Caveats on how the current attribution model may over- or under-credit specific channels
- **Executive summary**: 1-page overview of key findings and recommended actions for stakeholder presentation

## Agents Used

- **analytics-analyst** — Performance data analysis, efficiency calculations, diminishing returns modeling, ROI projections, attribution assessment
- **media-buyer** — Channel-level budget strategy, spend threshold expertise, reallocation sequencing, platform-specific benchmarks, auction dynamics
ab-test-planSkill

Design a statistically rigorous A/B or multivariate test plan — If/Then/Because hypothesis, control and variant specs, required sample size per variant (absolute vs relative MDE via sample-size-calculator.py), test duration, guardrail metrics, stopping rules, and go/no-go decision criteria. Triggers on \"/digital-marketing-pro:ab-test-plan\", \"set up an A/B test\", \"how long should my test run\", \"calculate sample size for an experiment\", \"is this test result significant\". Reads the brand profile and past campaign-tracker results to avoid re-testing validated hypotheses; finished tests are evaluated with significance-tester.py by the cro-specialist agent.

ad-creativeSkill

Generate 3-5 ad copy variations per platform — headlines, descriptions, and CTAs formatted to Google, Meta, LinkedIn, TikTok, X, and Pinterest specs — each scored 1-10 with policy-compliance flags, A/B testing groupings, and a message-match check against the landing page. Triggers on \"/digital-marketing-pro:ad-creative\", \"write ad copy for Meta\", \"give me RSA headline variations\", \"we need LinkedIn ad copy\", \"draft TikTok ad creative\". Reads the brand profile, guidelines, and compliance rules; routes video ad scripts to /digital-marketing-pro:video-script and gates AI-generated visuals for EU campaigns through /digital-marketing-pro:c2pa-metadata and /digital-marketing-pro:check.

add-integrationSkill

Walk through adding a custom MCP server integration to the plugin — searches npm for an existing MCP package (or scaffolds a custom server from the plugin's guide), generates the exact .mcp.json entry, sets up environment-variable credentials, tests connectivity, and documents the tools the new server exposes. Triggers on \"/digital-marketing-pro:add-integration\", \"connect Ahrefs to the plugin\", \"add a new MCP server\", \"integrate our internal API\", \"hook up Stripe data\". Reads the brand profile and agency credential profiles at ~/.claude-marketing/credentials/ to map client-specific keys; custom builds follow skills/context-engine/custom-mcp-guide.md.

aeo-auditSkill

Audit how a brand appears across the 6 canonical AI answer surfaces — ChatGPT, Perplexity, Google AI Mode, AI Overviews, Gemini, Copilot — probing 10-25 queries into a numbered output bundle with per-platform visibility scorecards, citation-accuracy checks, a competitor matrix, content gaps, and an optimization playbook behind a four-gate quality scorecard. Triggers on \"/digital-marketing-pro:aeo-audit\", \"does ChatGPT know about our brand\", \"check our AI search visibility\", \"how does Perplexity describe us\", \"are we showing up in AI Overviews\". Reads the brand profile; reconciles probes against GSC actuals via /digital-marketing-pro:gsc-ai-performance and defines the AI-visibility scoring standard reused by geo-monitor and share-of-voice.

aeo-geoSkill

Strategy module for Answer Engine / Generative Engine Optimization — audits AI visibility, restructures content for citation, runs entity-consistency checks across Knowledge Graph, Wikidata, Wikipedia, Crunchbase, and LinkedIn, and produces JSON-LD schema specs, monitoring frameworks, and a 90-day LLM content strategy. Triggers on \"/digital-marketing-pro:aeo-geo\", \"how do we get cited by AI\", \"optimize for AI Overviews\", \"fix our entity consistency\", \"do we need llms.txt\". Reads the brand profile, compliance rules, and industry benchmarks; its measurement counterpart is /digital-marketing-pro:aeo-audit, with GSC actuals via /digital-marketing-pro:gsc-ai-performance.

agency-dashboardSkill

Generate a portfolio-level dashboard across ALL client brands — per-client RAG health scores, campaign activity, budget pacing, aggregate KPIs, team utilization, pending approvals, upcoming deadlines, and an alerts panel — built for agency standups and weekly reviews. Triggers on \"/digital-marketing-pro:agency-dashboard\", \"how are all our clients doing\", \"portfolio health check\", \"budget pacing across accounts\", \"which accounts are at risk\". Enumerates every brand under ~/.claude-marketing/brands/ and pulls data via campaign-tracker.py, execution-tracker.py, and team-manager.py; drill into a single client with /digital-marketing-pro:performance-report or /digital-marketing-pro:client-report.

agency-operationsSubagent

Invoke when the user needs to manage multiple client brands, view portfolio-level dashboards, generate client reports, manage SOPs, switch credential profiles, assign team tasks, configure regions, or generate executive summaries. Triggers on requests involving multi-client management, agency workflows, client onboarding, or portfolio oversight.

analytics-analystSubagent

Invoke when the user needs help with marketing measurement, KPI definition, dashboard design, attribution reporting, performance analysis, competitive benchmarking, or translating data into marketing decisions. Triggers on requests involving metrics, reporting, analytics setup, or data interpretation.