code-simplifier

Simplify and refactor source code across languages while preserving behavior.

8|1|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/officebeats/beats-pm-antigravity-brain --skill code-simplifier-officebeats
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/officebeats/beats-pm-antigravity-brain/tree/main/.agent/skills/code-simplifier
Command: npx skills add https://github.com/officebeats/beats-pm-antigravity-brain --skill code-simplifier-officebeats

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often produce tangled, hard-to-read code. This skill helps simplify and refactor while preserving functionality.

Core Features & Use Cases

  • Code cleanup: rename variables for clarity, remove dead code, and reduce nesting.
  • Refactoring guidance: extract methods, add guard clauses, and improve structure with minimal risk.
  • Use Case: Given a legacy module with complex conditionals, the skill rewrites for readability and maintainability without changing behavior.

Quick Start

Provide a target file and desired simplification goal, and the skill will apply safe transformations to improve readability.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I refactor legacy code to improve readability without changing behavior?

Code simplification targets tangled source files by renaming variables for clarity, eliminating dead code, and reducing nesting. It rewrites complex conditionals for maintainability while preserving functionality through safe guardrails and testable in-place edits.

What is the best way to remove dead code and reduce nesting in source files?

The best way to remove dead code and reduce nesting is through guided refactoring. You extract methods, add guard clauses, and restructure logic with minimal risk, ensuring the original behavior is fully retained with safe guardrails and testable changes.

Can I use automated refactoring across different programming languages?

Yes, automated refactoring applies to source files across languages. It focuses on universal readability improvements, naming conventions, and dead code elimination to reduce complexity consistently, satisfying requirements for in-place edits and iterative improvement.

How do I clean up complex conditionals in a legacy module?

To clean up complex conditionals in a legacy module, you rewrite the structure for readability and maintainability. This involves extracting methods and adding guard clauses to simplify logic flow without altering the original behavior.

Does code simplification preserve existing functionality during in-place edits?

Yes, code simplification preserves existing functionality during in-place edits. It uses safe guardrails to ensure that transformations like restructuring and variable renaming improve readability without breaking the original behavior.