pproenca avatar

Code Simplifier

A comprehensive refactoring rulebook packaged as a Claude skill. It walks through 47 specific rules across 8 categories, from critical stuff like reading CLAUDE.md and preserving behavior to lower priority items like language-specific idioms. The priority system is sensible: context discovery and behavior preservation come first, then scope management and control flow, finally naming and dead code cleanup. Each rule links to detailed examples with before/after code. The approach is pragmatic, emphasizing small diffs, existing project conventions over generic best practices, and explicit code over clever one-liners. Worth noting the rule of three forduplication and the emphasis on recently modified code only. Good for teams wanting consistent refactoring standards without the usual hand-waving about clean code.

skills.sh installs
1.6K
GitHub stars
222
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from pproenca/dot-skills

All 100
1nvidia avatartao-train-grounding-dinonvidia/skillsGrounding DINO for open-set object detection. Combines DINO-style detection with a BERT text encoder for language-guided detection — detects objects described b1.6Kskills.sh installs
2nvidia avatartao-train-mask2formernvidia/skillsMask2Former for universal image segmentation (panoptic, instance, and semantic). Transformer-based with masked attention for high-quality segmentation results. 1.6Kskills.sh installs
3jezweb avatarproject-healthjezweb/claude-skillsAll-in-one project configuration and health management. Sets up new projects (settings.local.json, CLAUDE.md, .gitignore), audits existing projects (permissions1.6Kskills.sh installs
4nvidia avatartao-train-oneformernvidia/skillsOneFormer for universal image segmentation. Unifies panoptic, instance, and semantic segmentation with a single architecture using task-conditioned queries. Use1.6Kskills.sh installs
5cursor avatarpoteto-modecursor/pluginspoteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work.1.6Kskills.sh installs
6akin-ozer avataransible-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN, tasks.1.6Kskills.sh installs