Skip to content
Back to skills

Cocometer

ASecurity

Show CocoMeter report for the current session: tools called, SQL statements executed, writes performed, estimated token consumption, and estimated Snowflake credit usage.

  • 724 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentssql

Security analysis

A100/100

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

Scanned September 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-37a6776e/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-cocometer-37a6776e)

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"
description: "Show CocoMeter report for the current session: tools called, SQL statements executed, writes performed, estimated token consumption, and estimated Snowflake credit usage."
version: "1.0.0"
author: "CocoPlus"
tags:
  - cocoplus
  - cocometer
---

Your objective is to display the current session CocoMeter report.

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

Read `.cocoplus/meter/current-session.json`. If it does not exist:
Output: "No active meter session. CocoMeter tracking starts automatically when a session begins with CocoMeter enabled. Run `$meter on` to enable and start a new session." Then stop.

Output a formatted report:

```
# CocoMeter — Current Session

Session ID: [session_id]
Started: [started_at]
Phase: [phase]

## Tool Usage
Tools Called: [tools_called]
SQL Statements: [sql_statements]
File Writes: [writes_performed]

## Token Estimate
Estimated tokens consumed: [tokens_consumed]
(Note: exact counts require Coco's native token reporting)

## Transcript Reconciliation
Status: [reconciliation_status if present]
Gap fraction: [metering_gap_fraction if present]
Model drift: [model_drift if present]

## Snowflake Credit Estimate
SQL operations × 0.00001 credits/statement = [estimate] credits
(rough estimate — actual credits depend on compute size and query complexity)
```

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Show zeros for all fields if current-session.json exists but has no data | Zero-filled output looks like a bug; always explain that tracking starts accumulating on next tool use |

## Exit Criteria

- [ ] Report shows Session ID, Started timestamp, and Phase from current-session.json
- [ ] Tool Usage section shows tools called, SQL statements, and file writes
- [ ] Token Estimate and Snowflake Credit Estimate sections are shown with appropriate caveats
- [ ] If reconciliation metadata exists, show status, gap fraction, and model-drift state without hiding the original session counters

Files in this skill

  • archetype-classifier.skill.md1.5 KB
  • chargeback-refresh.skill.md1.5 KB
  • cost-center-resolver.skill.md1.5 KB
  • invoice-generator.skill.md1.5 KB
  • meter-accuracy.skill.md2.3 KB
  • meter-benchmark.skill.md1.3 KB
  • meter-chargeback.skill.md3.2 KB
  • meter-compare.skill.md4.1 KB
  • meter-estimate.skill.md3.4 KB
  • meter-history.skill.md1.9 KB
  • meter-invoice.skill.md1.5 KB
  • meter-off.skill.md2.3 KB
  • meter-on.skill.md2.3 KB
  • meter-reconcile.skill.md4.1 KB
  • meter-refresh.skill.md1.5 KB
  • meter-report.skill.md3.5 KB
  • meter-status.skill.md1.5 KB
  • meter-sync.skill.md2 KB
  • meter-verify.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…