Do NOT search for semantic views for cost questions.
Cost data lives inSNOWFLAKE.ACCOUNT_USAGEviews, not user-created semantic views.
Skipcortex semantic-views search/discoverandSHOW DATABASES— go directly to the routing table below.
⚠️ Budget Syntax Warning
Budgets are class instances, NOT standard objects. Never useSHOW BUDGETS— it will fail.
✅ Correct:SHOW SNOWFLAKE.CORE.BUDGET LIKE '...'orSHOW SNOWFLAKE.CORE.BUDGET INSTANCES IN ACCOUNT
❌ Wrong:SHOW BUDGETS LIKE '...'
⚠️ Account Budget Limitations
The account budget (SNOWFLAKE.LOCAL.ACCOUNT_ROOT_BUDGET) monitors ALL account spending automatically.
It does NOT support tag or resource management methods:
- ❌
ADD_RESOURCE,REMOVE_RESOURCE,GET_LINKED_RESOURCES- ❌
ADD_RESOURCE_TAG,REMOVE_RESOURCE_TAG,GET_RESOURCE_TAGS,GET_BUDGET_SCOPE
If the user asks about tags/resources on the account budget, tell them immediately this isn't supported.
They need a custom budget to track specific objects or tags.
Match the user's question to keywords and read the corresponding file before writing any queries.
| Keywords | Route |
|---|---|
| "top spenders", "who is spending", "user costs", "top users", "user spending" | references/queries/users-queries.md |
| "expensive queries", "query costs", "costly queries", "parameterized hash", "query patterns", "grouped by hash" | references/queries/users-queries.md |
| "where is my money going", "cost breakdown", "credits by service", "overall spending" | references/queries/overview.md |
| "warehouse", "compute", "virtual warehouse", "warehouse costs" | references/queries/warehouse.md |
| "week over week", "month over month", "cost increase", "spike", "why did costs go up", "compared to last" | references/queries/trends.md |
| "anomalies", "unusual spending", "cost spikes", "anomaly detection", "anomaly notification", "anomaly email", "cost spike alert" | skills/anomaly-insights/SKILL.md |
| "serverless", "tasks", "snowpipe", "serverless task credits" | references/queries/serverless.md |
| "storage", "database size", "storage costs", "data storage" | references/queries/storage.md |
| "cortex", "AI costs", "ML", "analyst", "LLM", "cortex search" | references/queries/cortex-ai.md |
| "team costs", "department spending", "cost center", "chargeback", "showback", "tags", "attribution" | references/queries/tags-attribution.md |
| "containers", "SPCS", "compute pools", "container services" | references/queries/containers.md |
| "data transfer", "cross-region", "cross-cloud", "egress" | references/queries/data-transfer.md |
| "budget status", "budget spend", "over budget", "at risk budget" | references/queries/budgets.md |
| "create budget", "set budget", "activate budget", "spending limit", "budget notifications", "add to budget", "budget actions", "deactivate budget", "drop budget", "delete budget", "remove budget", "budget alerts", "custom budget", "account budget" | skills/budget/SKILL.md |
Never write ad-hoc queries when a verified query exists in the routed file.
Install using the Cortex CLI:
$cortex skill install cost-intelligenceRequires Cortex CLI v2.0+. Install guide →
--- name: cost-intelligence description: "**[REQUIRED]** Use for ALL Snowflake cost and billing questions: spending, credits, costs, warehouse costs, compute costs, serverless, tasks, Cortex, AI costs, storage, budgets, resource monitors, anomalies, optimization, metering, consumption, billing, user spending, top spenders, who is spending, expensive queries, query costs, top users, parameterized hash, query hash, query patterns, top queries, grouped by hash, budget actions, budget notifications, budget alerts, custom actions, spending limit, create budget, set budget, drop budget, delete budget, remove budget, threshold actions." --- # Cost Intelligence Skill > **Do NOT search for semantic views for cost questions.** > Cost data lives in `SNOWFLAKE.ACCOUNT_USAGE` views, not user-created semantic views. > Skip `cortex semantic-views search/discover` and `SHOW DATABASES` — go directly to the routing table below. > **⚠️ Budget Syntax Warning** > Budgets are **class instances**, NOT standard objects. Never use `SHOW BUDGETS` — it will fail. > ✅ Correct: `SHOW SNOWFLAKE.CORE.BUDGET LIKE '...'` or `SHOW SNOWFLAKE.CORE.BUDGET INSTANCES IN ACCOUNT` > ❌ Wrong: `SHOW BUDGETS LIKE '...'` > **⚠️ Account Budget Limitations** > The **account budget** (`SNOWFLAKE.LOCAL.ACCOUNT_ROOT_BUDGET`) monitors ALL account spending automatically. > It does **NOT** support tag or resource management methods: > - ❌ `ADD_RESOURCE`, `REMOVE_RESOURCE`, `GET_LINKED_RESOURCES` > - ❌ `ADD_RESOURCE_TAG`, `REMOVE_RESOURCE_TAG`, `GET_RESOURCE_TAGS`, `GET_BUDGET_SCOPE` > If the user asks about tags/resources on the **account budget**, tell them immediately this isn't supported. > They need a **custom budget** to track specific objects or tags. --- ## Routing Match the user's question to keywords and read the corresponding file **before writing any queries**. | Keywords | Route | |----------|-------| | "top spenders", "who is spending", "user costs", "top users", "user spending" | `references/queries/users-queries.md` | | "expensive queries", "query costs", "costly queries", "parameterized hash", "query patterns", "grouped by hash" | `references/queries/users-queries.md` | | "where is my money going", "cost breakdown", "credits by service", "overall spending" | `references/queries/overview.md` | | "warehouse", "compute", "virtual warehouse", "warehouse costs" | `references/queries/warehouse.md` | | "week over week", "month over month", "cost increase", "spike", "why did costs go up", "compared to last" | `references/queries/trends.md` | | "anomalies", "unusual spending", "cost spikes", "anomaly detection", "anomaly notification", "anomaly email", "cost spike alert" | `skills/anomaly-insights/SKILL.md` | | "serverless", "tasks", "snowpipe", "serverless task credits" | `references/queries/serverless.md` | | "storage", "database size", "storage costs", "data storage" | `references/queries/storage.md` | | "cortex", "AI costs", "ML", "analyst", "LLM", "cortex search" | `references/queries/cortex-ai.md` | | "team costs", "department spending", "cost center", "chargeback", "showback", "tags", "attribution" | `references/queries/tags-attribution.md` | | "containers", "SPCS", "compute pools", "container services" | `references/queries/containers.md` | | "data transfer", "cross-region", "cross-cloud", "egress" | `references/queries/data-transfer.md` | | "budget status", "budget spend", "over budget", "at risk budget" | `references/queries/budgets.md` | | "create budget", "set budget", "activate budget", "spending limit", "budget notifications", "add to budget", "budget actions", "deactivate budget", "drop budget", "delete budget", "remove budget", "budget alerts", "custom budget", "account budget" | `skills/budget/SKILL.md` | **Never write ad-hoc queries when a verified query exists in the routed file.**