Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dotnet/crap-score
Calculates targeted CRAP (Change Risk Anti-Patterns) scores for a named .NET method, class, or single source file.
Passed 16 of 20 test cases with the skill, and 11 of 20 without it.
and 7 more in the full report
7 fixed13 passed either way4 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
We are running a .NET 10 project with Microsoft.Testing.Extensions.CodeCoverage. What exact CLI command collects Cobertura coverage output to ./TestResults?
| Checked | Without skill | With skill |
|---|---|---|
| Specify dotnet test --coverage --coverage-output-format cobertura command syntax without double-dash separator for .NET 10. | Missed | Passed |
The instructions your model reads when the skill loads.
Calculate CRAP (Change Risk Anti-Patterns) scores for .NET methods to identify code that is both complex and undertested.
The CRAP score combines cyclomatic complexity and code coverage into a single metric:
$$\text{CRAP}(m) = \text{comp}(m)^2 \times (1 - \text{cov}(m))^3 + \text{comp}(m)$$
Where:
| CRAP Score | Risk Level | Interpretation |
|---|---|---|
| < 5 | Low | Simple and well-tested |
| 5 to < 15 | Moderate | Acceptable for most code |
| 15 to 30 | High | Needs more tests or simplification |
| > 30 | Critical | Refactor and add coverage urgently |
A method with 100% coverage has CRAP = complexity (the minimum). A method with 0% coverage has CRAP = complexity^2 + complexity.
run-tests skill)code-testing-agent)coverage-analysis)test cases passed, vs 11 / 20 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.