huawei-cloud-functiongraph-list
БесплатноЗапускает вложенные скриптыНе проверен1. List Huawei Cloud FunctionGraph (函数工作流) functions of the current account / project / region through KooCLI (`hcloud functiongraph ListFunctions`…
от wlc-dev195 установок в других каталогахОб этом скилле
Huawei Cloud FunctionGraph Function List
Overview
List the FunctionGraph (函数工作流) functions of a Huawei Cloud account /
project / region through KooCLI hcloud functiongraph ListFunctions (official
read-only GET /v2/{project_id}/fgs/functions, verified in the
huaweicloudsdkfunctiongraph v2 _list_functions_http_info metadata). The
skill is aimed at function inventory inspection, daily operations patrol, and as
a pre-query step for other FunctionGraph skills that need a function urn
(func_urn).
Architecture:
agent → python3 scripts/list_functiongraph.py --region <region>
→ hcloud functiongraph ListFunctions --cli-region=<region> --maxitems=<n>
→ Huawei Cloud FunctionGraph OpenAPI (project-scoped endpoint)
→ parsed JSON → sort by func_name → table / --json / --names-only
(hcloud binary missing) → fallback: huaweicloudsdkfunctiongraph v2
FunctionGraphClient.list_functions
Key properties:
- Read-only by design — the only API ever invoked is
ListFunctions(GET). A write-intent guard scans user arguments and validates the operation name; mutating intents (create / delete / update / publish / invoke / import / export / trigger ...) are rejected with an explicit message before any command runs. - Sorted by function name — the result list is sorted by
func_name(case-insensitive, stable) so the table and--names-onlyoutput are easy to scan. - CLI first, SDK fallback — KooCLI is the primary execution path; when the
KooCLI binary is absent, the script falls back to the official
huaweicloudsdkfunctiongraphv2 SDK (list_functions). Credentials are always read by the CLI profile / SDK environment — never handled by the script. - Key columns first — the default table puts 函数名称 / URN / 内存 / 超时 / 入口 / 运行时 / 分组 first, then any remaining returned fields.
- Offline-testable — every code path (filters, error classification, guard, SDK fallback, sorting, paging) is covered by unit tests that mock the hcloud subprocess.
Out of scope: every mutating FunctionGraph action (create / delete / update a function, publish a version, invoke, import / export, trigger management, dependency management). Those require a dedicated write-capable skill and explicit user confirmation.
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:pip install huaweicloudsdkcore huaweicloudsdkfunctiongraphto enable the SDK fallback path. - Active credential profile — configure credentials out-of-band (run the KooCLI configure command in your terminal, or set credential environment variables). Never paste AK/SK into chat; the script never reads, echoes, or stores secrets itself — authentication is delegated entirely to the hcloud profile / SDK environment.
- IAM permission — read-only
functiongraph:function:list; least-privilege policy in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess).
- Outbound HTTPS access to the region FunctionGraph endpoint
(
functiongraph.<region>.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
- Confirm the target region (default
cn-north-4); the function list is project-scoped and region-scoped. - Confirm KooCLI readiness (optional, read-only) by listing the active credential profile.
- Run the list script with the desired output mode and filters.
- Read the result — table for humans,
--jsonfor downstream tooling,--names-onlyfor a compact inventory; results are sorted by function name. - Handle the empty / error cases per the Edge Cases table below (the script prints an explicit hint for empty region, 403, and missing AK/SK).
Core Commands
⚠️ Mandatory: every hcloud command in this skill MUST be wrapped with skill-quality-cli run --skill-name huawei-cloud-functiongraph-list -- ** — bare hcloud calls are strictly forbidden.
# Full-field table (default), sorted by function name
skill-quality-cli run --skill-name huawei-cloud-functiongraph-list -- python3 scripts/list_functiongraph.py --region cn-north-4
# Raw JSON of every returned field
skill-quality-cli run --skill-name huawei-cloud-functiongraph-list -- python3 scripts/list_functiongraph.py --json
# Compact function-name list only
skill-quality-cli run --skill-name huawei-cloud-functiongraph-list -- python3 scripts/list_functiongraph.py --names-only
# Filter by function name (server-side func_name fuzzy search)
skill-qu
Установить huawei-cloud-functiongraph-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-functiongraph-list?
1. List Huawei Cloud FunctionGraph (函数工作流) functions of the current account / project / region through KooCLI (`hcloud functiongraph ListFunctions` — read-only GET `/v2/{project_id}/fgs/functions`, verified in the `huaweicloudsdkfunctiongraph` v2 `_list_functions_http_info` metadata), with an automatic fallback to the official SDK when hcloud is not installed. 2. Output is **sorted by function name** by default and rendered as a table showing 函数名称 (func_name) / 内存 (memory_size, MB) / 超时时间 (timeout, s) / 入口 (handler) / 运行时 (runtime) / URN / 分组 (package) etc. Three output modes: full-field table (default), `--json` (raw response array), and `--names-only` (compact function-name list). 3. Supports `--name` filtering (func_name, server-side fuzzy search), `--package-name` (分组), page-size, automatic marker paging, and a region override via `--region` (`--cli-region` under the hood). 4. Explicit error hints for empty function lists (「当前区域无函数」), 403 / insufficient IAM permission (「无权限访问 FunctionGraph」), missing or invalid AK/SK credentials, and hcloud not installed. 5. Built-in write-intent guard: any mutating intent (create / delete / update / publish / invoke / import / export / trigger ...) or any operation other than ListFunctions is rejected before execution — this skill is strictly read-only. 6. Triggers include: "list functions", "functiongraph list", "查询函数列表", "函数工作流函数列表", "FunctionGraph 函数", "函数列表", "functions list", "function inventory", "华为云函数工作流", "list functions". 7. Offline unit tests (mocked hcloud subprocess) cover output modes, filters, paging, error scenarios, SDK fallback, sorting, and the write-intent guard.
Как установить скилл huawei-cloud-functiongraph-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-functiongraph-list запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic