Cortex Skills
  • Skills Directory
  • Categories
  • Docs
Add SkillBrowse Skills
  1. Home
  2. Skills Directory
  3. Cortex Search
  4. cost-intelligence
IntermediateCortex Search

cost-intelligence

[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.
Jump to Installation

Compatible with

Cortex

About this skill

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.

KeywordsRoute
"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.

Installation

Install using the Cortex CLI:

bash
$cortex skill install cost-intelligence

Requires Cortex CLI v2.0+. Install guide →

Repository Sources

Loading repository files...

SKILL.md Preview

SKILL.md
---
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.**

Tags

#cost-intelligence

Related Skills

Browse all
v1.0.0

trust-center

cortex-community
Use for ALL Snowflake Trust Center requests: security findings, scanner analysis, scanner management, finding remediation, severity distribution, CIS benchmarks, Security Essentials, Threat Intelligence, enable/disable scanners, scanner schedules, notifications, at-risk entities, security posture, vulnerability analysis, detection analysis, remediation guidance.
#trust-center
Cortex
308385
2 hours ago
v1.0.0

cortex-ai-functions

cortex-community
Use Snowflake Cortex AI Functions for text/image analytics. Use when: classifying content, extracting entities, sentiment analysis, summarizing text, translating, filtering, embedding, parsing documents, redacting PII, aggregating data, document intelligence workflows, content insight workflows. Triggers: AI_CLASSIFY, AI_COMPLETE, AI_EXTRACT, AI_FILTER, AI_SENTIMENT, AI_SUMMARIZE, AI_TRANSLATE, AI_EMBED, AI_AGG, AI_REDACT, AI_PARSE_DOCUMENT, classify text, data, documents, extract from text, extract text from document, extract text from PDF, extract text from image, extracting, invoices, sentiment, summarize, translate, which AI function, cortex function, process documents, label content, analyze text, OCR, read PDF, read document, get text from PDF, get text from document, pull text from file, extract data from files, extract from my files, process my files, my files, my documents, read my documents, get data from document, file extraction, document processing, file processing, get information from documents, analyze files, parse files, data from PDF, invoice processing, contract extraction, receipt extraction, form extraction, extract fields, document data, file data, stage files, files on stage, PDF extraction, image extraction, document OCR, scan documents, digitize documents.
#cortex-ai-functions
Cortex
2703.3k
2 hours ago
v1.0.0

machine-learning

cortex-community
[REQUIRED] For ALL data science and machine learning tasks. This skill should ALWAYS be loaded in even if only a portion of the workflow is related to machine learning. Use when: analyzing data, training models, deploying models to Snowflake, registering models, working with ML workflows, running ML jobs on Snowflake compute, model registry, model service, model inference, log model, deploy pickle file, experiment tracking, model monitoring, ML observability, tracking drift, model performance analysis, distributed training, XGBoost, LightGBM, PyTorch, DPF, distributed partition function, many model training, hyperparameter tuning, HPO, compute pools, train at scale, pipeline orchestration, DAG, task graph, schedule training. Routes to specialized sub-skills.
#machine-learning
Cortex
2103.4k
2 hours ago
v1.0.0

integrations

cortex-community
trending
#integrations
Cortex
1044.1k
2 hours ago

Details

Stars309
Installs3.5k
Authorcortex-community
Versionv1.0.0
Updated2 hours ago
LicenseMIT
View Repository
quick install
$ cortex skill install cost-intelligence