
Cost Trend
- 588 installs
- 67k repo stars
- Updated August 4, 2026
- ruvnet/ruflo
cost-trend is a ruflo Claude Code skill that reads every docs/benchmarks/runs/*.json file and reports first-to-last drift in win rate, latency, escalation rate, and LLM-baseline cost over time.
About
cost-trend is a Testing & QA skill in ruvnet/ruflo that analyzes persisted benchmark runs in docs/benchmarks/runs/*.json to surface performance drift over time. While the smoke gate passes when winRate is at or above 0.80, cost-trend catches slow regressions such as win rate creeping from 100% toward 85% that still pass binary gates. The skill reports first-to-last deltas plus a per-run series, flagging regressions in win rate, latency, escalation rate, and LLM-baseline cost. Developers reach for cost-trend before releases to verify benchmark curves remain healthy and to detect gradual degradation across the full run corpus.
- cost-trend
Cost Trend by the numbers
- 588 all-time installs (skills.sh)
- +10 installs in the week ending Jul 26, 2026 (Skillselion tracking)
- Ranked #673 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill cost-trendAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 588 |
|---|---|
| repo stars | ★ 67k |
| Last updated | August 4, 2026 |
| Repository | ruvnet/ruflo ↗ |
How do you detect benchmark regressions over time?
Use cost-trend for development tasks
Who is it for?
Developers maintaining ruflo benchmark suites who need trend analysis beyond the 0.80 winRate smoke gate.
Skip if: Projects without persisted docs/benchmarks/runs/*.json files or teams satisfied with one-off pass/fail smoke checks.
When should I use this skill?
User wants benchmark drift analysis, checks win rate or latency trends, or reviews docs/benchmarks/runs before a release.
What you get
First-to-last drift report, per-run benchmark series, and flagged win-rate or latency regressions
- Drift summary report
- Per-run benchmark series
- Regression flags
By the numbers
- Smoke gate threshold: winRate ≥ 0.80
- Reads every file in docs/benchmarks/runs/*.json
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.mjsOptional env:
TREND_FORMAT=json— emit JSON instead of markdownTREND_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.
3. Inspect the per-run series — one row per run, including Sonnet 4.6 + Opus 4.7 baseline latencies if those were enabled (BENCH_ANTHROPIC=1 at run time).
4. Regression flags — the script emits > ⚠ Regression callouts when:
- Win rate dropped between first and last run
- Avg latency rose ≥ 1.5× from first run
Cross-references
cost-benchmark— the producer of the run JSONs this skill consumesbench/booster-corpus.json— the corpus version is recorded in each run, so trends across corpus versions remain interpretabledocs/benchmarks/runs/latest.json— the most-recent run; smoke step 23 gates onwinRate ≥ 0.80from this file
Related skills
FAQ
What threshold does the ruflo smoke gate use?
The ruflo smoke gate passes when winRate is at or above 0.80. cost-trend complements that binary check by surfacing gradual drift across every docs/benchmarks/runs/*.json file over time.
What metrics does cost-trend track?
cost-trend tracks win rate, latency, escalation rate, and LLM-baseline cost across persisted benchmark runs. It reports first-to-last deltas and a per-run series, flagging regressions the smoke gate may miss.