code-simplifier

Refactors JavaScript/TypeScript code to improve readability and maintainability while preserving functionality.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/bzellman/earp-kit --skill code-simplifier-bzellman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/bzellman/earp-kit/tree/main/skills/system/code-simplifier
Command: npx skills add https://github.com/bzellman/earp-kit --skill code-simplifier-bzellman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplifies and refines code for readability, consistency, and maintainability while preserving exact functionality, helping teams move faster with clearer code.

Core Features & Use Cases

  • Enforces project standards (ES modules, explicit types, React patterns) to improve consistency.
  • Refactors recently modified code to reduce cognitive load during reviews and onboarding.
  • Use Case: After a major PR with scattered changes, run Code Simplifier to produce a clean patch that preserves behavior for code review.

Quick Start

Provide a refined version of the recently modified modules that preserves functionality and follows project standards.

Frequently Asked Questions about code-simplifier

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

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

To refactor JavaScript code without changing behavior, you simplify recently modified modules to preserve functionality while improving readability and maintainability. This enforces project standards like ES module imports and explicit return types.

What is the best way to clean up complex legacy files in a React project?

Cleaning up complex legacy files in a React project involves refactoring recently modified code to reduce cognitive load. You apply React component patterns with defined Props and robust error handling to ensure no behavior changes.

Can I use code simplification for pull request cleanups in TypeScript?

Yes, you can use code simplification for pull request cleanups in TypeScript. It refactors recently changed modules to produce a clean patch that preserves functionality and follows project standards for code reviews.

Does code refactoring enforce ES module imports and explicit return types?

Yes, code refactoring enforces ES module imports and explicit return types for top-level functions. It implements project standards from CLAUDE.md to improve consistency across JavaScript and TypeScript projects.

When do I need to refactor code for maintainability during onboarding?

You need to refactor code for maintainability during onboarding when new team members face scattered changes or complex legacy files. Simplifying these modules reduces cognitive load and clarifies functionality without altering behavior.

What are the limitations of automated code simplification for JavaScript?

Automated code simplification for JavaScript applies specifically to modules with recent changes or complex legacy files. It focuses on preserving exact functionality while improving readability, rather than adding new features or altering logic.