Skip to content
Development
Skill

/cost-conversation

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

From plugin
claude-flow
67k200 skills157 agents194 commands1 MCP
Install
$ npx -y skills add ruvnet/claude-flow --skill cost-conversation --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cost-conversation

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

cost-conversation.SKILL.md
name: cost-conversation
description: Per-conversation cost view — list every session in cost-tracking with started-at, message count, top model, and total cost
argument-hint: ""
allowed-tools: Bash

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
Read more
Ships withclaude-flow

An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.

Get the whole plugin

Other skills on claude-flow.