cost-summary
Installation
SKILL.md
Cost Summary
A stable single-call interface that other plugins / scripts / dashboards can shell out to and parse. ADR-0002 considered exposing cost_report / cost_summary as proper MCP tools but deferred that — adding MCP tools requires modifying @claude-flow/cli source, out of scope for plugin-local work. This script is the equivalent: same data, exposed via a stdout JSON contract.
When to use
- Another plugin needs a snapshot of cost state — it shells out to
summary.mjs --format jsonand parses. - A dashboard / Slackbot fetches a one-line cost rollup.
- Quick "where am I right now?" view that pulls from every cost-tracker source (cost-tracking + federation-spend).
Output contract (JSON, stable)
{
"exportedAt": "<ISO>",
"total_cost_usd": 1546.36,
"sessionCount": 1,
"conversationCount": 1,
"byTier": { "haiku": 0, "sonnet": 0, "opus": 1546.36, "unknown": 0 },
Related skills
More from ruvnet/ruflo
agent-swarm
Agent skill for swarm - invoke with $agent-swarm
399agent-workflow
Agent skill for workflow - invoke with $agent-workflow
398workflow-automation
>
387agent-arch-system-design
Agent skill for arch-system-design - invoke with $agent-arch-system-design
382security-audit
>
371agent-architecture
Agent skill for architecture - invoke with $agent-architecture
351