De-Slop Diff
Workflow
- •Run
git diff main...HEADto inspect branch-only changes. - •Review each changed file against its local style and patterns.
- •Remove only clear slop while preserving behavior and scope.
- •Keep edits minimal and avoid unrelated refactors.
Remove These Patterns
- •Excessive comments: remove comments that are obvious, redundant, or inconsistent with the file.
- •Over-defensive code: remove abnormal guard clauses/try-catch blocks in trusted code paths.
- •Type escape hatches: remove
any/Anyworkarounds when a concrete type is straightforward. - •Style inconsistencies: align naming, formatting, and structure to nearby code.
- •Unnecessary abstractions: inline one-off helpers that add indirection without reuse.
- •Verbose error handling: remove catch/rethrow or logging-only catches that add no value.
Decision Rules
- •Preserve behavior; de-slop is cleanup, not feature redesign.
- •Prefer the smallest possible diff that resolves the issue.
- •If a pattern is ambiguous, leave it and note it rather than over-editing.
- •Respect existing project conventions and lint/type constraints.
Output
After cleanup, report a 1-3 sentence summary of what changed. If no slop is found, state that explicitly in 1 sentence.