huawei-cloud-obs-signed-url-generator
БесплатноЗапускает вложенные скриптыНе проверенGenerate OBS (Object Storage Service) signed temporary download URLs with configurable expiration, custom HTTP methods (GET/HEAD), custom headers, query…
от huaweicloudskill133 установки в других каталогахОб этом скилле
OBS Signed URL Generator
Overview
This skill generates OBS (Object Storage Service) signed temporary download URLs using the Python SDK (esdk-obs-python). It enables secure third-party access to OBS objects without exposing permanent AK/SK credentials, and supports image processing operations via the x-image-process query parameter.
Key capabilities:
- Basic signed URL generation with configurable expiration (default 3600s)
- Support for GET and HEAD HTTP methods
- Custom request headers and query parameters participating in signature
- Temporary AK/SK + SecurityToken authentication
- Image processing signed URLs: resize, crop, rotate, compress, slim, effects, watermark, format conversion, image info, and multi-operation composite processing
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Prerequisites
- Python 3.8+ with
esdk-obs-pythonpackage installed — verify withpython3 -c "from obs import ObsClient" - OBS credentials — AK/SK obtained from Huawei Cloud Console (IAM > My Credentials > Access Keys). Read from environment variables:
ACCESS_KEY_ID,SECRET_ACCESS_KEY,OBS_ACCESS_KEY_ID,OBS_SECRET_ACCESS_KEY, orHUAWEICLOUD_SDK_AK,HUAWEICLOUD_SDK_SK - OBS endpoint — the endpoint corresponding to your bucket's region (e.g.,
obs.cn-north-4.myhuaweicloud.com) - Optional: SecurityToken — for temporary credentials, set
SECURITY_TOKENorHUAWEICLOUD_SDK_SECURITY_TOKENenvironment variable - skill-quality-cli — ensured by bash scripts/ensure_cli.sh (idempotent, skips if present)
- Upgrade: run skill-quality-cli upgrade manually (no auto-upgrade)
- Disable telemetry report: set SKILL_QUALITY_REPORT=0
Workflow
- Initialize OBS Client — Create
ObsClientinstance with AK/SK (or temporary AK/SK + SecurityToken) and endpoint - Prepare Parameters — Specify bucket name, object key, HTTP method, expiration, optional headers/query params
- Generate Signed URL — Call
obs_client.createSignedUrl()to obtain the signed URL - Image Processing (Optional) — Add
x-image-processquery parameter for image operations - Return URL — The signed URL is ready for third-party temporary access
Core Commands
⚠️ Mandatory: every hcloud command in this skill MUST be wrapped with skill-quality-cli run --skill-name huawei-cloud-obs-signed-url-generator -- — bare hcloud calls are strictly forbidden.
1. Basic Signed URL Generation (GET)
# Generate a signed download URL for an OBS object
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "path/to/object.txt" \
--method GET \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com"
2. Signed URL with HEAD Method (Metadata Query)
# Generate a signed URL for HEAD request (retrieve object metadata)
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "path/to/object.txt" \
--method HEAD \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com"
3. Signed URL with Temporary AK/SK + SecurityToken
# Generate a signed URL using temporary credentials
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "path/to/object.txt" \
--method GET \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com" \
--security-token "$SECURITY_TOKEN"
4. Image Resize Signed URL
# Generate a signed URL with image resize (100x200)
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "photo.jpg" \
--method GET \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com" \
--image-process "image/resize,w_100,h_200"
5. Image Compress Signed URL
# Generate a signed URL with image compression (quality 85)
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "photo.jpg" \
--method GET \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com" \
--image-process "image/quality,q_85"
6. Image Watermark Signed URL
# Generate a signed URL with text watermark
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "photo.jpg" \
--method GET \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com" \
--image-process "image/watermark,text_aGVsbG8gV29ybGQ,size_50,color_FF0000"
7. Multi-Operation Composite Processing
# Generate a signed URL with sequential image processing (resize | compress | format)
python3 scripts/generate_signed_url.py \
--bucket-name "my-bucket" \
--object-key "photo.jpg" \
--method GET \
--expires 3600 \
--server "obs.cn-north-4.myhuaweicloud.com" \
--image-process "image/resize,w_200,h_200|image/quality,q_85|image/format,png"
8. Custom Headers and Query Parameters
# Generate a signed URL with custom headers and query
Установить huawei-cloud-obs-signed-url-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-obs-signed-url-generator?
Generate OBS (Object Storage Service) signed temporary download URLs with configurable expiration, custom HTTP methods (GET/HEAD), custom headers, query parameters, temporary AK/SK + SecurityToken support, and image processing capabilities (resize, crop, rotate, compress, slim, effects, watermark, format conversion, image info, multi-operation composite). 触发词: OBS签名URL, OBS签名下载链接, 生成签名URL, 带签名下载, 临时下载链接, OBS临时授权, 分享OBS对象, OBS对象分享, 图片处理URL, 缩略图URL, 图片压缩URL, 图片水印URL, 图片格式转换URL, OBS signed URL, generate signed URL, obs presigned url, temporary download url, obs share link, image processing url, obs thumbnail url, obs signed download
Как установить скилл huawei-cloud-obs-signed-url-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-obs-signed-url-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic