huawei-cloud-config-helper
БесплатноЗапускает вложенные скриптыНе проверенQueries Huawei Cloud Config service for global resource inventory, resource configurations, resource schemas, advanced SQL queries, and built-in compliance…
от huaweicloudskill126 установок в других каталогахОб этом скилле
Huawei Cloud Config Helper
⚠️ Execution Method (Must Read): This skill executes queries via local Python scripts. Using hcloud, curl, or other CLI tools or direct API calls is prohibited.
- Query scripts are located under the skill directory
scripts/config/- All scripts are inside the skill package. You must use
skill action=execto execute them; do not run them directly in a shell- All paths are relative to the skill directory, which is the directory where this SKILL.md resides
Overview 概述
This skill is a standalone read-only query skill that uses local Python scripts to call the Huawei Cloud Python SDK to query the Config service, providing:
- 查询资源概览(各服务/类型/区域的资源数量统计)
- 查询资源 Schema(资源结构定义,含字段名、类型、描述)
- 按条件通过 SQL 查询资源(高级查询,仅支持
resources表) - 查询预置合规规则(Config 内置策略定义)
This skill does NOT handle the following:
- Creating, modifying, or deleting any resources or compliance rules
- Guessing or fabricating information that has not been queried
Before writing SQL or analyzing security posture, read the reference docs:
| File | Description |
|---|---|
references/knowledge.md |
资源类型映射表、Region 映射、各服务安全知识索引 |
references/sql-example.json |
SQL 查询示例集合,编写 SQL 前必读 |
references/service/config.md |
Config 核心概念 |
references/service/vpc.md |
VPC 安全知识 |
references/service/iam.md |
IAM 安全知识 |
references/service/obs.md |
OBS 安全知识 |
references/iam-policies.md |
最小权限 IAM 策略(Config ReadOnlyAccess) |
references/verification-method.md |
验证方法 |
references/acceptance-criteria.md |
验收标准 |
Prerequisites 前置条件
Environment Variables:
| Variable | Required | Description |
|---|---|---|
| HW_ACCESS_KEY | Yes* | Huawei Cloud AK (preferred; fallback: HUAWEICLOUD_AK; only requires Config ReadOnlyAccess permission) |
| HW_SECRET_KEY | Yes* | Huawei Cloud SK (preferred; fallback: HUAWEICLOUD_SK) |
| HW_SECURITY_TOKEN | No | Required when using temporary AK/SK |
| HW_IGNORE_SSL_VERIFICATION | No | Set to true to disable TLS certificate verification (only for intranet/proxy with self-signed certificates) |
| PROXY_URL | No | Proxy URL, e.g. http://user:pass@host:port (intranet access); falls back to HTTPS_PROXY/HTTP_PROXY |
* Either HW_ACCESS_KEY/HW_SECRET_KEY (preferred) or HUAWEICLOUD_AK/HUAWEICLOUD_SK (fallback) must be set. The scripts check HW_ACCESS_KEY/HW_SECRET_KEY first, then fall back to HUAWEICLOUD_AK/HUAWEICLOUD_SK.
Do not output the values of the above environment variables.
Dependencies: pip install -r requirements.txt(huaweicloudsdkcore、huaweicloudsdkconfig、urllib3)
See references/iam-policies.md for the least-privilege IAM policy.
Workflow 工作流
Prerequisite: Environment Setup 前置步骤
- Confirm
HW_ACCESS_KEY/HW_SECRET_KEY(or fallbackHUAWEICLOUD_AK/HUAWEICLOUD_SK) are set (without printing values) - Install dependencies:
pip install -r requirements.txt - Run the resource summary query first to confirm connectivity
Scenario 1: 查询资源概览 Resource Summary
- Read
references/knowledge.mdto map user intent to provider/region - Execute:
skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/config/query_Config_resource_summary.py [--provider=<provider>] [--region_id=<region_id>]--provider: 可选,只查询某云服务的资源概览(如obs、vpc),也支持provider.type形式(如obs.buckets)--region_id: 可选,只查询某区域(如cn-north-4北京四、cn-east-3上海一、global全局)
- Verify: output is a JSON array with
provider、type、region_id、cntfields
Scenario 2: 查询资源 Schema Resource Schema
- Identify the resource type in
provider.typeformat (e.g.obs.buckets,ecs.cloudservers,iam.users,vpc.securityGroups) - Execute:
skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/config/query_Config_resource_schema.py --resource_type=<provider.type> - Use the returned field names/types to prepare SQL in Scenario 3
Scenario 3: 按条件 SQL 查询资源 SQL Resource Query
- Query the resource Schema first (Scenario 2) to confirm available fields
- Read
references/sql-example.jsonfor query patterns - Execute:
skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/config/query_Config_resource_by_sql.py --sql="<SQL>"- SQL 只能查询
resources表;支持标准 SELECT/WHERE/GROUP BY/ORDER BY,数组函数(transform/filter/any_match/contains),日期函数(date_diff/date_parse) - SQL 语句用双引号包裹,内部字符串用单引号
- 示例:
--sql="select id, name, provider, type, properties from resources where region_id = 'cn-north-4'"
- SQL 只能查询
- If the result is empty, run Scenario 1 first to confirm the actual resource distribution
- Common top-level fields (
name,created,updated,tag,project_id) are collected by Config uniformly and do NOT appear inproperties/Schema — do not treat them as missing fields
Scenario 4: 查询预置合规规则 Built-in Compliance Rules
- Execute:
skill action=exec: skill:/
Установить huawei-cloud-config-helper в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-config-helper?
Queries Huawei Cloud Config service for global resource inventory, resource configurations, resource schemas, advanced SQL queries, and built-in compliance rules. Read-only. Use this skill when the user needs to query cloud resources, audit configurations, check compliance, inventory assets, analyze resource relationships, or run complex SQL resource queries. Triggers include: Config, 配置审计, 资源查询, 资源审计, 合规规则, 合规检查, 资源盘点, 资源Schema, 高级查询, SQL查询, 云上资产, resource inventory, compliance rule, resource schema, SQL query.
Как установить скилл huawei-cloud-config-helper?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-config-helper запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic