Command Palette

Search for a command to run...

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

huawei-cloud-obs-website-host

БесплатноЗапускает вложенные скриптыНе проверен

Configure Huawei Cloud OBS static website hosting with Python SDK and a custom domain. Use when the user needs to enable or repair OBS website hosting, set…

huaweicloudskillот huaweicloudskill544 установки в других каталогах

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

Huawei Cloud OBS Website Host

Overview

Configure an existing Huawei Cloud OBS bucket for static website hosting with Huawei Cloud OBS Python SDK and register a custom domain for the site.

Use this skill when the user wants to:

  • enable or repair OBS static website hosting
  • set an index document or error document
  • make the site reachable through a custom domain backed by the OBS static website endpoint
  • add or repair a custom domain, including Huawei Cloud DNS when applicable
  • diagnose 403, 404, or DNS issues on a hosted OBS site

What Good Looks Like

This skill performs write operations: it enables static website hosting on a bucket (setBucketWebsite) and registers the required custom domain on that bucket (setBucketCustomDomain). When the user asks for it, it also creates/updates DNS records. These writes are executed by the bundled scripts in this skill's own session — they are not simulated, deferred to the user, or replaced with read-only checks. Verification runs after the writes to confirm the result.

  • The bucket has static website hosting enabled by this skill.
  • The bucket can serve index.html from the website endpoint.
  • Anonymous users can read the website content.
  • A missing path returns the configured error page or a clean 404.
  • A custom domain is registered by this skill and resolves to the OBS website endpoint through DNS. A custom domain is mandatory — the default OBS bucket domain is not permitted for online object preview per security compliance requirements.
  • The setup is not considered complete until the custom domain is registered on the bucket and resolves correctly.
  • The OBS website endpoint is used, not the regular bucket API endpoint.
  • A 403 usually has two common causes: anonymous/public read is not enabled on the bucket or objects, or the AK/SK used for OBS operations lacks required IAM permissions.
  • A 404 usually means the index document name or upload path is wrong.

Security Compliance: Custom Domain Requirement

Based on Huawei Cloud security compliance requirements, the OBS bucket default domain name (<bucket_name>.obs.<region>.myhuaweicloud.com) is prohibited from being used for online preview of objects within the bucket. A custom domain is therefore mandatory for static website hosting.

If the user does not have a custom domain prepared:

  1. First ask the user where the website will be deployed (deployment region / jurisdiction), and where the domain will be registered. Only apply region-specific requirements (such as ICP filing) when the deployment region actually requires them.
  2. Direct the user to register a domain through the Huawei Cloud Domain Registration Service, or other common domain registration sites.
  3. If (and only if) the user's deployment region is mainland China, the domain must also complete ICP filing (网站备案) before it can be used for website hosting. For deployments outside mainland China, this step is not required — do not impose it.
  4. Only after the region check and, where applicable, the domain registration/filing are confirmed should the static website hosting configuration continue.

Important: Do not proceed with static website hosting configuration until the custom domain prerequisite is confirmed. The default OBS domain is not a valid alternative for website access even in the testing environment.

Required Inputs

Collect these before making changes:

  • region
  • bucket_name
  • custom_domain (required — see Security Compliance section above)
  • index_document (optional, default: index.html)
  • error_document (optional)
  • dns_zone or DNS account context (optional; required only if the user wants Huawei Cloud DNS changes in this run)

Assume static website files are already uploaded by the user.

Dependencies

The skill depends on the following runtime/tooling components:

  • Python 3.10+ (required for scripts/set_obs_website_sdk.py and scripts/verify_obs_website.py)
  • Huawei OBS Python SDK package: esdk-obs-python
  • obsutil (for generating and maintaining .obsutilconfig credential config)
  • Huawei Cloud AK/SK credentials (from .obsutilconfig)
  • Network access to OBS endpoint and website endpoint
  • hcloud CLI (required only when this skill manages Huawei Cloud DNS record operations)
  • dig / nslookup (optional)

Install command:

pip install esdk-obs-python

Capability & Permission Scope

This skill declares its exact capability and permission scope so callers and reviewers know what it can and cannot do before invoking it:

What it can write (modify):

  • The website configuration of the user-specified OBS bucket only (setBucketWebsite: index document, error document), via scripts/set_obs_website_sdk.py.
  • The custom domain binding on that same bucket (setBucketCustomDomain), including an optional HTTPS certificate binding.
  • DNS records in a Huawei Cloud DNS zo
Полный SKILL.md на ClawHub

Установить huawei-cloud-obs-website-host в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл huawei-cloud-obs-website-host?

Configure Huawei Cloud OBS static website hosting with Python SDK and a custom domain. Use when the user needs to enable or repair OBS website hosting, set index or error pages, expose an existing bucket for public website access through a custom domain, or connect that domain through Huawei Cloud DNS when Huawei manages the zone. Triggers include OBS static website hosting, website endpoint, index page, error page, public-read bucket website access, custom domain CNAME, Huawei Cloud DNS, setBucketWebsite. 中文触发词包括:OBS 静态网站托管、网站托管、自定义域名解析。

Как установить скилл huawei-cloud-obs-website-host?

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

Скилл huawei-cloud-obs-website-host запускает скрипты?

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

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

Сравнить huawei-cloud-obs-website-host с