remove-ai-slop
4
总安装量
3
周安装量
#48675
全站排名
安装命令
npx skills add https://github.com/pstev1/skills --skill remove-ai-slop
Agent 安装分布
github-copilot
3
gemini-cli
3
Skill 文档
Remove AI Code Slop
Workflow
- Run
git diff master --name-onlyto list changed files - For each file, run
git diff master -- <file>to see changes - Read surrounding context in the original file to understand existing style
- Remove slop patterns (see below)
- Report a 1-3 sentence summary
Slop Patterns to Remove
| Pattern | Example | Fix |
|---|---|---|
| Redundant comments | // Get the user above getUser() |
Delete |
| Obvious inline comments | const x = 5; // set x to 5 |
Delete |
| Defensive null checks | if (x != null && x.y != null) when caller already validates |
Remove extra checks |
| Unnecessary try/catch | Wrapping code that can’t throw or is already handled upstream | Unwrap |
as any casts |
foo as any to bypass types |
Fix the type properly or remove |
| Verbose conditionals | if (x === true) |
Simplify to if (x) |
| Empty catch blocks | catch (e) {} |
Either handle or remove try/catch |
| Over-documented parameters | JSDoc repeating what types already say | Delete redundant docs |
Style Consistency Rules
- Match existing brace style, spacing, and naming conventions in the file
- If file has no comments, don’t add them
- If file uses terse variable names, don’t expand them
- Preserve the file’s existing level of defensive coding