Skip to content
Back to skills

Code Simplifier 13

ASecurity

Refactor complex or duplicated code without changing behavior. Use for refactoring tasks, simplifying logic, or improving readability.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualityrefactoring

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-simplifier-13 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Simplifier 13?

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

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

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: Refactor complex or duplicated code without changing behavior. Use for refactoring tasks, simplifying logic, or improving readability.
---

# Code Simplification

## Rules

- Do not change behavior.
- Prefer small, safe steps.
- Add or update tests if coverage is missing.

## Workflow

1. Read the target code and identify complexity drivers.
2. Plan minimal refactors (early returns, extraction, deduplication).
3. Apply changes incrementally and keep intent clear.
4. Run relevant tests and linters.

## Heuristics

- Keep functions ~20 lines when possible.
- Limit nesting depth to 3.
- Reduce argument count to 4 or fewer.
- Replace magic numbers with constants.

## Report format

```
## Code Simplification Report

### Target files
- path

### Issues found
1. [Type] function - description

### Changes made
1. file:line - before/after summary

### Follow-ups
- tests to run
```

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…