unit-test-generator SKILL.md skillA
unit-test-generator from jackyst0/awesome-agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add jackyst0/awesome-agent-skills/unit-test-generator@git:20260128.59e71e1Pins git:20260128.59e71e1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- jackyst0/awesome-agent-skills
- Path
examples/unit-test-generator/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260128.59e71e1, committed Jan 28, 2026
- Size
- 3,411 bytes
- Repository stars
- 665
- License
- CC0-1.0
Automatically generate unit tests based on source code, supporting multiple languages and testing frameworks.
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
# Unit Test Generator > 根据源代码自动生成单元测试,支持多种语言和测试框架。 > > Automatically generate unit tests based on source code, supporting multiple languages and testing frameworks. ## When to Use 当用户请求以下操作时使用此 skill: - 生成单元测试 / Generate unit tests - 为函数/类编写测试 / Write tests for functions/classes - 创建测试用例 / Create test cases - 提高代码覆盖率 / Improve code coverage ## Instructions ### 分析步骤 / Analysis Steps 1. **识别代码** - 确定编程语言和代码结构 2. **分析功能** - 理解函数/方法的输入、输出和行为 3. **确定边界** - 识别边界条件和边缘情况 4. **选择框架** - 根据语言选择合适的测试框架 5. **生成测试** - 编写全面的测试用例 ### 支持的语言和框架 / Supported Languages | 语言 | 测试框架 | |------|----------| | Python | pytest, unittest | | JavaScript/TypeScript | Jest, Mocha, Vitest | | Java | JUnit, TestNG | | Go | testing (built-in) | | Rust | cargo test (built-in) | ### 测试类型 / Test Types - **正常路径测试** - 验证预期行为 - **边界条件测试** - 测试边界值 - **异常处理测试** - 验证错误处理 - **空值/空输入测试** - 处理空值情况 ### 输出格式 / Output Format 使用 `templates/test-report.md` 模板格式化输出。 Use the `templates/test-report.md` template to format output. ```markdown ## 单元测试生成报告 / Unit Test Generation Report ### 分析概述 / Analysis Summary [代码分析总结] ### 生成的测试 / Generated Tests [测试代码] ### 测试覆盖说明 / Coverage Notes - 覆盖的场景 - 建议补充的测试 ``` ## Examples …
Read the whole file at its exact version.
How to install
mdr add jackyst0/awesome-agent-skills/unit-test-generator@sha256:e4a47f93cf618b24The line at the top of this page pins the label git:20260128.59e71e1, 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_dg5fnieuq7ov2hww)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jan 28, 2026.
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 (3411 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
jackyst0/awesome-agent-skills · 665 stars · license CC0-1.0 · pushed 2026-10-30 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_dg5fnieuq7ov2hww GET https://markdownregistry.com/api/v1/resolve?ref=jackyst0/awesome-agent-skills/unit-test-generator GET https://markdownregistry.com/api/v1/blob/e4a47f93cf618b240ffe9e1614b39b085946f19d606d8f22a6f328dabf2c39a7
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.