deslop-code

Clean up AI-generated code changes by reviewing diffs against main and removing stylistic or structural artifacts (over-commenting, unnecessary defensive checks, try/catch noise, any-casts, inconsistent style). Use when asked to “remove AI code slop,” “humanize” changes, or align a branch’s edits with existing codebase conventions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "deslop-code" with this command: npx skills add heykvnzhao/dotfiles/heykvnzhao-dotfiles-deslop-code

Deslop Code

Overview

Strip AI-generated artifacts from a branch by comparing against main and aligning edits with local conventions and surrounding code style.

Workflow

  1. Establish baseline
  • Use git diff against main to identify AI-introduced changes.
  • Review surrounding context in each file to understand local conventions.
  1. Remove slop patterns
  • Delete comments that read like explanations, narrations, or redundant restatements of code.
  • Remove defensive checks or try/catch blocks that are inconsistent with trusted code paths or nearby style.
  • Replace any-casts or similar type escapes with proper typing or remove them if unnecessary.
  • Normalize style to match the file (naming, ordering, error handling, control flow).
  1. Verify consistency
  • Ensure behavior remains unchanged unless removal requires a small refactor to restore intended behavior.
  • Keep changes minimal and localized; avoid refactors not needed for cleanup.
  1. Report
  • End response with a 1–3 sentence summary of what changed.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

git-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

coding-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

web-ui-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review