This one strips out the telltale signs of AI-generated code from your current branch before you commit. It runs a diff against main and looks for the usual suspects: obvious comments, defensive try-catch blocks in internal code, premature abstractions, deep nesting that should be early returns, and backwards-compatibility scaffolding that shouldn't be there. The workflow is straightforward: fetch, diff, identify patterns, clean them up, verify tests still pass. I appreciate that it has specific guardrails like "three similar lines is better than a premature abstraction" because that's the exact tradeoff people mess up when cleaning code. Use this when your changes feel bloated or you're about to merge and want to avoid embarrassing yourself.

skills.sh installs
203
GitHub stars
2.9K
last updated
Jun 8, 2026

Install

$ npx -y skills add rohitg00/pro-workflow --skill deslop --agent claude-code

Installs into .claude/skills of the current project.

Files

Remove AI Code Slop

Check the diff against main and remove AI-generated slop introduced in the branch.

Trigger

Use after completing changes, before committing, or when code feels over-engineered.

Commands

git fetch origin main
git diff origin/main...HEAD --stat
git diff origin/main...HEAD

Workflow

  1. Run diff commands to see all changes on the branch.
  2. Identify slop patterns from the focus areas below.
  3. Apply minimal, focused edits to remove slop.
  4. Re-run git diff origin/main...HEAD to verify only slop was removed.
  5. Run tests or type-check to confirm behaviour unchanged: npm test -- --changed --passWithNoTests 2>&1 | tail -10
  6. Summarise what was cleaned.

Focus Areas

Sponsors

Details

Repository
github.com/rohitg00/pro-workflow
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Automation & Workflows
First seen
Jun 11, 2026

More from rohitg00/pro-workflow

All 35
1itechmeat avatarcommitsitechmeat/llm-codeConventional Commits specification. Covers commit structure, types, breaking changes. Use when writing structured commit messages, configuring automated changel177skills.sh installs
2rohitg00 avatarbug-capturerohitg00/pro-workflowCapture a user-reported defect as a durable GitHub issue written in the project's own domain language. Explores the codebase in parallel for context but never l162skills.sh installs
3moizibnyousaf avatarshare-a-librarymoizibnyousaf/ai-agent-skillsTakes a local library you've been working on and does the full publish dance: regenerates docs, initializes git, creates the GitHub...161skills.sh installs
4xmanrui avataropenclaw-bot-dashboardxmanrui/openclaw-bot-dashboardLaunch and manage the OpenClaw Dashboard web UI for monitoring all your bots, agents, models, and sessions. Automatically detects OS, checks for updates, instal148skills.sh installs
5samhvw8 avatarinfra-engineersamhvw8/dotfilesComprehensive infrastructure engineering covering DevOps, cloud platforms, FinOps, and DevSecOps. Platforms: AWS (EC2, Lambda, S3, ECS, EKS, RDS, CloudFormation139skills.sh installs
6paulrberg avatardelayed-commandpaulrberg/agent-skillsThis skill should be used when the user asks to "run npm test after 30 minutes", "git commit after 1 hour", "wait 2h then deploy", "sleep 45m and run build", "a135skills.sh installs