testany-sync-case-env-from-source SKILL.md skillA
testany-sync-case-env-from-source from testany-io/testany-agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add testany-io/testany-agent-skills/testany-sync-case-env-from-source@git:20260914.a55b8c5Pins git:20260914.a55b8c5 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- testany-io/testany-agent-skills
- Path
plugins/testany-bot/skills/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260914.a55b8c5, committed Sep 14, 2026
- First version recorded
- Mar 16, 2026
- Size
- 15,494 bytes
- Repository stars
- 82
- License
- MIT
从 OpenAPI 生成的 Testany case 源代码中自动识别入参和出参,并同步到 case 的环境变量列表中。适用于源代码存储在需要认证的 Git 仓库(如 Bitbucket)的场景。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Testany Case 环境变量同步 Skill
本 Skill 用于从 OpenAPI definition 生成的 Testany case 源代码中自动提取入参和出参,并将它们同步更新到 Testany case 的 `environment_variables` 配置中。
## 适用场景
当 Testany case 的源代码满足以下条件时使用本 Skill:
- 源代码由 OpenAPI definition 自动生成
- 源代码包含 `BASE_STRUCTURES_INFO` 和 `relay_request_fields` 等特征结构
- 源代码存储在需要认证的 Git 仓库(如私有 Bitbucket 仓库)
- 需要将代码中的 ENV[...] 变量和出参字段同步到 case 配置
## 用户交互流程
### 步骤 1:选择操作模式
先从当前请求提取已有 case keys、搜索条件和操作模式;已明确时直接复用,不重复询问。配置更新的预览与确认门禁保持不变:
| 模式 | 说明 |
|------|------|
| **单 Case 操作** | 直接输入一个 case key |
| **批量 Keys 操作** | 输入多个 case key(逗号分隔) |
| **搜索批量操作** | 通过条件搜索 case,对结果进行批量操作 |
仅当模式或目标仍不明确时提问;使用当前可用的提问工具,无工具时使用普通文本。
---
### 步骤 2:获取 Case 列表
根据用户选择的模式,获取待处理的 case 列表:
#### 模式 A:单 Case 操作
```python
case_keys = [user_input_case_key]
```
#### 模式 B:批量 Keys 操作
```python
# 解析逗号分隔的 keys
case_keys = user_input_keys.split(',')
case_keys = [key.strip() for key in case_keys if key.strip()]
```
#### 模式 C:搜索批量操作
```python
# 使用 AskUserQuestion 询问搜索条件
# 可选搜索条件:
# - key_or_name: case key 或名称关键词
# - workspaces: 工作空间列表
# - case_labels: 标签列表
# - runtime_uuid: 运行时 UUID
# 调用 testany_list_cases 获取匹配的 case 列表
cases = testany_list_cases(
key_or_name=search_keyword,
…Read the whole file at its exact version.
How to install
mdr add testany-io/testany-agent-skills/testany-sync-case-env-from-source@sha256:e328c7575f28f4cfThe line at the top of this page pins the label git:20260914.a55b8c5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_bitvbjd4oxkc4b5x)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Mar 16, 2026 and Sep 14, 2026, about one every 91 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260914.a55b8c5 latest | 2026-09-14 | a55b8c5 | 15,494 B | A | view · diff |
| git:20260424.0e6b4a1 | 2026-04-24 | 0e6b4a1 | 18,350 B | A | view · diff |
| git:20260316.c3ea87c | 2026-03-16 | c3ea87c | 15,888 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (15494 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
testany-io/testany-agent-skills · 82 stars · license MIT · pushed 2026-10-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bitvbjd4oxkc4b5x GET https://markdownregistry.com/api/v1/resolve?ref=testany-io/testany-agent-skills/testany-sync-case-env-from-source GET https://markdownregistry.com/api/v1/blob/e328c7575f28f4cf886c5cddbb9f69c3300fa31d5a0324af42e3e8666b30982b
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.