·ai-generated-ut-code-review
</>

ai-generated-ut-code-review

openharmonyinsight/openharmony-skills

在审查或评分 AI 生成的单元测试/UT 代码时使用,特别是当覆盖范围、断言有效性或测试质量存在问题并且需要数字分数、风险级别或必须修复清单时

13安装·1热度·@openharmonyinsight

安装

$npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill ai-generated-ut-code-review

SKILL.md

Overview Review AI-generated unit tests for effectiveness, coverage, assertions, negative cases, determinism, and maintainability. Output a 0-10 score, a risk level, and a must-fix checklist. Overall line coverage must be >= 80%; otherwise risk is at least High.

Scoring (0-10) Each dimension 0-2 points. Sum = total score.

| Coverage | < 80% | 80%+ but shallow | 80%+ and meaningful | | Assertion Quality | No/invalid assertions | Some weak assertions | Behavior-anchored assertions | | Negative & Edge | Missing | Partial | Comprehensive | | Data & Isolation | Flaky/env-dependent | Mixed | Deterministic, isolated |

在审查或评分 AI 生成的单元测试/UT 代码时使用,特别是当覆盖范围、断言有效性或测试质量存在问题并且需要数字分数、风险级别或必须修复清单时 来源:openharmonyinsight/openharmony-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill ai-generated-ut-code-review
分类
</>开发工具
认证
收录时间
2026-02-11
更新时间
2026-02-18

快速解答

什么是 ai-generated-ut-code-review?

在审查或评分 AI 生成的单元测试/UT 代码时使用,特别是当覆盖范围、断言有效性或测试质量存在问题并且需要数字分数、风险级别或必须修复清单时 来源:openharmonyinsight/openharmony-skills。

如何安装 ai-generated-ut-code-review?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill ai-generated-ut-code-review 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/openharmonyinsight/openharmony-skills