An advanced skill for L3 autonomous loops. When the token budget nears exhaustion, the agent analyzes its ROI and autonomously drafts a negotiation request for a budget increase rather than silently failing.
60
70%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/budget-negotiator/SKILL.mdWhen you detect that you are nearing your daily token cap (e.g., ≥90% spend) via the loop-budget skill, DO NOT just exit silently. You must negotiate for an extension based on your Return on Investment (ROI).
Ensure that critical work is not arbitrarily blocked by token budgets if the loop has demonstrated a high success rate and the remaining work is critical.
budget-negotiator ONLY activates when loop-budget would otherwise hard-exit (i.e. ≥90% spend), and ONLY when there are High Priority items remaining. If work is not High Priority, yield to the standard loop-budget exit sequence.loop-budget.md. A human MUST explicitly edit loop-budget.md to increase the cap before you can resume.[BUDGET NEGOTIATION] tag without increasing the budget, you must revert to report-only mode and NOT ask again today.Calculate ROI:
loop-run-log.md and sum up the actions_taken, outcome (specifically successes), and tokens_estimate fields for today.STATE.md to identify the severity of the remaining actionable items in the Watch List or High Priority sections.Draft Justification:
actions_taken count and successful outcomes you've completed today based on the JSON log.loop-budget.md field (e.g., "Requesting +50k tokens for the 'Validate/Audit (CI)' max tokens/day").Escalate to Humans:
STATE.md with the tag [BUDGET NEGOTIATION].[BUDGET NEGOTIATION] I have burned 95k/100k tokens for the 'Daily Triage' loop today. However, I have successfully executed 4 actions with a 'fix-proposed' outcome. There is 1 critical CI failure remaining on the main branch. I request a temporary bump of 'Daily Triage' max tokens/day by +50k to resolve it.WAITING_FOR_BUDGET and safely suspend execution.Resume:
loop-budget.md on a subsequent run and verify that the human has increased your token cap.0dc0f3f
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.