阿里云PAI智能工作空间管家
简介
阿里云PAI AIWorkspace官方OpenAPI管理工具,支持资源查询、配置变更与故障排查,零外部依赖,适合企业级AI平台运维。
原始描述
Manage Alibaba Cloud Platform for Artificial Intelligence PAI - AIWorkspace (AIWorkSpace) via OpenAPI/SDK. Use for listing resources, creating or updating configurations, querying status, and troubleshooting workflows for this product.
通过你的 Agent 添加
安装目录:alicloud-ai-pai-aiworkspace/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
该Skill是阿里云PAI AIWorkspace服务的OpenAPI管理工具,通过官方SDK或OpenAPI Explorer实现资源全生命周期管理。核心工作流遵循"确认-发现-调用-验证"四步模式:首先确认区域、资源标识与操作意图;其次通过元数据端点发现可用API及参数规范;随后使用Python脚本或SDK执行调用;最后通过Describe/List类API验证结果。内置list_openapi_meta_apis.py脚本支持元数据优先探索,可自动生成API清单并持久化到输出目录。
显著优点
架构简洁可靠:仅依赖Python标准库(urllib、argparse、json等),零外部包引入,彻底规避供应链攻击风险。安全设计规范:无eval/exec/system等危险函数,输入验证完善,错误处理不泄露敏感信息。权限模型清晰:AccessKey支持环境变量与配置文件双通道,优先级策略明确,符合云安全最佳实践。运维友好:高频操作模式标准化(List/Describe查资源、Create/Update做变更、Get/Query做诊断),降低学习成本。输出可控:所有产物定向写入output/alicloud-ai-pai-aiworkspace//目录,便于审计与版本管理。
潜在缺点与局限性
功能边界受限:当前版本聚焦元数据发现与只读操作,复杂业务编排需用户自行封装。T3来源风险:社区/个人维护项目,长期更新稳定性不及官方背书,需主动跟踪版本变更。网络依赖刚性:脚本需访问阿里云官方元数据端点,离线环境或网络隔离场景无法使用。区域策略模糊:ALICLOUD_REGION_ID为可选配置,未设置时需AI推断或询问用户,可能增加交互成本。生态集成不足:缺乏与Terraform、Pulumi等IaC工具的原生对接,多云场景适配性有限。
适合的目标群体
- 云运维工程师:需批量管理PAI工作空间、数据集、训练任务的日常运维人员
- 平台架构师:设计AI中台时需要程序化探索API能力边界的系统设计者
- DevOps团队:构建CI/CD流水线中集成PAI资源编排的自动化工程师
- 安全审计人员:需审查AI平台配置合规性的安全专员
使用风险
密钥泄露风险:AccessKey通过环境变量传递,多用户共享环境或日志打印可能导致凭证暴露。网络中间人攻击:虽访问阿里云官方端点,但若本地DNS或证书链被篡改,存在元数据劫持可能。输出目录权限:exist_ok=True虽安全,但若父目录权限过宽,可能导致未授权读取。版本漂移:API版本固定为2021-02-04,阿里云服务端升级后可能出现行为不一致。误操作放大:高频变更类API(Create/Update/Delete)若被脚本批量调用,可能造成资源级联影响。
技能正文
name: alicloud-ai-pai-aiworkspace description: Manage Alibaba Cloud Platform for Artificial Intelligence PAI - AIWorkspace (AIWorkSpace) via OpenAPI/SDK. Use for listing resources, creating or updating configurations, querying status, and troubleshooting workflows for this product.
Category: service
PAI AIWorkspace
Use Alibaba Cloud OpenAPI (RPC) with official SDKs or OpenAPI Explorer to manage resources for Platform for Artificial Intelligence PAI - AIWorkspace.
Workflow
- Confirm region, resource identifiers, and desired action.
- Discover API list and required parameters (see references).
- Call API with SDK or OpenAPI Explorer.
- Verify results with describe/list APIs.
AccessKey priority (must follow)
- Environment variables:
ALICLOUD_ACCESS_KEY_ID / ALICLOUD_ACCESS_KEY_SECRET / ALICLOUD_REGION_ID
Region policy: ALICLOUD_REGION_ID is an optional default. If unset, decide the most reasonable region for the task; if unclear, ask the user.
- Shared config file:
~/.alibabacloud/credentials
API discovery
- Product code:
AIWorkSpace
- Default API version:
2021-02-04
- Use OpenAPI metadata endpoints to list APIs and get schemas (see references).
High-frequency operation patterns
- Inventory/list: prefer
List* / Describe* APIs to get current resources.
- Change/configure: prefer
Create* / Update* / Modify* / Set* APIs for mutations.
- Status/troubleshoot: prefer
Get* / Query* / Describe*Status APIs for diagnosis.
Minimal executable quickstart
- Environment variables:
ALICLOUD_ACCESS_KEY_ID/ALICLOUD_ACCESS_KEY_SECRET/ALICLOUD_REGION_IDRegion policy:ALICLOUD_REGION_IDis an optional default. If unset, decide the most reasonable region for the task; if unclear, ask the user. - Shared config file:
~/.alibabacloud/credentials
API discovery
- Product code:
AIWorkSpace
- Default API version:
2021-02-04
- Use OpenAPI metadata endpoints to list APIs and get schemas (see references).
High-frequency operation patterns
- Inventory/list: prefer
List* / Describe* APIs to get current resources.
- Change/configure: prefer
Create* / Update* / Modify* / Set* APIs for mutations.
- Status/troubleshoot: prefer
Get* / Query* / Describe*Status APIs for diagnosis.
Minimal executable quickstart
AIWorkSpace2021-02-04- Inventory/list: prefer
List*/Describe*APIs to get current resources. - Change/configure: prefer
Create*/Update*/Modify*/Set*APIs for mutations. - Status/troubleshoot: prefer
Get*/Query*/Describe*StatusAPIs for diagnosis.
Minimal executable quickstart
Use metadata-first discovery before calling business APIs:
python scripts/list_openapi_meta_apis.py
Optional overrides:
python scripts/list_openapi_meta_apis.py --product-code <ProductCode> --version <Version>
The script writes API inventory artifacts under the skill output directory.
Output policy
If you need to save responses or generated artifacts, write them under:
output/alicloud-ai-pai-aiworkspace/
References
- Sources:
references/sources.md
references/sources.md正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。