code-simplifier

Simplify recently modified JavaScript and TypeScript code while preserving functionality.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/d3ming/dot-agents --skill code-simplifier-d3ming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/d3ming/dot-agents/tree/main/master/skills/code-simplifier
Command: npx skills add https://github.com/d3ming/dot-agents --skill code-simplifier-d3ming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Engineers often introduce complexity, inconsistencies, or unclear naming when making quick edits, which makes code harder to read, maintain, and review; this Skill streamlines recently changed code to improve clarity and consistency without changing its behavior.

Core Features & Use Cases

  • Preserve functionality: Applies transformations that never change outputs, side effects, or public APIs.
  • Apply project standards: Enforces ES module usage, import sorting, function keyword preference, explicit top-level return annotations, React Props typing, and consistent naming and error-handling patterns.
  • Enhance clarity: Reduces unnecessary nesting, removes redundant abstractions, and improves variable and function names for readability.
  • Use Case: During code review, run the Skill on recently modified files to automatically simplify logic and align them with repository conventions before merging.

Quick Start

Use the code-simplifier skill to refine the recently modified files in the src directory, improving clarity and consistency while keeping all behavior unchanged.

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 and TypeScript code for clarity without changing runtime behavior?

Simplify code by applying transformations that reduce nesting, improve naming, and enforce style guides while preserving outputs and side effects. This streamlines recently changed code for readability without altering functionality.

What's the best way to enforce consistent style guides in React components during code review?

Enforcing consistent style guides in React components involves applying ES module imports, explicit Prop types, and function declarations. This refines code to align with repository conventions before merging.

Can I automatically sort imports and add explicit return types to TypeScript files?

Yes, you can automatically sort imports and add explicit top-level return types to TypeScript files. This process enforces ES module usage and type annotations while keeping all runtime behavior unchanged.

Does the code simplification process work with both plain JavaScript and React components?

Yes, code simplification works with both plain JavaScript and React components. It applies consistent naming, error-handling patterns, and typing rules across project source files without altering public APIs.

When should I not use automated code simplification on recently modified files?

You should not use automated code simplification when your recently modified files lack existing test coverage, because verifying that outputs, side effects, and public APIs remain unchanged requires behavioral validation.