code-simplifier

Refactor recently modified JavaScript/TypeScript code for readability and maintainability.

3|2|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/ngx-signal-forms/ngx-signal-forms --skill code-simplifier-ngx-signal-forms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/ngx-signal-forms/ngx-signal-forms/tree/main/.github/skills/pr-toolkit/code-simplifier
Command: npx skills add https://github.com/ngx-signal-forms/ngx-signal-forms --skill code-simplifier-ngx-signal-forms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams improve the readability and maintainability of recently modified code without altering its behavior, ensuring changes are clear, consistent, and easier to review.

Core Features & Use Cases

  • Preserve functionality while improving readability and structure across modified code.
  • Enforce project-wide standards (naming, typing, import order, error handling) during refactors.
  • Remove unnecessary abstractions and reduce cognitive load in touched modules to speed up code reviews.

Quick Start

Review the recently modified code and apply the code-simplifier agent to refine it for clarity and maintainability.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I refactor TypeScript code for readability without changing its behavior?

Refactor TypeScript code for readability by enforcing explicit typings, organizing imports, and using clear variable names. This preserves all functionality while reducing cognitive load and speeding up code reviews across recently modified modules.

What's the best way to clean up JavaScript code after implementing a feature?

Clean up JavaScript code after feature implementation by removing unnecessary abstractions and enforcing project-wide standards. This ensures your recent edits remain maintainable, consistent, and clear without altering the underlying logic.

Does code refactoring for maintainability affect existing error handling?

Refactoring for maintainability does not degrade existing error handling; it enforces robust error handling alongside clear variable names and organized imports. This ensures your refactored code remains stable, predictable, and fully functional.

How to ensure consistent import order and explicit typings in modified TypeScript modules?

Ensure consistent import order and explicit typings in modified TypeScript modules by applying automated code cleanup standards. This enforces project-wide guidelines structurally, reducing manual review effort and improving overall maintainability.

When should I avoid structuring variable names and imports in touched JavaScript files?

Avoid restructuring variable names and imports in touched JavaScript files when the primary goal is functional alteration rather than clarity. If recent edits introduce high-risk logic changes, defer structural cleanup to isolate behavioral modifications during review.