code-simplifier

Simplify TypeScript, JavaScript, PHP, Python, Go, Rust, and shell code with refactoring rules.

2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/tomazb/agent-skills --skill code-simplifier-tomazb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/tomazb/agent-skills/tree/main/code-simplifier
Command: npx skills add https://github.com/tomazb/agent-skills --skill code-simplifier-tomazb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The Code Simplifier Skill helps address code readability and maintainability issues by simplifying code while preserving its original functionality.

Core Features & Use Cases

  • Code Simplification: Offers language-agnostic code simplification to improve readability and maintainability.
  • Mode Selection: Provides both Review-Only Mode for critique and Apply-Changes Mode for direct code edits.
  • Language-Specific Guidance: Includes language-specific reference guides for TypeScript/JavaScript, PHP, Python, Go, Rust, and shell scripting.
  • Use Case: When you need to refactor code for better readability or to reduce complexity without altering its behavior.

Quick Start

Simplify code from a given file 'example.ts' with the code-simplifier skill.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I refactor code to improve readability without changing its behavior?

To refactor code for readability without changing behavior, you can apply language-specific refactoring rules that simplify complex logic. This approach provides targeted guidance for TypeScript, Python, Go, and other languages while preserving original functionality.

Can I simplify code in multiple programming languages like Rust and PHP?

Yes, you can simplify code across multiple languages including Rust, PHP, TypeScript, JavaScript, Python, Go, and shell scripting. The process applies language-specific guidance and refactoring rules tailored to each syntax.

What is the best way to review code complexity before applying changes?

The best way to review code complexity before applying changes is using a review-only mode that critiques readability and maintainability. This allows you to evaluate suggested refactoring rules before directly editing the files.

Does code simplification support direct file editing for maintainability?

Yes, code simplification supports direct file editing for maintainability through an apply-changes mode. This directly modifies the codebase by applying refactoring rules alongside a package validator for quality checks.

How do I validate code quality after refactoring for maintainability?

You validate code quality after refactoring for maintainability by running a package validator. This tool performs quality checks to ensure the simplified code meets the required standards without altering its behavior.

When do I need to simplify shell scripting for maintainability?

You need to simplify shell scripting for maintainability when scripts become difficult to read or modify. Applying language-specific refactoring rules reduces complexity and improves readability without altering the script's execution behavior.