PlugWiki

Huawei Cloud OBS Stats Skill: Capacity, Traffic, Requests

Lets an agent report Huawei Cloud OBS bucket size, object counts, download traffic and request counts, with month-over-month change.

Installs
17.5K
on skills.sh
Stars
59
on GitHub
Files
12
besides SKILL.md
Updated
Oct 2026
last repo commit

This is Huawei Cloud's own skill for OBS statistics. It tells the agent to list buckets with hcloud, read capacity and object counts from Cloud Eye metrics, and run two bundled Python scripts for download traffic and request totals. Both scripts call hcloud CES ShowMetricData and can compare against the previous period.

You need the hcloud CLI (3.2.0 or newer) and obsutil (5.5.0 or newer), plus obsutil credentials that you set in your own terminal. SKILL.md blocks every delete operation and says the agent must not ask for or print your keys.

Good for

  • Cloud admins who want a quick table of buckets with capacity and object counts
  • Teams watching OBS download traffic for a bucket this month or last month
  • Anyone who needs total GET, PUT, POST, DELETE and HEAD request counts for a bucket

Install huawei-cloud-obs-stats

Claude Code

  1. 1

    Copy this prompt.

    Install the huawei-cloud-obs-stats skill in Claude Code. Run this command:
    
    npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-obs-stats
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Run the KooCLI and obsutil steps first (SKILL.md needs hcloud 3.2.0+ and obsutil 5.5.0+; the commands shown are for Linux and macOS, and Windows steps are in references/cli-installation-guide.md). Then run the credentials command yourself in a terminal and fill in your own key and region. The two Python scripts need a Python 3 on your PATH. The repo has no plugin manifest, so there is no plugin route.

Built from the package data we hold. Not yet tested by us. Source.

What's in the skill

When it loads

Query Huawei Cloud OBS (Object Storage Service) statistics: list buckets with capacity and object counts, query extranet/intranet download traffic with month-over-month comparison, and query total requests with month-over-month comparison. Use this skill when the user wants to: (1) list OBS buckets and check their storage capacity and object count, (2) query download traffic with MoM comparison, (3) query request counts with MoM comparison. Trigger: user mentions "OBS", "object storage", "bucket list", "bucket capacity", "download traffic", "total requests", "request count", "month-over-month", "OBS stats", "OBS management", "对象存储", "桶列表", "桶容量", "下载流量", "请求总数", "月环比", "OBS监控"

Sections in SKILL.md

  1. Overview
  2. ⛔ Prohibited Operations (Security Constraints)
  3. Architecture
  4. Prerequisites
  5. Authentication
  6. IAM Permission Policies
  7. Core Workflows
  8. Task 1: List Buckets with Capacity and Object Counts
  9. Task 2: Query Extranet/Intranet Download Traffic (with MoM Comparison)
  10. Task 3: Query Total Requests (with MoM Comparison)
  11. Core Commands
  12. Parameter Confirmation
  13. Script Tools
  14. Verification Method
  15. References

Key facts

Installs on skills.sh
17,510 (Nov 2, 2026)
Last repo commit
Oct 31, 2026

What it includes

  • Lists buckets with capacity and object counts

    Lists buckets with hcloud obs ls, then reads the capacity_total and object_num_all metrics from Cloud Eye through hcloud CES ShowMetricData.

    Try: “List my OBS buckets with capacity and object counts.”

    Runs code · Task 1: list buckets with stats

  • Runs scripts/obs_traffic_stats.py for extranet and intranet traffic

    Runs the bundled Python script, which calls hcloud CES ShowMetricData for a bucket and period, with optional --direction download, upload or both and an optional month-over-month comparison.

    Try: “Show download traffic for bucket my-bucket in cn-north-4 for the last 30 days.”

    Runs code · Task 2: download traffic

  • Runs scripts/obs_request_stats.py for GET, PUT, POST, DELETE, HEAD totals

    Runs the bundled Python script, which sums the request metrics for a bucket and period, with optional 4xx and 5xx counts (--include-errors) and an optional month-over-month comparison.

    Try: “Show request counts for bucket my-bucket in cn-north-4 this month, with errors.”

    Runs code · Task 3: total requests

  • Treats this month, last 30 days and last month differently

    SKILL.md maps "this month", "last 30 days" or "past month", "last month" and explicit dates to different ranges, and says the wording must match what you asked.

    Read · Time range rules

  • Refuses deleting buckets or objects

    SKILL.md forbids DeleteBucket, DeleteObject, DeleteObjects and emptying a bucket, and tells the agent to send you to the console or obsutil.

    Read · Blocked operations

