deslop

Refactor recently modified code to improve readability while preserving functionality.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kaissalha/webld --skill deslop-kaissalha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/kaissalha/webld/tree/main/.agents/skills/deslop
Command: npx skills add https://github.com/kaissalha/webld --skill deslop-kaissalha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deslop helps developers refine code that has recently changed, improving readability and maintainability while guaranteeing behavior remains intact.

Core Features & Use Cases

  • Preserve functionality: ensure behavior remains identical while improving readability.
  • Apply project standards: align with ES modules, explicit types, clean imports.
  • Incremental refinement: target recently modified sections to minimize risk.
  • Use case: When code changes introduce complexity, run Deslop to produce a cleaner, maintainable version without altering outputs or behavior.

Quick Start

Refactor the most recently modified code to improve clarity while preserving exact functionality.

Frequently Asked Questions about deslop

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

FAQPage Schema
How do I refactor TypeScript code to improve readability without changing behavior?

Refactoring TypeScript code to improve readability without changing behavior involves simplifying structure, modernizing imports, clarifying naming, and reducing nesting. This process enforces project standards like ES modules and explicit return annotations while avoiding unnecessary abstractions.

What's the best way to clean up messy code after recent changes?

Cleaning up messy code after recent changes is best handled by targeting only the modified sections for incremental refinement. This minimizes risk by simplifying style and architecture locally, ensuring the overall module outputs and functionality remain completely intact.

Does refactoring recently modified code affect existing functionality?

Refactoring recently modified code does not affect existing functionality when behavior preservation is enforced. The process strictly targets clarity, structure, and project standard alignment, guaranteeing identical outputs and runtime behavior without introducing logical changes.

Can I enforce ES modules and explicit types during a code cleanup?

You can enforce ES modules and explicit types during a code cleanup by applying project standards across modified sections. This aligns the codebase with explicit return annotations and clean imports while strictly preserving the original logic.

When should I avoid using automated code cleanup on my TypeScript project?

You should avoid automated code cleanup when your changes require complex new abstractions or alter runtime behavior. If the code already adheres to explicit typing standards and lacks structural complexity, refactoring provides minimal benefit and risks unnecessary modifications.