simplify

Remove dead code and redundant abstractions from recently changed code.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/duylinhdang1998/claude-template-agent --skill simplify-duylinhdang1998
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/duylinhdang1998/claude-template-agent/tree/main/plugins/vfm-agent-company/skills/simplify
Command: npx skills add https://github.com/duylinhdang1998/claude-template-agent --skill simplify-duylinhdang1998

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill performs a focused cleanup pass on recently changed code to remove dead code, redundant abstractions, duplication, and low-value indirection without altering public behavior or test expectations. It is designed to keep diffs small, reduce complexity, and improve clarity immediately after implementing a feature or fix.

Core Features & Use Cases

  • Targeted blast radius: Operates only on staged changes, the last commit, or files explicitly passed by the caller to avoid wandering through unrelated code.
  • Diff-first review: Reads diffs before surrounding context to stay focused on only what changed.
  • Eight simplification lenses: Checks for dead code, redundant wrappers, duplication, over-parameterization, speculative generality, deep nesting, comment-as-apology, and boolean chains.
  • Safe application: Proposes a diff-based plan, applies edits, then runs type checks, linters, and tests scoped to the changes to ensure behavior is unchanged.

Quick Start

Run the simplify skill on your staged changes to remove dead code and simplify recent edits.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I remove dead code and simplify recent changes in my codebase?

To remove dead code and simplify recent changes, apply a focused cleanup pass to staged changes or the last commit. This targets redundant wrappers, duplication, and low-value indirection without altering public behavior or test expectations.

What is the best way to clean up redundant abstractions after implementing a feature?

Cleaning up redundant abstractions after feature implementation is best handled by a diff-first review. This approach reads diffs before surrounding context to stay focused on only what changed, checking for speculative generality and over-parameterization.

Can I refactor staged Git diffs without modifying public APIs or breaking tests?

Yes, you can refactor staged Git diffs without modifying public APIs or breaking tests by using a safe application process. It proposes a diff-based plan, applies edits, then runs type checks, linters, and tests scoped to the changes.

When do I need to run a post-implementation cleanup pass on my code?

You need to run a post-implementation cleanup pass immediately after implementing a feature or fix. It keeps diffs small, reduces complexity, and improves clarity by operating only on recently changed files passed by an automated verifier.

Does automated code simplification work on specific file lists or the entire repository?

Automated code simplification works on specific file lists rather than the entire repository. It operates with a targeted blast radius on staged changes, the last commit, or files explicitly passed by the caller to avoid wandering through unrelated code.