huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
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-verificationSemi-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.pyandscripts/file_probe.py(read-only network probes) - Compare actual values against
verify_contentand 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 (
VerifyDomainOwnerPOST 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 GETShowVerifyDomainOwnerInfo; 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 Operation | API/Command | Reason | |
|---|---|---|---|
| ❌ Create domain | CreateDomain (v1/v2), CreateDomainByDuplicate | Write operation; creates production resource | |
| ❌ Delete domain | DeleteDomain (v1/v2) | Irreversible; removes domain from CDN | |
| ❌ Modify domain config | UpdateDomainFullConfig (v1/v2), UpdateDomainOrigin, UpdateCacheRules, etc. | Write operations; may affect production traffic | |
| ❌ Enable/Disable domain | EnableDomain (v1/v2), DisableDomain (v1/v2) | Affects production traffic | |
| ❌ Modify billing mode | SetChargeModes | Financial impact; requires explicit authorization | |
| ❌ Create refresh/preheat tasks | CreateRefreshTasks (v1/v2), CreatePreheatingTasks (v1/v2) | Write operations; affects edge cache | |
| ❌ Verify domain ownership | VerifyDomainOwner | POST 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 hcloudCLI manually to change configurations. The complete list of 55 prohibited operations is documented in references/prohibited-operations.md."
Architecture
API Call Budget
| Step | API/Command | Rate Limit | Estimated Time | |
|---|---|---|---|---|
| 1 | hcloud configure list | — | <1s | |
| 2 | ShowVerifyDomainOwnerInfo | — | <2s | |
| 3 | python 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:
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:
Prerequisites
Pre-check: Huawei Cloud CLI (hcloud / KooCLI) >= 3.2.0Runhcloud versionto verify the version. If not installed or version is too low, see references/cli-installation-guide.md.
Pre-check: Python >= 3.8 availablePython is required by the probe scripts (scripts/file_probe.py,scripts/dns_txt_probe.py).
Pre-check: Python libraries availableThe probe scripts depend onrequests >= 2.25(file_probe.py) anddnspython >= 2.1(dns_txt_probe.py). Confirm both are importable before any probe step runs. Missing libraries abortthe skill with a clear error message naming the missing library.
Install if missing:
Pre-check: hcloud credentials configuredBefore performing CDN operations, you must verify that hcloud credentials are configured:```bashhcloud configure list```If no valid credentials are present, stop and guide the user to configure credentials.
⚠️ hcloud parameter format requirementAll 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 requirementCDN API supports only two regions:cn-north-1(Beijing) andap-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 usinghcloud configure setto 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 credentialsIf 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 fileMethod 2: Environment variable configurationexport 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 configuredCheck CLI configuration:```bashhcloud 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
- SKILL.md in the repositoryCheckingskills/edge/cdn/huawei-cloud-cdn-domain-ownership-verification/SKILL.md
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
[](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cdn-domain-ownership-verification)