simplify

Simplify recently modified code while preserving exact functionality and project conventions.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/ian-pascoe/dotfiles-chezmoi --skill simplify-ian-pascoe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/ian-pascoe/dotfiles-chezmoi/tree/main/dot_agents/skills/simplify
Command: npx skills add https://github.com/ian-pascoe/dotfiles-chezmoi --skill simplify-ian-pascoe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps clean up recently modified code so it is easier to read, maintain, and review without altering its behavior.

Core Features & Use Cases

  • Code Clarity: Reduces unnecessary nesting, redundancy, and overly complex logic.
  • Consistency: Aligns code with project conventions such as import ordering, explicit types, and naming patterns.
  • Safe Refinement: Focuses only on recently touched code to preserve functionality while improving maintainability.
  • Use Case: After finishing a feature or fix, use this Skill to simplify the changed code before opening a review.

Quick Start

Ask the assistant to simplify the recently modified code while preserving exact functionality and project conventions.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I simplify recently modified TypeScript code without changing its behavior?

To simplify recently modified TypeScript code without changing behavior, refine the touched files to reduce nesting and redundancy while enforcing project conventions like ES module import ordering and explicit types. This approach improves readability and maintainability before opening a code review.

What is the best way to clean up JavaScript code for readability before a review?

The best way to clean up JavaScript code before a review is to run a refinement pass on the recently touched code. This reduces unnecessary complexity and aligns the logic with project conventions like explicit types and clearer control flow without altering functionality.

Does code refactoring for readability affect existing functionality?

Code refactoring for readability does not affect existing functionality when focusing strictly on recently touched code. Safe refinement reduces redundancy and aligns conventions while preserving the exact behavior established during your recent implementation.

Can I enforce ES module import ordering and explicit types during code simplification?

You can enforce ES module import ordering and explicit types during code simplification. The process aligns your recently modified code with these specific project conventions, ensuring consistency and clarity while maintaining the original logic.

When do I need to run a code cleanup pass on my project?

You need to run a code cleanup pass immediately after finishing a feature or fix. Applying simplification to recently written or touched code ensures it meets project conventions and is ready for a maintainable, readable review.

Why should I simplify code before opening a review instead of during implementation?

Simplifying code before opening a review separates feature logic from cleanup concerns. This dedicated refinement pass reduces nesting and enforces consistency across recently modified files, yielding cleaner, more maintainable code for reviewers.