code-simplifier
Installation
SKILL.md
Code Simplifier
Analyze recently modified code and suggest refinements that improve clarity, consistency, and maintainability - without changing what the code does. The review covers three complementary aspects:
- Code Reuse - Eliminate duplication, consolidate shared logic, leverage existing utilities.
- Code Quality - Improve naming, reduce complexity, enforce project standards from
AGENTS.md. - Efficiency - Fix algorithmic issues, remove unnecessary work, optimize resource usage.
Review Process
Identify the Scope
By default, focus on recently modified code. Use git diff or the file list from the current PR/MR to determine the changed files. When the user specifies a different scope, follow their instruction:
- Specific files: "simplify
src/auth.py" - review only the named files - Directory: "simplify the
utils/folder" - review all files in that directory - Full repo: "simplify the whole project" - review the entire codebase
- PR/MR: "simplify this PR" - review only files changed in the current PR/MR