simplify

Reduce code complexity and remove duplication in the Nexus codebase.

1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/LaPaGaYo/nexus --skill simplify-lapagayo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/LaPaGaYo/nexus/tree/main/skills/support/simplify
Command: npx skills add https://github.com/LaPaGaYo/nexus --skill simplify-lapagayo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplify the codebase by reducing complexity, removing duplication and dead code, and improving readability during reviews and maintenance. It helps teams keep behavior intact while streamlining the implementation.

Core Features & Use Cases

  • Behavior-preserving refactoring: remove duplication, dead code, and over-engineering without changing external behavior.
  • Maintainability improvements: increase readability, reduce cognitive load for future changes, and simplify follow-on work.
  • Use Case: when a project accumulates complexity from multiple changes, run this pass to surface simplifications before merging.

Quick Start

Use this pass to identify and apply safe simplifications across the repository.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I safely refactor code to reduce complexity without changing behavior?

To safely refactor code, apply behavior-preserving transformations that remove duplication and prune dead code while maintaining external behavior. This process streamlines implementation and improves readability during maintenance reviews.

When should I run a code simplification pass on my repository?

Run a code simplification pass when your project accumulates complexity from multiple changes, before merging, or during post-release feedback. It surfaces maintainability improvements and reduces cognitive load for future changes.

What is dead code removal and how does it improve maintainability?

Dead code removal identifies and prunes unused code segments to improve maintainability. By eliminating unnecessary complexity, it reduces cognitive load and simplifies follow-on work while preserving the remaining behavior.

Can I remove code duplication across modules during maintenance reviews?

Yes, you can remove code duplication across modules during maintenance reviews. The simplification process enforces behavior-preserving refactors to reduce duplication and over-engineering without altering external behavior.

Does behavior-preserving refactoring integrate with execution framework safety checks?

Yes, behavior-preserving refactoring integrates with the Nexus execution framework and supports hooks and safety checks described in SKILL.md to guide safe simplifications across the codebase.

What are the limitations of automated code simplification for over-engineered modules?

Automated code simplification for over-engineered modules is limited to behavior-preserving transformations, meaning it cannot alter external behavior and requires integration with safety checks to ensure no functional regressions occur.