sl:simplify

Simplify recently changed source code by removing dead code and duplication.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/HuynhHoangPhuc/solon --skill sl-simplify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sl:simplify
Source: https://github.com/HuynhHoangPhuc/solon/tree/main/plugins/solon-core/skills/simplify
Command: npx skills add https://github.com/HuynhHoangPhuc/solon --skill sl-simplify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplify post-edit changes by reviewing recently modified code to reduce complexity, remove dead code, and fix DRY issues while preserving functionality.

Core Features & Use Cases

  • Identify and reduce unnecessary complexity in changed files to improve readability.
  • Remove dead code, duplicated logic, and improve naming clarity to support maintainability.
  • Apply fixes with hashline-based edits, ensuring changes are limited to touched files.

Quick Start

Run sl simplify on a changed file path to clean up after edits.

Frequently Asked Questions about sl:simplify

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

FAQPage Schema
How do I clean up code complexity and dead code after editing files?

To clean up post-edit code complexity and dead code, run a simplify command on changed file paths. It reviews recently modified files to reduce complexity, remove dead code, and fix DRY violations while preserving functionality using hashline-based edits.

What is the best way to find and fix DRY violations in recently changed source code?

The best way to fix DRY violations in changed source code is using a post-edit cleanup tool that identifies duplicated logic in touched files. It reads modified files to detect duplication and applies hashline-based edits to resolve violations.

Does post-edit code cleanup work across different programming languages?

Yes, post-edit code cleanup works across different programming languages by focusing on touched files in version control. It handles nested structures, dead code, and DRY violations regardless of language to improve readability.

How do I ensure code cleanup changes are limited to only the files I touched?

To ensure cleanup changes are limited to touched files, use a post-edit cleanup tool that reads changed files via version control. It applies fixes with hashline-based edits, guaranteeing modifications remain strictly within recently edited file paths.

Why should I use a post-edit refactor workflow instead of manual code review?

A post-edit refactor workflow efficiently reduces complexity and removes dead code automatically, whereas manual review is slower and prone to missing nested DRY violations. It validates results after applying hashline edits to ensure maintainability.

What are the limitations of automated post-edit code cleanup for nested structures?

Automated post-edit code cleanup handles nested structures by reducing complexity and removing dead code, but may require validation to ensure functionality is preserved. It focuses strictly on touched files, preventing unintended changes to untouched code.