simplify-code
What it does
This skill has your AI tidy up code you have just changed, without hunting for bugs. It is for developers who want their working code made cleaner and simpler before it is shared.
When to use it
- βWhen you ask your AI to simplify or clean up your recent code changes.
- βWhen you want a review for reuse, simplicity, efficiency or design altitude.
- βWhen you want a dry run that reports cleanup ideas without changing any files.
Skill link
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/simplify-code/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSimplify my recent changes and remove any duplicated code, but do not change behavior.β
5 new skills a week. 1 minute to read.
How it works
The skill runs four focused reviewers at the same time, each looking for one kind of problem. It then combines their findings and applies the fixes that are worth making.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Simplify Code β Parallel Review & Cleanup
Review your recent code changes with four focused reviewers running in parallel, aggregate their findings, and apply the fixes worth applying.
This is a cleanup pass, not a bug hunt. You are improving the quality of
code that already works β removing duplication, flattening needless
complexity, cutting waste, and deepening band-aid fixes. Do not go hunting
for correctness bugs here; that's what requesting-code-review is for.
Core principle: Four narrow reviewers beat one broad reviewer. Each one deeply searches the codebase for a single class of problem β reuse, quality, efficiency, altitude β without diluting its attention across all four. They run concurrently, so you pay the latency of one review, not four.
When to Use
Trigger this skill when the user says any of:
- "simplify" / "simplify my changes" / "simplify these changes"
- "review my code" / "review my recent changes" / "clean up my changes"
- "/simplify" (if they're carrying the Claude Code habit over)
Optional modifiers the user may add β honor them:
- Focus: "simplify focus on efficiency" β run only the efficiency reviewer
(or weight the aggregation toward it). Recognized focuses:
reuse,quality(also acceptssimplification),efficiency,altitude. - Dry run: "simplify but don't change anything" / "just report" β run the four reviewers, present findings, apply NOTHING. Ask before applying.
- Scope: "simplify the last commit" / "simplify staged" / "simplify src/foo.py" β narrow the diff source accordingly (see Phase 1).
Do NOT auto-run this after every edit or tack it onto the end of unrelated tasks. It costs four subagents' worth of tokens β invoke it only when the user explicitly asks.
The Process
Phase 1 β Identify the changes
Capture the diff to review. Pick the source by what the user asked for, in this default order:
# 1. Default: uncommitted working-tree changes (tracked files)
git diff
# 2. If that's empty, include staged changes
git diff HEAD
# 3. Scoped variants the user may request:
git diff --staged # "staged changes"
git diff HEAD~1 # "the last commit"
git diff main...HEAD # "this branch" / "my PR"
git diff -- src/foo.py # specific file(s)
If git diff and git diff HEAD are both empty and there's no git repo or no
changes, fall back to the files the user explicitly named or that were
recently created/edited in this session. If you genuinely can't find any
changed code, say so and stop β there's nothing to simplify.
Capture the full diff text. Note its size: if it's very large (say >2000 changed lines), warn the user that four subagents each carrying the full diff will be token-heavy, and offer to scope it down (per-directory, per-commit) before proceeding.
Phase 2 β Launch four reviewers in parallel
Use delegate_task batch mode β pass all four tasks in one tasks
array so they run concurrently. Four is the right fan-out for this pattern;
it's within the delegation.max_concurrent_children budget on any default
install.
No delegation available? If you can't call delegate_task in this
context (you're a leaf subagent, delegation is disabled, or the budget is
exhausted), do NOT skip the review or drop angles. Work through all four
reviewer angles yourself, sequentially, in this context β same search
standards, same finding format. Then say clearly in your final summary that
this was a single-pass inline review, not the parallel fan-out, so the user
knows what actually ran.
Give every reviewer the complete diff (not fragments β cross-file
issues hide in the gaps) plus the absolute repo path so they can search the
wider codebase. Each reviewer gets terminal, file, and search
toolsets (so they can git, read_file, and search_files/grep).
Tell each reviewer to:
- Search the existing codebase for evidence (don't reason from the diff alone).
- Apply Chesterton's Fence: before flagging anything for removal, run
git blameon the line to understand why it exists. If you can't determine the original purpose, mark itconfidence: lowβ don't guess. - Report findings as structured output with the concrete cost, confidence,
and risk:
The cost field forces each fifile:line β problem β cost (what's duplicated/wasted/harder to maintain) β suggested fix | confidence: high/medium/low | risk: SAFE/CAREFUL/RISKY
FAQ
Does it look for bugs?
No. The skill says it is a cleanup pass, and bug hunting is handled by the code review skill.
Can I choose one kind of review?
Yes. The skill lets you focus on reuse, quality, efficiency or altitude.
Can it just report without changing files?
Yes. The skill supports a dry run that only reports findings.
Details
Original description by the author
Parallel 4-agent cleanup of recent code changes.
Popularity
- GitHub stars
- 260k
- Ranking position
- #623
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-merge-conflict-arbiter
260kSettles a git merge conflict between two agents' branches as a neutral third party, producing one merged result for the repo.
antigravity-cli
260kGuides you through installing, updating, and troubleshooting the Antigravity command line tool, including its plugins, sign-in, and sandbox.
blackbox
260kLets your agent hand a coding task to the Blackbox AI command line tool, which runs several AI models and picks the best result.
dynamic-workflow
260kTeaches your agent to run large batches of similar work as a saved script, so only verified results return to the main conversation.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.