Skip to content
Back to skills

Simplify Code

ASecurity

Parallel 4-agent cleanup of recent code changes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 14, 2026
ai-agentsgorefactoringcode-reviewgit

Works with

  • claude code
  • cli

Security analysis

A100/100

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

Scanned October 14, 2026

npx -y skills add ctaxnagomi/agent-kd-skill --skill simplify-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simplify Code?

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

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

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-code
description: "Parallel 4-agent cleanup of recent code changes."
version: 1.0.0
author: Hermes Agent
license: MIT
platforms: [linux, macos, windows]
metadata:
  hermes:
    tags: [code-review, cleanup, refactor, simplification, parallel]
---

# Simplify Code

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

1. Identify the scope (last commit, staged, or specific files)
2. 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

1. Collect findings from all four reviewers
2. Prioritize by impact
3. Apply fixes one at a time
4. 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](https://ctaxnagomi.github.io/agent-kd-skill/) 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.

Files in this skill

  • SKILL.md2.6 KB
  • assembly.json246 B
  • skill.json594 B

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…

Newsletter

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