Command Palette

Search for a command to run...

Назад к скиллам
скилл № 21665

Alibabacloud Csas User Device Ops

Use this skill when users ask about SASE terminal device management, user account queries, inactive device analysis, or device locking on Alibaba Cloud SASE…

БесплатноЗапускает вложенные скрипты
sdk-teamот sdk-team838 установок в других каталогах

Установить Alibabacloud Csas User Device Ops в Claude Code и Claude Desktop

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

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

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

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

Pre-checks

Aliyun CLI >= 3.3.3 required

aliyun version

If not installed or version too low, see references/cli-installation-guide.md.

Plugin setup (MUST run before first use)

aliyun configure set --auto-plugin-install true
aliyun plugin update

AI-Mode Lifecycle (MUST follow)

At the START of workflow (before any CLI invocation):

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-csas-user-device-ops"

At EVERY exit point (success, failure, error, cancellation, including after every write operation completes):

aliyun configure ai-mode disable

[MUST] Run ai-mode disable even when the operation succeeds. It is part of the success path, not just the error path.

Credential Verification

Security Rules:

  • NEVER read, echo, or print AK/SK values
  • NEVER ask users to input AK/SK in conversation
  • ONLY use aliyun configure list to check credential status
aliyun configure list

If no valid profile exists, STOP. Guide user to configure credentials outside this session.

RAM Policy & Permission Handling

Required permissions are listed in references/ram-policies.md.

[MUST] Permission Failure Handling: When any command fails due to permission errors (HTTP 403, "AccessDenied", "Forbidden", "no permission", or similar):

  1. STOP execution immediately. Do NOT retry blindly.
  2. Identify the failing API from the error message (e.g. csas:ListUserDevices, csas:UpdateUserDevicesStatus).
  3. Tell the user the exact RAM Action that failed and offer two paths:
    • Quick path: Attach the system policy AliyunCSASFullAccess to the RAM user/role (covers all CSAS operations).
    • Minimal path: Add only the specific failing Action(s) to a custom policy. See references/ram-policies.md for the minimal policy template.
  4. Pause and wait until the user confirms permissions have been granted.
  5. After confirmation, retry the failed operation.

Permission error message template:

"Permission denied calling csas:<ApiName>. Please grant either AliyunCSASFullAccess (system policy, covers all) or add csas:<ApiName> to a custom RAM policy. See references/ram-policies.md for details. Reply 'done' after granting and I will retry."

Operation Routing

Match user intent to the execution path:

User Intent Execution
Query/filter devices (any condition combo) aliyun csas list-user-devices with params
Query user list (by department, status, name) aliyun csas list-users with params
Check what apps a user can access aliyun csas list-user-applications
Get single device detail aliyun csas get-user-device
Check IDP identity source config aliyun csas get-active-idp-config
Query user groups aliyun csas list-user-groups
Analyze inactive devices bash scripts/inactive-analysis.sh
Lock inactive devices bash scripts/cleanup-inactive.sh
Delete user accounts or devices NOT supported — guide to SASE console

Example query translations:

  • "Show devices in QA dept running macOS with DLP disabled" → aliyun csas list-user-devices --department QA --device-types macOS --dlp-statuses Disabled --pager
  • "Which devices are personal and long-term offline" → aliyun csas list-user-devices --device-belong Personal --device-statuses LongTermOffline --pager
  • "What internal apps is a user authorized to access" → aliyun csas list-user-applications --sase-user-id <ID> --current-page 1 --page-size 100
  • "How many Windows devices are online" → aliyun csas list-user-devices --device-types Windows --device-statuses Online --current-page 1 --page-size 1 (check TotalNum)

Direct CLI Commands

All queries use aliyun csas plugin mode directly. Use --pager to auto-paginate full results. Full parameter details: see references/api-reference.md.

Parameter Validation Rules

[MUST] Validate parameters before calling API to avoid InvalidParameter errors:

Source: aliyun csas <command> --help

Parameter Constraint Example Source
--current-page int, 1~10000 1 CLI help
--page-size int, 1500 (list-user-applications: 1100) 100 CLI help
--device-action enum: Locked Lost Unbound Unlocked Found Locked CLI help
--device-statuses enum list Online LongTermOffline CLI help
--device-types enum list Windows macOS CLI help
--device-belong enum: Personal Company Company CLI help
--sort-by enum: Username AppVersion UpdateTime UpdateTime CLI help
--status (list-users) enum: Enabled Disabled Enabled CLI help
--dlp-statuses enum list: Enabled Disabled Unprovisioned Unauthorized Disabled Unprovisioned CLI help
--pa-statuses enum list: Enabled `Disabled
Полный SKILL.md на ClawHub

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

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

  1. 01Bash
  2. 02Read

FAQ

Что делает скилл Alibabacloud Csas User Device Ops?

Use this skill when users ask about SASE terminal device management, user account queries, inactive device analysis, or device locking on Alibaba Cloud SASE (product code: csas). Trigger scenarios: "查下哪些设备长期离线", "某部门有多少 终端设备", "锁定闲置设备", "查看用户被授权了哪些应用". Capabilities: flexible device querying with 20+ filters (department, device type, OS, SASE feature status, etc.), user listing, user application authorization queries, inactive device analysis, and locking inactive devices. Deletion or irreversible operations are NOT supported — users are guided to the SASE console. 当用户询问 SASE 终端设备管理、用户账号查询、非活跃设备分析、设备锁定时使用此 Skill。 支持灵活的设备条件组合查询(20+ 筛选项)、用户列表查询、应用授权查询、非活跃设备分析、 锁定非活跃终端。不支持删除等不可逆操作。 注意:当前不支持用户活跃度分析(API 不提供用户最后活跃时间,设备绑定关系会变更)。

Как установить скилл Alibabacloud Csas User Device Ops?

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

Скилл Alibabacloud Csas User Device Ops запускает скрипты?

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

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

Сравнить Alibabacloud Csas User Device Ops с