跳到正文
Skillpedia
其他81k · #1597

cost-conversation

它能做什么

这项技能列出你记录过的每一次 AI 会话,包括开始时间、消息数量、主要模型和总成本。适合想查看哪些对话花费最多的人。

适用场景

  • ✓当你想回顾过去哪些对话比较昂贵时。
  • ✓当你计划一次长会话,想先了解典型成本时。
  • ✓当你希望按项目分组查看成本摘要时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-conversation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请告诉我,我的哪些 AI 对话花费最多。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能读取已记录的会话数据,生成一个包含总计和各模型明细的表格。你可以只显示最近的对话,或要求输出 JSON 格式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cost per Conversation

cost-report and cost-optimize aggregate by agent and model. This skill aggregates by conversation (session) — a different lens that surfaces which conversations cost the most. Useful for retrospectives ("which sessions ran long on Opus?") and for evaluating whether a given project's session pattern is sustainable.

When to use

  • After multiple sessions, to see total spend per conversation.
  • Before scoping a long session, to understand typical cost-per-conversation.
  • For per-project rollups via CONV_NAMESPACE=cost-tracking-<project>.

Steps

  1. Run the script from anywhere:

    node plugins/ruflo-cost-tracker/scripts/conversation.mjs
    

    Optional env:

    • CONV_FORMAT=json — emit JSON instead of markdown
    • CONV_LIMIT=20 — show only the most recent N conversations
    • CONV_NAMESPACE=cost-tracking — override target namespace
  2. Inspect the markdown table — total cost across all conversations, per-tier rollup, then a per-session table (started-at, sessionId prefix, message count, top model, cost).

Cross-references

  • cost-track — the producer that populates cost-tracking:session-*
  • cost-report — same data, per-agent / per-model lens
  • cost-trend — drift across bench runs (different axis: corpus runs vs conversations)
  • cost-budget-check — sums across conversations to evaluate the budget threshold
常见问题

我能只看最近的对话吗?

可以。设置一个数量限制,即可只显示最近的对话。

它与成本报告有什么不同?

成本报告按智能体和模型分组汇总支出,而这项技能按对话分组。

我能获得机器可读的格式吗?

可以。一个设置可以将输出切换为 JSON。

详情

作者的原始描述

Per-conversation cost view — list every session in cost-tracking with started-at, message count, top model, and total cost

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1597
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能