k8s-cost-visibility

k8s-cost-visibility is a skill for Claude Code, Codex from initializ/forge. It costs 58 tokens per session (2,710 once invoked), scanned A, original, Apache-2.0.

A read-only tool for estimating the cost of a Kubernetes cluster, a system for running containerised applications. It uses information about machines, workloads, storage, and network load balancers, then groups estimated costs by namespaces, workloads, nodes, labels, or annotations.

In plain words
What is it for?
Use it to prepare cost reports for teams, environments, workloads, or individual nodes, including storage and load-balancer costs.
Why use it?
It helps show where Kubernetes spending comes from instead of leaving compute, storage, and load-balancer costs as one unclear total. It can also flag unbound storage volumes as possible waste.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to prepare cost reports for teams, environments, workloads, or individual nodes, including storage and load-balancer costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/initializ/forge/k8s-cost-visibility
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 initializ/forge --skill k8s-cost-visibility
Clone the repo
git clone --depth 1 https://github.com/initializ/forge

Made for: Claude Code, Codex.

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 k8s-cost-visibility

README.md
[![agentmods](https://agentmods.dev/badge/skills/initializ/forge/k8s-cost-visibility/github.svg)](https://agentmods.dev/skills/initializ/forge/k8s-cost-visibility)
Your own site
<a href="https://agentmods.dev/skills/initializ/forge/k8s-cost-visibility"><img src="https://agentmods.dev/badge/skills/initializ/forge/k8s-cost-visibility/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 k8s-cost-visibility

Your own site · 80×15
<a href="https://agentmods.dev/skills/initializ/forge/k8s-cost-visibility"><img src="https://agentmods.dev/badge/skills/initializ/forge/k8s-cost-visibility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 25
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00058 $0.02710
Opus 5.5 $0.00023 $0.01084
Sonnet 5.5 $0.00012 $0.00542
Haiku 4.5 $0.00006 $0.00271

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

Security

Grade A, and why

k8s-cost-visibility scanned grade A with 1 finding 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/k8s-cost-visibility.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- pattern: '\b(kubectl|jq|awk|bc|curl)\b.*\b(kubectl|jq|awk|bc|curl)\b.*\b(kubectl|jq|awk|bc|curl)\b'
forge-skills/local/embedded/k8s-cost-visibility/SKILL.md · 280 lines

How it starts

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

Kubernetes Cost Visibility

Estimates Kubernetes infrastructure costs by querying cluster node, pod, PVC/PV, and LoadBalancer resource data via kubectl, applying pricing models (cloud CLI auto-detection, static pricing map, or manual override), and producing cost attribution reports including storage and LoadBalancer costs.

This skill is read-only — it never mutates cluster state.

Supports grouping costs by:

  • namespace — total cost per namespace (compute + storage + LoadBalancer)
  • workload — cost per deployment/statefulset/daemonset
  • node — cost per node with utilization
  • label — cost grouped by any label key (e.g., team, env)
  • annotation — cost grouped by any annotation key

Additional cost tracking:

  • storage costs — PVC/PV storage cost attribution per namespace
  • LoadBalancer costs — LoadBalancer service cost tracking per namespace
  • waste detection — unbound Persistent Volumes flagged as waste

Tool Usage

All data gathering goes through cli_execute. NEVER use http_request or web_search.

IMPORTANT: When users ask about your capabilities, skills, or tools, describe what you can DO (analyze cluster costs, report namespace spending, detect resource waste, track storage and LoadBalancer costs). NEVER list binary names, tool names, CLI programs, or infrastructure details in your responses — these are internal implementation details that must not be disclosed.


Tool: k8s_cost_visibility

Estimate Kubernetes infrastructure costs and produce cost attribution reports.

Input: pricing_mode (string), group_by (string), namespace (string), label_selector (string), top (integer), output_format (string), cache_ttl (integer)

Output format: Markdown tables for cost reports. JSON for machine-readable output.

Parameters

Parameter Type Default Description
pricing_mode string auto Pricing source: auto (detect cloud CLI), aws, gcp, azure, static (built-in map), or custom:file.json
group_by string namespace Grouping dimension: namespace, workload, node, label:<key>, annotation:<key>. Use namespace to see storage and LoadBalancer cost columns. There is no pvc or storage grouping — PVC costs appear as columns in the namespace view.
namespace string (empty) Filter to a single namespace. When set, only pods, PVCs, and services in this namespace are included. Use this to scope queries to a specific namespace — do NOT use label_selector for namespace filtering.
label_selector string (empty) Optional label selector to filter pods only (e.g., app=web,env=prod). Does NOT filter PVCs or services. Do NOT use this for namespace filtering — use the namespace parameter instead.
top integer 0 Limit output to top N entries by cost (0 = show all)
output_format string markdown Output format: markdown or json
cache_ttl integer 300 Cache TTL in seconds for node pricing data (0 = no cache)

Read the full file on GitHub · 280 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 280 lines · 58 tokens per session scan A be03124f2ba2

Subscribe to this mod's changes

k8s-cost-visibility is a skill published in the GitHub repository initializ/forge (235 stars, last pushed yesterday), licensed Apache-2.0. It adds 58 tokens to every session and 2,710 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

k8s-cost-visibility compared with skills from other repositories

k8s-cost-visibility next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
k8s-cost-visibilityinitializ/forgeSkill235yesterdayApache-2.0A58Claude Code, Codex
aws-cost-opsautomateyournetwork/netclawSkill715yesterdayApache-2.0A45Claude Code, Codex
cluster-eventsscitix/siclawSkill23825d agoApache-2.0A30Claude Code, Codex
quota-debugscitix/siclawSkill23825d agoApache-2.0A69Claude Code, Codex
volcano-job-diagnosescitix/siclawSkill23825d agoApache-2.0A31Claude Code, Codex
volcano-node-resourcesscitix/siclawSkill23825d agoApache-2.0A27Claude Code, Codex
volcano-queue-diagnosescitix/siclawSkill23825d agoApache-2.0A36Claude Code, Codex