Skip to content
Back to skills

Simplify

ASecurity

Review code for unnecessary complexity and simplify it. Use when the user wants to clean up code, reduce complexity, remove dead code, or make code more readable.

  • 206 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 22, 2026
toolsrustbash

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add NVlabs/Skill2Env --skill simplify --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simplify?

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

Security grade badge for Simplify
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvlabs-simplify/badge)](https://www.skillsdirectory.com/skills/nvlabs-simplify)

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: simplify
description: Review code for unnecessary complexity and simplify it. Use when the user wants to clean up code, reduce complexity, remove dead code, or make code more readable.
allowed-tools: Bash, Read, Grep, Glob, Edit, Write
---

# Code Simplification

Review the specified code (or recent changes) for unnecessary complexity and simplify it.

## What to look for

1. **Over-abstraction** — helpers, utilities, or wrapper functions used only once. Inline them.
2. **Unnecessary indirection** — callback chains, event buses, or service layers that just pass data through.
3. **Defensive overkill** — error handling for impossible cases, null checks deep inside trusted internal code.
4. **Dead code** — unused imports, unreachable branches, commented-out blocks, unused variables.
5. **Complex conditionals** — nested if/else that could be early returns, switch statements that could be lookups.
6. **Premature generalization** — config objects for one use case, plugin systems with one plugin, factory patterns for one type.
7. **Redundant comments** — comments that restate the code instead of explaining why.

## Principles

- Three similar lines of code are better than a premature abstraction
- Delete code rather than add it when possible
- If removing something breaks nothing, it shouldn't have been there
- The right amount of complexity is the minimum needed for the current requirements
- Don't design for hypothetical future requirements

## Process

1. Read the target files
2. For each issue found, explain what's overly complex and why it can be simplified
3. Show the simplified version
4. Apply the fix
5. Verify the changes don't break anything (run tests if available)

$ARGUMENTS

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.

View all in tools →

Comments

Loading comments…

Newsletter

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