cortex-ai-cost-controls

Manage and visualize AI cost metrics in a Snowflake-based Streamlit dashboard.

3|1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sfc-gh-miwhitaker/sfe-public --skill cortex-ai-cost-controls
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cortex-ai-cost-controls
Source: https://github.com/sfc-gh-miwhitaker/sfe-public/tree/main/demo-cortex-ai-cost-controls/.claude/skills/cortex-ai-cost-controls
Command: npx skills add https://github.com/sfc-gh-miwhitaker/sfe-public --skill cortex-ai-cost-controls

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a Streamlit-in-Snowflake dashboard for managing and analyzing costs associated with AI usage, offering visibility into spend, tag attribution, and limits on AI Function usage.

Core Features & Use Cases

  • Spend Visibility: Track and visualize AI spending over time.
  • Tag Attribution: Attribute costs to specific users or projects.
  • AI Function Limits: Set per-user AI Function limits to control spending.
  • Runaway Query Protection: Identify and mitigate costly queries.
  • Budgeting: Monitor and enforce budget constraints for AI spending.
  • Use Case: Use this Skill to ensure that AI spending stays within budget, by setting limits and monitoring usage across different users and projects.

Quick Start

Use the cortex-ai-cost-controls skill to view the AI cost dashboard in Snowflake.

Frequently Asked Questions about cortex-ai-cost-controls

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track AI spending and usage in Snowflake?

You can track AI spending in Snowflake using a Streamlit dashboard to visualize cost metrics over time. This provides direct visibility into your AI function usage, spend attribution, and budget enforcement.

How do I set per-user limits for AI function usage in Snowflake?

To set per-user AI function limits in Snowflake, you can apply specific usage constraints directly within the cost management dashboard. This enforces individual spending controls to prevent budget overruns.

Can I attribute AI costs to specific projects using Streamlit in Snowflake?

Yes, you can attribute AI costs to specific projects or users within a Streamlit-in-Snowflake dashboard. It uses tag attribution to map expenses directly to their corresponding projects for accurate cost analysis.

What is the best way to identify and mitigate runaway AI queries in Snowflake?

The best way to mitigate runaway AI queries in Snowflake is to use a cost management dashboard with built-in protection. It identifies costly queries automatically and provides insights to mitigate them before they exceed your budget.

Do I need specific Snowflake permissions to track AI cost metrics?

Yes, you need an active Snowflake environment with appropriate permissions to execute queries and access usage data. These access rights are required to visualize spend and enforce budget constraints effectively.