clean-simple-code

Community

Make code simpler, safer, and easier.

Authornthpaul
Version1.0.0
Installs0

System Documentation

What problem does it solve?

clean-simple-code helps you reduce complexity in an existing codebase by removing unnecessary logic, collapsing invalid states, tightening types, and eliminating fake optionality so the behavior is easier to understand and maintain.

Core Features & Use Cases

  • Remove unnecessary code: Delete dead code, unused branches, redundant indirection, and hypothetical flexibility that hides straightforward behavior.
  • Reduce possible states: Prefer fewer states, use narrower types or discriminated unions, and collapse overlapping flags or parameters into one clear model.
  • Tighten APIs: Remove optionality that is not truly optional and avoid override parameters unless there is a real current need.
  • Keep behavior obvious: Eliminate special cases where the logic can be modeled directly, and avoid parallel sources of truth when a derived value will do.
  • Verify the cleanup: Confirm behavior is preserved and update tests when reachable branches or the public surface change.

Quick Start

Ask your AI to perform a focused cleanup pass on the following code by removing dead code, reducing states, tightening types and optionality, and keeping only real extension points while preserving behavior.

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: clean-simple-code
Download link: https://github.com/nthpaul/dotfiles/archive/main.zip#clean-simple-code

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 471,000+ vetted skills library on demand.