code_simplifier

Detect and fix code smells and performance issues in modified code.

1|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/Herxinsasa/Skills-Collector --skill code-simplifier-herxinsasa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code_simplifier
Source: https://github.com/Herxinsasa/Skills-Collector/tree/main/code-simplifier-skill
Command: npx skills add https://github.com/Herxinsasa/Skills-Collector --skill code-simplifier-herxinsasa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

After making code changes, developers often accidentally introduce duplicate logic, awkward abstractions, or performance inefficiencies that create tech debt and slow down features if left unaddressed.

Core Features & Use Cases

  • Code Smell Detection: Scans changed code for parameter sprawl, copy-paste duplication, leaky abstractions, and unnecessary comments.
  • Efficiency Review: Checks for repeated work, unnecessary reads, event churn, and hot-path bloat that cause performance regressions.
  • Use Case: After implementing a new user authentication feature, use this skill to review your diff, reuse existing utility functions you forgot about, and remove redundant validation logic before merging.

Quick Start

Use the code_simplifier skill to review the latest code diff for duplicate logic, awkward abstractions, and performance inefficiencies, then fix all confirmed issues.

Frequently Asked Questions about code_simplifier

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

FAQPage Schema
How do I detect code smells and duplicated logic in my git diff before merging?

Code smell detection scans changed code for parameter sprawl, copy-paste duplication, and leaky abstractions. It inspects your post-change diff to identify duplicated logic and awkward abstractions, delivering concrete cleanup changes before merging.

What is the best way to reduce tech debt introduced during recent code changes?

The best way to reduce tech debt is performing a post-change code review to eliminate low-quality, duplicated, or inefficient code. This targets recent modifications to remove awkward abstractions and bloat without rewriting unrelated stylistic code.

How do I check modified code for performance regressions and hot-path bloat?

Efficiency review checks modified code for repeated work, unnecessary reads, event churn, and hot-path bloat that cause performance regressions. It inspects your latest diff to pinpoint and fix these specific inefficiencies.

Can I clean up code duplication without rewriting unrelated code styles?

Yes, code simplification eliminates low-quality and duplicated logic from changed code while avoiding unnecessary stylistic rewrites. It strictly targets the post-change diff to remove bloat and reuse existing utilities without touching unrelated code.

When do I need to run a diff inspection for code simplification?

You need diff inspection for code simplification immediately after implementing new features or development changes. It catches accidentally introduced duplicate logic, awkward abstractions, and performance inefficiencies before they create long-term tech debt.