From the official docs

Permissions

Low risk

It runs hcloud and two Python scripts with your cloud credentials and reads bucket statistics into the chat. Use a key that can only list buckets and read metrics.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Your keys sit in the CLI config

    You store the access key and secret key with hcloud obs config in your terminal. SKILL.md tells the agent not to read, echo or print them. Use an IAM user that can only list buckets and read metrics. github.com

  • Bucket names and usage numbers go into the chat

    Task 1 lists every bucket you can see. If you share the session, share only what you would show a colleague. github.com

  • The CLI install guide uses curl and sudo

    references/cli-installation-guide.md downloads the hcloud installer from a Huawei Cloud OBS address and moves hcloud and obsutil into /usr/local/bin with sudo. Read the commands before you run them. github.com

Security advisories

No published security advisories as of Nov 2, 2026.

Technical details
Turning on read-onlySKILL.md lists only list and metric-read tasks. There is no switch that enforces it.
Talks toHuawei Cloud API for Cloud Eye metrics through hcloud. obs.<region>.myhuaweicloud.com (the OBS endpoint you configure). cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com and obs-community-tool.obs.cn-north-1.myhuaweicloud.com for the CLI downloads in the install guide
Sign-in and keysThe key lives in the obsutil and hcloud config on your machine. SKILL.md says the agent must not ask for it or print it.
Scopes
  • Reads bucket names, capacity, object counts, traffic and request metrics for the buckets and periods you name

  • Runs hcloud and two bundled Python scripts that call hcloud CES ShowMetricData

Questions

What does huawei-cloud-obs-stats do?

It makes an agent report OBS bucket capacity and object counts, download traffic and request totals for a bucket and period, with optional comparison to the previous period. It runs hcloud commands and two bundled Python scripts.

Does it need an API key?

Yes. It needs obsutil credentials for the bucket list, and hcloud credentials for Cloud Eye metrics. SKILL.md says you configure obsutil in your own terminal and the agent must not ask for the keys in chat. Our advice: use an IAM user with only the list and metric read permissions the skill's references/iam-policies.md names.

Is huawei-cloud-obs-stats official?

It is in Huawei Cloud's own huaweicloud/huaweicloud-skills repo, which the README calls officially maintained Huawei Cloud Agent Skills.

Is it safe to run?

It reads bucket names, sizes and metrics with your cloud credentials and runs two Python scripts that call the hcloud CLI. SKILL.md blocks deletes. Metrics for your buckets appear in the chat, so use it in a session you control.

Does it work in Claude Code, Codex or the Claude app?

The install box has Claude Code, Codex and standalone tabs. Huawei says only that the skills are compatible with mainstream AI Agents and names none, and it documents no Claude app upload. This skill runs command-line tools on your machine, so the box has no Claude app tab.

How is it different from the OBS upload and storage query skills?

This one reports statistics only. The OBS upload skill also lists buckets with capacity but is built around uploading files, and the storage query skill looks up OBS settings, ACLs and objects with Python SDK scripts.

Information

updated Nov 2, 2026

Folder
skills/storage/obs/huawei-cloud-obs-stats

huaweicloud/huaweicloud-skillsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 6
  1. huawei-cloud-obs-stats SKILL.md · github.com
  2. huaweicloud-skills README · github.com
  3. huaweicloud-skills LICENSE · github.com
  4. obs_traffic_stats.py · github.com
  5. obs_request_stats.py · github.com
  6. OBS stats CLI install guide · github.com

Updated Nov 2, 2026.