easy-and-clean

Community

Make PR changes minimal, readable, and safe.

Authornthpaul
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the problem of messy, overcomplicated TypeScript/React branch diffs by enforcing a minimal, skimmable style that reduces state and avoids unnecessary edits.

Core Features & Use Cases

  • Discriminated unions & exhaustive handling: Use union types with switch on a discriminant and fail on unknown variants to keep logic correct and readable.
  • Minimal state & argument minimization: Reduce the number of arguments and states by narrowing/wrapping less and removing optionality when not required.
  • Straight-line, opinionated code edits: Prefer asserts at boundaries and early returns, and remove changes not strictly required to keep diffs small.

Quick Start

Ask your AI to rewrite your current TypeScript/React branch change to follow the easy-and-clean rules, minimizing diff size, using discriminated unions with exhaustive handling, and replacing defensive code with asserts.

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

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.