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.appandQUERY_ATTRIBUTION_HISTORY.CREDITS_ATTRIBUTED_COMPUTE. includeWarehouseincocoplus.tomlcontrols whether warehouse credits are included.SNOWFLAKE.LOCAL.AI_OBSERVABILITY_EVENTSCodingAgent.Step-0spans 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.