Command Palette

Search for a command to run...

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

huawei-cloud-obs-lifecycle-management

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

Manage Huawei Cloud OBS (Object Storage Service) lifecycle policies: list/get lifecycle rules, list bucket objects, diagnose why a lifecycle rule is not…

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

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

Huawei Cloud OBS Lifecycle Management Skill

Manage OBS lifecycle policies end-to-end: query rules, list objects, diagnose ineffective rules, analyze storage cost, preview the impact of a rule, and create/update/delete rules with mandatory preview and user confirmation.

Overview

This skill manages the OBS (Object Storage Service) lifecycle configuration of a bucket. A lifecycle rule automates object housekeeping: transition objects to colder storage classes (Infrequent Access / Archive / Deep Archive) or expire (delete) them after N days, optionally filtered by object key prefix or tags.

User Request
  └── Action Router
       ├── Query (R3)     → hcloud obs lifecycle get / hcloud obs ls (read-only, auto-run)
       ├── Analyze (R3)   → diagnose / cost / preview (read-only, auto-run)
       └── Manage (R2/R1) → create / update / delete lifecycle rules
                            (ALWAYS preview first + explicit user confirmation)

Capability Matrix

# Action Capability Mode Severity
1 huawei_list_obs_lifecycle_rules List all lifecycle rules of a bucket CLI R3 Query
2 huawei_get_obs_lifecycle_rule Get one lifecycle rule by ID (rule details) CLI R3 Query
3 huawei_list_obs_objects List objects in a bucket (diagnosis comparison) CLI R3 Query
4 huawei_diagnose_obs_lifecycle Diagnose why a lifecycle rule is not taking effect CLI R3 Analysis
5 huawei_analyze_obs_lifecycle_cost Analyze lifecycle policy and storage cost trade-off CLI R3 Analysis
6 huawei_preview_obs_lifecycle Dry-run preview: objects a rule would affect CLI R3 Analysis
7 huawei_create_obs_lifecycle_rule Create a lifecycle rule CLI R2 Mgmt
8 huawei_update_obs_lifecycle_rule Update a lifecycle rule CLI R2 Mgmt
9 huawei_delete_obs_lifecycle_rule Delete a lifecycle rule CLI R1 Mgmt

Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).

Prerequisites

Requirement Description
hcloud CLI Installed and authenticated. See references/cli-installation-guide.md
KooCLI version >= 3.2.0 (verify with hcloud version)
obsutil >= 5.5.0 — the hcloud OBS module maps 1:1 to obsutil commands (verify with obsutil version)
obsutil credentials Configured via hcloud obs config (interactive, prompts for AK/SK/endpoint) or obsutil config; or via HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK env vars. AK/SK are never hardcoded in this skill or its scripts, and never passed as plaintext CLI args
IAM permissions obs:bucket:GetLifecycleConfiguration, obs:bucket:PutLifecycleConfiguration, obs:object:ListObject, obs:bucket:GetBucketLocation (least-privilege policy in references/iam-policies.md)

Region note: with the obsutil passthrough mode, the region is part of the endpoint (obs.{region}.myhuaweicloud.com), not a --cli-region flag. Choose the endpoint matching the bucket's region (e.g. obs.cn-south-1.myhuaweicloud.com).

  • 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

Query (R3) — read-only, agent may run automatically

1. (optional) skill-quality-cli run --skill-name huawei-cloud-obs-lifecycle-management -- hcloud obs ls -limit=1  → list buckets, pick one
2. skill-quality-cli run --skill-name huawei-cloud-obs-lifecycle-management -- hcloud obs lifecycle obs://{bucket} -method=get  → current rules (JSON)
3. skill-quality-cli run --skill-name huawei-cloud-obs-lifecycle-management -- hcloud obs ls obs://{bucket}/{prefix} -limit={limit} -s  → objects for comparison

Analyze (R3) — read-only, agent may run automatically

1. Call huawei_diagnose_obs_lifecycle / huawei_analyze_obs_lifecycle_cost /
   huawei_preview_obs_lifecycle with the bucket (+ rule id/prefix/days as needed)
2. The analyzer script combines lifecycle config + object listing + bucket stat,
   then returns the diagnosis / cost estimate / affected-object preview
3. Present findings to the user; for a Manage action, ask for confirmation

Manage (R2/R1) — ALWAYS preview + confirm before mutating

1. huawei_preview_obs_lifecycle (dry-run) → show exactly which objects the rule would affect
2. Show the user the rule JSON that will be applied (create/update) or removed (delete)
3. WAIT for explicit user confirmation
4. Execute the put (create/update) or put-back (delete single rule)
5. huawei_list_obs_lifecycle_rules → verify the resulting configuration

⚠️ Mutating-operation security rule (mandatory): huawei_create_obs_lifecycle_rule, `huawei_update_obs_lifecy

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

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

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

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

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

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

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

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

FAQ

Что делает скилл huawei-cloud-obs-lifecycle-management?

Manage Huawei Cloud OBS (Object Storage Service) lifecycle policies: list/get lifecycle rules, list bucket objects, diagnose why a lifecycle rule is not taking effect, analyze lifecycle-vs-storage-cost trade-offs, dry-run preview which objects a rule would affect, and create/update/delete lifecycle rules (R2/R1 require preview + user confirmation). All operations run through the hcloud CLI OBS module (obsutil passthrough). Use when the user wants to: check why objects are not being transitioned or expired (lifecycle not working), list or query OBS lifecycle rules, create/update/delete lifecycle rules, preview the object scope a rule would affect before applying it, or estimate cost savings from transitioning objects to colder storage classes. Triggers include: "OBS生命周期", "生命周期规则", "生命周期策略", "不生效", "未生效", "过期删除", "转储", "归档", "低频", "lifecycle", "lifecycle rule", "lifecycle policy", "expiration", "transition", "storage class", "OBS lifecycle not working", "obs lifecycle diagnose", "dry-run", "preview lifecycle rule".

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

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

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

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

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

Сравнить huawei-cloud-obs-lifecycle-management с