ce-simplify-code

Simplify changed source code while preserving behavior and passing tests.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-simplify-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-simplify-code
Source: https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026/tree/main/.agents/skills/compound-engineering/skills/ce-simplify-code
Command: npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-simplify-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplification of recently changed code to improve clarity, reuse, and maintainability while preserving exact functionality.

Core Features & Use Cases

  • Identify and refactor redundant or unclear logic in changed files.
  • Apply project-specific conventions to naming, structure, and documentation.
  • Use case: given a feature branch with a bug fix, automatically simplify code and verify that tests pass.

Quick Start

Run the simplification workflow on the current branch and verify the behavior with the test suite.

Frequently Asked Questions about ce-simplify-code

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

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

Refactoring code without changing behavior is achieved by analyzing the diff between your current branch and base, applying targeted simplifications to modified files, and verifying preserved functionality by running the test suite.

Can I simplify code across an entire feature branch automatically?

Yes, you can simplify code across a feature branch by applying the refactoring workflow to the diff of changed files and their associated tests, ensuring maintainability improvements are isolated to recent modifications.

What is the best way to maintain code quality when fixing bugs?

Maintaining code quality during bug fixes involves simplifying the newly changed logic, applying project-specific conventions to naming and structure, and validating that the test suite passes to confirm original behavior remains intact.

Do I need a test suite to verify code simplification?

Yes, running the test suite is required to verify code simplification, ensuring the refactored logic in the modified files adheres to project-specific guidelines while preserving exact functionality.

Does code simplification apply to the entire codebase or just modified files?

Code simplification applies specifically to the diff between the current branch and its base, targeting only recently modified source files and their corresponding tests for focused refactoring and improved maintainability.

When should I not use automated code simplification on a branch?

You should avoid automated code simplification when your feature branch lacks a reliable test suite, as verifying preserved behavior through testing is required to confirm the refactor does not alter functionality.