deslop

Remove AI-generated comments, defensive checks, and type casts from Git branch diffs.

1|Updated Dec 20, 2018
One-click install
npx skills add https://github.com/parkerhendo/home-config --skill deslop-parkerhendo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/parkerhendo/home-config/tree/main/dotfiles/claude/skills/deslop
Command: npx skills add https://github.com/parkerhendo/home-config --skill deslop-parkerhendo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes unnecessary and inconsistent code elements often introduced by AI code generation, ensuring a cleaner and more maintainable codebase.

Core Features & Use Cases

  • AI Code Cleanup: Identifies and removes extraneous comments, excessive defensive programming, and type casting.
  • Style Consistency: Enforces adherence to existing code style by removing AI-generated stylistic anomalies.
  • Use Case: After an AI assists in writing a new feature, use this Skill to review the generated code, remove any redundant comments or unusual error handling, and ensure it blends seamlessly with the project's established coding standards.

Quick Start

Run the deslop skill to clean up AI-generated code slop from the current branch.

Frequently Asked Questions about deslop

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

FAQPage Schema
How do I clean up AI-generated code slop from my git branch?

To clean up AI-generated code slop, you can analyze your current Git branch's diff against the main branch to remove extraneous comments, abnormal defensive checks, and unnecessary type casts. This enforces style consistency for a maintainable codebase.

What is AI code slop and how does it affect code review?

AI code slop refers to unnecessary or inconsistent code elements often introduced by AI code generation, such as excessive defensive programming and redundant type casting. It negatively impacts code quality and creates stylistic anomalies during code review.

How do I remove unnecessary comments and type casts added by AI code generation?

You can remove unnecessary comments and type casts added by AI code generation by analyzing your current Git branch diff against the main branch. This process identifies and strips out extraneous elements to ensure adherence to existing project coding standards.

Does the deslop skill work without any external dependencies or components?

Yes, the deslop skill works without any external dependencies or components. It directly analyzes your current Git branch diffs against the main branch to identify and remove AI-generated stylistic anomalies, generating a concise summary of changes made.

When should I use a code cleanup skill for refactoring AI-generated code?

You should use a code cleanup skill for refactoring AI-generated code immediately after an AI assists in writing a new feature. This ensures the generated code blends seamlessly with your project's established coding standards by removing redundant error handling and stylistic anomalies.