What problem does it solve?
This Skill addresses the issue of unnecessary complexity in code, making it harder to read, maintain, or extend. It helps streamline code while preserving its functionality.
Core Features & Use Cases
- Preserve Behavior Exactly: Refactor code while ensuring it doesn't change in terms of input, output, or behavior.
- Follow Project Conventions: Maintain consistency with the project's coding conventions.
- Prefer Clarity Over Cleverness: Emphasize clear and straightforward code over compact but cryptic solutions.
- Maintain Balance: Avoid over-simplification and keep a balance between simplicity and functionality.
- Scope to What Changed: Focus on simplifying recently modified code.
- Language-Specific Guidance: Provides guidance for simplifying code in TypeScript/JavaScript, Python, and React/JSX.
- Use Cases: Ideal for refactoring post-implementation, during code review, and when encountering deeply nested logic or unclear names.
Quick Start
Run the code-simplification skill on your codebase to identify and simplify complex code patterns.