Command Palette

Search for a command to run...

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

huawei-cloud-codearts-list

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

1. List Huawei Cloud CodeArts resources (read-only) in a tenant region/project through KooCLI, routing by --resource to the correct CodeArts list API…

wlc-devот wlc-dev398 установок в других каталогах

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

Huawei Cloud CodeArts Resource List

Overview

Query the read-only resource lists of Huawei Cloud CodeArts in a tenant region through KooCLI, selecting the resource family with --resource:

--resource KooCLI service / operation REST path Scope
projects (default) ProjectMan ListProjectsV4 GET /v4/projects region
repos CodeArtsRepo ListProjectRepositories GET /v4/projects/{project_id}/repositories project
pipelines CodeArtsPipeline ListPipelines POST /v5/{project_id}/api/pipelines/list project
deploy-tasks CodeArtsDeploy ListDeployTasks GET /v2/{project_id}/tasks/list project

Service codes, operation names and REST paths are verified against the live KooCLI metadata (hcloud <Service> <Operation> --help, KooCLI 7.3.12) and the official SDK _<op>_http_info resource paths — see references/verification-method.md. The skill is aimed at DevOps asset inventory and daily patrol.

Architecture:

agent → python3 scripts/list_codearts.py --resource <r> --cli-region=<region>
      → hcloud <Service> <ListOperation> → CodeArts OpenAPI (regional endpoint)
      → parsed JSON → table / --json / --names-only

(hcloud binary missing) → fallback: matching official CodeArts SDK list method

Key properties:

  • Read-only by design — only the four List operations above are ever constructed. A write-intent guard scans arguments and validates the operation name; mutating intents (create / delete / update / run / start / stop / merge / batch ...) are rejected before a single command runs.
  • CLI first, SDK fallback — KooCLI is the primary path; when the hcloud binary is absent the script falls back to the matching official SDK. Credentials are read only by the CLI profile / standard environment variables.
  • Project auto-resolution — project-scoped resources accept --project-id; when omitted, the project list is fetched and adopted only if exactly one project exists (otherwise an explicit id is requested).
  • Full-field table output — the default table renders the union of all returned fields, with the pipeline latest-run status surfaced as status.
  • Offline-testable — every code path (routing, paging, filters, project resolution, error classification, guard, SDK fallback) is covered by unit tests that mock the hcloud subprocess.

Out of scope: every mutating CodeArts action (create / delete / update / run / stop pipelines, create repositories, start deploy tasks, etc.) and single-resource detail / log reading. Those require a dedicated write-capable skill and explicit user confirmation.

Prerequisites

  1. KooCLI (hcloud) installed — see references/cli-installation-guide.md. Alternative: pip install the matching CodeArts SDK for the fallback path.
  2. Active credential profile — configure credentials out-of-band (KooCLI configure in your terminal, or credential environment variables). Never paste AK/SK into chat; the script never reads, echoes or stores secrets.
  3. IAM permission — read-only CodeArts actions; least-privilege policy in references/iam-policies.md.
  4. Python 3.8+ (standard library only — argparse / json / subprocess).
  5. Outbound HTTPS access to *.myhuaweicloud.com.

Workflow

  1. Confirm the target region (default cn-north-4).
  2. Choose the resource with --resource (default projects).
  3. For project-scoped resources, pass --project-id (or rely on the unique project auto-resolution).
  4. Run the list script with the desired output mode and filters.
  5. Read the result — table for humans, --json for tooling, --names-only for a compact inventory.
  6. Handle empty / error cases per the Error Handling table below.

Core Commands

# 1) CodeArts projects (default resource)
python3 scripts/list_codearts.py --resource projects --region cn-north-4

# 2) Code-and-repo (仓库) list of a project
python3 scripts/list_codearts.py --resource repos --project-id <project-id>

# 3) Pipelines of a project
python3 scripts/list_codearts.py --resource pipelines --project-id <project-id>

# 4) Deploy tasks (部署任务) of a project
python3 scripts/list_codearts.py --resource deploy-tasks --project-id <project-id>

# Output modes
python3 scripts/list_codearts.py --resource repos --json
python3 scripts/list_codearts.py --resource pipelines --names-only

# Filters
python3 scripts/list_codearts.py --resource projects --name demo
python3 scripts/list_codearts.py --resource deploy-tasks --project-id <project-id> --status failed

# Unique-project auto-resolution (no --project-id)
python3 scripts/list_codearts.py --resource repos --names-only

Equivalent direct KooCLI commands (the script wraps exactly these, with paging):

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

Установить huawei-cloud-codearts-list в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл huawei-cloud-codearts-list?

1. List Huawei Cloud CodeArts resources (read-only) in a tenant region/project through KooCLI, routing by --resource to the correct CodeArts list API: projects (ProjectMan ListProjectsV4, GET /v4/projects), repos (CodeArtsRepo ListProjectRepositories, GET /v4/projects/{project_id}/repositories), pipelines (CodeArtsPipeline ListPipelines, POST /v5/{project_id}/api/pipelines/list), deploy-tasks (CodeArtsDeploy ListDeployTasks, GET /v2/{project_id}/tasks/list). Automatic fallback to the matching official Python SDK (huaweicloudsdkprojectman / huaweicloudsdkcodeartsrepo / huaweicloudsdkcodeartspipeline / huaweicloudsdkcodeartsdeploy) when hcloud is not installed. 2. Three output modes: full-field table (default, every returned field including 名称/ID/状态/项目/可见性), --json (raw response items), and --names-only (compact name + ID inventory). 3. Project-scoped resources (repos / pipelines / deploy-tasks) take --project-id; when omitted the skill auto-resolves it from the project list and proceeds only if exactly one project exists. 4. Supports --name filtering (server-side where the API exposes it, client-side otherwise), client-side --status filtering, --region override (default cn-north-4) and automatic paging (offset/limit or page/size). 5. Explicit error hints for empty lists (「无 CodeArts 资源」), 403 / insufficient IAM permission (「请检查 IAM 权限」), missing or invalid AK/SK credentials, and hcloud not installed. 6. Built-in write-intent guard: any mutating intent (create / delete / update / run / start / stop / merge / batch ...) or any operation other than the four read-only List operations is rejected before execution — strictly read-only. 7. Offline unit tests (mocked hcloud subprocess) cover routing, output modes, filters, paging, project auto-resolution, error scenarios, SDK fallback, and the write-intent guard. 8. Triggers include: "list CodeArts projects", "CodeArts 项目列表", "查询CodeArts项目", "代码托管仓库列表", "CodeArts Repo 仓库列表", "流水线列表", "CodeArts Pipeline 列表", "部署任务列表", "CodeAr

Как установить скилл huawei-cloud-codearts-list?

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

Скилл huawei-cloud-codearts-list запускает скрипты?

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

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

Сравнить huawei-cloud-codearts-list с