← 返回 Skills 市场
96
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ailiyun-yunxiao-mr-deploy
功能描述
支持自定义分支/代码库创建MR、查询MR合并状态、按代码库+环境关键字触发发布流水线,并自动推送通知。支持自然语言输入,由大模型自动识别意图。
使用说明 (SKILL.md)
\r \r
功能说明\r
- 创建 MR:大模型自动识别代码库名/源分支/目标分支,代码库名支持精确匹配和模糊匹配\r
- 查询 MR 状态:支持按代码库名 + MR 编号查询合并状态、审核情况、分支信息\r
- 触发发布:支持按代码库名 + 环境关键字(如 beta、dev)搜索流水线,多条匹配时列出供用户选择;也可直接指定流水线ID\r
- 通知:所有操作结果自动推送到指定url,包括办公软件(企微,钉钉等)的各种机器人\r \r
自然语言示例\r
\r
创建 MR\r
帮我把 feature/login 合到 dev\r从 release 创建到 main 的合并请求\r在 erp-ops 仓库创建 fix_xxx 到 beta 的 MR\r把 260309_espu_inventory 分支提到 beta\r新建一个 PR 从 hotfix/xxx 到 master\r \r
查询 MR 状态\r
查询 erp-ops #425 的合并状态\rerp-ops-api 第152号MR合并了吗\r帮我看一下 unitepos-sale MR #307 有没有通过\r#306 MR 状态怎么样了\r \r
触发发布\r
发布 erp-ops 的 beta 环境\r触发 erp-ops-api 的 dev 流水线\r部署 unitepos-sale beta\r线上发布(使用默认流水线)\r触发流水线 4297451(直接指定ID)\r \r
配置说明\r
\r
敏感配置(推荐通过环境变量设置)\r
\r
以下三项优先从系统环境变量读取,未设置时回退到脚本内默认值:\r
\r
| 环境变量 | 说明 |\r
|---|---|\r
| YUNXIAO_PERSONAL_TOKEN | 云效个人访问令牌 |\r
| YUNXIAO_ORGANIZATION_ID | 企业/组织 ID |\r
| WECOM_WEBHOOK_URL | 企业微信机器人 Webhook 完整地址 |\r
\r
Windows 设置环境变量示例(PowerShell):\r
[System.Environment]::SetEnvironmentVariable("YUNXIAO_PERSONAL_TOKEN", "你的令牌", "User")\r
[System.Environment]::SetEnvironmentVariable("YUNXIAO_ORGANIZATION_ID", "你的企业ID", "User")\r
[System.Environment]::SetEnvironmentVariable("WECOM_WEBHOOK_URL", "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx", "User")\r
```\r
\r
**macOS / Linux 设置示例(写入 ~/.zshrc 或 ~/.bashrc):**\r
```bash\r
export YUNXIAO_PERSONAL_TOKEN="你的令牌"\r
export YUNXIAO_ORGANIZATION_ID="你的企业ID"\r
export WECOM_WEBHOOK_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx"\r
```\r
\r
### 其他配置(在脚本 `mr_deploy_old_full.py` 的 CONFIG 中填写)\r
\r
- `DEFAULT_REPO_ID`:未指定代码库时的默认代码库ID\r
- `DEFAULT_SOURCE`:未指定时的默认源分支\r
- `DEFAULT_TARGET`:未指定时的默认目标分支\r
- `DEFAULT_FLOW_ID`:未指定时的默认流水线ID(发布场景无关键字时使用)\r
\r
## 工作原理\r
用户输入 → 大模型解析意图(action / repo_name / source_branch / target_branch / mr_id / flow_id / env_keyword)\r
- `create_mr`:按仓库名查询ID → 调用创建接口 → 企微通知\r
- `query_mr`:按仓库名查询ID → 查询MR详情 → 返回状态+审核信息\r
- `deploy`:有 flow_id 则直接触发;否则按 repo_name + env_keyword 搜索流水线(名称匹配规则:`{repo_name}_{env_keyword}`)→ 唯一匹配则触发,多条则列出供确认\r
\r
## 踩坑经验\r
\r
(以下由 AI 在实际使用中自动积累,请勿手动删除)\r
安全使用建议
This skill appears internally consistent with its stated purpose. Before installing, consider: (1) Provide a least-privileged Yunxiao personal token (rotate it regularly) and ensure the token scope only allows repository/pipeline actions required. (2) Verify WECOM_WEBHOOK_URL points to your organization’s bot (do not use public/pasted webhook URLs). (3) Review the Python file yourself for any additional endpoints or unexpected behavior; the code makes HTTP calls to openapi-rdc.aliyuncs.com and to whatever webhook URL you supply. (4) Ensure the runtime has the 'requests' library available; the skill metadata does not declare dependencies. (5) Test with non-production repositories/pipelines first. (6) Avoid posting secrets into chat logs or public places — set them as environment variables on the host or in a secure secret store.
功能分析
Type: OpenClaw Skill
Name: ailiyun-yunxiao-mr-deploy
Version: 1.0.0
The skill bundle is designed to manage Alibaba Cloud Yunxiao merge requests and deployment pipelines. It uses environment variables for sensitive credentials (YUNXIAO_PERSONAL_TOKEN) and interacts with official Alibaba Cloud API endpoints (openapi-rdc.aliyuncs.com). While there is a minor configuration discrepancy where skills.json references 'mr_deploy_old_full.py' but the provided script is named 'ailiyun_yunxiao_mr_deploy.py', the code logic is transparent, follows the stated purpose, and contains no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description, SKILL.md and the Python code all target Aliyun 云效 (openapi-rdc.aliyuncs.com) operations (repository lookup, create changeRequests, search/run pipelines) and sending notifications to a webhook. Required secrets (personal token, organization id, webhook) are exactly what you would expect for these operations.
Instruction Scope
SKILL.md instructs the agent to parse natural language, call Yunxiao APIs and post results to the configured webhook. The instructions do not ask the agent to read unrelated system files or transmit data to unexpected third-party endpoints beyond the Yunxiao API domain and the user-supplied webhook URL.
Install Mechanism
There is no install spec and the skill comes with a single Python file; nothing is downloaded from external URLs and no archive extraction is used. This lowers install-time risk. Note: the code uses the 'requests' library but the skill metadata doesn't list runtime dependencies.
Credentials
The sensitive environment variables documented in SKILL.md (YUNXIAO_PERSONAL_TOKEN, YUNXIAO_ORGANIZATION_ID, WECOM_WEBHOOK_URL) are appropriate for the described functionality. Minor inconsistencies: the registry metadata reported 'required env vars: none' while SKILL.md and the code clearly expect those environment variables (they are optional but recommended). Also the code relies on the 'requests' package which is not declared in metadata.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide configs, and does not persist credentials itself. It will, however, send network requests to the Yunxiao API and to the configured webhook when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ailiyun-yunxiao-mr-deploy - 安装完成后,直接呼叫该 Skill 的名称或使用
/ailiyun-yunxiao-mr-deploy触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
init
元数据
常见问题
阿里云云效创建MR+发布+通知(全可配置) 是什么?
支持自定义分支/代码库创建MR、查询MR合并状态、按代码库+环境关键字触发发布流水线,并自动推送通知。支持自然语言输入,由大模型自动识别意图。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。
如何安装 阿里云云效创建MR+发布+通知(全可配置)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ailiyun-yunxiao-mr-deploy」即可一键安装,无需额外配置。
阿里云云效创建MR+发布+通知(全可配置) 是免费的吗?
是的,阿里云云效创建MR+发布+通知(全可配置) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
阿里云云效创建MR+发布+通知(全可配置) 支持哪些平台?
阿里云云效创建MR+发布+通知(全可配置) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 阿里云云效创建MR+发布+通知(全可配置)?
由 FarbKuo(@farb)开发并维护,当前版本 v1.0.0。
推荐 Skills