Skip to content
Back to skills

Cocometer

ASecurity

CocoMeter accuracy learning — displays estimation history, current adjustment factor, sample size, and trend from the accuracy learning feedback loop. Usage: $meter accuracy

  • 724 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
ai-agentsrust

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill cocometer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cocometer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cocometer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snowflake-labs-cocometer/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-cocometer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "meter-accuracy"
description: "CocoMeter accuracy learning — displays estimation history, current adjustment factor, sample size, and trend from the accuracy learning feedback loop. Usage: $meter accuracy"
version: "1.0.3"
author: "CocoPlus"
tags:
  - cocoplus
  - cocometer
---

Your objective is to display CocoMeter's estimation accuracy learning data.

Before proceeding, verify that `.cocoplus/` exists.
If not: output "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

## Read Accuracy Data

Read `.cocoplus/meter/accuracy-history.jsonl` — each line is a session record:
```json
{ "session_id": "...", "estimated_tokens": N, "actual_tokens": N, "estimated_credits": N, "actual_credits": N, "ratio": N, "timestamp": "..." }
```

If the file does not exist or has fewer than 2 entries: output "Not enough sessions to compute calibration factor. Run at least 2 complete sessions with pre-flight estimates to begin accuracy learning." Then stop.

Read `.cocoplus/meter/adjustment-factor.json`:
```json
{ "factor": N, "sample_size": N, "computed_at": "..." }
```

## Compute Trend

From the last 5 session ratios in `accuracy-history.jsonl`:
- If max − min < 0.1: trend = "Stable"
- If last ratio > first ratio by >0.1: trend = "Increasing"
- If last ratio < first ratio by >0.1: trend = "Decreasing"

## Output

```
CocoMeter Accuracy Learning
Adjustment Factor: [factor]x  (from [sample_size] sessions)
Trend: [Stable/Increasing/Decreasing] ([±delta] over last 5 sessions)
Recent sessions: [last 5 ratios, comma-separated]
Advice: [one sentence — e.g. "Your pipelines consistently use ~[factor]x the baseline estimate."]
Pre-flight estimates are being automatically calibrated.
```

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Show calibrated estimates without surfacing the factor | Developer cannot assess whether the calibration is trustworthy without seeing it |
| Use mean instead of median for adjustment factor | Mean is skewed by outlier sessions; median is more robust |

## Exit Criteria

- [ ] Adjustment factor and sample size are shown
- [ ] Trend is computed from last 5 sessions
- [ ] Recent session ratios are listed
- [ ] Output is shown only when at least 2 sessions of data exist

Files in this skill

  • meter-accuracy.skill.md2.3 KB
  • meter-estimate.skill.md3.4 KB
  • meter-history.skill.md1.9 KB
  • meter-off.skill.md2.3 KB
  • meter-on.skill.md2.3 KB
  • meter-report.skill.md3.5 KB
  • meter-sync.skill.md2 KB
  • meter-view.skill.md4.7 KB
  • meter.skill.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…