huawei-cloud-ccm-certificate-query
БесплатноЗапускает вложенные скриптыНе проверенQuery Huawei Cloud CCM (Cloud Certificate Manager) SCM SSL certificate inventory and export it as a Markdown file. Lists certificates with server-side…
от huaweicloudskill172 установки в других каталогахОб этом скилле
Huawei Cloud CCM Certificate Query
Overview
This skill queries Huawei Cloud CCM (云证书管理服务) SCM SSL certificates through
the SCM v3 OpenAPI. It is designed for certificate inventory inspection and expiry
reminders, and its --json output is directly consumable by other Agents.
Capabilities:
- List certificates (
list) —GET /v3/scm/certificates(ListCertificates).- Server-side filtering by certificate name/domain (
--name→ APIcontent) and certificate status (--status→ APIstatus). - Automatic offset pagination over the whole result set;
--limitcaps the total number of records returned. - Derived fields:
days_to_expireandexpiry_level(expired/expiring/normal) based onexpire_time. - Markdown export (
list --output <path>) — writes the same result as a self-contained.mddocument (summary block + nine-column table). The file content is echoed to stdout, so the export and the console output are line-for-line identical.
- Server-side filtering by certificate name/domain (
- Show certificate detail (
show) —GET /v3/scm/certificates/{certificate_id}(ShowCertificate), including issuer time, validity window, status, domains, algorithm, fingerprint and domain-validation information. - Human output — aligned table (list) or field list (show).
- Machine output —
--jsonreturns a stable structured document suitable for scheduled Agents and downstream automation. - Archivable output — Markdown export for inspection reports and distribution.
Scope boundaries:
- ✅ Read-only SCM SSL certificate list and detail queries, plus local Markdown export.
- ❌ CSV / HTML / PDF / Excel export, mail delivery, OBS upload.
- ❌ PCA private certificates and CAs — out of scope.
- ❌ Any mutating operation (apply, purchase, subscribe, revoke, deploy, push,
import,
ExportCertificate, delete, tag write) — no entry point is provided. The Markdown export is a local file write only; no cloud resource is created or changed. - ❌ The certificate private key is never requested or printed.
Relationship to the base skill (Issue #1096 / PR #973)
This skill is one deliverable with two increments:
- Issue #1096 / PR #973 created the skill and its
list/showquery capability (filters, pagination, derived expiry fields, table and--jsonoutput). - Issue #1098 (this iteration) extends that same skill with the Markdown
export — no new skill directory, no duplicate trigger set. The query layer
(
build_list_query,collect_certificates,normalize_certificate) is reused unchanged; only the rendering layer gainedrender_markdownand the--outputflag.
Trigger words are shared, not duplicated: query triggers keep the original
wording, and the export-specific ones (导出证书清单, 证书列表导出md,
证书清单导出, certificate report markdown) point at the same skill.
Prerequisites
- Python 3.8+ — standard library only; no third-party packages required.
- Huawei Cloud AK/SK — configured out of band as environment variables:
HUAWEI_ACCESS_KEY(orHUAWEI_AK/HW_ACCESS_KEY/HWC_ACCESS_KEY)HUAWEI_SECRET_KEY(orHUAWEI_SK/HW_SECRET_KEY/HWC_SECRET_KEY)- Optional temporary credential token:
HUAWEI_SECURITY_TOKEN - Never paste AK/SK into a chat or a command line; the script never echoes them.
- Region —
--region <region>orHUAWEI_REGION/HW_REGION_NAME(defaultcn-north-4, e.g.cn-north-4,cn-east-3,ap-southeast-1). - IAM permissions —
scm:cert:listfor list,scm:cert:getfor show. Seereferences/iam-policies.mdfor a least-privilege policy. - Network — outbound HTTPS to
scm.{region}.myhuaweicloud.com(override with--endpoint, mainly for tests or private endpoints).
Workflow
- Confirm target region and make sure AK/SK are exported in the shell environment (out of band). Do not request secrets in conversation.
- Choose the operation —
listfor inventory/expiry inspection,showwhen a certificate ID is already known. - Run the script with filters and output mode:
python3 scripts/list_certificates.py list ...or... show .... - Read the result — default table for humans;
--jsonfor Agents;--output <path>to export the same result as Markdown (also echoed to stdout). - Handle empty/error results — empty list is a success (
total: 0, exit 0) and never produces an empty Markdown file; credential/permission/region/path errors are reported with readable hints and a non-zero exit code, never with AK/SK values.
Core Commands
# List every certificate in the region (automatic pagination)
python3 scripts/list_certificates.py list --region cn-north-4
# Filter by certificate name or bound domain (server-side fuzzy search)
python3 scripts/list_certificates.py list --region cn-north-4 --name example.com
# Filter by certificate status (server-side)
python3 scripts/list_certificates.py list --region cn-n
Установить huawei-cloud-ccm-certificate-query в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-ccm-certificate-query?
Query Huawei Cloud CCM (Cloud Certificate Manager) SCM SSL certificate inventory and export it as a Markdown file. Lists certificates with server-side certificate-name/domain and status filters, shows one certificate's detail, derives remaining days to expiry plus an expiry grade, and exports the same result to Markdown (default ccm_certificates_<region>_<timestamp>.md). Strictly read-only (no apply, purchase, revoke, deploy, import, export-certificate or delete). Trigger scenarios: daily inspection, certificate expiry reminder, troubleshooting, manual Q&A and scheduled calls from other Agents. Triggers include: 查询华为云CCM列表, 查询SSL证书列表, 证书到期查询, 证书清单, 证书到期提醒, SSL证书巡检, 查看证书详情, 证书剩余天数, 云证书管理服务, 导出证书清单, 证书列表导出md, 证书清单导出, 导出CCM证书清单, 证书巡检报告, list CCM certificates, query SSL certificates, certificate expiry check, certificate inventory, SSL certificate inspection, show certificate detail, export certificate inventory, certificate report markdown, Huawei Cloud CCM.
Как установить скилл huawei-cloud-ccm-certificate-query?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-ccm-certificate-query запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic