تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

budget

بواسطة rogerscristo

Communication
—لم يُقيَّم بعد
تقييمك

موجز

Track agent spending, set budgets and alerts, and prevent surprise bills.

الوصف

ما الذي تفعله هذه المهارة

Logs every transaction an agent makes, enforces a total spending limit, and warns when the balance drops below a set threshold. Blocks purchases that would exceed remaining budget before they happen. Data is stored locally in a JSON file.

Unlike reviewing bills after the fact, it enforces hard limits at purchase time so an agent cannot overspend.

متى تستخدمها

  • Logging an API charge immediately after each external service call
  • Blocking a domain purchase that would exceed the remaining budget
  • Checking available balance before an agent runs overnight tasks
  • Setting a hard spending cap on a weekend automation project
  • Exporting monthly agent expenses to CSV for review

مثال على سير العمل

الإدخال

User asks: Is it safe to spend $25 on a new hosting plan?

الوكيل
  1. 1

    Runs budget.py check --amount 25.00

  2. 2

    Compares requested amount against remaining budget

  3. 3

    Checks whether the post-purchase balance would fall below the alert threshold

  4. 4

    Returns approval or a blocking warning with the current balance

الإخراج

Safe to proceed — $142.50 remaining, above the $50 alert threshold

التثبيت

clawhub install rogerscristo/budget

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط