test-generator SKILL.md skillA
test-generator 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-generator@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-generator/SKILL.md- Versions recorded
- 3
- Latest version
- v1.0.0, committed Aug 28, 2026
- First version recorded
- Jun 3, 2026
- Size
- 3,516 bytes
- Repository stars
- 11
- License
- a license file GitHub does not identify
测试生成技能 - 单元测试创建、Mock生成、覆盖率分析.
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
# 测试生成技能 ## 描述 自动分析源代码并生成对应的单元测试,包括Mock对象生成、边界条件测试和覆盖率分析报告。支持Vitest、Jest、Pytest和JUnit。 ## 使用方法 ``` /test-generator [源文件路径] [选项] ``` ## 选项 - `--framework <name>` - 测试框架: vitest, jest, pytest, junit (默认: 自动检测) - `--style <type>` - 测试风格: unit, integration, e2e (默认: unit) - `--coverage` - 分析现有测试覆盖率并补充缺失用例 - `--mock-style <type>` - Mock风格: manual, auto, spy (默认: auto) ## 执行步骤 1. **分析源代码**: 解析函数签名、类结构、依赖关系和公共API 2. **识别测试用例**: 确定正常路径、边界条件、错误处理和异步场景 3. **生成Mock**: 为外部依赖创建Mock对象和Stub函数 4. **生成测试**: 编写测试代码,包含describe/it结构、断言和清理逻辑 5. **覆盖率报告**: 分析已有测试覆盖率,标记未覆盖的代码路径 ## 测试类型 | 类型 | 说明 | 场景 | | -------- | ---------------------- | ------------------ | | 正常路径 | 验证预期输入的正确输出 | 标准参数调用 | | 边界条件 | 验证极端和边界值 | 空值、最大值、零 | | 错误处理 | 验证异常和错误情况 | 无效输入、网络错误 | | 异步测试 | 验证Promise和回调 | API调用、定时器 | | 快照测试 | 验证输出结构不变 | 组件渲染、序列化 | ## 输出格式 - 生成的测试文件内容(可直接保存运行) - 测试用例清单和描述 - Mock依赖列表 - 预估覆盖率和改进建议 ## 示例 生成单元测试: ``` /test-generator src/main/utils/ipc-error-handler.js ``` 指定框架和Mock风格: ``` /test-generator src/main/llm/session-manager.js --framework vitest --mock-style spy ``` 分析覆盖率并补充测试: ``` …
Read the whole file at its exact version.
How to install
mdr add chainlesschain/chainlesschain/test-generator@sha256:fb7805202c946ba3The 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_lydz4znsnxoz3duz)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Jun 3, 2026 and Aug 28, 2026, about one every 43 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.0 latest | 2026-08-28 | 44248c7 | 3,516 B | A | view · diff |
| v1.0.0 | 2026-08-28 | c29953e | 3,499 B | A | view · diff |
| v1.0.0 | 2026-06-03 | 3b0b2dc | 3,407 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 (3516 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_lydz4znsnxoz3duz GET https://markdownregistry.com/api/v1/resolve?ref=chainlesschain/chainlesschain/test-generator GET https://markdownregistry.com/api/v1/blob/fb7805202c946ba38767dc74ccddeaf4d557b23dae11bc060aca2a01de4b40ce
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 chainlesschain/chainlesschain
Every file in chainlesschain/chainlesschain