Budget rebalance

From logly/mureo · View interactive version

Budget rebalance is an AI agent skill from the GitHub repository logly/mureo. Rebalance campaign budgets across all configured platforms based on strategy and performance signals. Use when the user asks to optimize budgets, redistribute spend, scale efficient campaigns, or cap overspending ones. Reads STRATEGY.md goals, analyzes campaign efficiency, and proposes budget change

How to use this skill

Skill file

Budget Rebalance

PREREQUISITE: Read ../_mureo-shared/SKILL.md for auth, security rules, output format, and Tool Selection (Read/Write on Code, mureo_strategy_* / mureo_state_* MCP on Desktop / Cowork).

Tool names below refer to the built-in platforms; a namespaced variant (see _mureo-shared → Namespaced built-in variants) is used with its prefix substituted.

Analyze budget allocation and suggest rebalancing across all campaigns.

Prerequisites

Steps

Before you start: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and consult advisors (mureo_consult_advisor) before drawing conclusions.

  1. Establish today: call mureo_state_get first, on every host (including Claude Code, where you would otherwise Read the file) and take server_now from its response — ISO 8601 with UTC offset, e.g. 2026-07-28T10:12:33+09:00. Its date is the only source of the current date for this run: the observation_due you write in step 16, and every "is a previous change still inside its observation window?" check in step 14, are measured from it. Do not shell out (this skill must run in Bash-less headless hosts) and do not read the date off STATE.json — last_synced_at, reports.*.period and action_log timestamps are history, never evidence of what day it is now. Never write server_now into STATE.json: it is a response field, and a persisted copy becomes tomorrow's stale "today".
  1. Load context: Read STRATEGY.md (Operation Mode, Market Context, Goal sections, Data Sources) and STATE.json (the same mureo_state_get response from step 0 on MCP hosts).
  1. Discover platforms: Identify all configured ad platforms from STATE.json platforms. Also include any hosted official-MCP connector present in the session (e.g. TikTok, key tiktok_ads) — drive it via its own tools and skip mureo-only value-adds; see ../_mureo-shared/SKILL.md → Hosted-connector platforms.
  1. Analyze budget efficiency: For each ad platform:
  1. Rank campaigns by efficiency (CPA, ROAS, or CVR depending on campaign goals) across all platforms to enable cross-platform comparison.
  1. Goal-driven prioritization: Reference Goal sections from STRATEGY.md to guide allocation:
  1. Cross-platform rebalancing: Evaluate whether budget should move between any configured platforms:
  1. Organic intelligence (if Search Console is available): If organic rankings are strong for certain keywords, consider reducing paid spend on those terms and reallocating to keywords without organic coverage.
  1. Conversion quality check (if GA4 is available): Incorporate conversion quality data (bounce rate, pages/session, time on site by traffic source) into budget decisions. A platform with lower CPA but higher bounce rate may not be the better allocation.
  1. Mode guard: If Operation Mode is ONBOARDING_LEARNING or CREATIVE_TESTING, warn that budget changes are discouraged in this mode and ask whether to proceed.
  1. Generate reallocation plan based on Operation Mode:
  1. Present plan as a table:

| Platform | Campaign | Current Budget | Proposed Budget | Change | Reason |

|----------|----------|---------------|-----------------|--------|--------|

Every Reason must be marginal, not average. A rank by average CPA identifies candidates; it does not justify the move. State what the next (or removed) unit of spend is expected to do — a top-average campaign that is not budget-limited is usually saturated, and a bad-average campaign may simply be spend-suppressed. Where the marginal effect is genuinely unknown, say so and offer /experiment instead of asserting it. See ../_mureo-pro-diagnosis/SKILL.md → Allocation & Learning-State Discipline.

  1. Risk assessment: Flag any single budget change >20% — on Google Ads Smart Bidding / Meta CBO a large step can reset the learning phase, so prefer staged changes (e.g. two ≤20% steps). A platform that does not select delivery by a bid has no learning phase to reset: do not warn about one for it.
  1. Ask for approval before any changes.
  1. Check pending observations: Before executing, check action_log for campaigns being modified. If a previous budget change is still within its observation window, warn about stacking changes.
  1. Execute: Use each platform's budget update tools to apply approved changes.
  1. Record outcome context: For each campaign modified, log to action_log with observation_due (7 days from server_now's date for budget changes); omit metrics_at_action and mureo fills it from the campaign's snapshot.
  1. Update STATE.json with new budget values, notes, and log the rebalancing action to action_log.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.