Skip to content
Back to skills

Simplify

ASecurity

Review changed code for reuse, quality (simplification), efficiency, and altitude (root-cause depth), then fix issues found. Spawns four parallel review subagents using inline reviewer checklists and aggregates findings into fixes. Cleanup only — not for bug hunting or merge-readiness review.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
developmentshellgitperformance

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add yyykf/spellbook-skills --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/yyykf-simplify/badge)](https://www.skillsdirectory.com/skills/yyykf-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 changed code for reuse, quality (simplification), efficiency, and altitude (root-cause depth), then fix issues found. Spawns four parallel review subagents using inline reviewer checklists and aggregates findings into fixes. Cleanup only — not for bug hunting or merge-readiness review."
---

# Simplify: Code Review and Cleanup

## Overview

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

**Core principle:** Identify changes -> Spawn four review subagents in parallel with inline checklists -> Fix issues.

**Announce at start:** "I'm using the simplify skill to review changed code for reuse, quality, efficiency, and altitude."

## Prerequisites

- A git repository with uncommitted changes or commits not yet on the upstream/default branch.

## Workflow

### Phase 1: Identify Changes

If the user passed a PR number, branch name, or file path, review that target instead (for a PR, `gh pr diff <number>`).

Otherwise run `git diff @{upstream}...HEAD` (if there is no upstream, `git diff main...HEAD` against the default branch, or `git diff HEAD~1`) to see what this branch changed. If there are uncommitted changes, or the range diff is empty, also run `git diff HEAD` and include the working-tree changes — this skill often runs before the commit.

If there are no git changes at all, review the most recently modified files that the user mentioned or that were edited earlier in this conversation.

Save the full diff output — it will be passed to each review subagent.

### Phase 2: Spawn Four Review Subagents in Parallel

Read the four reviewer checklist templates from `references/` and launch all four review passes concurrently in a single message. Pass each subagent its corresponding checklist and the full diff as context (subagents should stay read-only and only report findings):

| Reviewer Pass | Checklist Reference | Focus |
|---|---|---|
| Code Reuse | [references/code-reuse-reviewer.md](references/code-reuse-reviewer.md) | Finds duplicated logic and missed existing utilities |
| Code Quality | [references/code-quality-reviewer.md](references/code-quality-reviewer.md) | Finds unnecessary complexity and hacky patterns that hurt maintainability (simplification) |
| Code Efficiency | [references/code-efficiency-reviewer.md](references/code-efficiency-reviewer.md) | Finds performance and resource issues |
| Code Altitude | [references/code-altitude-reviewer.md](references/code-altitude-reviewer.md) | Finds symptom patches and special cases that should be fixed at the root cause |

Pass each subagent a prompt containing its checklist instructions plus:

> Review the following diff for [reuse/quality/efficiency/altitude] issues and return findings in the checklist's output format. Do not modify files.
>
> ```diff
> <full diff here>
> ```

**Platform dispatch:**

- **Antigravity:** Call `invoke_subagent` four times concurrently in one turn using the built-in read-only `TypeName: "research"` (or `"self"` if shell inspection outside read-only scope is needed), with distinct `Role` values (`Code Reuse Reviewer`, `Code Quality Reviewer`, `Code Efficiency Reviewer`, `Code Altitude Reviewer`).
- **Claude Code / GitHub Copilot CLI:** Call the built-in `Agent` tool four times concurrently in one turn (general-purpose subagent), passing each checklist and the full diff.
- **Codex:** Call `spawn_agent` four times concurrently in one turn (read-only exploration/review), passing each checklist and the full diff.
- **Pi:** Spawn four concurrent subagents (or general-purpose workers) in one turn, passing each checklist and the full diff.
- **Platforms without parallel subagent support:** Run the four reviews sequentially yourself using each checklist in `references/`.

### Phase 3: Fix Issues

Wait for all four subagents to complete. Dedup findings that point at the same line or mechanism, then fix each remaining issue directly. Skip any finding whose fix would change intended behavior, require changes well outside the reviewed diff, or that you judge to be a false positive — note the skip and move on; do not argue with the finding.

### Phase 4: Summary

Briefly summarize what was fixed and what was skipped (or confirm the code was already clean).

## Notes

- This is a cleanup pass, not a formal code review — it does not hunt for correctness bugs. After this skill, use a dedicated review skill or process when merge readiness needs to be judged.
- Keep fixes small and local — preserve behavior exactly.
- Run the narrowest practical verification for the touched area when possible.

## References

- [code-reuse-reviewer.md](references/code-reuse-reviewer.md) — checklist and output format for duplicated logic and missed utilities (~30 lines)
- [code-quality-reviewer.md](references/code-quality-reviewer.md) — checklist and output format for maintainability anti-patterns and simplification (~35 lines)
- [code-efficiency-reviewer.md](references/code-efficiency-reviewer.md) — checklist and output format for performance and resource issues (~35 lines)
- [code-altitude-reviewer.md](references/code-altitude-reviewer.md) — checklist and output format for root-cause depth and symptom patches (~35 lines)

Files in this skill

  • SKILL.md5.1 KB
  • references/code-altitude-reviewer.md1.4 KB
  • references/code-efficiency-reviewer.md1.9 KB
  • references/code-quality-reviewer.md1.8 KB
  • references/code-reuse-reviewer.md1.2 KB

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 development →

Comments

Loading comments…

Newsletter

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