Registry / swingerman

swingerman/engineer/crap-analyzer

Use to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods. Multi-language — TypeScript, JavaScript, Python, Java, Kotlin, Go, Ruby, C#, Rust, PHP — auto-discovers how the repo generates coverage. Triggers — "/crap-analyzer", "analyze CRAP", "compute CRAP", "find risky methods", "find complex untested methods".

Agent skill · version 1.17.0 · from swingerman/engineer

Install

npx yarkr-cli add skill:swingerman/engineer/crap-analyzer

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:swingerman/engineer/crap-analyzer
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:swingerman/engineer/crap-analyzer

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:swingerman/engineer/crap-analyzer

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.