code-slop
Find AI Code Slop
Review the diff between the working branch and its baseline, and propose removals for AI-generated slop. Do not modify files.
Resolve the baseline
Pick the first available reference, in order:
- An explicit ref the user provides (e.g. "compare against develop", a commit SHA, or a tag).
- The upstream tracking branch (
git rev-parse --abbrev-ref --symbolic-full-name @{u}). - The repo's default branch (
git symbolic-ref refs/remotes/origin/HEAD, falling back tomainthenmaster). - The merge-base of
HEADand the resolved ref above (git merge-base).
State the resolved baseline in the report so the user can confirm.
What counts as slop
- Comments a human wouldn't write or that are inconsistent with the rest of the file
- Defensive checks or try/catch blocks abnormal for that area of the codebase (especially on trusted / validated codepaths)
- Casts to
anyused to sidestep type issues - Any other style inconsistent with the surrounding file
Output
Do not edit files. Emit a structured list, one entry per proposed change:
- File:line —
path/to/file.ts:42 - Category — comment | defensive-check | any-cast | style
- Snippet — the exact lines to remove or replace (≤5 lines)
- Suggested replacement — the exact replacement, or "delete"
- Why — one sentence
End with a 1–3 sentence summary of the proposed cleanup and the resolved baseline. Tell the user they can accept suggestions individually or ask for them all to be applied.
More from benjaming/ai-skills
confluence-cli
Use confluence-cli (NPM package) to manage Confluence content, pages, and spaces from the command line. Ideal for documentation workflows, bulk content operations, page migration, and when users request CLI-based Confluence interactions. Trigger on requests like "use Confluence CLI", "create Confluence pages via CLI", "migrate Confluence content", "automate documentation workflows", or when users want to script Confluence operations.
43atlassian-cli-jira
Use Atlassian CLI (acli) to manage Jira work items, projects, and workflows from the command line. Ideal for bulk operations, automation, scripting, and when users request CLI-based Jira interactions. Trigger on requests like "use Jira CLI", "create Jira issues via CLI", "bulk update Jira tickets", "automate Jira workflows", or when users want to script Jira operations.
29ralph-loop
Create autonomous iterative loops (Ralph Wiggum pattern) for multi-step tasks. Use when setting up automated workflows that iterate over a backlog of tasks with clear acceptance criteria. Triggers on requests like "create a ralph loop", "set up an iterative agent", "automate this migration", or "create an autonomous loop".
21interview
Interview user to clarify any topic - exploring codebase, investigating issues, planning features, understanding requirements, or drilling into plans. Socratic questioning to uncover details.
20codex-cli
Use OpenAI Codex CLI in non-interactive mode for automated code analysis, review, and programmatic task execution. Trigger on requests like "use Codex to analyze", "run codex exec", "codex code review", or when users want AI-powered code analysis without interactive prompts. Ideal for automation workflows, code quality checks, and generating structured analysis reports.
19daily-standup
Daily standup assistant for Benjamin that compiles work priorities from Jira and Slack into a single prioritized task list. This skill should be used when Benjamin asks for morning standup, daily priorities, what to work on today, or needs to compile work items.
18