cost-conversation
できること
このスキルは、記録されたAIのセッションを1つずつ、開始時刻、メッセージ数、主なモデル、合計コストとともに一覧にします。どの会話が最もコストがかかったかを知りたい人向けです。
使う場面
- ✓過去のどの会話が高額だったかを振り返りたいとき。
- ✓長いセッションを計画していて、先に典型的なコストを見たいとき。
- ✓プロジェクトごとにまとめたコストの概要がほしいとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-conversation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
Run the script from anywhere:
node plugins/ruflo-cost-tracker/scripts/conversation.mjsOptional env:
CONV_FORMAT=json— emit JSON instead of markdownCONV_LIMIT=20— show only the most recent N conversationsCONV_NAMESPACE=cost-tracking— override target namespace
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 populatescost-tracking:session-*cost-report— same data, per-agent / per-model lenscost-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
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。