budget-rebalance
Skill64 starsChanged 7 months agoApache-2.0View on GitHub
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 changes with rationale. Also use when the user asks in Japanese (予算を最適化して / 予算の再配分 / 好調なキャンペーンに予算を寄せて / 予算リバランス).
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ad-fatigue-checkSkill
- audience-reviewSkill
- budget-pacingSkill
- competitive-scanSkill
- creative-generateSkill
- creative-refreshSkill
- daily-checkSkill
- experimentSkill
- goal-reviewSkill
- incident-postmortemSkill
- lead-form-createSkill
- learnSkill
- monthly-reportSkill
- _mureo-amazon-adsSkill
- _mureo-google-adsSkill
- _mureo-learningSkill
- _mureo-meta-adsSkill
- _mureo-pro-diagnosisSkill
- _mureo-report-persistSkill
- _mureo-sharedSkill
- _mureo-state-schemaSkill
- _mureo-strategySkill
- onboardSkill
- rescueSkill
- search-term-cleanupSkill
- sync-stateSkill
- tracking-healthSkill
- weekly-reportSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Before you start: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and …
- Very specific: line 26
Load context: Read STRATEGY.md (Operation Mode, Market Context, Goal sections, Data Sources) and STATE.json (the same mureo_state_get …
- Distinctive: line 39
Consider shifting budget toward the platform with better Goal progress
- Distinctive: line 43
If one platform significantly outperforms, suggest cross-platform budget shift
- Very specific: line 50
Mode guard: If Operation Mode is ONBOARDING_LEARNING or CREATIVE_TESTING, warn that budget changes are discouraged in this mode and ask …
- Distinctive: line 69
Ask for approval: before any changes.
- Very specific: line 71
Check pending observations: Before executing, check action_log for campaigns being modified.
- Distinctive: line 73
Execute: Use each platform's budget update tools to apply approved changes.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Budget Rebalance
PREREQUISITE: Read
../_mureo-shared/SKILL.mdfor 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
- STRATEGY.md and STATE.json must exist (run the
onboardskill first)
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.
- Establish today: call
mureo_state_getfirst, on every host (including Claude Code, where you would otherwiseReadthe file) and takeserver_nowfrom 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: theobservation_dueyou 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.*.periodandaction_logtimestamps are history, never evidence of what day it is now. Never writeserver_nowinto STATE.json: it is a response field, and a persisted copy becomes tomorrow's stale "today". - Load context: Read STRATEGY.md (Operation Mode, Market Context, Goal sections, Data Sources) and STATE.json (the same
mureo_state_getresponse from step 0 on MCP hosts). - 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, keytiktok_ads) — drive it via its own tools and skip mureo-only value-adds; see../_mureo-shared/SKILL.md→ Hosted-connector platforms. - Analyze budget efficiency: For each ad platform:
- Google Ads: prefer mureo native — call
google_ads_budget_efficiency(campaign × budget × spend × conv ratio) andgoogle_ads_performance_reportfor the period. In BYOD mode,budget.efficiencymay return[]because daily budgets aren't carried in the Apps Script bundle — fall back toperformance.reportcost / conv numbers and rank by CPA. If mureo's Google Ads tools are unavailable (e.g.MUREO_DISABLE_GOOGLE_ADS=1aftermureo providers add google-ads-official), fall back to the officialgoogle-ads-officialMCP for the performance report only, then skipgoogle_ads_budget_efficiency(mureo-only analysis) and rank campaigns by CPA from the raw cost / conv numbers yourself; note to the user that mureo's automated budget-efficiency scoring requires the native MCP (mureo setup claude-code). - Meta Ads: prefer mureo native — call
meta_ads_insights_reportandmeta_ads_analysis_cost. In BYOD mode, daily budgets aren't surfaced — rank by spend ×result_indicator-aware conversions instead. If mureo's Meta Ads tools are unavailable, fall back to the officialmeta-ads-officialhosted MCP for raw insights only, then skipmeta_ads_analysis_cost(mureo-only cost-trend analysis) and theresult_indicator-aware ranking; rank by raw spend / conversions from the official MCP's response instead and warn the user that CV-definition mismatches across campaigns are NOT detected in this fallback path. - mureo BYOD data is centralized in the workspace
byod/directory (or~/.mureo/byod/for legacy CLI users) and is only accessible through mureo MCP tools — do not look for raw CSVs in the project directory.
- Google Ads: prefer mureo native — call
- Rank campaigns by efficiency (CPA, ROAS, or CVR depending on campaign goals) across all platforms to enable cross-platform comparison.
- Goal-driven prioritization: Reference Goal sections from STRATEGY.md to guide allocation:
- Identify which platform is closer to achieving each Goal
- Consider shifting budget toward the platform with better Goal progress
- Cross-platform rebalancing: Evaluate whether budget should move between any configured platforms:
- Compare CPA/ROAS across all platforms
- If one platform significantly outperforms, suggest cross-platform budget shift
- Present cross-platform comparison before within-platform reallocation
- 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.
- 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.
- Mode guard: If Operation Mode is
ONBOARDING_LEARNINGorCREATIVE_TESTING, warn that budget changes are discouraged in this mode and ask whether to proceed. - Generate reallocation plan based on Operation Mode:
- EFFICIENCY_STABILIZE: Shift budget from high-CPA to low-CPA campaigns
- SCALE_EXPANSION: Increase budget for campaigns not limited by budget but performing well
- TURNAROUND_RESCUE: Cut budget from campaigns with 0 conversions
- COMPETITOR_DEFENSE: Increase budget on core brand/keyword campaigns under competitive pressure
- LTV_QUALITY_FOCUS: Prioritize campaigns with highest conversion quality
- ONBOARDING_LEARNING: Minimal changes only if user confirmed in step 9
- CREATIVE_TESTING: Minimal changes only if user confirmed in step 9
Present plan as a table:
Platform Campaign Current Budget Proposed Budget Change Reason Every
Reasonmust 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/experimentinstead of asserting it. See../_mureo-pro-diagnosis/SKILL.md→ Allocation & Learning-State Discipline.- 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.
- Ask for approval before any changes.
- Check pending observations: Before executing, check
action_logfor campaigns being modified. If a previous budget change is still within its observation window, warn about stacking changes. - Execute: Use each platform's budget update tools to apply approved changes.
- Record outcome context: For each campaign modified, log to
action_logwithobservation_due(7 days fromserver_now's date for budget changes); omitmetrics_at_actionand mureo fills it from the campaign's snapshot. - Update STATE.json with new budget values, notes, and log the rebalancing action to
action_log.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

