基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aliyun/iac-code --skill pac-aliyun命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Use Alibaba Cloud ROS Agent through its StartChat API for remote infrastructure conversations. Trigger when the user explicitly asks for the ROS Agent, its StartChat API, or a remote iac-code conversation through Alibaba Cloud. Supports normal and selling Pipeline conversations, questions, candidate selection, correlated permission approval or denial, and explicit StopChat cancellation. Do not trigger for ordinary Alibaba Cloud infrastructure work that can use the local iac-code Skill, or for unrelated ROS API operations.
阿里云 ROS 模板部署技能,负责可用性查询、执行部署与失败恢复
selling_solution_first 的阿里云 ROS 模板部署技能,负责可用性查询、执行部署与失败恢复
| name | pac-aliyun |
| description | 阿里云 Alibaba Cloud Policy as Code / InfraGuard 合规策略生成、校验与策略库查询 |
| when_to_use | 当用户请求阿里云/Alibaba Cloud/Alicloud 的 Policy as Code、PAC、InfraGuard、Rego 合规策略生成、策略查询、策略更新或模板合规校验时,必须先调用 skill 工具加载 pac-aliyun。 |
| user_invocable | false |
| auto_trigger | {"script":"auto_trigger.py","supersedes":"iac-aliyun"} |
面向阿里云 ROS 模板的 Policy as Code 能力,使用 InfraGuard 进行策略查询、策略更新、模板扫描、合规策略生成与自定义 Rego 校验。
iac-aliyun 只负责 ROS/Terraform 模板生成、解释、参数推荐、询价、部署和资源栈操作。执行任何 PAC 后续能力前,先按 references/infraguard-policy-generation.md 的 Lazy InfraGuard Sync 流程检查 InfraGuard 是否可用,并检查策略更新。
核心命令:
infraguard version
infraguard update --check
GOPROXY=https://mirrors.aliyun.com/goproxy/,direct go install github.com/aliyun/infraguard/cmd/infraguard@latest
infraguard update
infraguard policy update
infraguard policy list
版本处理:
infraguard,使用带阿里云 Go Proxy 的 go install 命令安装。infraguard 不是最新版本,先提醒用户需要升级到最新版本。0.10.1,使用带阿里云 Go Proxy 的重装命令升级。0.10.1,使用 infraguard update 升级。若用户只是咨询概念,可先简短回答;一旦需要生成、查询、校验或扫描策略,必须先完成懒加载检查。
infraguard policy list 查看官方可用策略。infraguard policy get <policy-id> 查看规则详情。rule:aliyun:<name> 或 pack:aliyun:<name> 的形式用于扫描。infraguard scan <template.yaml> -p <policy> 扫描;需要机器可读结果时加 --format json。infraguard policy validate <policy.rego> 校验。