fix: make cost-report skill warehouse-agnostic

Closed
SU
8mo ago
+332-78

Summary

  • Remove hardcoded Snowflake ACCOUNT_USAGE.QUERY_HISTORY SQL from cost-report skill
  • Use existing FinOps tools (finops_expensive_queries, finops_analyze_credits, finops_warehouse_advice, finops_unused_resources) for the Snowflake path
  • Add references/ directory with warehouse-specific cost queries for BigQuery, Databricks, and PostgreSQL
  • Add warehouse_list detection as the first workflow step
  • Add "Use when" trigger phrasing to description for better LLM auto-activation

Test plan

  • Verify skill loads correctly and references/ files are discoverable
  • Test Snowflake path uses FinOps tools (no raw SQL)
  • Test BigQuery/Databricks/Postgres paths load correct reference file

šŸ¤– Generated with Claude Code