huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification

Claude Code and agent skill by huaweicloud/huaweicloud-skills

Trust tier 1
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Diagnose CDN domain ownership verification failures using hcloud CLI. Query the ownership verification method (DNS TXT or file verification) configured by CDN, probe the actual verification record or file, and compare against the expected verify_content to identify the root cause of verification failures. Use this skill when the user wants to: (1) diagnose CDN domain ownership verification failures, (2) check why domain ownership verification is not passing, (3) verify DNS TXT record or file verification for CDN domain access, (4) troubleshoot domain ownership verification timeout issues. Triggers include: 域名归属验证, 归属验证失败, 域名验证, 验证不通过, 域名接入验证, CDN域名接入, 验证文件, TXT记录验证, 验证文件404, 域名验证超时, ownership verification, domain verification, verify domain ownership, TXT record verification, verification file. Do NOT use this skill for creating/deleting/modifying CDN domains or configurations, triggering the ownership verification flow, or any other write operation — this skill is strictly read-only diagnosis.

Install

npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification.

CDN Domain Ownership Verification Diagnosis

Overview

This skill diagnoses CDN domain ownership verification failures. It queries the ownership verification method required by CDN (DNS TXT record verification or file verification) via hcloud CLI, and uses Python probe scripts to verify whether the actual verification record or file matches the expected value, helping users identify the root cause of ownership verification failures.

Key Features:

  • Automatic verification method detection (DNS TXT record verification / file verification / already passed)
  • DNS TXT record probe via scripts/dns_txt_probe.py (dnspython)
  • File verification probe via scripts/file_probe.py (requests)
  • Structured JSON probe output for deterministic parsing
  • Structured diagnosis report with fix recommendations

Tools: hcloud CLI (KooCLI) + Python probe scripts (scripts/file_probe.py, scripts/dns_txt_probe.py) Probe Timeout: 10 seconds (enforced by each Python script via --timeout, default 10) Core Principle: Read-only diagnosis, no configuration changes

Scope

This skill is a strictly read-only diagnosis skill for CDN domain ownership verification.

In scope:

  • Query the CDN ownership verification method and verification content via hcloud CDN ShowVerifyDomainOwnerInfo (GET)
  • Probe the actual verification record/file with scripts/dns_txt_probe.py and scripts/file_probe.py (read-only network probes)
  • Compare actual values against verify_content and generate a structured diagnosis report with fix recommendations

Out of scope (refused, never executed even if requested):

  • Creating, deleting, or modifying CDN domains or domain configurations
  • Triggering the ownership verification flow (VerifyDomainOwner POST is prohibited)
  • Creating refresh/preheat tasks, modifying billing mode, or any other write operation (full list: 55 prohibited operations in

references/prohibited-operations.md)

One problem class: this skill solves the single problem class "CDN domain ownership verification diagnosis" only; configuration changes belong to the Huawei Cloud CDN console or manual hcloud CLI.

Triggers

Use this skill when the user's request matches any of these example utterances:

  • "My CDN domain ownership verification keeps failing / is not passing"
  • "Ownership verification failed / domain verification failed"
  • "The TXT record has been added, why is verification still failing?"
  • "Verification file returns 404 / verification file not found"
  • "Domain verification timed out / verification is not taking effect"
  • "CDN domain access prompts me to verify domain ownership"

English trigger keywords: "ownership verification", "domain verification", "verify domain ownership", "TXT record verification", "verification file". The description field additionally lists bilingual (Chinese/English) trigger keywords so that Chinese user queries are matched as well.

Near-miss / Do NOT use

Do NOT use this skill when:

  • Creating, deleting, or modifying CDN resources (domains, configurations, cache rules, certificates, billing mode): use the Huawei Cloud CDN console or run hcloud CLI manually. This

skill refuses all write operations.

  • Triggering the ownership verification flow (VerifyDomainOwner): this skill only queries verification status via the GET ShowVerifyDomainOwnerInfo; triggering verification is done

in the console or via manual hcloud CLI.

  • Ownership verification is not the issue (e.g., CDN acceleration quality, cache hit ratio, origin pull failures, billing questions): out of scope.
  • The domain is not under the current account / insufficient permission: the skill aborts with guidance; it never attempts cross-account or elevated operations.

Near-miss examples (NOT handled by this skill — refuse and redirect):

  • "Create a CDN domain for me" → refuse, direct to console
  • "Trigger the ownership verification for me" → refuse, direct to console
  • "Refresh the CDN cache" → refuse, direct to console

⛔ Prohibited Operations (Security Constraints)

This skill strictly prohibits all non-GET (write/modify/delete) CDN operations, even if requested by the user.

Total: 55 prohibited operations (24 POST + 25 PUT + 6 DELETE).

For the complete list of all 55 prohibited non-GET operations with risk descriptions, see references/prohibited-operations.md.

Representative prohibited operations (full list in the reference doc):

Prohibited OperationAPI/CommandReason
❌ Create domainCreateDomain (v1/v2), CreateDomainByDuplicateWrite operation; creates production resource
❌ Delete domainDeleteDomain (v1/v2)Irreversible; removes domain from CDN
❌ Modify domain configUpdateDomainFullConfig (v1/v2), UpdateDomainOrigin, UpdateCacheRules, etc.Write operations; may affect production traffic
❌ Enable/Disable domainEnableDomain (v1/v2), DisableDomain (v1/v2)Affects production traffic
❌ Modify billing modeSetChargeModesFinancial impact; requires explicit authorization
❌ Create refresh/preheat tasksCreateRefreshTasks (v1/v2), CreatePreheatingTasks (v1/v2)Write operations; affects edge cache
❌ Verify domain ownershipVerifyDomainOwnerPOST operation; triggers verification flow (use ShowVerifyDomainOwnerInfo GET to query status instead)
If the user requests a prohibited operation, refuse and inform:
"Per security constraints, this skill does not allow write/delete/modify operations. This skill is for ownership verification diagnosis only. Use the Huawei Cloud CDN console or run hcloud
CLI manually to change configurations. The complete list of 55 prohibited operations is documented in references/prohibited-operations.md."

