monte-carlo-data/mc-agent-toolkit/skills/storage-cost-analysis/SKILL.md
monte-carlo-storage-cost-analysis
Analyze a warehouse for stale, unused, or redundant tables via the analyze_storage_costs MCP tool. Classifies waste patterns and table categories, computes safety tiers, and handles category drill-downs and lineage follow-ups.
- Source repository stars
- 91
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-08-24
- Source checked
- 2026-08-28
Decision brief
What it does: where it fits
This skill analyzes a data warehouse for stale tables that can be removed to reduce storage costs. It delegates classification, safety scoring, and formatting to the analyzestoragecosts MCP tool, then presents the pre-formatted result verbatim and handles follow-up questions (ca…
Not for
- Storage costs only -- not compute, query optimization, or billing
- One warehouse per analysis
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/monte-carlo-data/mc-agent-toolkit --skill "skills/storage-cost-analysis"Inspect the Agent Skill "monte-carlo-storage-cost-analysis" from https://github.com/monte-carlo-data/mc-agent-toolkit/blob/b7e848b845a29799bedb792d0830cb9e76afa0cb/skills/storage-cost-analysis/SKILL.md at commit b7e848b845a29799bedb792d0830cb9e76afa0cb. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow
Important: These steps are internal instructions for you. Do NOT expose step numbers, step names, or the procedural structure to the user. Just act naturally.
If the user specified a warehouse (by name or UUID), use it.If not: call analyzestoragecosts with no warehouseid. The tool will either auto-pick when only one supported warehouse exists, or return a list of supported warehouses — let the user choose one, then call the tool again…warehouseid: the warehouse UUID - 02
Step 1: Identify the warehouse
You need a warehouse to proceed.
If the user specified a warehouse (by name or UUID), use it.If not: call analyzestoragecosts with no warehouseid. The tool will either auto-pick when only one supported warehouse exists, or return a list of supported warehouses — let the user choose one, then call the tool again…You need a warehouse to proceed. - 03
Step 2: Run the analysis
Call analyzestoragecosts with:
warehouseid: the warehouse UUIDIf the tool returns an error, report it to the user and stop.If no candidates are found, tell the user and stop. - 04
Step 3: Present the initial summary
The tool output contains two regions:
A block with a condensed summary, a Top-N table, and a drill-down prompt.A block with per-category tables wrapped in -- markers. Do NOT present these yet.The tool output contains two regions: - 05
Step 4: Handle follow-up requests
Category drill-downs. When the user asks about a specific category ("show me temporary tables", "what about production?", "tell me more about archive"):
Find the matching -- section in the analyzestoragecosts result already in the conversation. Do NOT re-invoke analyzestoragecosts — the data is already there.Present that section's content verbatim — every column, row, and value.After presenting, remind the user of remaining categories they haven't explored yet.
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 91 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- monte-carlo-data/mc-agent-toolkit
- Skill path
- skills/storage-cost-analysis/SKILL.md
- Commit
- b7e848b845a29799bedb792d0830cb9e76afa0cb
- License
- Apache-2.0
- Collected
- 2026-08-28
- Default branch
- main
View the original SKILL.md
Monte Carlo Storage Cost Analysis Skill
This skill analyzes a data warehouse for stale tables that can be removed to reduce storage costs. It delegates classification, safety scoring, and formatting to the analyze_storage_costs MCP tool, then presents the pre-formatted result verbatim and handles follow-up questions (category drill-downs, lineage checks).
Monte Carlo tool routing (required): Always call Monte Carlo MCP tools through this plugin's bundled server, whose fully-qualified tool names are
mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__<tool>(e.g.mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__get_alerts). Bare tool names used in this skill (get_alerts,search,get_table, …) refer to that bundled server. If the session also has a separately-configuredmonte-carlo-mcpserver, do not route to it — it may point at a different endpoint or credentials.
Reference file (use the Read tool to access it):
- Output contract and category keywords:
references/output-structure.md
When to activate this skill
Activate when the user:
- Asks about storage costs, waste, or cleanup opportunities
- Wants to find unused, unread, or stale tables
- Asks "which tables can I drop?" or "what's costing us money?"
- Mentions storage optimization, cost reduction, or warehouse cleanup
- Wants to identify zombie tables, dead-end pipelines, or temporary/archive tables
When NOT to activate this skill
Do not activate when the user is:
- Just querying data or exploring table contents
- Creating or modifying monitors (use the monitoring-advisor skill)
- Investigating data quality incidents (use the prevent skill)
- Looking at pipeline performance or query cost (use the performance-diagnosis skill)
Prerequisites
The following MCP tools must be available (connect to Monte Carlo's MCP server):
analyze_storage_costs-- runs the full analysis pipeline and returns pre-formatted outputget_asset_lineage-- used only for follow-up lineage checks
The analyze_storage_costs tool supports Snowflake, BigQuery, Redshift, and Databricks warehouses only. Other warehouse types are out of scope.
Workflow
Important: These steps are internal instructions for you. Do NOT expose step numbers, step names, or the procedural structure to the user. Just act naturally.
Step 1: Identify the warehouse
You need a warehouse to proceed.
- If the user specified a warehouse (by name or UUID), use it.
- If not: call
analyze_storage_costswith nowarehouse_id. The tool will either auto-pick when only one supported warehouse exists, or return a list of supported warehouses — let the user choose one, then call the tool again with the chosenwarehouse_id.
Step 2: Run the analysis
Call analyze_storage_costs with:
warehouse_id: the warehouse UUID
The tool fetches candidates, classifies them into waste patterns (Unread, Write-only, Dead-end, Static waste, Zombie, Other stale) and table categories (Temporary, Archive/Snapshot, Production, Other), computes safety tiers, and returns a formatted analysis.
- If the tool returns an error, report it to the user and stop.
- If no candidates are found, tell the user and stop.
Step 3: Present the initial summary
The tool output contains two regions:
- A
<!-- PRESENT_AS_IS -->block with a condensed summary, a Top-N table, and a drill-down prompt. - A
<!-- CATEGORY_DETAILS -->block with per-category tables wrapped in<!-- CATEGORY:<key> -->markers. Do NOT present these yet.
Present ONLY the <!-- PRESENT_AS_IS --> block — copy it verbatim, preserving every column, row, and value. Add a brief intro sentence if needed, then paste the block unchanged. The user will see the summary and top tables, then choose a category to drill into.
CRITICAL — do NOT call any other tool after analyze_storage_costs succeeds. No search, no get_table, no troubleshooting agents, no cross-checks. The analysis result IS the final answer; your only remaining job is to present the <!-- PRESENT_AS_IS --> block verbatim.
CRITICAL — preserve markdown-linked MCONs verbatim. The pre-formatted tables already contain properly linked MCONs (e.g., [`db:schema.table`](https://getmontecarlo.com/assets/MCON++...)). Never output bare MCON strings as plain text.
Step 4: Handle follow-up requests
Category drill-downs. When the user asks about a specific category ("show me temporary tables", "what about production?", "tell me more about archive"):
- Find the matching
<!-- CATEGORY:<key> -->section in theanalyze_storage_costsresult already in the conversation. Do NOT re-invokeanalyze_storage_costs— the data is already there. - Present that section's content verbatim — every column, row, and value.
- After presenting, remind the user of remaining categories they haven't explored yet.
Category keywords (see references/output-structure.md for the full list):
- "temporary", "staging", "tmp", "stg" →
CATEGORY:temporary - "archive", "snapshot", "backup", "old" →
CATEGORY:archive_snapshot - "uncategorized", "other", "unknown" →
CATEGORY:other - "production", "prod", "critical", "important" →
CATEGORY:production
If the user says "show me everything" or "all categories", present all category sections in order: temporary → archive → uncategorized → production.
Lineage checks. When the user asks what consumes a specific table ("check lineage for X", "is it safe to remove Y?", "what depends on this table?"):
- Call
get_asset_lineagewithmcons: [<table mcon>]anddirection: "DOWNSTREAM". - If
has_relationships: false→ the table's consumers are likely BI dashboards or tools (not other tables). Mention this — it may still be safe to remove, but the user should verify with dashboard owners. - If downstream tables exist AND are also stale → recommend removing both.
- If downstream tables are active → flag as risky, do NOT recommend removal.
Note: The N consumers flag in the Usage & Risk column counts ALL consumers, including BI dashboards (Looker, Tableau, Power BI) and other non-table assets. The lineage tool only returns table-to-table edges, so lineage results may show fewer consumers than the count. When that happens, explain the gap to the user.
Reading the Usage & Risk column
Each row's final Usage & Risk cell combines read-side activity with risk flags. Format:
{activity} # no flags fire
{activity}; {flag1, flag2, ...} # one or more flags fire
Activity values (always present):
No reads-- no recorded reads180d · 0 reads-- last read N days ago, zero total reads2d · 580 reads / 14 users-- recent reads, total reads and distinct reading users
A low days since read is only meaningful when paired with the read count — a single backup job or security scanner can make a cold table look "1d". Always weigh staleness against reads + users.
Risk flags (appended after ; in this fixed order when any fire):
high criticality/medium criticality-- pre-computed criticalityN consumers-- has active consumers (tables, views, or BI dashboards); verify before removinghigh importance score--is_importantis a thresholdedimportance_score ≥ 0.6computed upstream in Databricks, not a user-applied taghas monitors-- actively monitored by Monte Carlo
Table categories
Tables are automatically classified for prioritized review:
- Temporary/Staging -- Short-lived ETL/test tables (safest to drop)
- Archive/Snapshot -- Historical copies, date-suffixed tables (verify retention policies)
- Production -- Monitored, critical, or lineage-important tables (highest risk)
- Other -- No strong signal either way (needs manual review)
Scope limitations
- Storage costs only -- not compute, query optimization, or billing
- One warehouse per analysis
- Snowflake, BigQuery, Redshift, and Databricks only
- Recommendations only -- never execute DROP TABLE or destructive actions
Frequently asked questions
What to verify before installation and use
What does the monte-carlo-storage-cost-analysis source document cover?
This skill analyzes a data warehouse for stale tables that can be removed to reduce storage costs. It delegates classification, safety scoring, and formatting to the analyzestoragecosts MCP tool, then presents the pre-formatted result verbatim and handles follow-up questions (ca…
How do I install monte-carlo-storage-cost-analysis?
The source record exposes this install command: npx skills add https://github.com/monte-carlo-data/mc-agent-toolkit --skill "skills/storage-cost-analysis". Inspect the command and pinned source before running it.
Alternatives
Compare before choosing
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
citation-audit
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
prowler-cloud/prowler
postgresql-indexing
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance
brucesongs/kali-claw
insecure-design
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.