remove-slops

Removes redundant AI-generated code patterns from branch diffs against main.

2|Updated Sep 25, 2011
One-click install
npx skills add https://github.com/pokutuna/dotfiles --skill remove-slops-pokutuna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-slops
Source: https://github.com/pokutuna/dotfiles/tree/main/claude/skills/remove-slops
Command: npx skills add https://github.com/pokutuna/dotfiles --skill remove-slops-pokutuna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding assistants often introduce verbose artifacts into codebases: unnecessary comments, defensive checks, try/catch blocks, and type casts that a human developer would never write. This Skill cleans up those artifacts by reviewing the diff against main and stripping out the slop before merge. ## Core Features & Use Cases - Diff-Based Review: Checks the git diff against main to identify all AI-generated slop introduced in the current branch. - Selective Comment Cleanup: Removes redundant comments while preserving comments that explain reasoning, context, trade-offs, or non-obvious knowledge. - Defensive Code Removal: Eliminates abnormal defensive checks, try/catch blocks, and casts to any that are inconsistent with the surrounding codebase style. - Use Case: After an AI assistant implements a feature branch, run this Skill before opening a pull request to ensure the diff matches the codebase's human-written style and contains no leftover AI verbosity. ## Quick Start Review the diff of my current branch against main and remove all AI-generated slop, then summarize the changes in Japanese.

Frequently Asked Questions about remove-slops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove AI-generated code slop from a branch?

Run this Skill on your feature branch to check the git diff against main and remove redundant comments, defensive checks, and type casts. It reports a 1-3 sentence summary of changes in Japanese when finished.

What kinds of AI code artifacts does this cleanup remove?

It removes extra comments a human would not add, abnormal defensive checks and try/catch blocks, casts to any used to bypass type issues, and any style inconsistent with the rest of the file.

Does the cleanup keep any comments in the code?

Yes, it preserves comments that explain why something is done, including reasons, context, and trade-offs. It also keeps comments containing knowledge not apparent from the code itself.

Can this Skill be invoked automatically by the AI model?

No, the Skill sets disable-model-invocation to true, so it only runs when explicitly invoked by the user. It is also restricted to the Bash git diff command through its allowed-tools configuration.

When should I not use automated slop removal?

Avoid it when the branch intentionally adds new error handling or validation for untrusted inputs, since the Skill targets defensive code abnormal for the area. Review the diff manually for security-sensitive changes.