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-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 listto 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):
- STOP execution immediately. Do NOT retry blindly.
- Identify the failing API from the error message (e.g.
csas:ListUserDevices,csas:UpdateUserDevicesStatus).- Tell the user the exact RAM Action that failed and offer two paths:
- Quick path: Attach the system policy
AliyunCSASFullAccessto 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.mdfor the minimal policy template.- Pause and wait until the user confirms permissions have been granted.
- After confirmation, retry the failed operation.
Permission error message template:
"Permission denied calling
csas:<ApiName>. Please grant eitherAliyunCSASFullAccess(system policy, covers all) or addcsas:<ApiName>to a custom RAM policy. Seereferences/ram-policies.mdfor 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, 1 |
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 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…