simplify-code
O que ela faz
Esta skill faz sua IA organizar o código que você acabou de alterar, sem procurar bugs. Ela é para desenvolvedores que querem seu código funcionando mais limpo e simples antes de compartilhá-lo.
Quando usar
- ✓Quando você pede à sua IA para simplificar ou limpar suas alterações recentes de código.
- ✓Quando você quer uma revisão de reaproveitamento, simplicidade, eficiência ou nível de abstração do design.
- ✓Quando você quer uma execução de teste que aponte ideias de limpeza sem alterar nenhum arquivo.
Link da skill
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/simplify-code/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Simplifique minhas alterações recentes e remova qualquer código duplicado, mas não mude o comportamento.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill executa ao mesmo tempo quatro revisores focados, cada um procurando um tipo de problema. Depois, combina as descobertas deles e aplica as correções que valem a pena.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela procura bugs?
Não. A skill diz que é uma passada de limpeza, e a caça a bugs é feita pela skill code-review.
Posso escolher um tipo de revisão?
Sim. A skill permite focar em reaproveitamento, qualidade, eficiência ou nível de abstração.
Ela pode apenas relatar sem alterar arquivos?
Sim. A skill tem um modo de teste que apenas relata as descobertas.
Detalhes
Descrição original do autor
Parallel 4-agent cleanup of recent code changes.
Popularidade
- Estrelas no GitHub
- 260 mil
- Posição no ranking
- #623
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-merge-conflict-arbiter
260 milResolve um conflito de merge no git entre as branches de dois agentes como terceiro neutro, produzindo um único resultado unificado para o repositório.
antigravity-cli
260 milOrienta você na instalação, atualização e solução de problemas da ferramenta de linha de comando Antigravity, incluindo plugins, login e sandbox.
blackbox
260 milPermite que seu agente entregue uma tarefa de programação para a ferramenta de linha de comando Blackbox AI, que roda vários modelos de IA e escolhe o melhor resultado.
dynamic-workflow
260 milEnsina seu agente a rodar grandes lotes de trabalhos semelhantes como um script salvo, de modo que só resultados verificados voltem para a conversa principal.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.