huawei-cloud-eip-cost-optimizer

huawei-cloud-eip-cost-optimizer is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 240 tokens per session (5,028 once invoked), scanned D, original, MIT.

A Huawei Cloud tool for finding and analysing Elastic IPs (EIPs), which are public IP addresses that can be attached to cloud resources. It focuses on identifying unused addresses and their costs.

In plain words
What is it for?
Use it to find unbound EIPs, create cost reports, review status and distribution, monitor idle addresses with alerts, and inspect operation audit logs.
Why use it?
It helps reveal idle public IPs and spending that may be avoidable across multiple regions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find unbound EIPs, create cost reports, review status and distribution, monitor idle addresses with alerts, and inspect operation audit logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer
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 huaweicloud/huaweicloud-skills --skill huawei-cloud-eip-cost-optimizer
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

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 huawei-cloud-eip-cost-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer/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 huawei-cloud-eip-cost-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-eip-cost-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 240 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,028 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00240 $0.05028
Opus 5 $0.00120 $0.02514
Sonnet 5 $0.00048 $0.01006
Haiku 4.5 $0.00024 $0.00503

Measured 9d ago against content hash f5b3b6028b30, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade D, and why

huawei-cloud-eip-cost-optimizer scanned grade D with 3 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 9d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/analyze_idle_eips.sh, scripts/check_env.sh, scripts/config.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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install -y jq bc curl

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sSL https://hwcloudcli.obs.cn-north-1.myhuaweicloud.com/cli/latest/hcloud_install.sh | bash

Makes network callslowCapability

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

- **curl** — HTTP client for webhook notifications
skills/network/eip/huawei-cloud-eip-cost-optimizer/SKILL.md · 450 lines

How it starts

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

Huawei Cloud EIP Cost Optimizer

Overview

This skill provides batch management and cost optimization capabilities for Huawei Cloud Elastic Public IPs (EIPs).

Architecture: Shell + hcloud CLI (KooCLI) → EIP Service API → VPC/Bandwidth resources

Related Skills: For broader cost optimization across all resource types (ECS, EVS, OBS, etc.), see the archived huaweicloud-cost-optimizer skill. This skill focuses exclusively on EIP optimization with deeper functionality and 100% hcloud CLI compliance.

  • Periodic cleanup of idle EIPs to reduce holding costs
  • Cost analysis and optimization recommendations
  • Multi-region unified management
  • Automated monitoring and alerting for idle resources
  • Operation audit logging for compliance

Typical Use Cases:

  • "Help me identify idle EIPs and generate an optimization report"
  • "Generate an EIP cost analysis report to identify high-cost resources"
  • "Set up idle EIP monitoring with automatic alerts via webhook or email"
  • "View EIP distribution and status summary across all regions"
  • "Show audit logs for EIP operations in the last 30 days"
  • "List all EIPs in cn-north-4 with detailed information"

Prerequisites

1. CLI Environment Requirements (MANDATORY)

  • hcloud CLI (KooCLI) v7.0+ — Huawei Cloud command-line tool
  • jq — JSON processor for parsing API responses
  • bc — Arbitrary precision calculator for cost estimation
  • curl — HTTP client for webhook notifications

Install hcloud CLI:

# Linux/macOS one-click install
curl -sSL https://hwcloudcli.obs.cn-north-1.myhuaweicloud.com/cli/latest/hcloud_install.sh | bash

# Verify installation
hcloud --version

Install jq, bc, curl:

# Ubuntu/Debian
sudo apt install -y jq bc curl

# CentOS/RHEL
sudo yum install -y jq bc curl

# macOS
brew install jq bc curl

Available Shell Scripts:

  • scripts/config.sh - Shared configuration (credentials, regions, proxy)
  • scripts/list_eips.sh - List all EIPs in a region (supports filtering and summary)
  • scripts/analyze_idle_eips.sh - Analyze idle EIPs and generate optimization reports (read-only)
  • scripts/eip_cost_report.sh - Generate EIP cost analysis reports (text/HTML/JSON)
  • scripts/monitor_idle_eips.sh - Monitor idle EIPs with webhook/email alerts and cron support
  • scripts/check_env.sh - Environment check and validation (hcloud CLI + tools + API)
  • scripts/eip_audit_log.sh - Operation audit logging (JSONL + CSV/JSON export)

Read the full file on GitHub · 450 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. 9d ago First seen · 450 lines · 240 tokens per session scan D f5b3b6028b30

Subscribe to this mod's changes

huawei-cloud-eip-cost-optimizer is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (49 stars, last pushed yesterday), licensed MIT. It adds 240 tokens to every session and 5,028 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

awslabs-cloudtrail-mcp

AWS CloudTrail audit logging and monitoring.

Friz-zy/ai-capability-registry · 16 tokens

skypilot-multi-cloud-orchestration

Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.

davila7/claude-code-templates · 51 tokens

gcp-cloud-logging

Google Cloud Logging — log search, VPC flow logs, firewall logs, audit logs, log buckets and views. Use when searching GCP logs, investigating denied VPC flow traffic, checking who deleted a VM, analyzing firewall rule hits, or troubleshooting a GCP application error.

automateyournetwork/netclaw · 62 tokens

k8s-network-policy

Review Kubernetes NetworkPolicies — what is actually permitted to reach a workload, and whether the answer can be trusted. Use when asked what can talk to a pod, whether a namespace is restricted, why traffic is being blocked, or for any security review of cluster network segmentation.

automateyournetwork/netclaw · 60 tokens

aws-cloud-monitoring

AWS CloudWatch monitoring — metrics, alarms, log queries, VPC flow log analysis, network performance. Use when checking AWS alarms, analyzing VPC flow logs, investigating network latency, or monitoring VPN and NAT Gateway metrics.

automateyournetwork/netclaw · 50 tokens

applicationinsights-setup

Sets up, migrates, or enhances Azure Monitor Application Insights in .NET applications. Detects application type and existing instrumentation automatically. Use when adding Application Insights, Azure Monitor, observability, or telemetry to ASP.NET Core, Worker Service, ASP.NET Classic, or Console apps, upgrading from…

microsoft/ApplicationInsights-dotnet · 103 tokens