huawei-cloud-sg-manage

huawei-cloud-sg-manage is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 360 tokens per session (6,009 once invoked), scanned A, original, MIT.

A Huawei Cloud security group manager and diagnostic tool. A security group is a stateful firewall attached within a VPC that controls incoming and outgoing network traffic using rules.

In plain words
What is it for?
Use it to inspect and manage security groups and rules, diagnose port access, detect rule conflicts, audit exposure, and perform supported configuration changes.
Why use it?
It helps explain blocked connections, find conflicting rules, and spot overly exposed services such as ports open to every internet address.

Skill for Claude CodeCodex

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

Good fit Use it to inspect and manage security groups and rules, diagnose port access, detect rule conflicts, audit exposure, and perform supported configuration changes.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-sg-manage"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-sg-manage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 360 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,009 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.00360 $0.06009
Opus 5.5 $0.00144 $0.02404
Sonnet 5.5 $0.00072 $0.01202
Haiku 4.5 $0.00036 $0.00601

Measured 20d ago against content hash 145eb81950df, 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-sg-manage 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 20d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/ensure_cli.sh, scripts/huawei-cloud.py, scripts/install_cli.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/network/ops/huawei-cloud-sg-manage/SKILL.md · 401 lines

How it starts

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

Huawei Cloud Security Group Management (安全组管理)

STOP - Do not answer from general knowledge. Follow the procedure below. Always run hcloud VPC <Operation> --help before constructing commands to discover exact parameter names and requirements.

Overview

This skill manages Huawei Cloud security groups (安全组) — the VPC subnet-level stateful firewall (security group is a VPC sub-resource). It provides 11 huawei_* actions:

# Capability Risk Action
1 Query (read-only) R3 — auto execute huawei_list_security_groups
2 Query (read-only) R3 — auto execute huawei_list_security_group_rules
3 Query (read-only) R3 — auto execute huawei_get_security_group
4 Analyze (read-only) R3 — auto execute huawei_diagnose_sg_port_connectivity
5 Analyze (read-only) R3 — auto execute huawei_analyze_sg_rule_conflict
6 Analyze (read-only) R3 — auto execute huawei_audit_sg_overexposed_rules
7 Manage R2 — preview + confirm huawei_create_security_group
8 Manage R2 — preview + confirm huawei_create_sg_rule
9 Manage R2 — preview + confirm huawei_update_security_group
10 Manage R1 — preview + confirm huawei_delete_security_group
11 Manage R1 — preview + confirm huawei_delete_sg_rule

Architecture

User request → Action Router (scripts/huawei-cloud.py dispatcher)
  ├─ Query (R3)      → hcloud VPC ListSecurityGroups/ListSecurityGroupRules/ShowSecurityGroup
  ├─ Analyze (R3)    → hcloud VPC ListSecurityGroupRules + deterministic rule engine
  │                     (priority-ordered matching, CIDR/port/protocol semantics)
  └─ Manage (R2/R1)  → preview → hcloud VPC Create/Update/Delete (confirmed only after user approval)

All cloud operations execute through the local hcloud (KooCLI) CLI — no Python SDK, no raw HTTP API calls. The bundled dispatcher builds and runs the hcloud commands.

Read the full file on GitHub · 401 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. 20d ago Changed · -20 lines 145eb81950df
  2. 29d ago First seen · 421 lines · 360 tokens per session scan A c92f5726873b

Subscribe to this mod's changes

huawei-cloud-sg-manage is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed yesterday), licensed MIT. It adds 360 tokens to every session and 6,009 once invoked, about $0.0014 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-09-29.

Related

Other skills, from other repositories

cis-aws-foundations-4.7

Ensure VPC flow logging is enabled in all VPCs.

CyberStrikeus/CyberStrike · 22 tokens

cis-aws-database-2.1

Ensure the Use of Security Groups.

CyberStrikeus/CyberStrike · 16 tokens

implementing-gcp-vpc-firewall-rules

Implementing and auditing GCP VPC firewall rules to enforce network segmentation, restrict ingress and egress traffic, apply hierarchical firewall policies across the organization, and monitor firewall rule effectiveness using VPC Flow Logs.

xalgorix/xalgorix · 52 tokens

aws-network-ops

AWS cloud networking — VPC, Transit Gateway, Cloud WAN, VPN, Network Firewall, ENI, flow logs. Use when auditing AWS VPCs, troubleshooting connectivity between EC2 instances, checking Transit Gateway routes, or investigating VPN tunnel status.

automateyournetwork/netclaw · 55 tokens

azure-network-ops

Azure cloud networking -- VNets, NSGs, ExpressRoute, VPN Gateways, Azure Firewalls, Load Balancers, Application Gateways, Route Tables, Network Watcher, Private Endpoints, DNS zones. Use when auditing Azure VNets, troubleshooting hybrid connectivity (ExpressRoute/VPN), inspecting what an NSG currently allows…

automateyournetwork/netclaw · 114 tokens

huawei-cloud-apig-instance-management

Manage Huawei Cloud APIG (API Gateway, dedicated instances) via hcloud CLI: instance lifecycle (create/list/delete), API groups, API create/update/delete, publish/offline, request throttling policies, signature keys, access control (ACL) policies, and public ingress EIP binding, plus read-only diagnosis of public…

huaweicloud/huaweicloud-devkit · 206 tokens