huawei-cloud-scm-cert-list
БесплатноЗапускает вложенные скриптыНе проверен1. Inventory the Huawei Cloud SCM (SSL Certificate Manager / 云证书管理服务) certificates of the current account in one region, strictly read-only. Primary path…
от wlc-dev185 установок в других каталогахОб этом скилле
Huawei Cloud SCM Certificate List
Overview
Inventory the SSL/TLS certificates managed by Huawei Cloud SCM in one region
through KooCLI hcloud SCM ListCertificates, returning certificate name, ID,
bound domain (and SANs), type family (DV/OV/EV), status, expiry time, remaining
days, derived source and the region. Aimed at certificate inventory (证书盘点),
expiry patrol (到期巡检), deployment pre-check (部署前核对) and compliance review.
| Operation | REST path | Method | Purpose |
|---|---|---|---|
SCM ListCertificates |
/v3/scm/certificates |
GET | list SCM certificates of the region |
The REST path is verified from the official SDK source (
huaweicloudsdkscm/v3/scm_client.py,_list_certificates_http_info→resource_path = "/v3/scm/certificates"), not inferred.
Architecture:
agent → python3 scripts/list_scm_certs.py [--region=<region>] [--table|--json]
→ hcloud SCM ListCertificates --cli-region=<region> --limit=<n> --offset=<m>
└─ (hcloud missing / failed) → huaweicloudsdk SCM SDK ListCertificates
→ Huawei Cloud SCM OpenAPI → parsed JSON → compact list / table / JSON
Key properties:
- Read-only by design — only
ListCertificatesis ever constructed; the write-intent guard rejects--action create|delete|update|import|push|...(and a write keyword passed as the search content) before any command runs. Certificate application, purchase, import, deployment push, revocation and deletion are explicitly out of scope and require a dedicated write-capable skill with explicit user confirmation. - CLI first, SDK fallback —
hcloudis the primary path; when it is missing or fails with a transient/backend error the script falls back tohuaweicloudsdkscm(SDK credentials come fromHUAWEICLOUD_SDK_AK/HUAWEICLOUD_SDK_SKonly; SCM is a global service, so the SDK client is built withGlobalCredentials, optionally seeded byHUAWEICLOUD_SDK_DOMAIN_ID).403, credential and[USE_ERROR]failures never fall back — they are reported as-is so a permission problem is never silently turned into "no certificates". - Complete inventory — offset+limit paging until a short page or
total_countis reached, with--max-pagesas a safety cap. - Precise expiry filter —
--expiring Nis a client-side filter on the computeddays_left(≤ N, including already expired certificates), so it is exact regardless of the server-sideexpired_days_sincesemantics. - No files written — everything goes to stdout; secrets are delegated to the KooCLI profile or environment.
- Offline-testable — all code paths are covered by unit tests that mock the hcloud subprocess and inject a fake SDK client.
Out of scope: applying for / buying / importing / pushing / deploying / revoking
/ deleting / updating certificates, CSR management, private CA management,
ShowCertificate deep-dive, cross-region aggregation and file export.
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Missing hcloud is not fatal: the script falls back to the SDK. - Active credential profile — configure credentials out-of-band (run the
KooCLI configure command in your terminal, or export
HUAWEICLOUD_SDK_AK/HUAWEICLOUD_SDK_SK). Never paste AK/SK into chat; the script never reads, echoes, or stores secrets itself. - IAM permission — read-only
scm:cert:list(certificate list); least-privilege policy in references/iam-policies.md. - Python 3.8+ — standard library only for the CLI path; the SDK fallback
additionally needs
huaweicloudsdkcore+huaweicloudsdkscm. - Outbound HTTPS access to
*.myhuaweicloud.com. skill-quality-cli— ensured bybash scripts/ensure_cli.sh(idempotent, skips if present).- Upgrade: run
skill-quality-cli upgrademanually (no auto-upgrade) - Disable telemetry report: set
SKILL_QUALITY_REPORT=0
- Upgrade: run
Workflow
- Confirm the region (default
cn-north-4) — SCM certificates are region-scoped; SCM endpoints exist incn-north-4,ap-southeast-1andmy-kualalumpur-1per the SDK region table. - Run the list script with the desired output mode and filters.
- Read the result — compact list for a quick look,
--tablefor the full inventory columns,--jsonfor downstream tooling. - Handle the empty / error cases per the Edge Cases table (the script prints an explicit, actionable hint for each of them).
Core Commands
⚠️ Mandatory: every
hcloudcommand in this skill MUST be wrapped withskill-quality-cli run --skill-name huawei-cloud-scm-cert-list --— barehcloudcalls are strictly forbidden.
# Primary path: read-only certificate lis
Установить huawei-cloud-scm-cert-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-scm-cert-list?
1. Inventory the Huawei Cloud SCM (SSL Certificate Manager / 云证书管理服务) certificates of the current account in one region, strictly read-only. Primary path: KooCLI `hcloud SCM ListCertificates` (read-only GET /v3/scm/certificates); when hcloud is unavailable or fails, fall back to the official `huaweicloudsdk` SCM SDK (huaweicloudsdkscm). 2. Output modes: a compact list of 证书名称 | 绑定域名 | 到期时间 (default), a full 8-column table with --table (证书ID / 名称 / 域名 / 类型 / 状态 / 到期时间 / 剩余天数 / region), and --json for the raw merged response body. 3. Filters: --content (certificate name / bound domain / SAN, server-side and client-side), --expiring N (client-side "expires in at most N days"), --expired-days-since N (server-side), --enterprise-project-id, --region (default cn-north-4). 4. Pagination: --limit 10/20/50 with automatic offset+limit paging until the whole certificate inventory is collected (--max-pages safety cap). 5. Built-in read-only guard: any mutating intent (create / delete / update / import / push / deploy / revoke / renew / buy ...) is rejected before execution with exit code 1 — this skill never writes to SCM. 6. Explicit error hints for an empty certificate list, 403 / missing `scm:cert:list` permission, missing credentials, missing hcloud, network failures and KooCLI [USE_ERROR] — always without a traceback. 7. Triggers include: "list SSL certificates", "SSL 证书列表", "证书盘点", "查询证书", "哪些证书快到期", "证书到期巡检", "SCM 证书", "证书类型 DV OV EV", "ssl cert inventory", "list scm certificates", "华为云证书". 8. Offline unit tests cover routing, pagination, output modes, filters, error classification and the write-intent guard (mock hcloud subprocess + fake SDK client).
Как установить скилл huawei-cloud-scm-cert-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-scm-cert-list запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic