मुख्य सामग्री पर जाएँ
Skillpedia
विविध81k · #1595

cost-burn

यह क्या करती है

यह स्किल समय के साथ रोज़ाना AI खर्च देखती है और जाँचती है कि ताज़ा दिन पहले की तुलना में बहुत ज़्यादा है या नहीं। जो लोग खर्च में अचानक बढ़ोतरी पर नज़र रखना चाहते हैं, उनके लिए यह है।

कब इस्तेमाल करें

  • ✓जब आप जानना चाहें कि AI का खर्च तेज़ी से बढ़ रहा है या नहीं।
  • ✓जब रोज़ाना खर्च रिपोर्ट सामान्य से ज़्यादा लगे और आप उसकी पुष्टि करना चाहें।
  • ✓जब तय प्रतिशत से ज़्यादा उछाल आने पर अपने-आप अलर्ट चाहिए।

Skill का लिंक

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-burn/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-burn/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या मेरा रोज़ का AI खर्च पहले की तुलना में तेज़ी से बढ़ रहा है?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल पिछले सत्रों को रोज़ के समूहों में बाँटती है, ताज़ा समूह की तुलना पहले के दिनों के औसत से करती है, और डॉलर तथा प्रतिशत में बदलाव बताती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Burn-rate trend observability. The fourth leg of the cost-tracker forward-cost stack:

Question Skill
"Have we crossed a threshold?" (reactive) cost-budget-check
"When will we cross a threshold?" (predictive) cost-projection
"Could we have spent less?" (comparative) cost-counterfactual
"Is daily burn ACCELERATING?" (trend) cost-burn ← this

Algorithm

Implementation: scripts/burn.mjs.

  1. Read all session-* records from cost-tracking namespace.
  2. Bin into --bucket duration windows (default 1d) over --lookback (default 14d).
  3. For each bucket: {n: sessions, spendUsd: sum(total_cost_usd)}.
  4. Compute delta = latest.spendUsd - mean(prior non-empty buckets).
  5. If --alert-on-acceleration-pct N is set: exit 1 when deltaPct > N.

Smoke transcript (5 days @ $0.10/day, today $0.50 — 400% acceleration)

| Latest bucket spend | $0.500000 (1 sessions) |
| Prior bucket mean | $0.100000 (4 non-empty buckets) |
| **Delta (latest vs prior mean)** | **+$0.400000 (400.00%)** |

# | Window                              | Sessions | Spend
0 | 2026-06-15 14:16 → 2026-06-16 14:16 | 1        | $0.500000
1 | 2026-06-14 14:16 → 2026-06-15 14:16 | 0        | $0.000000
2 | 2026-06-13 14:16 → 2026-06-14 14:16 | 1        | $0.100000
3 | 2026-06-12 14:16 → 2026-06-13 14:16 | 1        | $0.100000
...

Drift alert exit code

$ cost burn --bucket 1d --lookback 7d --alert-on-acceleration-pct 50 ⚠ ALERT: latest bucket $0.500000 is 400.0% above prior mean $0.100000 (threshold +50%) exit 1

$ cost burn --bucket 1d --lookback 7d --alert-on-acceleration-pct 500 ✓ latest bucket within +500% of prior mean (actual delta: 400.0%) — OK exit 0

CI integration

# Fail the build if today's spend accelerated > 100% over the weekly mean
cost burn --bucket 1d --lookback 7d --alert-on-acceleration-pct 100 || alert-oncall

The alert is independent of budget — it triggers on rate ACCELERATION even when total spend is well under budget. Catches "we shipped a hot loop that burns 10× normal" before the budget alarm goes off.

Distinct from cost-trend

Skill Data source Question
cost-trend docs/benchmarks/runs/*.json "Is the benchmark drifting (win rate, latency)?"
cost-burn cost-tracking namespace "Is production spend accelerating?"

Both useful; they answer different questions on different data.

Edge cases

  • Sparse history (no prior non-empty buckets): alert is SKIPPED with a reason string, exit 0. Operators don't get spurious alerts on cold-start.
  • Prior buckets all $0 but latest > $0: delta is Infinity/null in JSON, marked new in the table. No alert fires (no baseline to compare against).
  • --bucket > --lookback: hard error, exit 2.
अक्सर पूछे जाने वाले सवाल

यह कितनी अवधि देखती है?

डिफ़ॉल्ट रूप से यह 14 दिन पीछे देखती है और खर्च को एक-दिन के हिस्सों में बाँटती है। आप दोनों सेटिंग्स बदल सकते हैं।

क्या यह अलर्ट चला सकती है?

हाँ। अगर आप प्रतिशत की सीमा तय करते हैं, तो ताज़ा दिन उससे ऊपर जाने पर जाँच विफल हो जाती है।

बजट जाँच से यह कैसे अलग है?

बजट जाँच तय सीमा देखती है। यह देखती है कि खर्च कितनी तेज़ी से बदल रहा है।

जानकारी

लेखक का मूल विवरण

Burn-rate trend over time with optional drift-alert exit code. Bins session spend into buckets, surfaces window-over-window delta, and can exit 1 when latest bucket exceeds prior mean by a configurable %. Distinct from `cost-trend` (benchmark drift); this tracks PRODUCTION spend trajectory.

repo: ruvnet/ruflo

लोकप्रियता

GitHub स्टार
81k
रैंकिंग में स्थान
#1595
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

agent-adaptive-coordinator

81k

आपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।

AI और एजेंटएजेंट

agent-agent

81k

आपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।

AI और एजेंटएजेंट

agent-agentic-payments

81k

AI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।

AI और एजेंटएजेंट

agent-analyze-code-quality

81k

आपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills