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.
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-obs-dir-countgit clone --depth 1 https://github.com/huaweicloud/huaweicloud-skillsWrote 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.
[](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-obs-dir-count)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
What ships with it
10 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.
- references/acceptance-criteria.md 2.2 KB
- references/cli-installation-guide.md 6.7 KB
- references/dataflow-diagram.md 1.4 KB
- references/iam-policies.md 3.0 KB
- references/related-commands.md 2.5 KB
- references/troubleshooting.md 2.6 KB
- references/verification-method.md 3.6 KB
- scripts/count_obs_directories.py 12 KB runs code
- scripts/test-cli-commands.sh 6.6 KB runs code
- templates/test-vars.json 1.8 KB
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.
- 24d ago First seen · 209 lines · 142 tokens per session scan A 41296f85c2a0
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.
huawei-cloud-obs-dir-count compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| huawei-cloud-obs-dir-counthuaweicloud/huaweicloud-skills | Skill | 59 | 4d ago | MIT | A | 142 | Claude Code, Codex |
| huawei-cloud-apig-instance-managementhuaweicloud/huaweicloud-devkit | Skill | 71 | today | Apache-2.0 | A | 206 | Claude Code |
| huawei-cloud-deployment-task-managementhuaweicloud/huaweicloud-devkit | Skill | 71 | today | Apache-2.0 | A | 203 | Claude Code |
| huawei-cloud-account-onboardingontology-of-everything/SemanticSkills | Skill | 8 | 2mo ago | Apache-2.0 | A | 139 | Claude Code, Codex |
| huawei-cloud-cost-estimationontology-of-everything/SemanticSkills | Skill | 8 | 2mo ago | Apache-2.0 | C | 124 | Claude Code, Codex |
| gke-compute-classesgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 115 | Claude Code, Codex |