code-simplifier

Refactor recently modified JavaScript/TypeScript modules for readability and maintainability.

17|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/timhiebenthal/trellis-datamodel --skill code-simplifier-timhiebenthal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/timhiebenthal/trellis-datamodel/tree/main/.claude/skills/code-simplifier
Command: npx skills add https://github.com/timhiebenthal/trellis-datamodel --skill code-simplifier-timhiebenthal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers clean up recently modified code to improve readability, consistency, and maintainability without changing its functionality.

Core Features & Use Cases

  • Refactors repetitive patterns and enforces project-specific style guides to ensure uniform coding conventions.
  • Removes dead or redundant code while preserving existing behavior and functionality.
  • Tooling-assisted guidance for real-world scenarios like consolidating similar functions, renaming ambiguous identifiers, and simplifying complex conditionals.

Quick Start

Run code-simplifier on the recently changed files to generate a cleaned version that preserves behavior while aligning with project standards.

Frequently Asked Questions about code-simplifier

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

FAQPage Schema
How do I refactor TypeScript code without changing behavior?

To refactor TypeScript code without changing behavior, you clean up recently modified files to improve readability, consistency, and maintainability while preserving exact functionality. This process removes dead code and aligns modules with project standards.

What is the best way to simplify complex conditionals in JavaScript modules?

Simplifying complex conditionals in JavaScript modules involves flattening nested logic and enforcing explicit function naming. This refactoring approach ensures safe, predictable code execution while aligning with project-specific style guides.

Can I remove redundant code while preserving existing functionality?

Yes, you can remove dead or redundant code while preserving existing functionality. By consolidating similar functions and renaming ambiguous identifiers, the codebase maintains its original behavior but becomes significantly cleaner.

Does code refactoring work with project-specific style guidelines?

Code refactoring works directly with project-specific style guidelines by standardizing patterns across JavaScript and TypeScript modules. It applies tooling-assisted guidance to enforce uniform coding conventions and robust error handling.

When should I not use automated code simplification?

You should not use automated code simplification when a module requires nested conditionals for specific logic constraints or lacks test coverage. It is designed for safe, predictable refactors of recently changed files, not architectural rewrites.

How do I standardize coding patterns across recently modified files?

Standardizing coding patterns across recently modified files requires running a refactor process that enforces explicit naming and non-nested conditionals. This generates a cleaned version that preserves behavior while aligning with project standards.