gpu-spend

gpu-spend is a skill for Claude Code from Rockielab/rockie-codex. It costs 0 tokens per session (871 once invoked), scanned A, a copy of gpu-spend, Apache-2.0.

A GPU spending report for checking current and recent use of graphics processors, which are commonly used for machine learning and scientific computing.

In plain words
What is it for?
Use it to view current burn rate, weekly spend, running resources, idle work, or spending after stopping a GPU job.
Why use it?
It gives one place to check spending, running work, idle resources, and budget position before starting more GPU work.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event.

Good fit Use it to view current burn rate, weekly spend, running resources, idle work, or spending after stopping a GPU job.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockielab/rockie-codex/gpu-spend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rockielab/rockie-codex --skill gpu-spend
Clone the repo
git clone --depth 1 https://github.com/Rockielab/rockie-codex

Made for: Claude Code.

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 gpu-spend

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockielab/rockie-codex/gpu-spend/github.svg)](https://agentmods.dev/skills/rockielab/rockie-codex/gpu-spend)
Your own site
<a href="https://agentmods.dev/skills/rockielab/rockie-codex/gpu-spend"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-codex/gpu-spend/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 gpu-spend

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockielab/rockie-codex/gpu-spend"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-codex/gpu-spend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 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.
Origin 100% copy Near-identical to another mod 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.00000 $0.00871
Opus 5.5 $0.00000 $0.00348
Sonnet 5.5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

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

Security

Grade A, and why

gpu-spend 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.

Origin

This is a copy

100% identical to gpu-spend — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

project-extension/agents/skills/gpu-spend/SKILL.md · 83 lines

How it starts

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

/gpu-spend — Rockie-GPU spend snapshot

The single source of truth for "what is the agent costing me right now?" rockie-gpu spent reconciles live state, sums project spend, and prints both the LLM-readable JSON and a human view — all under Rockie's own deidentified billing surface, with no supplier names and no supplier billing URLs leaking through.

When to invoke

  • User asks anything about cost, spend, rate, burn, budget, or pods running.
  • Before any decision to spin up a new GPU (read state before adding load).
  • After terminating a pod, to confirm the bleed has stopped.
  • Periodically during long autonomous runs (the budget-reconcile.sh hook fires this on every UserPromptSubmit, but the agent should also check on entering the Codify phase).

Do NOT invoke if the user asked a non-cost question and you'd just be showing off. The hook keeps the budget honest in the background.

What the skill does

Runs:

rockie-gpu spent --json

Output shape (LLM-ergonomic, deidentified — Rockie-priced, no supplier names):

{
  "project": "...",
  "compute_per_hr": 0.0,
  "storage_per_hr": 0.011,
  "running_pods": 0,
  "idle_volume_gb": 80,
  "grand_total_per_hr": 0.011,
  "grand_cumulative_usd": 2.20
}

Read the JSON. Synthesize a 2–3 line summary for the user that:

  • Names the top spend driver (compute or storage).
  • Calls out idle storage if running_pods=0 but idle_volume_gb > 0 (user is paying for nothing — recommend tearing the pod down).
  • Compares grand_cumulative_usd to budget ceiling if known (rockie-gpu spent --json reports the ceiling when one is configured).

Composition

  • rockie-gpu spent reconciles implicitly, so numbers are always fresh (within seconds of the call). No separate reconcile step.
  • rockie-gpu audit-open-spend --demo-safe is the line-item audit when the user wants the full breakdown of where the dollars went — it is the only drill-down surface. There is no per-supplier CLI to reach for; rockie-gpu sees every dollar.

Read the full file on GitHub · 83 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 · 83 lines · 0 tokens per session scan A cc9f3e52e9ec

Subscribe to this mod's changes

gpu-spend is a skill published in the GitHub repository Rockielab/rockie-codex (20 stars, last pushed 12d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 871 tokens. A static security scan graded it A with 0 findings. It is 100% identical to gpu-spend, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research through opencli: the user's home timeline, tweet search, trending topics, bookmarks, a user's recent tweets, threads, articles, profiles, followers and following, and notifications. Use this skill whenever the user wants to know what people are saying on Twitter/X or fintwit about…

himself65/finance-skills · 110 tokens

energy-procurement

Codified expertise for electricity and gas procurement, tariff optimization, demand charge management, renewable PPA evaluation, and multi-facility energy cost management. Informed by energy procurement managers with 15+ years experience at large commercial and industrial consumers. Includes market structure analysis…

hashgraph-online/awesome-codex-plugins · 93 tokens

airdrop-hunting-guide

Guide to finding and qualifying for crypto airdrops — eligibility criteria, farming strategies, on-chain activity requirements, Sybil detection avoidance, and tracking tools. Use when helping users understand airdrops, check eligibility, or plan participation strategies.

nirholas/three.ws · 54 tokens

china-portfolio-monitoring

A monitoring framework for tracking the financial results, operating measures, strategic milestones, and risks of companies held by China-focused private-equity funds. It uses measures such as revenue growth, margins, debt, cash flow, and return on equity.

jwangkun/claude-for-financial-services-cn · 86 tokens