huawei-cloud-obs-total-size

huawei-cloud-obs-total-size is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 253 tokens per session (2,332 once invoked), scanned A, original, MIT.

A read-only tool for calculating how much data is stored in Huawei Cloud Object Storage buckets. It can report bytes, a selected unit, or a human-readable size for one bucket or all buckets.

In plain words
What is it for?
It totals the contents of a chosen bucket or the whole account and prints the result in the requested format. It does not create, change, or delete storage data.
Why use it?
It provides a single storage total without manually adding objects or buckets. The result supports capacity checks, storage planning, and rough cost estimates.

Skill for Claude CodeCodex

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

Good fit It totals the contents of a chosen bucket or the whole account and prints the result in the requested format. It does not create, change, or delete storage data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-obs-total-size
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-obs-total-size
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-obs-total-size

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-obs-total-size"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-obs-total-size.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 253 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,332 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 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.00253 $0.02332
Opus 5.5 $0.00101 $0.00933
Sonnet 5.5 $0.00051 $0.00466
Haiku 4.5 $0.00025 $0.00233

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

Security

Grade A, and why

huawei-cloud-obs-total-size 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 24d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/query_obs_total_size.py, scripts/test-cli-commands.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.

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.

skills/storage/obs/huawei-cloud-obs-total-size/SKILL.md · 203 lines

How it starts

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

Huawei Cloud OBS Total Size Skill

Overview

This skill queries the total size of Huawei Cloud OBS buckets and prints the size value. The default output is a single number in bytes; with --unit kb|mb|gb or --human it prints a scaled or human-readable value instead. It is a read-only statistics skill: it never creates, modifies, or deletes buckets, directories, or objects.

Output behavior: the final size is printed as one value on stdout. Warnings for skipped inaccessible buckets and error messages are written to stderr only, never mixed into the size value.

Architecture:

Agent → hcloud CLI (KooCLI OBS / obsutil, primary) → Huawei Cloud OBS API
       ↘ huaweicloudsdkobs Python SDK (fallback)            ↗

Two query scopes:

Scope Description Example
Single bucket Total size of one bucket only --bucket my-bucket → 5002295
All buckets (default) Combined total size across all buckets under the account --all → 9533151096

Applicable Scenarios:

  • Capacity review: "how much storage does this bucket / my OBS account use?"
  • Cost estimation: estimate OBS storage billing based on total bytes
  • Storage planning: compare usage before migration or quota changes
  • Compliance auditing: track total storage growth

Prerequisites

  1. hcloud CLI (KooCLI) installed and authenticated — See references/cli-installation-guide.md
  2. obsutil installed — required by the hcloud OBS ls command (bundled with KooCLI or standalone)
  3. OBS credentials configured for obsutil — hcloud OBS ls reads AK/SK/endpoint from the obsutil config file (.obsutilconfig in the user home directory), which is separate from the KooCLI account credentials
  4. Python 3.8+ with huaweicloudsdkobs package (SDK fallback) — pip install huaweicloudsdkobs
  5. IAM permissions — obs:bucket:ListBucket, obs:object:List, obs:bucket:ListAllMyBuckets — See references/iam-policies.md

Read the full file on GitHub · 203 lines

Files

What ships with it

7 files 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. 24d ago First seen · 203 lines · 253 tokens per session scan A ea27039d405a

Subscribe to this mod's changes

huawei-cloud-obs-total-size is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 253 tokens to every session and 2,332 once invoked, about $0.0010 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-11-06.

Related

huawei-cloud-obs-total-size compared with skills from other repositories

huawei-cloud-obs-total-size next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huawei-cloud-obs-total-sizehuaweicloud/huaweicloud-skillsSkill594d agoMITA253Claude Code, Codex
huawei-cloud-apig-instance-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A206Claude Code
huawei-cloud-deployment-task-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A203Claude Code
Capacity, Performance & Cost Assumptionss977043/river-reviewSkill8todayMITA30Claude Code
huawei-cloud-account-onboardingontology-of-everything/SemanticSkillsSkill82mo agoApache-2.0A139Claude Code, Codex
huawei-cloud-cost-estimationontology-of-everything/SemanticSkillsSkill82mo agoApache-2.0C124Claude Code, Codex
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex