crap-analyzer

Community

Find risky code and propose fixes fast

Authorswingerman
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill identifies functions in recently-changed code that are both complex and under-tested, helping you prevent high-risk refactors and regressions before they ship.

Core Features & Use Cases

  • Diff-scoped CRAP ranking: Computes CRAP for newly added/changed lines only, producing a worst-first list of risky functions.
  • Coverage-aware analysis: Auto-discovers coverage files (or runs with coverage=0% and clearly flags the limitation if unavailable).
  • Actionable refactor + test stubs: Turns each CRAP finding into a concrete refactor proposal plus targeted test stub(s), with rules to avoid unsafe auto-changes.

Quick Start

Use the crap-analyzer skill on the current PR to compute CRAP for recently changed methods and generate a prioritized refactor and test-stub plan.

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-analyzer
Download link: https://github.com/swingerman/disciplined-agentic-engineering/archive/main.zip#crap-analyzer

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 471,000+ vetted skills library on demand.