crap-analysis

Community

Identify and reduce code risk.

AuthorAGIBuild
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers identify and mitigate code that is complex and poorly tested, which poses a high risk of introducing bugs during modifications.

Core Features & Use Cases

  • CRAP Score Calculation: Computes the Change Risk Anti-Patterns score by combining cyclomatic complexity and test coverage.
  • Risk Hotspot Identification: Pinpoints specific methods and functions with high CRAP scores, indicating areas needing refactoring or increased test coverage.
  • Coverage Setup: Guides users on configuring coverage.runsettings for OpenCover format to include complexity metrics.
  • Report Generation: Utilizes ReportGenerator to create detailed HTML reports, including Risk Hotspots, and summary reports for CI/CD integration.
  • Use Case: Before starting work on a critical module, run this Skill to identify the riskiest parts of the codebase, allowing you to prioritize testing and refactoring efforts effectively.

Quick Start

Run the crap-analysis skill to collect code coverage and generate a risk report for your .NET project.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: crap-analysis
Download link: https://github.com/AGIBuild/Agibuild.Fulora/archive/main.zip#crap-analysis

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.