Architecture

CDN Domain Ownership Verification Diagnosis
├── hcloud configure list (credential check)
├── ShowVerifyDomainOwnerInfo (query ownership verification info + domain permission check)
│ ├── dns_verify_type=TXT → DNS TXT record verification
│ ├── file_verify_url → file verification
│ └── verification passed → cache latency prompt
├── python scripts/file_probe.py --url <file_verify_url> [--timeout 10]
│ (file verification probe, emits JSON)
├── python scripts/dns_txt_probe.py --name <dns_query_name> [--resolver <ip>] [--timeout 10]
│ (DNS TXT record verification; name = dns_verify_name.verify_domain_name; emits JSON)
└── generate diagnosis report
API Call Budget
StepAPI/CommandRate LimitEstimated Time
1hcloud configure list—<1s
2ShowVerifyDomainOwnerInfo—<2s
3python scripts/file_probe.py or python scripts/dns_txt_probe.py—≤10s

Total estimated time: < 13 seconds

KooCLI Command Format Standard

All hcloud CDN commands follow this standard format:

bash
hcloud CDN <Operation> --cli-region=<region> [--parameter=value ...]

Format rules:

  • Service name: CDN (uppercase)
  • Operation name: PascalCase (e.g., ShowVerifyDomainOwnerInfo)
  • Region parameter: --cli-region=<region> (recommended, CDN uses cn-north-1)
  • Parameter format: --key=value (connected with equals sign, no spaces)

Examples:

bash
# Correct
hcloud CDN ShowVerifyDomainOwnerInfo --cli-region=<region> --domain_name=www.example.com
# Incorrect (space-separated)
hcloud CDN ShowVerifyDomainOwnerInfo --cli-region <region>

Prerequisites

Pre-check: Huawei Cloud CLI (hcloud / KooCLI) >= 3.2.0
Run hcloud version to verify the version. If not installed or version is too low, see references/cli-installation-guide.md.
bash
hcloud version
Pre-check: Python >= 3.8 available
Python is required by the probe scripts (scripts/file_probe.py, scripts/dns_txt_probe.py).
bash
python --version
Pre-check: Python libraries available
The probe scripts depend on requests >= 2.25 (file_probe.py) and dnspython >= 2.1 (dns_txt_probe.py). Confirm both are importable before any probe step runs. Missing libraries abort
the skill with a clear error message naming the missing library.
bash
python -c "import requests, dns.resolver; print('ok')"

Install if missing:

bash
pip install requests>=2.25 dnspython>=2.1
Pre-check: hcloud credentials configured
Before performing CDN operations, you must verify that hcloud credentials are configured:
```bash
hcloud configure list
```
If no valid credentials are present, stop and guide the user to configure credentials.
⚠️ hcloud parameter format requirement
All parameters of hcloud (KooCLI) must use the `--param=value` format (connected with equals sign); space-separated format is not supported.
✅ Correct: hcloud CDN ShowVerifyDomainOwnerInfo --cli-region=<region>
❌ Incorrect: hcloud CDN ShowVerifyDomainOwnerInfo --cli-region <region>
⚠️ CDN API region requirement
CDN API supports only two regions: cn-north-1 (Beijing) and ap-southeast-1 (Singapore).
Query results are region-independent (CDN is a global service).
Recommended: use `cn-north-1` uniformly.

Authentication

Pre-check: Huawei Cloud credentials
Security rules (must be observed):
- Prohibited from reading, echoing, or printing AK/SK values
- Prohibited from requiring users to input AK/SK directly in the conversation
- Prohibited from using hcloud configure set to pass plaintext credentials
- Prohibited from accepting AK/SK provided directly by users in the conversation
- Only allowed to read credentials from environment variables or the configured CLI configuration file
⚠️ Important: handling user-provided credentials
If the user attempts to provide AK/SK directly (e.g., "my AK is xxx, SK is yyy"):
- Stop immediately - do not execute any commands
- Politely refuse and return the following message:
```
To protect account security, do not provide Huawei Cloud Access Key ID and Access Key Secret directly in the conversation.
Use the following secure methods to configure credentials:
Method 1: Interactive configuration (recommended)
hcloud configure
# Enter AK/SK as prompted; credentials will be securely stored in the local configuration file
Method 2: Environment variable configuration
export HUAWEICLOUD_SDK_AK=<your-access-key-id>
export HUAWEICLOUD_SDK_SK=<your-secret-key>
After configuration is complete, please retry your request.
```
- Do not continue to perform any Huawei Cloud operations until credentials are configured
Check CLI configuration:
```bash
hcloud configure list
```
Check whether the output contains valid configuration (AK/SK, IAM, etc.).
If no valid credentials are present, stop here.

IAM Permission Policies

Ensure the IAM user has the required permissions. See references/iam-policies.md for details.

Minimum required permissions:

  • cdn:*:query* — All CDN query-class actions used by this skill (ListDomains/v2, ShowVerifyDomainOwnerInfo)
  • cdn:configuration:queryDomains — List CDN domains (listed explicitly alongside the wildcard)

Core Commands

Quick reference for all hcloud CDN commands and probe commands used by this skill:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification/badge)](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification)

Something wrong with this skill or its page? Tell us.