crap-analysis
分析代码覆盖率和 CRAP(变更风险反模式)分数以识别高风险代码。使用 OpenCover 格式和 ReportGenerator 来显示风险热点,显示圈复杂度和未经测试的代码路径。
SKILL.md
The CRAP (Change Risk Anti-Patterns) score combines cyclomatic complexity with test coverage to identify risky code.
| CRAP Score | Risk Level | Action Required |
| < 5 | Low | Well-tested, maintainable code | | 5-30 | Medium | Acceptable but watch complexity | | > 30 | High | Needs tests or refactoring |
分析代码覆盖率和 CRAP(变更风险反模式)分数以识别高风险代码。使用 OpenCover 格式和 ReportGenerator 来显示风险热点,显示圈复杂度和未经测试的代码路径。 来源:aaronontheweb/dotnet-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/aaronontheweb/dotnet-skills --skill crap-analysis- 分类
- {}数据分析
- 认证
- —
- 收录时间
- 2026-02-05
- 更新时间
- 2026-02-18
快速解答
什么是 crap-analysis?
分析代码覆盖率和 CRAP(变更风险反模式)分数以识别高风险代码。使用 OpenCover 格式和 ReportGenerator 来显示风险热点,显示圈复杂度和未经测试的代码路径。 来源:aaronontheweb/dotnet-skills。
如何安装 crap-analysis?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/aaronontheweb/dotnet-skills --skill crap-analysis 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/aaronontheweb/dotnet-skills