test-and-fix SKILL.md skillA
test-and-fix from chainlesschain/chainlesschain is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add chainlesschain/chainlesschain/test-and-fix@v1.0.0Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- chainlesschain/chainlesschain
- Path
desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/test-and-fix/SKILL.md- Versions recorded
- 4
- Latest version
- v1.0.0, committed Aug 28, 2026
- First version recorded
- Jun 3, 2026
- Size
- 3,868 bytes
- Repository stars
- 11
- License
- a license file GitHub does not identify
自动测试修复技能 - 运行测试、解析失败、AI自动修复循环.
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
# 自动测试修复技能
## 描述
自动检测测试框架,运行测试套件,解析失败信息(包括堆栈跟踪),AI 分析失败原因并修复代码,重复直到所有测试通过。
## 使用方法
```
/test-and-fix [测试路径] [选项]
```
## 选项
- `--source-only` - 仅修复源代码,不修改测试文件
- `--test-only` - 仅修复测试代码(更新断言等)
- `--affected-by <file>` - 只运行受指定文件影响的测试
- `--max-iterations <n>` - 最大修复迭代次数 (默认: 5)
- `--runner <name>` - 指定测试运行器: vitest, jest, pytest, junit
## 支持的测试框架
| 框架 | 语言 | 配置检测 |
| ------ | ----------- | --------------------------------- |
| Vitest | JS/TS | vitest.config._, vite.config._ |
| Jest | JS/TS | jest.config.\*, package.json jest |
| Pytest | Python | pytest.ini, pyproject.toml |
| JUnit | Java/Kotlin | build.gradle, pom.xml |
## 执行流程
```
1. 检测测试框架和配置
↓
2. 运行测试套件
↓
3. 解析失败 (堆栈跟踪、断言错误、超时)
↓
4. AI 诊断失败原因:
- 源代码 bug → 修复源码
- 测试断言过时 → 更新测试
- 环境问题 → 报告
↓
5. 应用修复
↓
6. 重新运行失败测试 ←─── 还有失败? (最多5次)
↓
7. 运行全套测试确认无回归
↓
8. 输出报告
```
## 输出格式
```
Test & Fix Report
=================
Runner: Vitest 3.x
Config: vitest.config.ts
Initial run: 157 tests
✅ 152 passed
❌ 5 failed
Round 1: Fixing 5 failures
…Read the whole file at its exact version.
How to install
mdr add chainlesschain/chainlesschain/test-and-fix@sha256:d9062d00e09be1f1The line at the top of this page pins the label v1.0.0, 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_bias3evgdhmy6fz2)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jun 3, 2026 and Aug 28, 2026, about one every 29 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.0 latest | 2026-08-28 | 44248c7 | 3,868 B | A | view · diff |
| v1.0.0 | 2026-08-28 | 31d5cfc | 3,851 B | A | view · diff |
| v1.0.0 | 2026-08-28 | c29953e | 3,844 B | A | view · diff |
| v1.0.0 | 2026-06-03 | 3b0b2dc | 3,735 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 (3868 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
chainlesschain/chainlesschain · 11 stars · license a license file GitHub does not identify · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bias3evgdhmy6fz2 GET https://markdownregistry.com/api/v1/resolve?ref=chainlesschain/chainlesschain/test-and-fix GET https://markdownregistry.com/api/v1/blob/d9062d00e09be1f1fe3dafb7737cd74c64994f453c3505dd438a1c54bca79749
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.