code-simplifier

Refine recently modified JavaScript and TypeScript code for clarity and consistency.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/datorresb/vibecoding-starter --skill code-simplifier-datorresb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/datorresb/vibecoding-starter/tree/main/.claude/skills/core/code-simplifier
Command: npx skills add https://github.com/datorresb/vibecoding-starter --skill code-simplifier-datorresb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill makes code easier to read and maintain by refining recently modified code to improve clarity, consistency, and structure while preserving exact functionality.

Core Features & Use Cases

  • Clarity-focused Refactoring: Simplifies variable names, reduces nesting, and eliminates unnecessary abstractions without altering behavior.
  • Maintainability & Standards: Enforces project standards such as explicit top-level function return types, proper import ordering, and switch/if-else clarity over nested ternaries.
  • Use Case: Apply to a pull request with recently changed modules to produce a cleaner, more maintainable diff ready for review.

Quick Start

Refine the recently touched code in your repository by invoking the code-simplifier on the target files and reviewing the suggested refinements.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I refactor recently modified JavaScript code to improve readability without changing functionality?

To simplify recently modified JavaScript code without altering functionality, apply targeted refactoring techniques that enforce explicit return types, sort imports properly, and eliminate nested ternaries while preserving all original features.

What is the best way to clean up a React component codebase for maintainability?

The best way to clean up React components for maintainability is simplifying variable names, reducing nesting, and enforcing project standards like explicit top-level function return types and import ordering during the code refinement process.

Does code simplification affect the existing behavior of TypeScript functions?

Code simplification does not affect the existing behavior of TypeScript functions because the refinement process strictly preserves exact functionality while applying clarity-focused improvements like removing unnecessary abstractions and reducing nesting.

How do I enforce explicit return types and import sorting in a pull request diff?

To enforce explicit return types and import sorting in a pull request diff, apply project-specific standards during code refinement to produce a cleaner, more maintainable diff ready for peer review.

Can I use automated refactoring to replace nested ternaries with switch statements in JavaScript?

Yes, you can use automated refactoring to replace nested ternaries with clearer switch or if-else statements in JavaScript, applying standards that improve code clarity and consistency without altering the underlying logic.