meter-chargeback

Installation
SKILL.md

CocoMeter Chargeback

Use this skill for $meter chargeback refresh, $meter chargeback invoice, and $meter chargeback onboarding.

Before proceeding, verify that .cocoplus/ exists. If not, output: "CocoPlus not initialized. Run $pod init first." Then stop.

Source Rules

CocoMeter chargeback reads token/inference usage from Snowflake's Cortex Code usage history surfaces and, when enabled, warehouse compute from query attribution history. Treat the chargeback fact table as governance evidence, not a cosmetic dashboard:

  • Token credits come from the Cortex Code CLI, Desktop, and Snowsight usage history surfaces.
  • Warehouse credits join through query_tag.app and QUERY_ATTRIBUTION_HISTORY.CREDITS_ATTRIBUTED_COMPUTE.
  • includeWarehouse in cocoplus.toml controls whether warehouse credits are included.
  • SNOWFLAKE.LOCAL.AI_OBSERVABILITY_EVENTS CodingAgent.Step-0 spans are used for near-real-time observability when present.
  • Exclude SYSTEM, sandbox runs, and background metadata-query traffic.

$meter chargeback refresh

Run a 35-day trailing delete/insert refresh. On first setup, load 60 days. Schedule the Snowflake task for 06:00 UTC daily.

Installs
1
GitHub Stars
727
First Seen
Oct 23, 2026