Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By swingermanv0.1.1MITIn 1 marketplace
Finds the riskiest functions in a diff or PR by combining complexity with test coverage, then proposes refactors and test stubs. It asks before running tests or applying edits.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code plugin that analyzes recently-changed code for Change Risk Anti-Patterns (CRAP) and proposes fixes.
CRAP(m) = comp(m)² × (1 − cov(m))³ + comp(m)
High CRAP = complex and under-tested. This plugin flags the worst offenders in a diff, then offers refactors and test stubs one at a time.
gh pr diff, git diff --merge-base main, staged changes, or a named file list.coverage script (package.json, pyproject.toml, Makefile, etc.) or detects the framework (Jest, Vitest, pytest, JaCoCo, Go, RSpec, cargo-llvm-cov, coverlet, PHPUnit…). Parses lcov, Cobertura XML, JaCoCo XML, Clover XML, Go coverage.out, or coverage.py JSON.TypeScript, JavaScript, Python, Java, Kotlin, Go, Ruby, C#, Rust, PHP.
Trigger with any of:
analyze CRAPcheck code risk on this branchrun /crap-analyzerfind risky methods in this PRThe plugin will prompt before running any tests or applying any edits.
Optional .crap-analyzer.json at repo root:
{ "threshold": 20 }
Default threshold is 20 — functions below that score don't get reported.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub swingerman/engineer --plugin crap-analyzerPlugins from other owners that cover similar ground