Back to Skills

huawei-cloud-obs-upload

Upload local files or directories to Huawei Cloud OBS (Object Storage Service) buckets, list OBS buckets with capacity and object count, and schedule periodic uploads via crontab. Use this skill when the user wants to: (1) upload a local file or directory to an OBS bucket, (2) list OBS buckets and check their storage capacity and object count, (3) set up a scheduled/periodic upload task to automatically sync a local directory to an OBS bucket. Trigger: user mentions "OBS", "object storage", "buc

19stars10forksUpdated 8/20/2026

Security Assessment

Safe(90/100)
Security Score90/100

About huawei-cloud-obs-upload

This skill lets an AI agent upload local files or directories to Huawei Cloud OBS (Object Storage Service) buckets, list buckets with their storage capacity and object count, and schedule periodic uploads via crontab. It solves the problem of moving local data into object storage and keeping a directory synced on a schedule, using the official Huawei Cloud CLI (hcloud/KooCLI) and obsutil tooling under the hood. The SKILL.md documents three operations: ListBucketsWithStats, UploadFile, and ScheduledUpload, along with reference guides for CLI installation, IAM policies, troubleshooting, verification, and CES monitoring metrics.

A defining characteristic of this skill is its strong, explicit security posture. It strictly forbids all delete operations — deleting buckets or objects, batch deletion, and emptying buckets — and instructs the agent to refuse such requests and direct the user to the console or manual obsutil instead. For credentials it uses the official obsutil configuration flow: it checks whether AK/SK are configured, and if not, it hands the user a command to run in their own terminal (hcloud obs config with their AK/SK and regional endpoint), explicitly forbidding the agent from asking for AK/SK in the conversation or extracting them from config files. The reference material also covers OBS CES traffic, request, and capacity metrics for usage and billing analysis.

Target users are developers, operators, and AI agents who need to push local files or directories to OBS, audit bucket capacity and object counts, or automate recurring backups/syncs. Because it upgrades data only (no deletes), handles credentials via official tooling without exfiltration, and is deliberately defensive, it is a low-risk data-upload and observability tool.

FAQ

What operations does this skill perform?

Three: listing buckets with capacity and object count, uploading a local file or directory to a bucket, and scheduling periodic uploads of a directory via crontab.

Can it delete data in OBS?

No. The skill strictly forbids deleting buckets or objects, batch deletion, and emptying buckets, and instructs the agent to refuse any such request.

How are OBS credentials handled?

Via the official obsutil/hcloud config flow. The agent has the user run hcloud obs config with their own AK/SK and endpoint in their terminal, and is forbidden from asking for AK/SK in the conversation or extracting them from config files.

What are the prerequisites?

Huawei Cloud CLI (hcloud/KooCLI) version 3.2.0 or higher and obsutil version 5.5.0 or higher, with obsutil credentials configured for the target region.

How can I audit bucket usage?

ListBucketsWithStats reports capacity and object count, and reference material documents OBS CES metrics (traffic, requests, capacity) for trend, billing, and monitoring analysis.

All Files

11 files
references/obs-metrics.md7.8 KB
View
references/troubleshooting.md12.8 KB
View
references/acceptance-criteria.md8.5 KB
View
references/related-apis.md15.5 KB
View
references/cli-installation-guide.md6.5 KB
View
references/task-list-buckets-with-stats.md2.8 KB
View
references/verification-method.md8.2 KB
View
references/iam-policies.md5.0 KB
View
references/task-scheduled-upload.md4.5 KB
View
SKILL.md8.6 KB
View
references/task-upload-file.md2.9 KB
View

Install huawei-cloud-obs-upload

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill