simplify

Refine recently modified JavaScript/TypeScript code for clarity and maintainability.

5|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/kenlck/skills --skill simplify-kenlck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/kenlck/skills/tree/main/ken-swe/skills/simplify
Command: npx skills add https://github.com/kenlck/skills --skill simplify-kenlck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplifies and refines recently modified code to improve readability, consistency, and maintainability without altering functionality.

Core Features & Use Cases

  • Reduces complexity in updated modules and components to make maintenance easier.
  • Enforces project standards (ES modules, explicit return types, explicit error handling) for consistent quality across the codebase.
  • Improves readability and reduces cognitive load during future reviews and debugging.

Quick Start

Run a concise, safety-preserving refactor on the most recently modified function to improve clarity and maintainability.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I simplify recently modified JavaScript code without changing its functionality?

You can simplify recently modified JavaScript code without changing functionality by enforcing ES modules, explicit return types, and proper error handling, while avoiding nested ternaries to reduce complexity and cognitive load.

What is the best way to refactor React components for better readability and maintainability?

Refactoring React components for readability involves applying a uniform style and simpler structure to recently touched code, enforcing explicit return types and error handling, and reducing nested ternaries for consistent quality.

Can I use this code refactoring approach to enforce ES modules and explicit return types in TypeScript?

Yes, this code refactoring approach enforces ES modules and explicit return types in TypeScript projects, refining recently modified modules to improve clarity, consistency, and maintainability without altering behavior.

Does simplifying code affect the existing behavior of my JavaScript modules?

Simplifying code does not affect the existing behavior of your JavaScript modules. The process refines recently modified code to improve clarity and maintainability while preserving the original functionality.

When should I refactor TypeScript code to avoid nested ternaries and reduce cognitive load?

You should refactor TypeScript code to avoid nested ternaries and reduce cognitive load when recently modified modules need a uniform style, simpler structure, and consistent project standards for easier future maintenance.

Why does updated code need explicit error handling and uniform style during a refactor?

Updated code needs explicit error handling and uniform style during a refactor to ensure consistent quality across the codebase, making maintenance easier and reducing cognitive load during future reviews and debugging.