Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/aliyun/iac-code --skill iac-aliyun-template-generating명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
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 模板部署技能,负责可用性查询、执行部署与失败恢复
SKILL.md 표시 중
| name | iac-aliyun-template-generating |
| description | 阿里云 ROS 模板生成——将架构方案转化为可部署的 ROS YAML 模板 |
| when_to_use | 当需要根据架构方案生成阿里云 ROS 模板时 |
| user_invocable | false |
| conclusion_schema | {"type":"object","required":["template","file_path","region","description"],"additionalProperties":false,"properties":{"template":{"type":"string","description":"与写入文件相同的 YAML 字符串"},"file_path":{"type":"string","description":"模板文件路径"},"region":{"type":"string","description":"部署地域"},"description":{"type":"string","description":"模板简要描述"}}} |
将架构方案转化为阿里云 ROS(资源编排服务)YAML 模板。
所有 API 调用都需要地域,按以下优先级确定:
Defaults to 'cn-hangzhou'),使用该默认值并告知用户注意:ROS 的模板、资源类型、模块是全局资源,任意地域查询结果相同。不要遍历地域列表。
若 candidate.name 精确等于 iac-code-web-single-ecs,先读取
references/solutions/iac-code-web.md,再复制 references/solutions/iac-code-web.ros.yml
作为模板基线;不要重新设计拓扑。
/tmp 等工作目录外路径ros_validate_template 校验;template_url 使用刚写入的模板文件路径,已有具体地域时传 region_id,否则使用工具默认地域模板路径支持本地文件:
ros_validate_template的template_url可传当前工作目录内的本地文件路径(如./template.yml)。避免将大模板内容直接作为参数传递。
候选架构可能包含 resource_intents。该字段优先级高于自然语言描述:
resource_intents 中 action=create 的资源才允许出现在 ROS Resources 中作为新建资源。VpcId Parameter,并让 SecurityGroup 的 VpcId 引用该参数。action=forbid 的资源不得在模板中创建;除非用户明确要求引用已有资源,也不要生成相关 Parameter。示例:resource_intents: [{"product": "SecurityGroup", "action": "create"}, {"product": "VPC", "action": "use_existing"}] 时,只生成 ALIYUN::ECS::SecurityGroup,不要生成 ALIYUN::ECS::VPC 或 ALIYUN::ECS::VSwitch。
候选架构的 hard_constraints 必须原样贯穿模板生成:
rollback_request 回到 architecture_planning,不得生成一个看似成功但违反约束的模板。生成模板时,库存相关属性必须定义为 Parameters(部署前通过 API 查询确定实际值)。具体字段按 references/cloud-products/ 的产品文件和 references/template-parameters.md 执行,不在本技能重复维护产品字段清单。
以下属性不需要参数化,直接使用合理默认值:
资源名称应体现业务用途,不要包含工具名(如 ros):
my-vpc、web-server、app-dbros-ecs、ros-vpc!Ref、!GetAtt 等内置函数引用参数和资源属性,避免硬编码分析错误原因 → 查 GetResourceType Schema(如需)→ 修复 → 重试(最多 5 轮)
| 文件 | 内容 |
|---|---|
| references/template-parameters.md | 模板参数规范:AssociationProperty、Label、分组 |
| references/cloud-products/ | 云产品选型文件(ecs.md、rds.md、redis.md、slb.md、vpc.md、oss.md、ga.md) |
| references/ros-template.md | ROS 模板最佳实践:RunCommand、嵌套栈、条件部署 |