Optimize channel budget with diminishing-returns models. An agent skill from indranilbanerjee/digital-marketing-pro.

MITAuto-check passed

Install Budget Optimizer

skills CLI
$ npx skills add indranilbanerjee/digital-marketing-pro --skill budget-optimizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install indranilbanerjee/digital-marketing-pro budget-optimizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/indranilbanerjee/digital-marketing-pro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/budget-optimizer .claude/skills/budget-optimizer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
budget-optimizer
GitHub stars
862
Used in
1 other repo
Token cost
~1.6k tokens
SKILL.md length
717 words
Files
1
Skills in repo
162
Repo updated
First seen
Licence
MIT

At a glance

Optimize channel budget with diminishing-returns models. An agent skill from indranilbanerjee/digital-marketing-pro.

  • Works in 12 steps: Load brand context: Read… → Run budget-optimizer.py script: Execute… → Calculate efficiency metrics per… → …
  • SKILL.md covers Purpose, Input Required, Process and Output, plus 1 more section
  • Calls python

What it does

Budget Optimizer is an agent skill from indranilbanerjee/digital-marketing-pro. Optimize channel budget with diminishing-returns models. Pacing → budget-tracker. "is our channel split right"

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: An open-source AI marketing operating system for strategy, SEO, AEO/GEO, paid media, content, CRM, and analytics - grounded in brand context, human approval, and verifiable… The licence is MIT.

Example prompts

  • “is our channel split right”
  • “/budget-optimizer”

Requirements

  • Python 3

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. Load brand context: Read ~/.claude-marketing/brands/_active-brand.json for the active slug, then load…
  2. Run budget-optimizer.py script: Execute python "${CLAUDE_PLUGIN_ROOT}/scripts/budget-optimizer.py" --channels…
  3. Calculate efficiency metrics per channel: Compute ROAS, CPA, cost per lead, revenue per dollar, contribution margin, and marginal cost of…
  4. Rank channels by marginal efficiency: Order channels by incremental return per additional dollar spent, accounting for current saturation…
  5. Apply diminishing returns model: Model how each channel's efficiency degrades as spend increases — identify the inflection point and…
  6. Generate optimized allocation: Redistribute budget to maximize the stated objective while respecting all constraints and minimum viable…
  7. Compare current vs optimized: Build a side-by-side comparison showing spend shifts, projected metric changes, and net improvement across…
  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…
  10. Include testing budget: Reserve 10-15% of total budget for experimentation — new channels, creative testing, audience expansion, or…
  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…

What it can do on your machine

Read from SKILL.md and the folder at commit 9e949f3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Budget Optimizer loads about 1.6k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 717 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from indranilbanerjee/digital-marketing-pro at commit 9e949f3, republished under its MIT licence (© indranilbanerjee). 717 words, ~1,575 tokens.

