Skip to content
Skills Library
Programming · Building & coding

code-simplifier

/code-simplifier

Use when user asks to simplify, clean up, or refactor recently modified code for readability, consistency, or maintainability without changing behavior, especially after implementation and before broader review.

Licence
MIT
Last repository change
18.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when user asks to simplify, clean up, or refactor recently modified code for readability, consistency, or maintainability without changing behavior, especially after implementation and before broader review.

Original author description

Use when user asks to simplify, clean up, or refactor recently modified code for readability, consistency, or maintainability without changing behavior, especially after implementation and before broader review.

How it works

  1. Overview
  2. When to Use
  3. Workflow
  4. Quick Reference
  5. Common Mistakes
  6. Upstream Reference
Original SKILL.md headings · 78 lines, 505 words
SKILL.md preview
---
name: code-simplifier
description: Use when user asks to simplify, clean up, or refactor recently modified code for readability, consistency, or maintainability without changing behavior, especially after implementation and before broader review.
---

# Code Simplifier

## Overview

Simplify touched code without changing behavior. Prefer explicit, readable code over clever or overly compact rewrites, and keep scope limited to the files or sections the user just changed unless they request broader cleanup.

## When to Use

- The user asks to "simplify", "clean up", "tidy", or "refactor without changing behavior"
- Recently modified code works, but has duplication, deep nesting, noisy comments, or inconsistent naming
- A feature is complete and you want a maintainability pass before formal review
- You want one focused simplification pass, not a multi-agent review workflow

Do not use this skill for:
- Behavior changes, feature work, or bug fixes that alter requirements
- Large architectural redesigns across untouched modules
- Spec alignment review, security review, or performance review
- Three-reviewer cleanup workflows; use `simplify` for that

## Workflow

### 1. Define the Scope

- Use user-specified files or ranges if provided
- Otherwise inspect recent changes with `git diff`, `git diff --name-only`, or `git status`
- Default to touched code only; do not expand into unrelated cleanup

### 2. Read Local Standards

- Check project instructions first such as `AGENTS.md`, local skill rules, and repo conventions
- Follow existing naming, formatting, and structure in the touched files
- If local conventions conflict with generic cleanup preferences, local conventions win

### 3. Simplify Without Changing Semantics

- Reduce unnecessary nesting
- Remove duplication that is truly local and obvious
- Rename variables or helpers only when clarity improves and the rename is safe
- Prefer straightforward control flow over dense one-liners
- Avoid nested ternaries; use `if/else` or `switch` for multi-branch logic
- Remove comments that only restate the code; keep comments that explain intent or constraints
- Preserve helpful abstractions; do not flatten structure just to reduce line count

### 4. Guardrails

- Do not add features, options, or speculative generalization
- Do not broaden API surface or change data contracts
- Do not rewrite untouched modules for style consistency alone
- Do not claim "no behavior change" without verification

### 5. Verify

- Run the narrowest meaningful verification for the changed area
- Prefer targeted tests first, then broader lint/build checks if appropriate
- If no automated verification exists, state that explicitly and mention residual risk

## Quick Reference

| Goal | Prefer | Avoid |
|------|--------|-------|
| Readability | Clear names, explicit branches, small coherent helpers | Dense one-liners, clever tricks |
| Scope control | Touched files, recent diff, user-specified paths | Repo-wide cleanup without request |
| Safety | Targeted verification after edits | Assuming refactor is safe |
| Comments | Intent and constraints | Narrating obvious code |

## Common Mistakes

- Turning simplification into redesign
- Extracting abstractions too early
- Renaming broadly across unrelated files
- Optimizing for fewer lines instead of easier maintenance
- Skipping verification because the change "looks mechanical"

## Upstream Reference

This Codex skill is adapted from Anthropic's `code-simplifier` plugin agent. See [references/upstream-agent.md](references/upstream-agent.md) for the source location and adaptation notes.
Files in this package (3)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • references/upstream-agent.md 1 KB

Versions

RepositoryScoreLicence
This page · valorvie/custom-skills90MIT
Shen-Ming-Hong/singular-blockly100Apache-2.0
OpenHands/extensions100MIT
duc01226/EasyPlatform100MIT
duc01226/EasyPlatform100MIT
s-hiraoku/vscode-sidebar-terminal100MIT
pproenca/dot-skills100MIT
kumaran-is/claude-code-onboarding100MIT
AnDeVerin/spur-board90MIT

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 96a1a53d00fd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90simplifier
    Expertise in simplifying and refining code for clarity, consistency, and maintainability while preserving all functionality. Use when the user asks to "simplify code", "refactor for clarity", or "clean up this file".
  • 100asdlc-code-simplifier
    Simplifies and refines code for clarity, consistency, and maintainability while preserving functionality. Use when reviewing recently modified code, refactoring for readability, applying coding standards, or reducing complexity without changing behavior.
  • 90deslop
    Reviews and simplifies changed code without changing behavior. Use for simplify, code-simplifier, cleanup, readability, reuse, efficiency, or final review-readiness requests. Not for prose editing or product scope cuts.
  • 100code-simplify
    Use when code needs simplification — recently modified code by default, or a specified scope.
  • 100simplify-code
    Use to simplify recently modified code and human-facing docs while preserving behavior and stated facts.
  • 86simplify
    Use when the user asks to simplify, clean up or refactor recently changed code without changing what it does (duplication, dead code, needless complexity).

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.