code-simplify

Simplify recently modified code while preserving behavior in apply or report mode.

2|Updated Jun 1, 2017
One-click install
npx skills add https://github.com/carlos-algms/dotfiles --skill code-simplify-carlos-algms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplify
Source: https://github.com/carlos-algms/dotfiles/tree/main/AI-configs/skills/code-simplify
Command: npx skills add https://github.com/carlos-algms/dotfiles --skill code-simplify-carlos-algms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps reduce complexity and churn in existing code by identifying opportunities to simplify, refactor safely, and improve correctness without changing intended behavior.

Core Features & Use Cases

  • Behavior-preserving simplifications: targets real reductions in code surface area and complexity rather than style-only rewrites.
  • Mode-based operation (apply vs report): supports edit-and-fix workflows as well as audit-style reports that only surface findings.
  • Structured issue reporting: groups results into prioritized categories—Bugs, Misguidance, Missing validations, Real simplifications, and Low-priority—so you can act quickly.

Quick Start

Ask the AI to simplify recently changed code while preserving behavior and return fixes in apply mode: simplify my recent changes and keep behavior the same.

Frequently Asked Questions about code-simplify

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

FAQPage Schema
How do I simplify and refactor code without changing its behavior?

Behavior-preserving refactoring targets real reductions in code surface area and complexity rather than style-only rewrites. It identifies safe simplifications to reduce code churn and improve correctness while ensuring the intended logic remains completely intact.

What is the best way to audit recently modified code for missing validations and bugs?

Auditing recently modified code for missing validations and bugs requires a structured report mode that surfaces findings without applying edits. Results are grouped into prioritized categories like Bugs, Missing validations, and Misguidance, complete with file and line citations for quick action.

How does report mode differ from apply mode during a code audit?

Report mode differs from apply mode by surfacing audit findings without modifying the codebase. Apply mode directly edits and fixes the code, while report mode organizes issues into severity headers like Bugs, Missing validations, and Low-priority for manual review.

Can I find real code simplifications rather than just style fixes?

Yes, finding real code simplifications involves targeting actual reductions in code surface area and complexity rather than style-only rewrites. It identifies opportunities to safely refactor and improve correctness without changing the intended behavior of the code.

When should I use a code audit tool instead of directly applying refactoring edits?

You should use a code audit tool in report mode when you want to review findings before committing changes. It groups issues into categories like Bugs, Misguidance, and Missing validations with file and line citations, allowing you to evaluate real simplifications safely.