From testany-bot
Manages Testany test pipelines: CRUD via API, create from automation designs/case keys, view YAML/details, list by workspace, update configs, validate syntax.
npx claudepluginhub testany-io/testany-agent-skills --plugin testany-botThis skill uses the workspace's default tool permissions.
本 skill 通过 Testany MCP 工具管理 **Testany 平台上的 pipeline**。
Manages Testany pipeline triggers: creates/updates Plans for scheduling, Gatekeepers for webhooks, Manual Triggers, and ad-hoc immediate executions. Use for automating pipeline runs via MCP tools.
Scaffolds CI/CD quality pipelines with test execution. Useful when setting up CI pipelines or creating quality gates.
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Share bugs, ideas, or general feedback.
本 skill 通过 Testany MCP 工具管理 Testany 平台上的 pipeline。 所有操作都是对 Testany 平台的远程 API 调用,不涉及本地文件系统。
关键前提:
用户输入: $ARGUMENTS
使用本 skill 前,先按 automation-model.md 理解边界:
testany-case-writing 负责把它拆成 platform casestestany-trigger 负责为 pipeline 配置 Plan / Manual Trigger / Gatekeeper重要结论:
按以下优先级选择输入模式:
Primary:automation design / decomposition
testany-case-writingTestany Automation Handoff 生成Secondary:用户明确给出的 case keys + 依赖描述
Fallback:从现有 case metadata 反推
| 用户意图 | 操作类型 | 工具 |
|---|---|---|
| 创建新 pipeline | Create | testany_create_pipeline |
| 查看 pipeline 详情 | Read | testany_get_pipeline |
| 查看 pipeline YAML | Read | testany_get_pipeline_yaml |
| 搜索/列出 pipelines(按 workspace) | Read | testany_list_pipelines |
| 列出我的 pipelines(按 workspace) | Read | testany_list_my_pipelines |
| 修改 pipeline 配置 | Update | testany_update_pipeline |
| 删除 pipeline | Delete | testany_get_pipeline_used_by → testany_delete_pipeline |
| 验证 YAML 语法 | Validate | testany_verify_pipeline |
| 检查被引用情况 | Query | testany_get_pipeline_used_by |
如果上游已给出以下内容,直接按它编排:
source_case_ids / scenario_group(若来自 Test Spec handoff)whenFailed / expect: fail如果用户直接给出:
则直接进入 YAML 构建。
仅在没有上游 design 时使用:
testany_list_cases / testany_get_casecase_labels、description、environment_variables[].description并行获取:
testany_get_my_workspacestestany_list_cases 或 testany_list_my_cases如果用户还没有把 platform cases 注册到 Testany 平台:
testany-case根据输入模式,确定:
expect: failcase_keys仅当满足以下条件时,允许直接用 case_keys 自动生成简单顺序 pipeline:
expect: fail出现以下任一情况时,必须显式生成 YAML:
whenPassed / whenFailedexpect: fail如有 relay,必须:
testany_get_case 检查源 case 是否有 type='output' 变量testany_get_case 检查目标 case 是否有 type='env' 变量whenFailed 组合调用 testany_create_pipeline:
| 参数 | 必填 | 说明 |
|---|---|---|
name | 是 | pipeline 名称 |
workspace | 是 | 所属工作空间 key |
description | 否 | 描述 |
definition | 否 | Pipeline YAML 配置 |
case_keys | 否 | Case keys 数组(仅简单顺序场景) |
调用 testany_verify_pipeline:
kind 是否为 rule/v1.2rules 结构是否合法当且仅当前两种输入模式都不存在时,才允许从现有 cases 反推。
| 字段 | 用途 | 可靠程度 |
|---|---|---|
case_labels | 按 User Story 编号、功能模块筛选 | 高 |
description | 理解动作、前置条件、验证目标 | 中 |
environment_variables[].description | 理解输入/输出变量语义 | 中 |
name | 辅助判断 | 低 |
如果仍然无法确定:
必须向用户确认,而不是猜测。
| 场景 | 工具 | 说明 |
|---|---|---|
| 获取 pipeline 详情 | testany_get_pipeline | 传入 pipeline key |
| 获取 YAML 内容 | testany_get_pipeline_yaml | 传入 pipeline key |
| 搜索/列出 pipelines(按 workspace) | testany_list_pipelines | workspace 必填 |
| 仅列出我的 pipelines(按 workspace) | testany_list_my_pipelines | workspace 必填 |
| 参数 | 说明 |
|---|---|
name | pipeline 名称 |
description | 描述 |
definition | YAML 定义 |
case_keys | 简单顺序执行的 case keys |
environments | 环境标签列表 |
owned_by | 所有者邮箱 |
pipeline_labels | Pipeline 标签列表 |
testany_get_pipeline 读取当前配置testany_get_pipeline_yaml 读取当前 YAML(如需修改编排)testany_update_pipeline 提交更新删除前必须检查引用情况:
testany_get_pipeline_used_byPlan / Manual Trigger / Gatekeeper 引用,先提示用户解除引用警告:此操作不可撤销。
| 场景 | 处理方式 |
|---|---|
| 用户只有场景,没有已注册 case | 先去 testany-case-writing + testany-case |
| 用户只有一个 case,想直接执行 | 仍需创建一条单 case pipeline |
| 有 relay 但没给清楚源/目标 | 回到上游确认 decomposition |
| 只有现有 case 库,没有 design | 可 fallback 反推,但必须让用户确认 |
| 用户想配置什么时候运行 | 切到 testany-trigger |
| 用户想立即执行 pipeline | 切到 testany-trigger |
| 用户想看 execution 进度或历史 | 切到 testany-execution |
任务完成后,向用户汇报:
automation design / explicit case keys / fallback inferencetestany-triggertestany-execution