code-simplifier

Simplify recently touched code without changing its behavior.

5|1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/ValorVie/custom-skills --skill code-simplifier-valorvie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/ValorVie/custom-skills/tree/main/project-template/.codex/skills/code-simplifier
Command: npx skills add https://github.com/ValorVie/custom-skills --skill code-simplifier-valorvie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Code Simplifier reduces effort by cleaning up recently modified code without altering its behavior, improving readability and maintainability for future reviews.

Core Features & Use Cases

  • Focused cleanup of touched files to remove duplication, clarify intent, and simplify control flow
  • Maintains semantics and integrates with existing tests to avoid regressions
  • Use case: after implementing a feature, run a cleanup pass to produce a clean, review-ready version of the touched code

Quick Start

Ask the AI to simplify the recently modified code without changing its behavior.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I clean up and refactor recently modified code without changing its behavior?

To clean up touched code without changing behavior, run a targeted refactor pass on files identified by git diff. This simplifies control flow and removes duplication while preserving semantics, tests, and project conventions.

What is the best way to improve code readability and maintainability after implementing a feature?

Improving code readability after a feature implementation requires a focused cleanup pass. This process clarifies intent and reduces duplication in touched files, producing a clean, review-ready version without altering functionality.

Can I simplify control flow and remove code duplication only in touched files?

Yes, you can simplify control flow and remove duplication by targeting only touched files. The cleanup uses git status or diff to identify modified files, ensuring the refactor scope stays strictly limited to recent changes.

How does AI-assisted code simplification ensure it does not break existing tests and semantics?

AI-assisted code simplification enforces non-behavior-changing constraints to preserve semantics and integrate with existing tests. This prevents regressions by ensuring the cleanup strictly adheres to original functionality and project conventions.

When should I run a code cleanup pass on modified files to prepare for code review?

You should run a code cleanup pass immediately after implementing a feature to prepare for code review. Simplifying the touched code at this stage ensures reduced duplication and clearer intent before reviewers evaluate the changes.

Are there limitations to refactoring touched code using git diff without altering functionality?

A limitation of refactoring touched code via git diff is that changes must strictly preserve semantics and adhere to existing project conventions. The cleanup focuses solely on readability and control flow without introducing new behavior.