alibabacloud-cdn-refresh-preload
Installation
SKILL.md
CDN Refresh and Preload Diagnostics
Diagnose CDN refresh and preload issues: "content not updated after refresh", "preload failed", "cache not cleared", "URL refresh not effective", "directory refresh still shows old content".
Core approach: First query refresh/preload task records to confirm task status, then follow different diagnostic branches based on refresh type (file / directory / preload).
Observability
All OpenAPI calls (invoked through the aliyun CLI) include:
- User-Agent:
--user-agent AlibabaCloud-Agent-Skills/{SKILL_NAME}/{session-id} - SKILL_NAME:
alibabacloud-cdn-refresh-preload - session-id: 32-character hex string generated per diagnostic session
Prerequisites
- Python 3.11+ and aliyun CLI — required:
aliyun cdn describe-refresh-tasksandaliyun sts assume-roleare both invoked via thealiyunCLI (no direct HTTP signing). No external Python SDK dependencies. - Alibaba Cloud credentials — Credentials are resolved automatically by the aliyun CLI default credential chain (environment or ~/.aliyun/config.json). Do not read, print, or pass AK/SK/STS tokens explicitly.
- Target inputs: URL (the resource to diagnose) and UID (the Alibaba Cloud account UID). UID can be omitted — it defaults to the caller account derived via
aliyun sts get-caller-identity. Auto-fill first, ask second: never ask the user for UID or role name when they can be derived.