code-simplifier

Refine recently modified code to improve readability while preserving functionality.

Updated Jul 6, 2020
One-click install
npx skills add https://github.com/guifry/devconfig --skill code-simplifier-guifry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/guifry/devconfig/tree/main/claude/skills/code-simplifier
Command: npx skills add https://github.com/guifry/devconfig --skill code-simplifier-guifry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refines recently modified code to improve readability while preserving exact functionality.

Core Features & Use Cases

  • Automated refactor for recent changes: Simplifies and aligns newly touched code with project standards without altering behavior.
  • Standards-driven formatting: Enforces import order, explicit type annotations, and React component patterns per CLAUDE.md.
  • Maintainability-oriented reviews: Improves naming, reduces nesting, and consolidates related logic to ease future edits.

Quick Start

Provide the path to the recently modified file and ask me to refine it to meet project standards.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I refactor recent JavaScript changes to improve readability without altering behavior?

Code simplification refines recently modified code by applying project-wide standards such as explicit types and import sorting, improving readability while preserving exact functionality through safe, idempotent refinements.

Does this code cleanup approach support React component patterns and TypeScript?

Yes, code cleanup supports React and TypeScript by enforcing React component patterns and explicit type annotations per project standards, ensuring maintainability across JavaScript and TypeScript codebases without changing behavior.

What's the best way to enforce coding standards like import sorting across a codebase?

The best way to enforce coding standards is applying automated, standards-driven formatting that sorts imports, adds explicit types, and aligns React patterns, producing clear changes for future reviews without altering functionality.

How do I start simplifying code to meet project standards?

To start simplifying code, provide the path to a recently modified file and request refinement; the process aligns naming, reduces nesting, and consolidates logic to meet project standards while keeping behavior unchanged.

Are these code refinements safe to apply multiple times?

Yes, code refinements are idempotent, meaning applying them multiple times produces the same result without introducing new changes, ensuring safe maintainability across codebases while preserving exact functionality.

Why does code simplification focus on recently modified code?

Code simplification targets recently modified code to align new changes with project standards immediately, improving naming and reducing nesting in active areas to ease future edits and support clear reviews.