New advertisers: 50% off your first month with code FIRSTMONTHSee slots
pproenca avatar

Code Simplifier

Concise guide that simplifies recently modified code while preserving exact behavior across 47 rules.

skills.sh installs
1.6K
GitHub stars
227
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers context discovery, behavior preservation, scope management, control flow, naming, duplication, dead code, and language idioms
  • Lists 47 rules in 8 prioritized categories, from CRITICAL context and behavior checks down to LOW-MEDIUM language idioms
  • Enforces reading CLAUDE.md and lint configs first, with project conventions overriding generic best practices
  • Designed for AI agents and LLMs performing cleanup, refactoring, or readability work on recent changes

Install

$ npx -y skills add pproenca/dot-skills --skill code-simplifier -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Community Code Simplification Best Practices

Comprehensive code simplification guide for AI agents and LLMs. Contains 47 rules across 8 categories, prioritized by impact from critical (context discovery, behavior preservation) to incremental (language idioms). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics.

Core Principles

  1. Context First: Understand project conventions before making any changes
  2. Behavior Preservation: Change how code is written, never what it does
  3. Scope Discipline: Focus on recently modified code, keep diffs small
  4. Clarity Over Brevity: Explicit, readable code beats clever one-liners

When to Apply

Reference these guidelines when:

  • Simplifying or cleaning up recently modified code
  • Reducing nesting, complexity, or duplication
  • Improving naming and readability
  • Applying language-specific idiomatic patterns
  • Reviewing code for maintainability issues

Rule Categories by Priority

Details

Repository
github.com/pproenca/dot-skills
Category
Code Review & Quality
First seen
May 16, 2026

More from pproenca/dot-skills

All 100

Similar to Code Simplifier

More Code Review & Quality