Budget pacing

From logly/mureo · View interactive version

Budget pacing is an AI agent skill from the GitHub repository logly/mureo. Month-to-date spend vs the monthly budget target, projected month-end landing, and pace alerts across all configured platforms. Use when the user asks about pacing, burn rate, whether they will overspend or underspend this month, monthly-budget tracking, landing/forecast, 'are we on budget', or requ

How to use this skill

Skill file

Budget Pacing

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.

Track month-to-date spend against the monthly budget target, project the month-end landing, and raise pace alerts so the month neither blows the budget nor leaves it unspent.

This is trajectory management, not allocation. If the question is "how should I split budget across campaigns?" that is /budget-rebalance. This skill answers "at this rate, where does total spend land, and how do I steer it onto the target?" — cross-reference /budget-rebalance when the fix is reallocation rather than a total-spend nudge.

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. Pacing is date arithmetic, so this is load-bearing: server_now's date is the only source of the current date — it fixes the pacing month, today's date, and therefore every elapsed/remaining-day count below. 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, and pacing against a stale month silently mis-states the landing. 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, ## Guardrails, any ## Custom: Monthly Budget section, Goal sections) and STATE.json (the same mureo_state_get response from step 0 on MCP hosts).
  1. Discover platforms: Identify all configured platforms from STATE.json platforms. Also include any hosted official-MCP connector present in the session (e.g. TikTok, key tiktok_ads) and mcp__mureo__<plugin>_* plugin platforms — drive each via its own tools, best-effort; see ../_mureo-shared/SKILL.md → Hosted-connector platforms and Plugin platforms.
  1. Determine the monthly budget target — in this precedence:

```markdown

## Custom: Monthly Budget

```

Persisting STRATEGY.md is a write — confirm before saving (Write / Edit on Code, mureo_strategy_set on Desktop / Cowork).

  1. Fetch month-to-date spend per platform — use the true month-to-date presets the tools actually support (no approximation needed on the built-ins):
  1. Compute pacing per platform and in total:
  1. Seasonality / confidence caution: early-month run-rates are noisy — a single big-spend or zero-spend day swings the projection hard. When fewer than 5 days have elapsed, label the projection low confidence and lead with that caveat; prefer watch over act. Also note known intra-month seasonality from STRATEGY.md (e.g. a ## Custom seasonal ramp, weekend dips) that makes a flat run-rate misleading.
  1. Pacing table — per platform and a total row:

| Platform | Monthly Target | MTD Spend | Run-rate/day | Projected Landing | % vs Target | Status |

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

  1. Recommendations to land on target (do not execute yet):
  1. Ask for approval before any budget change. Before each budget mutation, retrieve and display the current value (google_ads_budget_get, or the campaign/ad-set record) alongside the proposed value and the % change (per the Budget Changes Require Current Value Display rule in ../_mureo-shared/SKILL.md).
  1. Execute approved changes with each platform's budget tools:
  1. Record outcome context: for each campaign modified, log to action_log (via mureo_state_action_log_append) with metrics_at_action (MTD spend, run-rate, daily budget, projected landing, with period and days) and observation_due 7 days from today, so daily-check's evidence step verifies the change actually bent the trajectory toward target. Give every entry a display line: display_title (at most 40 characters) and display_summary (at most 120) — what this action WAS, in the operator's words, as plain text with no markdown (**bold** reaches a person as asterisks). The dashboard row shows those two and stops there; the full summary is drill-down only, so keep writing it as fully as the next agent needs and let the display line be the short one. Over either bound the append is refused, never truncated.
  1. Persist the report summary (best-effort): Call mureo_state_report_set with report="pacing" and a concise summary object so the read-only dashboard can render pacing without re-running you. Follow this convention:

Reflect the FINAL state, and persist this LAST — after every action_log entry and any budget change you applied this run. This is best-effort: if mureo_state_report_set is unavailable (e.g. a pure file-mode host without the context MCP), skip it silently — the rest of this skill still works.

  1. Persist the display contract (best-effort): Call mureo_state_display_set with what the DASHBOARD shows. This is a different audience from the summary above — STATE.json is written for the next agent, and this small bounded section is the only thing the operator's screen reads. Write it in the SAME pass as the report, from the SAME figures, and reach no new verdict here: every value below is one you already decided, and this step only renders it.

The bounds, verbatim from the tool: The dashboard reads THIS section and nothing else — keep your reasoning where it already goes. Every bound below refuses the write rather than truncating it, because a sentence cut in half is worse than a long one. nav_message: one line, at most 80 characters. highlights: at most 3 items of {tone, text}, tone one of good/watch/bad, text at most 60 characters. proposals: {title, body, status, date}, title at most 30 and body at most 80 characters, status one of proposed/done. breakdown.campaigns / breakdown.adgroups: rows of {name, spend, mcpa, target_cpa, state, note} — the three figures are raw numbers, state is one of target_met/improving/watch/worsening/no_data, note at most 40 characters. stated_values: {label, value}, label at most 24 characters and value a raw number or a string of at most 12 characters — a sentence there is refused, because it lands in a numeric column. Do NOT write the KPI funnel or the daily chart: mureo computes both from the stored totals.

Over a bound the write is REFUSED — shorten and rewrite, do not re-send the same sentence trimmed. Lead with the point and drop the connectives; a noun phrase is fine (CPA 12% over target, not The CPA is currently running about 12% above the target we agreed). Trimming one character at a time and calling again spends the run's context on a bound one rewrite would have met.

You may not be the first writer today. `display is REPLACED WHOLE and the last writer wins — there is no merge. Before you write it, read the current one (mureo_state_get). Of what another skill wrote TODAY, carry exactly one thing into your own write: its proposals that are still live — not yet done, and not contradicted by what you just found. Everything else you write from your own run alone, because a screen assembled from two runs shows a moment that never happened. And carry over NOTHING ELSE: never copy another skill's nav_message, highlights, breakdown or stated_values, which would put its judgement under your name when you cannot vouch for it. Name yourself in source` so the screen says whose answer it is.

This is best-effort: if mureo_state_display_set is unavailable (e.g. a pure file-mode host without the context MCP), skip it silently — the rest of this skill still works.

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.