with one click
pac-aliyun
阿里云 Alibaba Cloud Policy as Code / InfraGuard 合规策略生成、校验与策略库查询
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
阿里云 Alibaba Cloud Policy as Code / InfraGuard 合规策略生成、校验与策略库查询
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| 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> 校验。阿里云 ROS 模板部署技能,负责可用性查询、执行部署与失败恢复
使用 InfraGuard 审查 ROS 模板;有发现时直接修复并验证,初始扫描干净时直接输出模板
使用专用 ROS 模板询价工具预估 ROS 模板的月度部署费用,支持按需修复和校验模板问题
阿里云 ROS 模板生成——将架构方案转化为可部署的 ROS YAML 模板
阿里云 Alibaba Cloud ROS/Terraform IaC 模板生成、解释、完善、校验、询价与部署
判断用户输入是否为基础设施需求,并从中提取结构化的 IntentSpec