Download SKILL.mdSave it as .claude/skills/budget-optimizer/SKILL.md (or your agent's skills folder).
name
budget-optimizer
description
Optimize channel budget with diminishing-returns models. Pacing → budget-tracker. "is our channel split right"
argument-hint
[total-budget]

/digital-marketing-pro:budget-optimizer

Script location. If your host does not set ${CLAUDE_PLUGIN_ROOT}, the scripts are in this plugin's scripts/ folder, next to skills/.

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
Show full SKILL.md (179 more words)Show less

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

© indranilbanerjee, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/budget-optimizer of indranilbanerjee/digital-marketing-pro.

Open the folder on GitHubat commit 9e949f3

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in indranilbanerjee/digital-marketing-pro, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Budget Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Budget Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Budget Optimizer this skillindranilbanerjee/digital-marketing-pro8621 repos~1.6kAutomated safety check: PassMIT
Budget Optimizeraaron-he-zhu/aaron-marketing-skills2.9k—~3kAutomated safety check: PassApache-2.0
Channel Mix Optimizeririnabuht12-oss/marketing-skills4.1k—~714Automated safety check: PassNone
Budget Pacing Monitoraaron-he-zhu/aaron-marketing-skills2.9k2 repos~2.7kAutomated safety check: PassApache-2.0
SQL Optimizationgithub/awesome-copilot40k2 repos~2.3kAutomated safety check: PassMIT
Recursive Context Pruning Token Budgetingsickn33/agentic-awesome-skills47k1 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • Budget Optimizer

    aaron-he-zhu/aaron-marketing-skills

    A skill your agent uses when the user asks to "allocate my influencer budget", "optimize spend across tiers", or "compare budget scenarios"; produces a tier/platform/content allocation table, ROI…

    2.9k GitHub stars~3k tokensUpdated today
    Marketing & SEOAuto-check passed
  • Channel Mix Optimizer

    irinabuht12-oss/marketing-skills

    Given your total budget, recommends the optimal split across Google Search, PMax, Meta prospecting, Meta retargeting, and any other active channels based on your last 60-90 days of marginal ROAS and…

    4.1k GitHub stars~714 tokensUpdated 16 days ago
    Marketing & SEOAuto-check passed
  • Budget Pacing Monitor

    aaron-he-zhu/aaron-marketing-skills

    A skill your agent uses when the user asks to "check pacing", "am I over/under-spending", "is this campaign on track to hit budget", or "why did spend spike/stall mid-flight"; returns a…

    2.9k GitHub starsUsed in 2 repos~2.7k tokens
    Marketing & SEOAuto-check passed
  • SQL Optimization

    github/awesome-copilot

    Official

    Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server…

    40k GitHub starsUsed in 2 repos~2.3k tokens
    DatabasesAuto-check passed
  • Recursive Context Pruning Token Budgeting

    sickn33/agentic-awesome-skills

    Optimizes AI agent performance by pruning redundant context, managing token usage, and enforcing ultra-concise, direct-to-value responses.

    47k GitHub starsUsed in 1 repo~1.2k tokens
    Business, Finance & HRAuto-check passed
  • Agent skill for performance-optimizer - invoke with $agent-performance-optimizer

    74k GitHub starsUsed in 2 repos~3.6k tokens
    Auto-check passed

More from indranilbanerjee/digital-marketing-pro

All 162 skills in this repo
  • Import Template

    indranilbanerjee/digital-marketing-pro

    Import a deliverable template as a reusable placeholder template per brand.

    862 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Ab Test Plan

    indranilbanerjee/digital-marketing-pro

    Plan an A/B test by script: sample size per variant, days to run, stopping rules.

    862 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Aeo Audit

    indranilbanerjee/digital-marketing-pro

    Run a one-time AEO audit of six AI answer engines, scored per surface.

    862 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Agent Readiness Audit

    indranilbanerjee/digital-marketing-pro

    Audit agent readiness by script: AI-crawler rules, product schema, no-JS HTML, feeds.

    862 GitHub starsUsed in 1 repo~3.7k tokens
    Auto-check passed
  • Backlink Gap

    indranilbanerjee/digital-marketing-pro

    Find backlink gap domains linking to competitors, not you, scored by script.

    862 GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • C2pa Metadata

    indranilbanerjee/digital-marketing-pro

    Embed C2PA provenance in AI-generated images, video or PDF by script.

    862 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed

Questions about Budget Optimizer

What does Budget Optimizer do?

Optimize channel budget with diminishing-returns models. An agent skill from indranilbanerjee/digital-marketing-pro. Budget Optimizer is an agent skill from indranilbanerjee/digital-marketing-pro. Optimize channel budget with diminishing-returns models.

How do I install Budget Optimizer in Claude Code?

Run `npx skills add indranilbanerjee/digital-marketing-pro --skill budget-optimizer -a claude-code`. Or copy the skill folder (skills/budget-optimizer in indranilbanerjee/digital-marketing-pro) into .claude/skills/budget-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Budget Optimizer in Codex?

Run `npx skills add indranilbanerjee/digital-marketing-pro --skill budget-optimizer -a codex`. Or copy the skill folder (skills/budget-optimizer in indranilbanerjee/digital-marketing-pro) into .agents/skills/budget-optimizer in your project. Codex loads it when a task matches its description.

Can I use Budget Optimizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add indranilbanerjee/digital-marketing-pro --skill budget-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/budget-optimizer, .gemini/skills/budget-optimizer, .github/skills/budget-optimizer and .opencode/skills/budget-optimizer in your project.

What does Budget Optimizer need to run?

Going by SKILL.md and its folder, Budget Optimizer needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Budget Optimizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Budget Optimizer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Budget Optimizer use?

Budget Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Budget Optimizer use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Budget Optimizer?

Skills that share tags, products or a category with Budget Optimizer: Budget Optimizer (aaron-he-zhu/aaron-marketing-skills, 2.9k stars), Channel Mix Optimizer (irinabuht12-oss/marketing-skills, 4.1k stars), Budget Pacing Monitor (aaron-he-zhu/aaron-marketing-skills, 2.9k stars) and SQL Optimization (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Budget Optimizer?

indranilbanerjee (a GitHub user) maintains it in indranilbanerjee/digital-marketing-pro, which has 862 GitHub stars. The repository holds 162 skills in this directory. The repository was last updated on October 9, 2026.

Source: indranilbanerjee/digital-marketing-pro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.