gcp
Installation
SKILL.md
GCP CLI Skill
Execute GCP CLI commands with proper credential injection.
CRITICAL: Billing Data Interpretation Rules (Anti-Hallucination)
These rules are MANDATORY when analyzing GCP billing data. Violating them produces wildly incorrect cost reports.
Rule 1: NET COST is the Only Real Cost
The cost column in billing exports is NOT your actual bill. It shows usage priced at contract/on-demand rates before credits are applied. Credits (promotional, SUDs, CUDs, free tier) are stored separately in the credits array with negative amounts.
-- Pre-tax net cost (filter cost_type = 'regular'):
NET COST = SUM(cost WHERE cost_type='regular') + SUM(credits.amount)
-- Tax-inclusive net cost (include all cost_types):
NET COST WITH TAX = SUM(cost) + SUM(credits.amount)