Slopslap

•
1
•

Identifies design smells and 'slop code' in projects by assigning weighted quality scores based on static analysis of complexity, coupling, cohesion, and depth.

Slopslap is a static analysis tool engineered to detect architectural design smells and 'slop code,' which can hinder both human comprehension and AI agent efficiency. By synthesizing complex metrics such as coupling, cohesion, depth, and cognitive complexity into a single, clear quality score, Slopslap acts as a continuous forcing function. This mechanism encourages agents and developers to maintain code quality below a defined threshold, ensuring cleaner, more sustainable architectures, particularly in large projects where crystal clear module focus and well-defined interfaces are paramount. It goes beyond mere linting by actively steering development towards structural excellence.

主な機能

01Weighted code quality scoring based on complexity, coupling, cohesion, and depth.
021 GitHub stars
03Static analysis for design smells and 'slop code'.
04Configurable quality thresholds and JSON report output.
05Multi-language support for Java, TypeScript, and experimental Rust.
06Flexible deployment as a CLI command, GitHub Action, or MCP server.

ユースケース

01Guiding AI coding agents to maintain high architectural quality.
02Enforcing code quality standards within continuous integration workflows.
03Identifying and prioritizing areas for refactoring in large-scale projects.