Review recent code changes with four focused reviewers running in parallel, aggregate findings, and apply fixes. Each reviewer looks for one class of problem: reuse, quality, efficiency, or altitude.
When to Use
After completing a feature or fix
Before merging a PR
When code feels complex or duplicated
Periodic cleanup of working code
Procedure
Phase 1: Get the Diff
Identify the scope (last commit, staged, or specific files)
Get the diff: git diff, git diff --cached, or git diff HEAD~1
Phase 2: Four Reviewers in Parallel
Reviewer 1 — Reuse
Find duplicated logic that should be shared
Identify similar patterns that could be abstracted
Reviewer 2 — Code Quality
Check for parameter sprawl
Find near-duplicate functions
Identify unnecessary complexity
Reviewer 3 — Efficiency
Find unnecessary allocations or computations
Identify missing caching opportunities
Spot wasteful operations
Reviewer 4 — Altitude
Find band-aid fixes instead of root causes
Identify special cases that should be generic
Spot config flags introduced to avoid fixing the real problem
Phase 3: Aggregate and Apply
Collect findings from all four reviewers
Prioritize by impact
Apply fixes one at a time
Run tests after each change
Pitfalls
Trying to fix everything at once
Not running tests between changes
Being too aggressive with refactoring
Breaking working code for marginal improvements
Verification
Tests still pass
Code is simpler than before
No duplicated logic remains
Each change has a clear rationale
How to use?
1. Download
Go to the AGENT KD SKILL gallery and find this skill card. Click Download to save the SKILL.md file.
2. Install
Copy the downloaded SKILL.md into your agent's skills directory:
Agent
Path
Hermes
~/.hermes/skills/hermes/simplify-code/SKILL.md
opencode
~/.config/opencode/skills/simplify-code/SKILL.md
Claude Code
~/.claude/skills/simplify-code/SKILL.md
3. Use
Restart your agent session. The skill will auto-load when simplification is needed.
4. Verify
Ask your agent to simplify code. If it runs the four reviewers and applies targeted fixes, you're all set.
1---2name: simplify-code3description: Parallel 4-agent cleanup of recent code changes.4license: MIT5---67# Simplify Code89Review recent code changes with four focused reviewers running in parallel, aggregate findings, and apply fixes. Each reviewer looks for one class of problem: reuse, quality, efficiency, or altitude.1011## When to Use1213- After completing a feature or fix14- Before merging a PR15- When code feels complex or duplicated16- Periodic cleanup of working code1718## Procedure1920### Phase 1: Get the Diff21221. Identify the scope (last commit, staged, or specific files)232. Get the diff: `git diff`, `git diff --cached`, or `git diff HEAD~1`2425### Phase 2: Four Reviewers in Parallel2627**Reviewer 1 — Reuse**28- Find duplicated logic that should be shared29- Identify similar patterns that could be abstracted3031**Reviewer 2 — Code Quality**32- Check for parameter sprawl33- Find near-duplicate functions34- Identify unnecessary complexity3536**Reviewer 3 — Efficiency**37- Find unnecessary allocations or computations38- Identify missing caching opportunities39- Spot wasteful operations4041**Reviewer 4 — Altitude**42- Find band-aid fixes instead of root causes43- Identify special cases that should be generic44- Spot config flags introduced to avoid fixing the real problem4546### Phase 3: Aggregate and Apply47481. Collect findings from all four reviewers492. Prioritize by impact503. Apply fixes one at a time514. Run tests after each change5253## Pitfalls5455- Trying to fix everything at once56- Not running tests between changes57- Being too aggressive with refactoring58- Breaking working code for marginal improvements5960## Verification6162- Tests still pass63- Code is simpler than before64- No duplicated logic remains65- Each change has a clear rationale6667---6869## How to use?7071### 1. Download72Go to the [AGENT KD SKILL gallery](https://ctaxnagomi.github.io/agent-kd-skill/) and find this skill card. Click **Download** to save the SKILL.md file.7374### 2. Install75Copy the downloaded SKILL.md into your agent's skills directory:7677| Agent | Path |78|-------|------|79| **Hermes** | ~/.hermes/skills/hermes/simplify-code/SKILL.md |80| **opencode** | ~/.config/opencode/skills/simplify-code/SKILL.md |81| **Claude Code** | ~/.claude/skills/simplify-code/SKILL.md |8283### 3. Use84Restart your agent session. The skill will auto-load when simplification is needed.8586### 4. Verify87Ask your agent to simplify code. If it runs the four reviewers and applies targeted fixes, you're all set.
Run npx get-skill add ctaxnagomi/simplify-code in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Parallel 4-agent cleanup of recent code changes. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
ctaxnagomi (@ctaxnagomi) published this skill. Their other Agent Skills are listed on their SkillMD profile.