code-simplifier

Refactor recently modified JavaScript/TypeScript code for readability without changing behavior.

785|169|Updated Aug 8, 2024
One-click install
npx skills add https://github.com/Ohh-889/skyroc-admin --skill code-simplifier-ohh-889
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/Ohh-889/skyroc-admin/tree/main/.agents/skills/code-simplifier
Command: npx skills add https://github.com/Ohh-889/skyroc-admin --skill code-simplifier-ohh-889

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams reduce code debt by refining recently modified code for readability and consistency while preserving existing functionality.

Core Features & Use Cases

  • Standardizes naming, structure, and style across modified modules.
  • Improves readability and maintainability without altering runtime behavior.
  • Use Case: when a PR touches multiple files, run this skill to produce a clean, more maintainable version that reviewers can easily understand.

Quick Start

Analyze recently modified files and generate a clean, readable refactor that preserves all functionality.

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 for readability without changing behavior?

Refactor JavaScript code for readability by standardizing naming, structure, and style across modified modules. This process improves maintainability and reduces cognitive load while ensuring the refactored codebase remains functionally identical to the original.

What is the best way to clean up TypeScript code in a pull request?

Cleaning up TypeScript code in a pull request involves standardizing ES modules, adding explicit top-level return types, and clarifying React patterns. This refines recently modified files to produce a clean version that reviewers can easily understand.

Does code refactoring affect existing functionality in TypeScript projects?

Code refactoring does not affect existing functionality in TypeScript projects. The refactor targets recently touched code to strictly improve readability and maintainability while preserving all original runtime behavior.

Can I standardize React patterns and avoid nested ternaries during code cleanup?

You can standardize React patterns and avoid nested ternaries during code cleanup by applying a targeted refactor. This enforces project standards across modified JavaScript and TypeScript modules without altering the underlying logic.

How do I reduce cognitive load when maintaining recently modified JavaScript modules?

Reduce cognitive load when maintaining recently modified JavaScript modules by standardizing style and structure. This refactoring approach improves readability and consistency across the codebase, making ongoing maintenance significantly easier.