simplify

Remove redundant or speculative logic from code diffs while preserving correctness.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplify helps reduce overly complex or redundant changes in a code diff while preserving correctness, making reviews faster and diffs easier to reason about.

Core Features & Use Cases

  • Diff-only simplification: Shrinks only the provided change set (file path, staged changes, last commit, range, or current working tree) without restructuring unrelated code.
  • Risk-guided deletion candidates: Identifies concrete “can this be removed?” opportunities (premature abstractions, dead branches, redundant comments, impossible-path error handling, etc.) and asks you to accept or decline candidates.
  • Review-order safety guardrail: Enforces the workflow rule to simplify only after the diff is cleanly reviewed, warning if invoked early.

Quick Start

Use the simplify skill on a reviewed diff by telling your AI: simplify the staged changes and return a smaller diff with rationale per deletion.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I shrink a git diff safely without losing correctness?

To shrink a git diff safely, the skill removes redundant or speculative logic from your change set while preserving correctness. It generates deletion candidates with risk assessment and applies only approved surgical edits, verifying results via the project's fast checks.

What is diff simplification and when should I use it?

Diff simplification is a post-review shrink pass that reduces overly complex or redundant changes in a code diff. You should use it only after your diff is cleanly reviewed to make reviews faster and diffs easier to reason about.

How do I remove redundant code from staged changes?

You can remove redundant code from staged changes by supplying the staged diff to the simplification process. It identifies concrete removal opportunities like premature abstractions and dead branches, then asks you to accept or decline each deletion candidate.

Can I simplify specific file paths or the last commit instead of staged changes?

Yes, you can simplify specific file paths, the last commit, explicit ranges, or the current working tree. The process applies diff-only simplification to shrink only the provided change set without restructuring unrelated code.

What redundant code patterns are identified for removal during safe refactoring?

During safe refactoring, the process identifies premature abstractions, dead branches, redundant comments, and impossible-path error handling as deletion candidates. Each candidate is risk-assessed before you decide to accept or decline the removal.

When should I not use diff simplification on my code changes?

You should not use diff simplification before your diff is cleanly reviewed. The process enforces a review-order safety guardrail and will warn you if invoked early, as it is intended strictly as a post-review shrink pass.