virtual-dimensions

Installation
SKILL.md

Virtual Dimensions

A virtual dimension is a custom cost axis (e.g. "Environment", "Team", "Product line") built from ordered rules. Each rule has:

  • conditionCel — CEL filter selecting rows (e.g. cos_environment in ["prod"])
  • allocation — where matched spend goes. Supports all types: dimensionValue, existingColumn, splitCost, telemetry (same shapes as get returns for a virtual dimension)

Rules are evaluated top-to-bottom; first match wins. A leftover rule catches everything else.

Edits happen on a draft. Publishing is explicit and triggers BigQuery refresh. Production is unchanged until publish_virtual_dimension.

When to Trigger

  • Building a new custom cost axis (Environment, Team, Product line, …)
  • Editing rules on an existing virtual dimension
  • Previewing leftover %, breakdown, or rule overlap/shadowing
  • Splitting shared cost by a usage metric (telemetry allocation)
  • Publishing a draft after user confirmation
Installs
1
GitHub Stars
2
First Seen
Oct 9, 2026