huawei-cloud-obs-dir-count

huawei-cloud-obs-dir-count is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 142 tokens per session (2,627 once invoked), scanned A, original, MIT.

A read-only tool for counting folders in a Huawei Cloud OBS bucket or within a bucket path. Huawei Cloud OBS is online object storage, similar to a remote file store.

In plain words
What is it for?
Use it to count immediate subfolders or, with recursive counting, all folders below a bucket path.
Why use it?
It answers how many directories exist without creating, changing, deleting, or uploading anything.

Skill for Claude CodeCodex

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

Good fit Use it to count immediate subfolders or, with recursive counting, all folders below a bucket path.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-obs-dir-count"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-obs-dir-count.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,627 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.00142 $0.02627
Opus 5.5 $0.00057 $0.01051
Sonnet 5.5 $0.00028 $0.00525
Haiku 4.5 $0.00014 $0.00263

Measured 24d ago against content hash 41296f85c2a0, 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-dir-count 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/count_obs_directories.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-dir-count/SKILL.md · 209 lines

How it starts

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

Huawei Cloud OBS Directory Count Skill

Overview

Count the number of directories (folders) in a Huawei Cloud OBS bucket or under a bucket prefix. The skill executes a read-only listing (hcloud OBS ls <url> -d, which uses obsutil behind the scenes) and prints a single integer: the number of immediate sub-directories under the target, or the total number of directories across all levels when --recursive is used.

This is a query-only skill. It performs no create, modify, delete, or upload operations on any bucket or object.

Security Scope

This skill is read-only and honors the principle of least privilege. It declares the following capability and permission bounds up front so execution never exceeds them.

Dimension Declaration
Allowed tools hcloud (KooCLI) OBS module only, invoked by the bundled Python script scripts/count_obs_directories.py. No other tool is called.
Credential source Read only from the user's own obsutil configuration file (~/.obsutilconfig) which the user sets once via hcloud obs config -i=<AK> -k=<SK> -e=<endpoint>. The script never reads, prints, or forwards AK/SK values.
Network endpoints Only the OBS endpoint configured by the user in their obsutil config (e.g. obs.cn-north-4.myhuaweicloud.com).
Resource access Read-only: ListBuckets and ListObjects are used solely to enumerate directories. The script never creates, modifies, deletes, or uploads any bucket or object.
Result output A single integer count on stdout (or a JSON object with --json). On failure, an explanatory message is written to stderr and a non-zero exit code is returned.
No remote code execution The script runs only local hcloud OBS ls commands with a fixed argv list and no shell. There is no eval, exec, dynamic import, or download-then-run of remote content.

Prohibited Operations (Security Constraints)

This skill strictly forbids the following operations, regardless of user requests:

Read the full file on GitHub · 209 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. 24d ago First seen · 209 lines · 142 tokens per session scan A 41296f85c2a0

Subscribe to this mod's changes

huawei-cloud-obs-dir-count is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 142 tokens to every session and 2,627 once invoked, about $0.0006 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-dir-count compared with skills from other repositories

huawei-cloud-obs-dir-count next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huawei-cloud-obs-dir-counthuaweicloud/huaweicloud-skillsSkill594d agoMITA142Claude Code, Codex
huawei-cloud-apig-instance-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A206Claude Code
huawei-cloud-deployment-task-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A203Claude 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
cloud-operator-admin-setupgoogle/skillsSkill25ktodayApache-2.0A115Claude Code, Codex