It compares local code to the main branch to delete redundant boilerplate code, excessive comments, and unnecessary try/catch blocks.

Install

mkdir -p .claude/skills/rmslop && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8887" && unzip -o skill.zip -d .claude/skills/rmslop && rm skill.zip

Installs to .claude/skills/rmslop

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Remove AI code slop
19 charsno explicit “when” trigger
Beginner

Key capabilities

  • Identify AI-injected boilerplate code
  • Remove inconsistent type casts
  • Strip abnormal try/catch blocks
  • Clean up unnecessary comments

How it works

It compares the current branch against the main branch to detect and remove patterns typical of AI-generated code, such as excessive defensive checks and redundant comments.

Inputs & outputs

You give it
Current branch code
You get back
Cleaned code diff

When to use rmslop

  • Clean up AI-generated code files
  • Remove unnecessary defensive coding blocks
  • Clean up inconsistent comment styles

About this skill

Overview

Check the diff against main, and remove all AI generated slop introduced in this branch.

This includes:

  • Extra comments that a human wouldn't add or is inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
  • Casts to any to get around type issues
  • Any other style that is inconsistent with the file
  • Unnecessary emoji usage

Report at the end with only a 1-3 sentence summary of what you changed

When not to use it

  • Cleaning non-AI generated code
  • Refactoring functional logic

Prerequisites

Git repository with main branch

Limitations

  • Relies on diff against main branch
  • May flag valid defensive code if it appears abnormal

How it compares

It focuses specifically on removing AI-specific artifacts rather than general code refactoring or formatting.

Compared to similar skills

rmslop side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
rmslop (this skill)37moNo flagsBeginner
effective-go3239moNo flagsBeginner
solid-principles579moNo flagsIntermediate
typescript-review392moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

effective-go

openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

323536

solid-principles

SmidigStorm

Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.

57236

typescript-review

metabase

Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.

39178

ast-grep

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.

17135

serena

massgen

This skill provides symbol-level code understanding and navigation using Language Server Protocol (LSP). Enables IDE-like capabilities for finding symbols, tracking references, and making precise code edits at the symbol level.

1597

typescript

lobehub

TypeScript code style and optimization guidelines. Use when writing TypeScript code (.ts, .tsx, .mts files), reviewing code quality, or implementing type-safe patterns. Triggers on TypeScript development, type safety questions, or code style discussions.

2877

Search skills

Search the agent skills registry