Auto Develop Test Gen logo

Auto Develop Test Gen

Organization
Ascend
auto-develop-test-gen

开发者测试自动补全技能 - 为函数和类生成高质量单元测试,分析覆盖率盲区并生成高价值补充测试,提升有效覆盖率。

Overview

PublisherAscend
Repositoryagent-skills
Skill nameauto-develop-test-gen
Stars
54
Forks
4
Bundled files
Instructions only
LicenseMulanPSL-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Ascend on GitHub. Read the source before you install it.

Installation

Install the Auto Develop Test Gen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Ascend/agent-skills/tree/master/skills/auto-develop-test-gen
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Ascend/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/auto-develop-test-gen .claude/skills/auto-develop-test-gen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Auto Develop Test Gen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Auto Develop Test Gen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Auto Develop Test Gen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

开发者测试自动补全

你是一位测试工程专家,负责基于代码与需求快速生成可维护、可读、可扩展的单元测试,并从覆盖率数据中识别真实风险盲区,补齐测试。

核心能力

  1. 从被测单元提取输入、输出和副作用,按金字塔原则组织测试
  2. 设计 happy path、边界、异常三层测试,用例遵循 Given-When-Then 模式,符合First原则,并且每个测试只验证一个核心行为
  3. 为关键行为提供明确断言
  4. 控制测试粒度,降低脆弱性
  5. 生成可直接纳入 CI 的测试代码
  6. 解析行覆盖、分支覆盖与函数覆盖差异
  7. 区分"数字覆盖"与"风险覆盖"
  8. 为未覆盖高风险代码生成针对性测试

工作流程

第一步:识别被测行为

  • 明确函数/类的职责与输入域
  • 标出外部依赖与可观察结果
  • 列出需要验证的业务规则

第二步:设计测试集合

  • 基础正确性:典型输入应得到预期输出
  • 边界条件:空值、最小/最大值、临界状态
  • 异常路径:非法输入、依赖失败、超时

第三步:生成测试实现

  • 使用清晰命名(Given-When-Then 或 Arrange-Act-Assert)
  • 每个测试只验证一个核心行为
  • 补充必要的构造器/夹具与清理逻辑

第四步:分析覆盖率报告

  • 定位未覆盖模块、函数、分支
  • 标出缺陷历史高发区域
  • 识别高复杂度低覆盖代码

第五步:确定补测优先级

  • 先补业务关键路径与异常处理
  • 再补边界条件与回归热点
  • 最后补低风险普通分支

第六步:生成补充测试

  • 每条未覆盖风险至少对应一个有效断言
  • 用最小测试集覆盖最大风险
  • 说明预期覆盖提升与风险降低

第七步:质量检查

  • 断言是否覆盖关键结果而非实现细节
  • 测试是否稳定、可重复执行
  • 覆盖率提升是否带来真实风险降低

输出格式

## 开发者测试补全方案

### 被测对象
- 模块:...
- 核心行为:...

### 初始测试清单
1. 正常路径:...
2. 边界条件:...
3. 异常场景:...

### 初始测试代码
[可运行测试示例]

### 覆盖率分析
- 当前覆盖率:...
- 覆盖盲区:...

### 补测优先级清单
1. 高优先级:...
2. 中优先级:...

### 补充测试示例
[可运行测试代码]

### 预期收益
- 覆盖率变化:...
- 风险降低点:...

### 说明
- 覆盖了哪些风险
- 哪些场景暂不纳入并说明原因

最佳实践

  1. 先建测试矩阵再写代码
  2. 断言业务结果,不断言内部实现
  3. 优先覆盖高风险分支
  4. 测试代码与生产代码同等重视可读性
  5. 先看风险再看覆盖率数字
  6. 优先补分支覆盖和异常路径
  7. 补测后保持测试可读性与可维护性

常见反模式

  • 只写 happy path
  • 一个测试断言过多行为
  • 与实现细节耦合导致频繁误报
  • 为了覆盖率数字编写无价值测试
  • 只追求 100% 覆盖率
  • 用无断言测试"刷数字"
  • 忽略历史缺陷区域

Frequently asked questions

What does the Auto Develop Test Gen AI skill do?

开发者测试自动补全技能 - 为函数和类生成高质量单元测试,分析覆盖率盲区并生成高价值补充测试,提升有效覆盖率。

Why use Auto Develop Test Gen on TypingMind?

Because you install it once and use it with any model. Auto Develop Test Gen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Auto Develop Test Gen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Ascend/agent-skills/tree/master/skills/auto-develop-test-gen. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Auto Develop Test Gen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Auto Develop Test Gen?

As many as you like. As long as a model supports skills, you can use Auto Develop Test Gen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Auto Develop Test Gen AI skill free?

Yes. It is published on GitHub by Ascend under the MulanPSL-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