simplify

Identify behavior-preserving simplifications in recently changed code.

Updated Jun 6, 2026
One-click install
npx skills add https://github.com/shuymn/skills --skill simplify-shuymn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/shuymn/skills/tree/main/skills/simplify
Command: npx skills add https://github.com/shuymn/skills --skill simplify-shuymn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies recently changed code while preserving behavior, so you can clean up messy diffs, reduce duplication, and improve readability with confidence.

Core Features & Use Cases

  • Reviews changes from staged work, branch diffs, explicit file targets, or a recent-files fallback when no diff scope is available.
  • Runs three focused passes for code reuse, code quality, and efficiency to find only verified simplifications.
  • Applies internal cleanups that keep public APIs and behavior intact, making it ideal for refactoring small clusters of changed code after development or review.

Quick Start

Use the simplify skill to review the current changes and apply only behavior-preserving simplifications.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I simplify recently changed code without changing behavior?

Code simplification through behavior-preserving refactoring identifies recently changed code and applies internal cleanups to reduce duplication and improve readability. It runs focused passes for code reuse, quality, and efficiency, verifying edits before keeping them to ensure public APIs remain intact.

What is the best way to reduce code duplication in a git diff?

The best way to reduce code duplication in a git diff is to run focused analysis passes for code reuse and quality across the changed files. This approach targets only verified simplifications, cleaning up messy diffs while preserving the original program behavior.

Can I refactor staged changes without breaking the public API?

Yes, you can refactor staged changes without breaking the public API by applying behavior-preserving simplifications. The process explicitly keeps public APIs intact by requiring post-edit verification before any internal cleanups are kept.

How does behavior-preserving code refactoring handle recent files with no diff scope?

When no diff scope is available, behavior-preserving code refactoring falls back to analyze recent files directly. It applies parallel analysis for reuse quality and efficiency to find verified simplifications without altering the existing functionality.

When should I use automated code simplification during code review?

You should use automated code simplification during code review to clean up messy diffs and reduce duplication after development. It is ideal for refactoring small clusters of changed code because it verifies behavior preservation before keeping any edits.