simplify-code
Fungsinya
Skill ini membuat AI Anda merapikan kode yang baru saja Anda ubah, tanpa mencari bug. Skill ini ditujukan untuk pengembang yang ingin kode yang sudah berfungsi dibuat lebih bersih dan sederhana sebelum dibagikan.
Kapan dipakai
- βSaat Anda meminta AI menyederhanakan atau membersihkan perubahan kode terbaru Anda.
- βSaat Anda menginginkan tinjauan untuk penggunaan ulang, kesederhanaan, efisiensi, atau tingkat desain.
- βSaat Anda menginginkan uji coba yang hanya melaporkan ide pembersihan tanpa mengubah file apa pun.
Link skill
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/simplify-code/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSederhanakan perubahan terbaru saya dan hapus kode yang duplikat, tetapi jangan ubah perilakunya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjalankan empat peninjau terfokus secara bersamaan, masing-masing mencari satu jenis masalah. Setelah itu, temuan mereka digabungkan dan perbaikan yang layak dilakukan diterapkan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah ia mencari bug?
Tidak. Skill menyatakan ini adalah tahap pembersihan, dan pencarian bug ditangani oleh skill code-review.
Bisakah saya memilih satu jenis tinjauan?
Bisa. Skill memungkinkan Anda fokus pada penggunaan ulang, kualitas, efisiensi, atau tingkat desain.
Bisakah hanya melaporkan tanpa mengubah file?
Bisa. Skill mendukung uji coba yang hanya melaporkan temuan.
Detail
Deskripsi asli dari pembuat
Parallel 4-agent cleanup of recent code changes.
Popularitas
- Bintang GitHub
- 260k
- Peringkat
- #623
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-merge-conflict-arbiter
260kMenyelesaikan konflik merge git antara cabang dua agent sebagai pihak ketiga yang netral, menghasilkan satu hasil gabungan untuk repo.
antigravity-cli
260kMemandu Anda memasang, memperbarui, dan memecahkan masalah alat baris perintah Antigravity, termasuk plugin, login, dan sandbox-nya.
blackbox
260kMemungkinkan agent Anda menyerahkan tugas pemrograman ke alat baris perintah Blackbox AI, yang menjalankan beberapa model AI dan memilih hasil terbaik.
dynamic-workflow
260kMengajari agent Anda menjalankan pekerjaan sejenis dalam jumlah besar sebagai skrip tersimpan, sehingga hanya hasil terverifikasi yang kembali ke percakapan utama.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.