altimate-code: Skill for OpenCode

.opencode/skills/cost-report/SKILL.md

cost-report is a skill for OpenCode from AltimateAI/altimate-code. It costs 12 tokens per session (1,142 once invoked), scanned A, original, MIT.

A read-only report that examines the cost of running queries in Snowflake, a cloud data platform, and points out possible improvements.

In plain words
What is it for?
Use it to review recent query history, find costly queries and recurring patterns, check unused resources, and receive optimization suggestions.
Why use it?
It shows which queries, users, warehouses, and query types consume the most credits, so expensive work is easier to investigate.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: positional $N argument.

This is AltimateAI/altimate-code's own configuration. It tells OpenCode how to work on altimate-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything altimate-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AltimateAI/altimate-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AltimateAI/altimate-code/main/.opencode/skills/cost-report/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AltimateAI/altimate-code

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cost-report

README.md
[![agentmods](https://agentmods.dev/badge/skills/altimateai/altimate-code/cost-report/github.svg)](https://agentmods.dev/skills/altimateai/altimate-code/cost-report)
Your own site
<a href="https://agentmods.dev/skills/altimateai/altimate-code/cost-report"><img src="https://agentmods.dev/badge/skills/altimateai/altimate-code/cost-report/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cost-report

Your own site · 80×15
<a href="https://agentmods.dev/skills/altimateai/altimate-code/cost-report"><img src="https://agentmods.dev/badge/skills/altimateai/altimate-code/cost-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.01142
Opus 5.5 $0.00005 $0.00457
Sonnet 5.5 $0.00002 $0.00228
Haiku 4.5 $0.00001 $0.00114

Measured 1mo ago against content hash 575faa860347, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cost-report scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/cost-report/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cost Report

Requirements

Agent: any (read-only analysis) Tools used: sql_execute, sql_analyze, finops_analyze_credits, finops_expensive_queries, finops_warehouse_advice, finops_unused_resources, finops_query_history

Analyze Snowflake warehouse query costs, identify the most expensive queries, detect anti-patterns, and recommend optimizations.

Workflow

  1. Query SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY for the top 20 most expensive queries by credits used:

    SELECT
        query_id,
        query_text,
        user_name,
        warehouse_name,
        query_type,
        credits_used_cloud_services,
        bytes_scanned,
        rows_produced,
        total_elapsed_time,
        execution_status,
        start_time
    FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY
    WHERE start_time >= DATEADD('day', -30, CURRENT_TIMESTAMP())
      AND execution_status = 'SUCCESS'
      AND credits_used_cloud_services > 0
    ORDER BY credits_used_cloud_services DESC
    LIMIT 20;
    

    Use sql_execute to run this query against the connected Snowflake warehouse.

  2. Group and summarize the results by:

    • User: Which users are driving the most cost?
    • Warehouse: Which warehouses consume the most credits?
    • Query type: SELECT vs INSERT vs CREATE TABLE AS SELECT vs MERGE, etc.

    Present each grouping as a markdown table.

  3. Analyze the top offenders - For each of the top 10 most expensive queries:

    • Run sql_analyze on the query text to detect anti-patterns (SELECT *, missing LIMIT, cartesian products, correlated subqueries, etc.)
    • Summarize anti-patterns found and their severity
  4. Classify each query into a cost tier:

    Tier Credits Label Action
    1 < $0.01 Cheap No action needed
    2 $0.01 - $1.00 Moderate Review if frequent
    3 $1.00 - $100.00 Expensive Optimize or review warehouse sizing
    4 > $100.00 Dangerous Immediate review required

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 135 lines · 12 tokens per session scan A 575faa860347

Subscribe to this mod's changes

cost-report is a skill published in the GitHub repository AltimateAI/altimate-code (813 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 1,142 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

zarr-python

Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.

synthetic-sciences/openscience · 42 tokens

benchling-integration

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

synthetic-sciences/openscience · 44 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

synthetic-sciences/openscience · 74 tokens

geopandas

Python library for working with geospatial vector data including shapefiles, GeoJSON, and GeoPackage files. Use when working with geographic data for spatial analysis, geometric operations, coordinate transformations, spatial joins, overlay operations, choropleth mapping, or any task involving…

synthetic-sciences/openscience · 125 tokens

hdf5-pde-data-loading

Patterns for loading PDE simulation datasets (PDEBench, PhiFlow, JAX-CFD) from HDF5 files. Handles layout detection (single tensor vs separate variables), spatial/temporal downsampling, multi-variable systems, HuggingFace and DaRUS data sources, and efficient PyTorch DataLoader creation. Use when preparing PDE data…

synthetic-sciences/openscience · 82 tokens

ontology-database

Typed knowledge graph via TSV append-only log — entity CRUD, directed relations, schema validation, multi-hop reasoning. CLI via x ondb, protocol readable by AWK/Python/JS/SQLite.

x-cmd/x-cmd · 45 tokens