Skip to content
Skills Library
Programming · Review & audit

code-simplifier

/code-simplifier

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Analyzes recently modified code across three dimensions - code reuse, code quality, and efficiency - and provides actionable improvement suggestions. This skill should be used when the user asks to "simplify code", "refine code", "clean up code", "improve code quality", or requests a simplification review of recent changes.

Repository
extensions ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 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.
Content35 / 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
9
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.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

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Analyzes recently modified code across three dimensions - code reuse, code quality, and efficiency - and provides actionable improvement suggestions. This skill should be used when the user asks to "simplify code", "refine code", "clean up code", "improve code quality", or requests a simplification review of recent changes.

Triggers from the description

simplify coderefine codeclean up codeimprove code quality
Original author description

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Analyzes recently modified code across three dimensions - code reuse, code quality, and efficiency - and provides actionable improvement suggestions. This skill should be used when the user asks to "simplify code", "refine code", "clean up code", "improve code quality", or requests a simplification review of recent changes.

How it works

  1. Review Process
  2. Guiding Philosophy
  3. Consolidated Output Format
  4. Reference Files
Original SKILL.md headings · 86 lines, 613 words
SKILL.md preview
---
name: code-simplifier
description: Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Analyzes recently modified code across three dimensions - code reuse, code quality, and efficiency - and provides actionable improvement suggestions. This skill should be used when the user asks to "simplify code", "refine code", "clean up code", "improve code quality", or requests a simplification review of recent changes.
triggers:
  - /simplify
---

# Code Simplifier

Analyze recently modified code and suggest refinements that improve clarity, consistency, and maintainability - without changing what the code does. The review covers three complementary aspects:

1. **Code Reuse** - Eliminate duplication, consolidate shared logic, leverage existing utilities.
2. **Code Quality** - Improve naming, reduce complexity, enforce project standards from `AGENTS.md`.
3. **Efficiency** - Fix algorithmic issues, remove unnecessary work, optimize resource usage.

## Review Process

### Identify the Scope

By default, focus on recently modified code. Use `git diff` or the file list from the current PR/MR to determine the changed files. When the user specifies a different scope, follow their instruction:

- **Specific files**: "simplify `src/auth.py`" - review only the named files
- **Directory**: "simplify the `utils/` folder" - review all files in that directory
- **Full repo**: "simplify the whole project" - review the entire codebase
- **PR/MR**: "simplify this PR" - review only files changed in the current PR/MR

### Sub-Agent Delegation (Preferred)

When sub-agent capability is available, delegate each review aspect to a separate sub-agent for parallel, focused analysis:

1. **Code Reuse Review Agent** - Read `references/code-reuse-review.md` and analyze the changed files for duplication and consolidation opportunities.
2. **Code Quality Review Agent** - Read `references/code-quality-review.md` and analyze the changed files for clarity, naming, complexity, and standards compliance.
3. **Efficiency Review Agent** - Read `references/efficiency-review.md` and analyze the changed files for performance and resource usage issues.

Each sub-agent should:
- Read the corresponding reference document for detailed criteria and output format
- Read `AGENTS.md` at the repository root for project-specific coding conventions
- Analyze only the recently changed code (unless instructed otherwise)
- Return findings in the format specified by its reference document

After all sub-agents complete, synthesize their findings into a single consolidated report.

### Sequential Review (Fallback)

When sub-agents are not available, perform all three reviews sequentially:

1. Read `references/code-reuse-review.md` - review for duplication and reuse
2. Read `references/code-quality-review.md` - review for clarity and standards
3. Read `references/efficiency-review.md` - review for performance and resources

Apply the criteria and output format from each reference document.

## Guiding Philosophy

- **Preserve Functionality**: Never change what the code does - only how it does it. All original features, outputs, and behaviors remain intact.
- **Follow Project Standards**: Apply the coding conventions from `AGENTS.md` at the repository root (import ordering, naming, module structure, error handling, component patterns).
- **Clarity Over Brevity**: Prefer explicit, readable code over compact one-liners. Avoid nested ternaries - use `if/else` or `switch` for multiple conditions.
- **Maintain Balance**: Avoid over-simplification that reduces clarity, creates overly clever solutions, or combines too many concerns into a single function.
- **Pragmatism**: Solve real problems, not imaginary ones. Do not optimize for theoretical edge cases or micro-benchmarks that do not matter at the project's scale.

## Consolidated Output Format

Present the combined results from all three review aspects:

```
## Code Simplification Review

### Scope
[List of files reviewed and how scope was determined]

### Code Reuse
[Findings from the reuse review, using **[REUSE]** tags]

### Code Quality
[Findings from the quality review, using **[QUALITY]** tags]

### Efficiency
[Findings from the efficiency review, using **[EFFICIENCY]** tags]

### Summary
[Overall assessment: is the code in good shape, or does it need significant refinement?]
[Prioritized list of the most impactful changes to make first]
```

When a review aspect has no findings, include it with an explicit "no issues found" statement rather than omitting the section.

## Reference Files

- **`references/code-reuse-review.md`** - Detailed criteria for detecting duplication, consolidation opportunities, and over-abstraction
- **`references/code-quality-review.md`** - Detailed criteria for naming, complexity, error handling, and project standards compliance
- **`references/efficiency-review.md`** - Detailed criteria for algorithmic complexity, unnecessary work, resource usage, and I/O patterns
Files in this package (9)
  • .claude-plugin 1 KB
  • .codex-plugin 1 KB
  • README.md 2 KB
  • SKILL.md 5 KB
  • .plugin/plugin.json 1 KB
  • commands/simplify.md 1 KB
  • references/code-quality-review.md 4 KB
  • references/code-reuse-review.md 3 KB
  • references/efficiency-review.md 4 KB

Versions

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

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

Database snapshot: 13.11.2026 · package version d37a6c6d1a10 (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

  • 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.
  • 100deslop
    Simplify and refine recently modified code while preserving functionality. Use when asked to "deslop", "clean up code", "simplify code", or after making changes that could benefit from refinement.
  • 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".
  • 100simplify
    Simplify and refine recently modified code for clarity, consistency, reuse, and maintainability without changing behavior. Use when the user asks to simplify, clean up, refine, polish, or tidy code; when changed code is too nested, repetitive, overly clever, or off-style; or…
  • 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.

Feedback and reports

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