budget-optimization
Skill39 starsChanged 8 months agoMITView on GitHub
The Budget Optimization skill applies AI-driven forecasting and portfolio theory to allocate advertising budgets across campaigns for maximum return.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- itallstartedwithaidea/claude-googleadsagentword for word, first seen May 21, 2026
Other versions1 project uses a version of this.
Word for word · 1
- itallstartedwithaidea/claude-googleadsagent★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- continuous-learningSkill
- entity-memory-managementSkill
- knowledge-base-injectionSkill
- long-horizon-workflowsSkill
- mcp-server-creationSkill
- memory-persistenceSkill
- multi-model-routingSkill
- parallel-agent-orchestrationSkill
- proactive-intelligenceSkill
- token-optimizationSkill
- adversarial-resilienceSkill
- agent-instinct-systemSkill
- anthropic-tool-masterySkill
- cognitive-scaffoldingSkill
- context-engineeringSkill
- multi-harness-portabilitySkill
- prompt-architectureSkill
- self-healing-agentsSkill
- session-archaeologySkill
- verification-loopsSkill
- ad-copy-generationSkill
- audience-targetingSkill
- competitor-analysisSkill
- conversion-trackingSkill
- google-ads-auditSkill
- keyword-researchSkill
- landing-page-auditSkill
- pmax-optimizationSkill
- quality-score-optimizationSkill
- remarketing-strategySkill
- shopping-adsSkill
- ci-cd-pipelinesSkill
- cloudflare-workersSkill
- configuration-managementSkill
- edge-renderingSkill
- observabilitySkill
- service-discoverySkill
- ml-model-integrationSkill
- programmatic-videoSkill
- web-asset-generationSkill
- ai-chat-studioSkill
- assistant-presetsSkill
- batch-processingSkill
- knowledge-base-ragSkill
- low-code-generationSkill
- workflow-orchestrationSkill
- bioinformaticsSkill
- cheminformaticsSkill
- data-analysisSkill
- database-lookupSkill
- geospatial-analysisSkill
- machine-learningSkill
- research-methodologySkill
- scientific-writingSkill
- agent-security-scanningSkill
- codeql-semgrepSkill
- sandbox-hardeningSkill
- secret-protectionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 174
Never optimize budgets without first verifying conversion tracking accuracy
- Distinctive: line 175
Use a 90-day lookback minimum to capture enough data for reliable marginal return curves
- Distinctive: line 181
Use shared budgets for campaigns targeting the same funnel stage with similar CPAs
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Optimization
Part of Agent Skills™ by googleadsagent.ai™
Description
The Budget Optimization skill applies AI-driven forecasting and portfolio theory to allocate advertising budgets across campaigns for maximum return. Rather than treating each campaign as an isolated budget silo, this skill models the entire account as an investment portfolio, dynamically shifting spend toward campaigns with the highest marginal return on ad spend (ROAS) while respecting business constraints like minimum brand presence and geographic coverage.
The optimization engine ingests historical performance data, seasonality patterns, competitive dynamics, and conversion lag curves to build predictive models for each campaign's response to budget changes. It identifies campaigns that are impression-share-limited (underfunded relative to demand), campaigns with diminishing returns (overfunded past the efficient frontier), and campaigns where budget shifts would yield measurable incremental conversions.
Portfolio bidding strategies are a key lever. The skill evaluates whether campaigns should use individual or shared budgets, whether portfolio bid strategies can aggregate conversion signals across thin-data campaigns, and how seasonal budget adjustments should be timed relative to demand curves. It produces actionable budget reallocation plans with expected impact projections and confidence intervals.
Use When
- User asks to "optimize my budget" or "allocate budget better"
- User mentions "budget pacing" or "campaigns running out of budget"
- User wants to know "where to increase spend" or "where to cut budget"
- User asks about "shared budgets" or "portfolio bidding"
- User mentions "ROAS optimization" or "maximize conversions within budget"
- User asks about "seasonal budget adjustments" or "budget planning"
- User wants to "reduce wasted spend" or "improve budget efficiency"
- User mentions "impression share lost to budget"
Architecture
flowchart TD
A[Historical Performance Data] --> B[Data Preparation]
C[Seasonality Signals] --> B
D[Competitive Landscape] --> B
B --> E[Campaign Response Modeling]
E --> F[Marginal CPA Curves]
E --> G[Impression Share Opportunity]
E --> H[Conversion Lag Analysis]
F --> I[Portfolio Optimizer]
G --> I
H --> I
J[Business Constraints] --> I
K[Total Budget Envelope] --> I
I --> L{Optimization Strategy}
L --> M[Shift to High ROAS]
L --> N[Fund Impression Share Gaps]
L --> O[Seasonal Pre-Allocation]
L --> P[Portfolio Bid Strategy Setup]
M --> Q[Budget Reallocation Plan]
N --> Q
O --> Q
P --> Q
Q --> R[Expected Impact Projection]
Q --> S[Implementation Schedule]
Q --> T[Monitoring Thresholds]Implementation
Budget optimization engine with marginal return modeling:
async function optimizeBudgets(customerId, config) {
const { totalBudget, lookbackDays = 90, constraints = {} } = config;
const campaignData = await getCampaignPerformance(customerId, lookbackDays);
const seasonalFactors = calculateSeasonalFactors(campaignData);
const marginalCurves = buildMarginalReturnCurves(campaignData);
const currentAllocation = campaignData.map(c => ({
campaignId: c.id,
name: c.name,
currentBudget: c.dailyBudget,
spend: c.avgDailySpend,
conversions: c.avgDailyConversions,
roas: c.conversionValue / c.cost,
impressionShareLostBudget: c.isLostBudget,
marginalCPA: marginalCurves[c.id].marginalCPA
}));
return portfolioOptimize(currentAllocation, totalBudget, constraints);
}
function buildMarginalReturnCurves(campaignData) {
const curves = {};
for (const campaign of campaignData) {
const dailyData = campaign.dailyMetrics.sort((a, b) => a.cost - b.cost);
const costBuckets = createCostBuckets(dailyData, 10);
curves[campaign.id] = {
marginalCPA: calculateMarginalCPA(costBuckets),
saturationPoint: findSaturationPoint(costBuckets),
elasticity: calculateBudgetElasticity(costBuckets)
};
}
return curves;
}
function portfolioOptimize(campaigns, totalBudget, constraints) {
const { minBrandSpend = 0, geoMinimums = {}, maxShift = 0.3 } = constraints;
let remainingBudget = totalBudget;
const allocations = [];
const constrainedCampaigns = applyMinimumConstraints(campaigns, constraints);
remainingBudget -= constrainedCampaigns.reduce((sum, c) => sum + c.allocatedBudget, 0);
const flexibleCampaigns = campaigns.filter(c =>
!constrainedCampaigns.find(cc => cc.campaignId === c.campaignId)
);
const sorted = flexibleCampaigns.sort((a, b) => a.marginalCPA - b.marginalCPA);
for (const campaign of sorted) {
const maxBudget = campaign.currentBudget * (1 + maxShift);
const optimalBudget = Math.min(
calculateOptimalBudget(campaign),
maxBudget,
remainingBudget
);
allocations.push({ ...campaign, newBudget: optimalBudget });
remainingBudget -= optimalBudget;
}
return { allocations: [...constrainedCampaigns, ...allocations], unallocated: remainingBudget };
}Seasonal budget adjustment planner:
function planSeasonalAdjustments(campaignData, forecastWindow = 90) {
const seasonalPatterns = detectSeasonality(campaignData, { minHistoryDays: 365 });
return seasonalPatterns.map(pattern => ({
campaignId: pattern.campaignId,
upcomingPeaks: pattern.peaks.filter(p => p.daysAway <= forecastWindow),
recommendedPreBudgetIncrease: pattern.peaks.map(peak => ({
startDate: subtractDays(peak.date, 7),
endDate: addDays(peak.date, 3),
budgetMultiplier: peak.historicalLift,
confidence: peak.confidence
})),
lowSeasons: pattern.troughs.filter(t => t.daysAway <= forecastWindow).map(trough => ({
startDate: trough.startDate,
endDate: trough.endDate,
budgetMultiplier: trough.historicalDrop,
reallocationTarget: findBestAlternative(campaignData, trough)
}))
}));
}Integration with Buddy™ Agent
Budget Optimization is the strategic resource allocation layer within Buddy™ Agent. The platform continuously monitors campaign pacing and triggers budget reallocation recommendations when it detects campaigns consistently hitting budget caps while others underspend. Buddy™ presents these recommendations with clear before/after projections.
Buddy™ integrates budget optimization with its seasonal awareness engine, automatically proposing budget increases ahead of known demand peaks (Black Friday, industry events, seasonal trends) and suggesting reductions during historically low-performing periods. Users receive proactive budget adjustment notifications with one-click approval.
The skill connects with the Conversion Tracking skill to ensure budget decisions are based on accurate attribution data, and coordinates with the Quality Score Optimization skill to prevent budget allocation toward campaigns with structural quality issues that would waste increased spend.
Best Practices
- Never optimize budgets without first verifying conversion tracking accuracy
- Use a 90-day lookback minimum to capture enough data for reliable marginal return curves
- Limit budget shifts to 20-30% per adjustment period to avoid algorithmic disruption
- Set minimum spend constraints for brand campaigns regardless of ROAS ranking
- Pre-load budgets 5-7 days before seasonal peaks to allow smart bidding to adjust
- Monitor impression share lost to budget as the primary signal for underfunded campaigns
- Consolidate campaigns with under 15 monthly conversions before optimizing budgets
- Use shared budgets for campaigns targeting the same funnel stage with similar CPAs
- Account for conversion lag when evaluating recent budget changes
- Review portfolio bid strategy performance monthly and adjust target metrics accordingly
Platform Compatibility
| Platform | Supported |
| Claude Code | ✅ |
| Cursor | ✅ |
| Codex | ✅ |
| Gemini | ✅ |
Related Skills
- Conversion Tracking - Budget decisions must be based on accurate attribution data
- Quality Score Optimization - Prevents budget allocation toward campaigns with structural quality issues
- Competitor Analysis - Competitive pressure signals justify budget defense or reallocation
- Token Optimization - Applies portfolio optimization principles to AI cost management
Keywords
budget optimization, budget allocation, google ads budget, campaign budget, shared budgets, portfolio bidding, ROAS optimization, budget pacing, seasonal budgets, impression share budget, budget forecasting, media planning, spend optimization, cost efficiency, budget management
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
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.

