ce:simplify-code

Simplifies recent code changes using three parallel review agents while preserving behavior.

6|2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Jerrylalala/compound-engineering --skill ce-simplify-code-jerrylalala
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ce:simplify-code
Source: https://github.com/Jerrylalala/compound-engineering/tree/main/plugins/compound-engineering/skills/ce-simplify-code
Command: npx skills add https://github.com/Jerrylalala/compound-engineering --skill ce-simplify-code-jerrylalala

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code written quickly during feature work often accumulates duplication, redundant state, and inefficiencies. This Skill reviews your recent changes for reuse, quality, and efficiency issues, fixes them directly, and verifies that behavior stays identical through typecheck, lint, and tests. ## Core Features & Use Cases - Scoped Review: Automatically resolves the simplification scope from an explicit user request, the current branch diff against its base, or recently modified files. - Three Parallel Review Agents: Dispatches a Code Reuse Reviewer, a Code Quality Reviewer, and an Efficiency Reviewer simultaneously to catch duplication, hacky patterns, dead code, and performance issues. - Behavior-Preserving Fixes: Applies fixes directly, then runs typecheck, lint, and scoped tests to confirm nothing broke, reverting any change that causes a regression. - Use Case: Before opening a pull request on a feature branch, run this Skill to clean up everything you added — it flags copy-pasted logic, unused imports, N+1 patterns, and unnecessary wrapper components, then fixes them and proves the tests still pass. ## Quick Start Ask the assistant to simplify the changes on my current branch before I open a pull request.

Frequently Asked Questions about ce:simplify-code

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

FAQPage Schema
How do I simplify code changes before opening a pull request?▼

Run the skill with no arguments inside a git repository. It defaults to the diff between your current branch and its base branch, reviews the changes with three parallel agents, fixes issues, and verifies behavior with typecheck, lint, and tests.

How to review code for duplication and dead code automatically?▼

The Code Quality Reviewer agent flags copy-paste blocks, unused imports, dead code, and redundant state, while the Code Reuse Reviewer finds existing utilities that replace newly written logic. Findings are fixed directly rather than just reported.

Can I limit the simplification to specific files or directories?▼

Yes. Explicitly naming a scope such as a file, directory, or a specific function makes that scope authoritative, and the skill will not widen it. Without a named scope it falls back to the branch diff or recently modified files.

Does code simplification change the behavior of my program?▼

No. The skill's core premise is preserving exact functionality. After fixes it runs typecheck, lint, and tests scoped to the changed paths, and reverts any individual change that causes a regression rather than weakening assertions.

What happens if my project has no test suite or linter configured?▼

The skill states explicitly in its summary that no verification tooling was configured instead of silently skipping. It never relaxes assertions or skips available checks to make results pass.