Skip to content
Skills Library
Programming · Review & audit

simplify

/simplify

Review code for readability, reuse, and simplicity. Triggered by "/simplify" when user wants to refactor complex code, remove duplication, or improve clarity.

Author
x-cmd ↗
Repository
x-cmd ↗
Licence
Apache-2.0
Last repository change
24.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
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

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

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Review code for readability, reuse, and simplicity. Triggered by "/simplify" when user wants to refactor complex code, remove duplication, or improve clarity.

Original author description

Review code for readability, reuse, and simplicity. Triggered by "/simplify" when user wants to refactor complex code, remove duplication, or improve clarity.

How it works

  1. Trigger
  2. Steps
  3. Output Format
  4. Constraints
Original SKILL.md headings · 69 lines, 218 words
SKILL.md preview
---
name: simplify
description: Review code for readability, reuse, and simplicity. Triggered by "/simplify" when user wants to refactor complex code, remove duplication, or improve clarity.
tools: Bash, Read
---

# Code Simplifier

## Trigger

Use when:
- User says `/simplify`
- User asks to refactor, clean up, or make code more readable
- Complex functions, deep nesting, or duplication detected

Do NOT use when:
- User asks for performance optimization (use `/optimize`)
- User asks for security audit (use `/security-review`)

## Steps

### Step 1: Gather Code

```bash
git diff main..HEAD --stat
```

For specific files:
```bash
cat path/to/file
```

### Step 2: Analyze Issues

Checklist:
- **Readability**: Functions >50 lines, nesting >3 levels, unclear names, magic numbers
- **Reuse**: Duplicated blocks, similar patterns, custom implementations where stdlib exists
- **Complexity**: Over-engineering, premature optimization, feature envy, shotgun surgery

### Step 3: Generate Report

Use the output format below.

## Output Format

```markdown
## Simplification Review

### Readability Issues
| File | Line | Issue | Suggestion |
|------|------|-------|------------|
| ... | ... | ... | ... |

### Duplication Found
```python
# file1:X and file2:Y are identical
# → Extract to shared module
```

### Complexity Concerns
- [Specific issues]

### Suggested Refactors
1. [Action with file:line]
2. [Action with file:line]
```

## Constraints

- Only suggest changes with clear benefit
- Three similar lines is better than premature abstraction
- Prefer explicit over clever
- Do NOT auto-apply changes; present suggestions and wait for user confirmation

Versions

RepositoryScoreLicence
This page · x-cmd/x-cmd100Apache-2.0
qwenlm/qwen-code100Apache-2.0
fcakyon/claude-codex-settings100Apache-2.0
gosuda/dalcom-skills100Apache-2.0
ahgraber/skills100CC0-1.0
Ovich/charrette100MIT
maquina-app/rails-claude-code100MIT
mo-cmyk/mazarbul100Apache-2.0
jscraik/Agent-Skills100Apache-2.0

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

  • 100arn-code-simplify
    This skill should be used when the user says "simplify", "arness code simplify", "simplify code", "code simplification", "clean up code", "reduce complexity", "remove duplication", "check for reuse", "find duplicates", "optimize code", "efficiency review", "simplify…
  • 100claude-simplify
    Review changed code for reuse, quality, and efficiency, then fix the issues found by launching three parallel review agents (reuse, quality, efficiency) over the diff. Use after completing a feature or bugfix, before committing or opening a PR, or whenever the user asks to…
  • 90general-code-review
    Use when a backpressured code-review subagent is reviewing a diff for correctness/logic, simplicity/reuse, or test-quality defects — everything except type design. The default reviewer dimension.
  • 90refactor-safely
    Refactor code without changing what it does (rename, extract, split files, remove duplication, simplify). Use when the user says "clean this up", "refactor", "split this file", "simplify this function", "rename X everywhere", or "remove this duplication".
  • 90subagent-review
    Review changed code for reuse, quality, and efficiency using three parallel disposable subagents. This skill should be used when the user says "review", "simplify", "code review", or wants a one-shot code review without persistent reviewers.
  • 86code-review
    Use when asked to review, audit, clean up or simplify code or a pull request.

Feedback and reports

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