Skip to content
ruvnet avatar

Cost Trend

Read-only trend report over saved benchmark runs that flags win-rate and latency regressions the pass/fail gate misses.

CCM score
67 of 100
skills.sh installs
683
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers drift in win rate, average and p99 latency, escalation rate, and speedup versus Gemini across all docs/benchmarks/runs/*.json files
  • Runs trend.mjs with optional TREND_FORMAT=json for JSON output or TREND_LIMIT=10 to consider only the most recent runs
  • Flags a regression when win rate drops between the first and last run or average latency rises 1.5× or more
  • Designed for pre-release checks, corpus expansion reviews, and agent-booster upgrades, paired with the cost-benchmark skill that produces the run files

Install

$ npx -y skills add ruvnet/ruflo --skill cost-trend -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cost Trend

The smoke gate is binary (winRate ≥ 0.80 → pass/fail). The corpus benchmarks captured over time form a curve — and curves catch regressions the gate misses (win rate slowly creeping from 100% to 85% is "still passing" by smoke but a real degradation).

This skill reads every persisted run in docs/benchmarks/runs/*.json and reports first→last deltas plus a per-run series, flagging regressions in win rate or latency.

When to use

  • Before a release — check that the speedup hasn't drifted.
  • After expanding the corpus — verify older runs still hit the same win rate on the new corpus they reflected.
  • After upgrading agent-booster — surface latency / strategy changes.

Steps

  1. Run the trend script from the project root:

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

    Optional env:

    • TREND_FORMAT=json — emit JSON instead of markdown
    • TREND_LIMIT=10 — consider only the most recent N runs
  2. Inspect the drift summary — first vs last on win rate, avg latency, p99, escalation rate, speedup vs Gemini.

Details

Repository
github.com/ruvnet/ruflo
Categories
Agent Workflow & Planning, Testing & QA
First seen
Jun 3, 2026

Questions

What does the cost-trend skill do?

The cost-trend skill reads every run file in docs/benchmarks/runs and reports how win rate, latency, escalation rate and LLM-baseline cost change over time. It shows first-to-last deltas, a per-run series, and flags regressions in win rate or latency.

How do I install the cost-trend skill?

Run npx -y skills add ruvnet/ruflo --skill cost-trend -y in your project. The skill then lets the agent run the trend script to check whether benchmark performance has drifted before a release.

When should I use cost-trend instead of the smoke gate?

Use cost-trend when you want to catch slow regressions that the binary smoke gate misses, since win rate can creep down while still passing. It is also useful after expanding the corpus or upgrading agent-booster. It sits in the Agent Workflow and Planning category alongside grill-me and grill-with-docs.

What does cost-trend need to run?

It needs the benchmark run JSON files produced by cost-benchmark and the Bash tool, and it runs node plugins/ruflo-cost-tracker/scripts/trend.mjs from the project root. You can set TREND_FORMAT=json for JSON output or TREND_LIMIT to consider only the most recent runs.

More from ruvnet/ruflo

All 236

Similar to Cost Trend

More Agent Workflow & Planning