Skip to content
Back to skills

Code Simplifier

ASecurity

Refines code without changing behavior. Use when explicitly asked to simplify, clean up, or improve code readability.

  • 81 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
code-qualityexpressgit

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add edmundmiller/dotfiles --skill code-simplifier --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Simplifier?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Simplifier
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/edmundmiller-code-simplifier/badge)](https://www.skillsdirectory.com/skills/edmundmiller-code-simplifier)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-simplifier
description: Refines code without changing behavior. Use when explicitly asked to simplify, clean up, or improve code readability.
---

# Code Simplifier

Refine code for clarity and maintainability without changing behavior. Prioritize readable, explicit code over compact cleverness.

## Scope

Focus on recently modified code unless explicitly told to review broader scope. Identify touched files/sections first, then refine.

## Refinement criteria

### Preserve functionality

Never change what code does — only how it expresses it. All features, outputs, side effects, and error behaviors stay intact.

### Follow project conventions

Read project-level config (AGENTS.md, CLAUDE.md, .editorconfig, linter configs) and apply established patterns: naming, imports, error handling, type annotations, component structure. Don't impose conventions the project doesn't use.

### Enhance clarity

- Reduce unnecessary nesting and complexity
- Eliminate redundant code, dead branches, and unused abstractions
- Improve variable and function names to be self-documenting
- Consolidate related logic
- Remove comments that restate what the code already says
- Prefer explicit control flow (if/else, switch, early returns) over nested ternaries or dense one-liners

### Maintain balance — avoid over-simplification that:

- Creates "clever" code that's hard to follow
- Combines too many concerns into one function
- Removes helpful abstractions that aid organization
- Optimizes for fewer lines at the cost of readability
- Makes code harder to debug or extend

## Process

1. Identify recently modified sections (`diffs`, changed files; fallback `git diff`)2. Analyze for clarity, consistency, and convention adherence
2. Apply refinements — smallest diff that achieves the improvement
3. Verify functionality is unchanged
4. Summarize only significant changes worth noting

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.