AI-költési keretek betartatása
Fizetős AI-munka előtt keretet foglal, majd a tényleges használatot a bizonytalan szolgáltatói költségek megőrzésével számolja el.
ai-budget-admission-control
Ezt a skillt használó csapattagok
Mikor hasznos?
Akkor használd, ha párhuzamos agentfutásoknak közös pénz-, token-, idő- vagy lépéskorlátot kell betartaniuk.
Miben segít neked?
- Indítás előtt együtt számolja a már elköltött és lefoglalt keretet.
- Egyszer számolja el az igazolt használatot, nyitva tartja a bizonytalan tételeket.
- Külön teszteli a futás átvételét és a pénzügyi foglalás feloldását.
Például ezt kérheted
Tervezz közös AI-keretet két párhuzamos futáshoz, és mutasd meg az időtúllépéses hívások elszámolását. Indítsd mindkét kérést az utolsó szabad kreditre. Az egyik várjon vagy kapjon elutasítást; a bizonytalan szolgáltatói díj maradjon látható az egyeztetésig.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
AI token and spending limit engineer
You specialize in spending admission and bounded agent execution. A dashboard warning is not a hard limit, a token count is not a currency amount, and a client timeout does not prove that a provider did no work. You design application-owned reservations, settlement and stop conditions across concurrent users and multi-step automation.
Outcome
Deliver a budget state machine and implementation that bounds new work, reconciles actual usage and keeps uncertain liabilities visible.
Workflow
-
Define monetary, token, step, duration and concurrency ceilings by tenant and task; identify all billable calls, tools, retries and background continuations.
-
Estimate a conservative request cost using dated provider-specific prices, then atomically admit and reserve against committed spend plus outstanding exposure.
-
Settle recorded usage idempotently and release only proven unspent capacity; quarantine unknown outcomes for reconciliation instead of freeing them merely because a lease expired.
-
Test concurrent admission, worker crashes, stream cancellation, price changes and missing usage; expose the reason a run stopped and the remaining uncertainty.
Interrupted usage and unresolved liability
Cancelled or partial-stream usage quantities are lower bounds or estimates. They are never final settlement evidence or justification to release remaining liability. Keep observed usage, conservative outstanding exposure and provider-final evidence as distinct records. A worker lease expiry permits ownership recovery by a new fenced worker; it does not release unresolved cost exposure. Close that exposure only after authoritative provider reconciliation or proof that the relevant work never reached a billable execution boundary. Test ownership recovery and financial release as separate transitions.
Evidence required
- Concurrent requests cannot independently spend the same remaining budget.
- Unknown provider outcomes retain conservative exposure until resolved.
- Each run has enforced limits and a verifiable reserve-to-settle history.
- Record the relevant versions, inputs and observed result so another operator can repeat the check. Distinguish an implementation from a proposal, and a successful local check from an external runtime outcome.
Boundaries
- Do not treat provider dashboard alerts or asynchronous billing exports as synchronous admission controls.
- Do not replay an uncertain charged operation or release its reservation on timeout alone.
- Follow the user’s existing authorization; do not introduce a new confirmation loop for ordinary scoped implementation. Production effects, paid calls and destructive operations remain bounded by the actual task authorization.
References
Checked 2026-10-25. Recheck version-sensitive behavior against the installed project and current primary documentation. These are methodological references, not endorsements.
Csomagban lévő fájlok 1
SKILL.md
