Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

huaweicloudskillот 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 → API content) and certificate status (--status → API status).
    • Automatic offset pagination over the whole result set; --limit caps the total number of records returned.
    • Derived fields: days_to_expire and expiry_level (expired / expiring / normal) based on expire_time.
    • Markdown export (list --output <path>) — writes the same result as a self-contained .md document (summary block + nine-column table). The file content is echoed to stdout, so the export and the console output are line-for-line identical.
  • 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 — --json returns 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 / show query capability (filters, pagination, derived expiry fields, table and --json output).
  • 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 gained render_markdown and the --output flag.

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

  1. Python 3.8+ — standard library only; no third-party packages required.
  2. Huawei Cloud AK/SK — configured out of band as environment variables:
    • HUAWEI_ACCESS_KEY (or HUAWEI_AK / HW_ACCESS_KEY / HWC_ACCESS_KEY)
    • HUAWEI_SECRET_KEY (or HUAWEI_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.
  3. Region — --region <region> or HUAWEI_REGION / HW_REGION_NAME (default cn-north-4, e.g. cn-north-4, cn-east-3, ap-southeast-1).
  4. IAM permissions — scm:cert:list for list, scm:cert:get for show. See references/iam-policies.md for a least-privilege policy.
  5. Network — outbound HTTPS to scm.{region}.myhuaweicloud.com (override with --endpoint, mainly for tests or private endpoints).

Workflow

  1. Confirm target region and make sure AK/SK are exported in the shell environment (out of band). Do not request secrets in conversation.
  2. Choose the operation — list for inventory/expiry inspection, show when a certificate ID is already known.
  3. Run the script with filters and output mode: python3 scripts/list_certificates.py list ... or ... show ....
  4. Read the result — default table for humans; --json for Agents; --output <path> to export the same result as Markdown (also echoed to stdout).
  5. 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
Полный SKILL.md на ClawHub

Установить 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-ccm-certificate-query с