# Simplify

> Review changed code for reuse, quality, and efficiency, then fix issues found

- Skill: `itmada/simplify` (Agent Skill)
- Install (CLI): `npx skillmds@latest add itmada/simplify`
- Raw SKILL.md: https://api.skillmd.com/api/skills/itmada/simplify/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: itmada (https://skillmd.com/u/itmada)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/itmada/simplify

---


# Simplify: Code Review and Cleanup

Review all changed files for reuse, quality, and efficiency. Fix any issues found.

## Phase 1: Identify Changes

Run `git diff` (or `git diff HEAD` if there are staged changes) to see what changed.

## Phase 2: Review

### Code Reuse
- Search for existing utilities that could replace new code.
- Flag duplicate functionality — suggest the existing function.
- Flag inline logic that could use an existing utility.

### Code Quality
- Redundant state or cached values that could be derived.
- Copy-paste with slight variation — unify with a shared abstraction.
- Unnecessary comments explaining WHAT the code does.
- Raw strings where constants or enums already exist.

### Efficiency
- Redundant computations, repeated file reads.
- Independent operations run sequentially when they could be parallel.
- Unnecessary existence checks before operating (TOCTOU).

## Phase 3: Fix

Fix each issue directly. If a finding is a false positive, note it and move on.
When done, briefly summarize what was fixed (or confirm the code was already clean).

Preserve behavior. Prefer small mechanical refactors. Avoid unrelated rewrites.

