logic-cleaner

Community

Expression-level code cleanup, fast & maintainable.

Authorralvarezdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Expression-level code cleanup reduces boilerplate and enforces consistent style by applying guard clauses, removing magic values, and simplifying nested conditionals.

Core Features & Use Cases

  • Enforces guard clauses and early returns to reduce nested conditionals.
  • Standardizes naming conventions and extracts magic values into named constants.
  • Eliminates duplication and flattens complex expressions to improve readability across languages.
  • Use Case: When a function grows beyond a few dozen lines, apply logic-cleaner to prune branches while preserving behavior.

Quick Start

Refactor the target function to apply guard clauses, remove magic values, flatten nested conditionals, and enforce consistent naming.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: logic-cleaner
Download link: https://github.com/ralvarezdev/ralvaskills/archive/main.zip#logic-cleaner

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.