code-simplifier

Refactors JavaScript and TypeScript code to improve clarity and maintainability.

5|Updated Feb 6, 2022
One-click install
npx skills add https://github.com/christofferbergj/dotfiles --skill code-simplifier-christofferbergj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/christofferbergj/dotfiles/tree/main/.agents/skills/code-simplifier
Command: npx skills add https://github.com/christofferbergj/dotfiles --skill code-simplifier-christofferbergj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates code cleanup and refactoring to improve clarity and consistency without changing functionality, reducing manual review time.

Core Features & Use Cases

  • Refactors small to moderate code sections while preserving behavior.
  • Enforces project-specific style and naming conventions.
  • Reviews recently changed code for readability and structure to ease maintenance.

Quick Start

Provide the code snippet you want simplified and specify the language and any project-specific standards to apply.

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 to improve readability without changing functionality?

You can simplify TypeScript and JavaScript code by providing your snippet and specifying language and project standards, which the tool then refactors to improve clarity and maintainability.

What is the best way to simplify TypeScript code during a code review?

The best way to simplify TypeScript during a review is to process recently changed files through an automated refactor that enforces explicit return types and ES module imports while preserving behavior.

Can I use automated refactoring to enforce ES module usage and explicit return types?

Yes, you can enforce ES module imports and explicit return types by specifying these project standards when you provide your code snippet for automated simplification and cleanup.

Does code simplification work for both JavaScript and TypeScript codebases?

Yes, code simplification applies to both JavaScript and TypeScript codebases, refactoring small to moderate code sections to enforce project-specific style and naming conventions while preserving functionality.

How do I clean up recently modified code to meet project maintainability standards?

To clean up recently modified code, review the changed sections for readability and structure, then refactor them to meet project standards like consistent naming and ES module usage.