huawei-cloud-sfs-export-markdown
БесплатноЗапускает вложенные скриптыНе проверен1. Query the Huawei Cloud SFS (Scalable File Service / SFS Turbo) file-system list of a tenant region through KooCLI (`hcloud SFSTurbo ListShares`, the…
от wlc-dev198 установок в других каталогахОб этом скилле
Huawei Cloud SFS File System List → Markdown Export
Overview
Query the SFS (Scalable File Service / SFS Turbo) file-system list of a tenant
region through KooCLI hcloud SFSTurbo ListShares (official read-only GET
/v1/{project_id}/sfs-turbo/shares/detail, verified in the
huaweicloudsdksfsturbo v1 client _list_shares_http_info metadata), then
render the file-system name list as a Markdown table and write it to a local
.md file. The skill is aimed at SFS inventory / asset export, daily
operations patrol, handover reports and any "save the file-system list as a
Markdown file" request.
Architecture:
agent → python3 scripts/list_sfs_export_markdown.py → hcloud SFSTurbo ListShares --cli-region=<region> --limit=N --offset=O
→ Huawei Cloud SFS OpenAPI (regional endpoint) → parsed JSON → Markdown table → local .md file
(hcloud binary missing) → fallback: huaweicloudsdksfsturbo v1 SFSTurboClient.list_shares
Key properties:
- Read-only by design — the only API ever invoked is
ListShares(GET). A write-intent guard validates the operation name and scans the arguments; mutating intents (create / delete / expand / shrink / resize / mount / unmount / attach / detach / restore / reboot ...) are rejected with an explicit message before any command runs. The.mdfile is generated on the local filesystem only — no SFS write happens and no user confirmation can make this skill issue a write. - CLI first, SDK fallback — KooCLI is the primary execution path; when the
hcloud binary is absent, the script falls back to the official
huaweicloudsdksfsturbov1 SDK (list_shares). Credentials are always read by the CLI profile / SDK environment — never handled by the script. - Empty result is not an error — an empty file-system list (or a filter
that matches nothing) still produces a valid
.mdfile with the table header and an explicit "no file systems" note, and exits0. - Atomic local file — the Markdown body is written to a temporary file and renamed into place, so an interrupted write never leaves a corrupt / partial file behind.
- Offline-testable — every code path (paging, filters, rendering, atomic write, error classification, guard, SDK fallback) is covered by unit tests that mock the hcloud subprocess.
Capability boundary: this skill lists file systems only and exports them locally; it does not manage the file-system lifecycle (create / delete / expand / shrink / rename / mount / ACL / permission rules / backend binding), and it does not export to Excel / PDF / CSV. It also does not cover the SFS 3.0 「通用文件系统」 product (
ListFileSystems). Those require a separate skill.
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Differentiation from the plain SFS file-system list skill
The repository keeps a terminal-oriented SFS file-system-list skill and this Markdown-export skill side by side. They share the same read-only API but produce different artifacts, and they are not runtime dependencies of each other.
| Dimension | Plain SFS file-system list skill | This export skill |
|---|---|---|
| Deliverable | Terminal output (table / JSON / names-only) | A local Markdown file (default sfs_share_list.md) |
| Persistence | None — printed to stdout only | Atomic file write + automatic parent-directory creation |
| Purpose | Interactive inspection / pre-query a file-system ID for downstream use | Markdown report export for inventory, patrol, handover |
Per-service "query + export to a file" capabilities are an established repository convention and are kept as their own skill, separate from the plain list skill and named by the export format. This skill continues that convention for SFS with Markdown as the output format. Use the plain SFS list skill to view file systems in the terminal; use this skill when the file-system list must be saved as a distributable / archivable Markdown document.
Prerequisites
- Python 3.8+ — the Markdown export uses only the Python standard library.
For the hcloud-absent fallback, run
python3 scripts/ensure_env.pyto installhuaweicloudsdkcore/huaweicloudsdksfsturboautomatically. See references/cli-installation-guide.md. - KooCLI (
hcloud) installed — the primary path. See references/cli-installation-guide.md. Alternative:pip install huaweicloudsdkcore huaweicloudsdksfsturboto enable the SDK fallback path. - KooCLI credentials configured out-of-band — the script never reads, echoes, or stores AK/SK itself; authentication is delegated to the active KooCLI profile (CLI path) or the whitelisted environment variables (SDK fallback). Never paste AK/SK into chat.
- IAM permission — read-only `s
Установить huawei-cloud-sfs-export-markdown в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-sfs-export-markdown?
1. Query the Huawei Cloud SFS (Scalable File Service / SFS Turbo) file-system list of a tenant region through KooCLI (`hcloud SFSTurbo ListShares`, the official read-only GET /v1/{project_id}/sfs-turbo/shares/detail), with an automatic fallback to the official huaweicloudsdksfsturbo v1 SDK (`SFSTurboClient.list_shares`) when hcloud is not installed. 2. Export the file-system name list (plus ID / status / protocol / capacity / availability zone / type / enterprise project / created time) into a well-formed local Markdown table file — strictly local file generation, nothing is ever written back to the cloud. `--output` sets the file path (default `sfs_share_list.md` in the current directory); the parent directory is created automatically and the file is written via a temp file + atomic rename. 3. Region aware: `--region` (default cn-north-4). Optional client-side filters — `--name` / `--id` / `--az` (case-insensitive substring) and `--status` / `--share-proto` (case-insensitive exact) — the real ListShares API has no such parameters, so the full paged list is fetched first and filtered locally. The applied filters are echoed in the document's metadata line (`过滤条件: ...`; `无过滤条件` when none). 4. Explicit error classification: empty file-system list (still writes the file — `当前区域(x)无 SFS 文件系统` when the region truly has none, `当前过滤条件下无匹配的 SFS 文件系统` when a filter matched nothing), missing AK/SK credentials (「缺少 AK/SK 凭证」), 403 / insufficient IAM permission (「无权限访问 SFS,请检查 IAM 权限」), hcloud not installed (falls back to the SDK, else a clear hint), KooCLI usage errors, and generic API/network failures. 5. Built-in write-intent guard: any mutating intent (create / delete / expand / shrink / resize / mount / unmount / attach / detach / restore / reboot ...) or any operation other than the read-only ListShares is rejected before execution — this skill is strictly read-only. 6. Triggers include: "查询SFS并导出md", "导出SFS文件系统清单为md", "SFS 名称 Markdown", "SFS list markdown", "SFS inventory
Как установить скилл huawei-cloud-sfs-export-markdown?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-sfs-export-markdown запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic