meter-estimate

meter-estimate is a skill for Claude Code, Codex from Snowflake-Labs/cocoplus. It costs 42 tokens per session (842 once invoked), scanned A, original, MIT.

A pre-flight estimator for the tokens and Snowflake credits a planned CocoPlus action may use. Snowflake is a cloud data platform used here to run data workloads.

In plain words
What is it for?
Use it to estimate a described action or an entire multi-stage flow before execution.
Why use it?
It helps you check expected cost before running a workflow and warns when configured limits may be exceeded.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to estimate a described action or an entire multi-stage flow before execution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/cocoplus/meter-estimate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Snowflake-Labs/cocoplus --skill meter-estimate
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for meter-estimate

README.md
[![agentmods](https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/meter-estimate.svg)](https://agentmods.dev/skills/snowflake-labs/cocoplus/meter-estimate)
Your own site
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/meter-estimate"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/meter-estimate.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00842
Opus 5 $0.00021 $0.00421
Sonnet 5 $0.00008 $0.00168
Haiku 4.5 $0.00004 $0.00084

Measured 4d ago against content hash 9ae8140d265e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

meter-estimate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cortex/skills/cocometer/meter-estimate.skill.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Your objective is to estimate token and cost impact before executing an action.

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

If no argument provided: read .cocoplus/flow.json to estimate the full pipeline. If argument provided (e.g., $meter estimate "run 3-stage pipeline"): estimate the described action.

Estimation Approach

For pipeline estimation:

  • Count stages in flow.json
  • For each stage, estimate based on persona and typical workload:
    • data-engineer: ~8,000 tokens/stage (SQL-heavy)
    • analytics-engineer: ~6,000 tokens/stage (semantic modeling)
    • data-scientist: ~12,000 tokens/stage (notebook + analysis)
    • data-analyst: ~4,000 tokens/stage (queries + reporting)
    • bi-analyst: ~3,000 tokens/stage (visualization spec)
    • data-product-manager: ~2,000 tokens/stage (documentation)
    • data-steward: ~3,000 tokens/stage (governance)
    • chief-data-officer: ~2,000 tokens/stage (review)

Apply Accuracy Learning Calibration

Read .cocoplus/meter/adjustment-factor.json if it exists:

{ "factor": N, "sample_size": N, "computed_at": "..." }

If the file exists and sample_size >= 2:

  • calibrated_total = raw_total × factor
  • Calibration label: (baseline: [raw_total], calibration factor: [factor]x from [sample_size] prior sessions) Else:
  • calibrated_total = raw_total
  • No calibration label

Write estimate to .cocoplus/meter/preflight-log.jsonl:

{ "session_id": "[current-session-id]", "estimated_tokens": [calibrated_total], "estimated_credits": [estimated_credits], "timestamp": "[ISO 8601]" }

Output:

# Pre-flight Estimate

Action: [described action or "Full pipeline execution"]

## Token Estimate
Per stage breakdown:
[stage name] ([persona]): ~[estimate] tokens
...
Baseline estimate: ~[raw_total] tokens
[If calibrated:] Calibrated estimate: ~[calibrated_total] tokens [calibration label]
[If not calibrated:] Total estimate: ~[raw_total] tokens (conservative — no calibration data yet)

## Snowflake Credit Estimate
Estimated SQL calls: ~[N]
Estimated credits: ~[N × 0.00001] credits

## Budget Check
Configured threshold: [from cost-tracker.monitor.json]
Estimate vs threshold: [WITHIN / EXCEEDS by N%]

Note: These are estimates. Actual usage depends on response length, query complexity, and data volume.
Run `$meter accuracy` to view calibration history.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 91 lines · 42 tokens per session scan A 9ae8140d265e

Subscribe to this mod's changes

meter-estimate is a skill published in the GitHub repository Snowflake-Labs/cocoplus (720 stars, last pushed 4d ago), licensed MIT. It adds 42 tokens to every session and 842 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

comparable-company-analysis

A workflow for comparing a publicly listed company with similar listed companies. It examines their businesses, financial results, competitors, and recent developments.

wanxingai/LightAgent · 46 tokens

财经分析工具包

A set of finance analysis tools for stocks, markets, portfolios, and financial news. It includes data retrieval, technical indicators such as moving averages and RSI, trend analysis, risk assessment, and allocation suggestions.

wanxingai/LightAgent · 35 tokens

stripe

Read Stripe account state from a terminal or agent: balance, payment intents, and subscriptions — and perform guarded mutations like canceling a subscription — backed by a bundled stripe-cli script that is read-only first and gates every state-changing command behind a --dry-run/--yes confirmation. Use when an agent…

magnus919/agent-skills · 116 tokens

yc-default-alive-calculator

Evaluate startup runway, burn, revenue, and profitability trajectory using the Default Alive / Default Dead framework. Do not use this skill for weekly growth experiments or operating growth decisions; use yc-weekly-growth-compass for those decisions.

magnus919/agent-skills · 54 tokens

actuarial-risk-modeling

Use when analyzing, selecting, validating, or communicating models for insurance, actuarial, financial-risk, or other consequential uncertain outcomes. Covers regression, generalized linear models, frequency-severity, panel and longitudinal data, survival, time series, credibility, reserving, tail risk, calibration…

magnus919/agent-skills · 101 tokens

financial-modeling

Build and review assumptions-led financial models, unit economics, pricing, fundraising scenarios, and SaaS operating metrics. Use when calculating CAC, LTV, payback, runway, ARR, churn, NDR, Rule of 40, or sales efficiency; when modeling revenue, costs, cash flow, pricing, cap tables, or financing. Do not use this…

magnus919/agent-skills · 88 tokens