performance-test-k6 SKILL.md skillA
performance-test-k6 from joe-qai/qa-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add joe-qai/qa-skills/performance-test-k6@git:20260915.bc5a8d6Pins git:20260915.bc5a8d6 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- joe-qai/qa-skills
- Path
performance-test-k6/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260915.bc5a8d6, committed Sep 15, 2026
- First version recorded
- Sep 7, 2026
- Size
- 4,117 bytes
- Repository stars
- 30
- License
- none declared
Use this skill when you need to generate executable k6 load/stress/spike/soak test scripts from API specs or business scenarios; triggers include k6, k6 性能测试, 生成k6脚本, k6脚本, and k6 performance testing.
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
# k6 性能测试
## 何时使用
- 用户提供 API 接口或业务场景,需要生成**可直接执行的 k6 测试脚本**(.js)。
- 需要对已有 k6 脚本做优化、扩展或结果分析。
## 输入要求
| 必填 | 字段 | 说明 |
|------|------|------|
| ✅ | 目标接口/场景 | 接口路径、方法、参数,或业务场景描述 |
| ✅ | 测试类型 | load / stress / spike / soak / smoke(选一或多选) |
| ⬜ | 并发模型 | VU 数、RPS 目标、持续时长、阶段配置 |
| ⬜ | 性能阈值 | 响应时间 P95/P99、错误率上限 |
| ⬜ | 测试数据 | 请求体、参数化数据、登录凭证 |
| ⬜ | 环境信息 | BASE_URL、环境名、网络条件 |
## 执行流程
### 1. 输入审计
- 检查接口信息是否完整(路径、方法、参数、鉴权)
- 检查测试类型是否匹配业务目标
- 缺失信息标记为「假设」并给出默认值
### 2. 脚本生成
基于输入,复用 `scripts/` 框架生成测试文件:
```
scripts/
├── config.js # 已有:baseURL、阈值、示例数据(按需修改)
├── helpers.js # 已有:get/post/assertOk/think 工具函数
├── tests/
│ ├── load.js # 已有模板:按需生成新场景文件
│ ├── stress.js
│ ├── spike.js
│ ├── soak.js
│ └── api-smoke.js
└── tools/
├── summarize_k6.py # 已有:汇总报告
├── compare_k6.py # 已有:对比历史结果
└── local_mock_server.py # 已有:本地 mock
```
**生成规则**:
- 新测试文件放在 `tests/` 目录,命名 `<场景>.js`
- 复用 `helpers.js` 的 `get/post/assertOk/think` 函数
- 复用 `config.js` 的 `common/thresholds/tags`
- 若用户场景与已有模板(load/stress/spike/soak/smoke)匹配,基于模板修改而非从零写
### 3. 脚本校验
生成后必须执行以下校验:
- [ ] JS 语法正确(无未闭合括号、无 import 路径错误)
- [ ] `options` 对象包含 `scenarios` 和 `thresholds`
…Read the whole file at its exact version.
How to install
mdr add joe-qai/qa-skills/performance-test-k6@sha256:8d103408cd36e006The line at the top of this page pins the label git:20260915.bc5a8d6, 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_g3ywyoq5hv7xse3l)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Sep 7, 2026 and Sep 15, 2026, about one every 8 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260915.bc5a8d6 latest | 2026-09-15 | bc5a8d6 | 4,117 B | A | view · diff |
| git:20260907.741ed59 | 2026-09-07 | 741ed59 | 2,649 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 (4117 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
joe-qai/qa-skills · 30 stars · license none declared · pushed 2026-09-29 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_g3ywyoq5hv7xse3l GET https://markdownregistry.com/api/v1/resolve?ref=joe-qai/qa-skills/performance-test-k6 GET https://markdownregistry.com/api/v1/blob/8d103408cd36e0066ef0979c66f9a509cba42b83bb07ef5013b491b1976425a5
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.
More from joe-qai/qa-skills
Every file in joe-qai/qa-skills