Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04171

huawei-cloud-cdn-traffic-anomaly-analysis

Analyze CDN domain traffic anomalies using hcloud CLI. Query billing mode and traffic/bandwidth metrics for specified domains, compare against 3-month…

БесплатноЗапускает вложенные скрипты
huaweicloudskillот huaweicloudskill541 установка в других каталогах

Установить huawei-cloud-cdn-traffic-anomaly-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

CDN Traffic Anomaly Analysis

Overview

This skill analyzes CDN domain traffic anomalies by querying billing mode and corresponding traffic/bandwidth metrics. It automatically determines the appropriate metric based on the account's billing mode (bw_95, flux, combine_flux, bw, bw_peak), queries historical data over a configurable time range, establishes a 3-month baseline for comparison, and identifies potential traffic theft or abuse using both absolute thresholds and relative baseline deviation.

Key Features:

  • Automatic billing mode detection and metric selection
  • Support for all billing modes: bw_95, flux, combine_flux, bw, bw_peak
  • Domain validation and traffic analysis
  • 3-month baseline analysis — detects relative traffic surges against historical norms
  • Dual-threshold anomaly detection — absolute thresholds + relative baseline comparison
  • Three-tier conclusions: Normal / Watch (relative surge) / Anomalous (absolute threshold exceeded)
  • Comprehensive analysis reports with baseline comparison and daily breakdowns

Tool: hcloud CLI (KooCLI)
Timestamp Tool: scripts/cdn_timestamp.py (built-in)
Analysis Scope: Past 7 days for current window (configurable); past 3 months for baseline
Core Principle: Query only the metric corresponding to the billing mode; use API capabilities efficiently to cover both current and baseline windows with minimal API calls

Triggers

Use this skill when the user request matches one of the following patterns (user-level example inputs):

User Input Example Trigger Intent
"Is example.com's traffic being stolen or abused?" Traffic theft detection
"Analyze whether CDN bandwidth has surged abnormally in the last 7 days" Bandwidth anomaly analysis
"Compare traffic over the past 3 months with the current period for anomalies" 3-month baseline comparison
"Check our account's CDN billing mode and domain list" Billing mode / domain query
"Why is example.com's 95th percentile bandwidth so high?" 95th percentile bandwidth analysis
"traffic anomaly / bandwidth anomaly / CDN traffic analysis" English triggers

Also triggered by the trigger phrases listed in the frontmatter description (e.g., CDN流量异常, 流量盗刷, 带宽异常, traffic anomaly).

Near-miss / Do NOT use

Do NOT use this skill for:

  • ❌ Any CDN write operation: create/delete domains, modify domain config, refresh/preheat, enable/disable domains, change billing mode, etc. — this skill is strictly read-only and must refuse such requests (see all 55 prohibited operations in references/prohibited-operations.md)
  • ❌ Traffic analysis requiring hourly or finer granularity — this skill works at daily granularity (interval=86400)
  • ❌ Traffic/bandwidth analysis for non-CDN services (e.g., ECS, ELB, OBS traffic) — this skill only covers CDN domains
  • ❌ Operational tasks such as domain config changes, certificate management, or anti-hotlink configuration
  • ❌ Scenarios without hcloud credentials or CDN permissions (complete the credential check in the Authentication section first)
  • ❌ Cross-border / overseas region analysis — the CDN CLI only accepts cn-north-1 and ap-southeast-1; other regions return [USE_ERROR]

⛔ Prohibited Operations (Security Constraints)

This skill strictly forbids all non-GET (write/modify/delete) CDN operations, regardless of user requests.

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

If a user requests a prohibited operation, you must refuse and inform: "Per security constraints, this skill does not allow write/delete/modify operations. This skill is read-only for traffic analysis. Please use the Huawei Cloud CDN console or run the hcloud CLI manu

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-cdn-traffic-anomaly-analysis?

Analyze CDN domain traffic anomalies using hcloud CLI. Query billing mode and traffic/bandwidth metrics for specified domains, compare against 3-month baseline and absolute thresholds to identify traffic theft or abuse. Use this skill when the user wants to: (1) analyze CDN domain traffic anomalies, (2) check if a domain has traffic theft or abuse, (3) query CDN billing mode and traffic/bandwidth metrics, (4) compare current traffic against historical baseline. Triggers include: "CDN流量异常", "流量异常分析", "域名流量分析", "流量盗刷", "带宽异常", "95带宽异常", "流量突增", "流量对比", "基准分析", "traffic anomaly", "bandwidth anomaly", "CDN traffic analysis", "traffic theft detection", "baseline comparison"

Как установить скилл huawei-cloud-cdn-traffic-anomaly-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-cdn-traffic-anomaly-analysis запускает скрипты?

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

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

Сравнить huawei-cloud-cdn-traffic-anomaly-analysis с