Skillpedia
متفرقات81k · #1603

cost-ledger

ما الذي تفعله

تقرأ هذه المهارة سجلات الاستخدام التي تحفظها أدوات البرمجة بالذكاء الاصطناعي على جهازك، وتعرض الإنفاق والرموز واستخدام الذاكرة المؤقتة لكل مزود. وهي مناسبة لمن يستخدم أكثر من أداة ذكاء اصطناعي ويريد عرضًا واحدًا.

متى تستخدمها

  • ✓عندما تسأل كم أنفقت على أدوات الذكاء الاصطناعي هذا الأسبوع.
  • ✓عندما تريد مقارنة تكلفة Codex وClaude Code.
  • ✓عندما تريد معرفة النماذج التي ليس لها سعر بعد.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-ledger/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كم أنفقت هذا الأسبوع على أدوات البرمجة بالذكاء الاصطناعي عبر كل المزودين؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تقرأ المهارة السجلات المحلية وتسعّر الاستخدام من قائمة أسعار بتاريخ محدد، ثم تعرض الإجماليات. والنماذج التي ليس لها سعر تُدرج في قائمة منفصلة بدلًا من حسابها مجانية.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Cost Ledger

Reads the logs the agents already wrote (~/.claude/projects, $CODEX_HOME or ~/.codex) and prices them from data/prices.json (dated, editable).

Run

node ${CLAUDE_PLUGIN_ROOT}/scripts/ledger.mjs --since 7d
node ${CLAUDE_PLUGIN_ROOT}/scripts/ledger.mjs --provider codex --format json

One mission, or one project

--from and --to (ISO times) cut the window and --project <absolute path> keeps one project's rows; the console's mission page uses them for a mission's spend. An explicit --from/--to replaces the default 7-day look-back.

Read the result correctly

  • USD and Codex credits are never added. GPT-6 Codex models are priced in credits; their cached-input rate is unpublished, so the figure is an upper bound.
  • Estimates at list price, not bills. Subscriptions bill by window, not by token. /usage is authoritative for the live Claude session; the Console or provider dashboard is authoritative for invoices.
  • Unpriced models are listed, never counted as $0. Say so, and offer to add them to data/prices.json.
  • Counting rules (why numbers differ from naive sums): Claude messages are de-duplicated by message.id + requestId; Codex uses deltas of the running total_token_usage (never also last_token_usage), cached input is a subset of input, and forked rollouts are de-duplicated.
  • Claude transcript output tokens can under-count streamed output.

If the log directory is missing, say so; do not invent numbers.

الأسئلة الشائعة

هل تُرسل بياناتي إلى أي مكان؟

تستخدم المهارة السجلات المحلية فقط، ولا يُرسل شيء. والتكاليف تقديرات بالسعر المعلن، وليست فواتير.

لماذا لا تتطابق إجماليات الدولار والاعتمادات؟

لأن اعتمادات Codex والدولار الأمريكي وحدتان مختلفتان، فلا تُجمعان أبدًا.

هل يمكنني النظر إلى مشروع واحد فقط؟

نعم. يحصر إعداد المشروع الأرقام في مجلد مشروع واحد، ويمكن تحديد نطاق زمني أيضًا.

التفاصيل

الوصف الأصلي من المؤلف

One cost view across Claude Code, Codex and Grok on this machine — spend, tokens, cache hit ratio per provider and model, with unpriced models flagged. Use when asked "what did I spend", "how much did Codex cost", or to compare providers. Local logs only, nothing is sent.

repo: ruvnet/ruflo

الشعبية

نجوم GitHub
81k
الترتيب
#1603
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة