ai-slop-cleaner
Fungsinya
Skill ini memandu agent membersihkan kode yang terasa berisik, berulang, atau terlalu rumit, sambil menjaga perilakunya tetap sama. Skill ini untuk orang yang ingin kode lebih ramping setelah alat AI menulis banyak bagiannya.
Kapan dipakai
- βSaat kode berfungsi tetapi terasa membengkak, berulang, atau terlalu rumit setelah perubahan yang ditulis AI.
- βSaat Anda ingin putaran pembersihan yang menghapus logika ganda dan kode mati.
- βSaat Anda hanya ingin tinjauan kode untuk isu pembersihan, tanpa perubahan apa pun.
Link skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/ai-slop-cleaner/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
βKode ini berfungsi, tetapi ditulis AI dan terasa membengkak. Bisakah Anda membersihkannya tanpa mengubah apa yang dilakukannya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menulis rencana pembersihan singkat, menambahkan tes untuk mengunci perilaku saat ini, lalu menghapus atau menggabungkan kode langkah demi langkah. Agent lebih memilih menghapus kode daripada menambah kode baru.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
AI Slop Cleaner
Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior. In OMC, this is the bounded cleanup workflow for code that works but feels bloated, repetitive, weakly tested, or over-abstracted.
When to Use
Use this skill when:
- the user explicitly says
deslop,anti-slop, orAI slop - the request is to clean up or refactor code that feels noisy, repetitive, or overly abstract
- follow-up implementation left duplicate logic, dead code, wrapper layers, boundary leaks, or weak regression coverage
- the user wants a reviewer-only anti-slop pass via
--review - the goal is simplification and cleanup, not new feature delivery
When Not to Use
Do not use this skill when:
- the task is mainly a new feature build or product change
- the user wants a broad redesign instead of an incremental cleanup pass
- the request is a generic refactor with no simplification or anti-slop intent
- behavior is too unclear to protect with tests or a concrete verification plan
OMC Execution Posture
- Preserve behavior unless the user explicitly asks for behavior changes.
- Lock behavior with focused regression tests first whenever practical.
- Write a cleanup plan before editing code.
- Prefer deletion over addition.
- Reuse existing utilities and patterns before introducing new ones.
- Avoid new dependencies unless the user explicitly requests them.
- Keep diffs small, reversible, and smell-focused.
- Stay concise and evidence-dense: inspect, edit, verify, and report.
- Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.
Scoped File-List Usage
This skill can be bounded to an explicit file list or changed-file scope when the caller already knows the safe cleanup surface.
- Good fit:
oh-my-claudecode:ai-slop-cleaner skills/ralph/SKILL.md skills/ai-slop-cleaner/SKILL.md - Good fit: a Ralph session handing off only the files changed in that session
- Preserve the same regression-safe workflow even when the scope is a short file list
- Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it
Ralph Integration
Ralph can invoke this skill as a bounded post-review cleanup pass.
- In that workflow, the cleaner runs in standard mode (not
--review) - The cleanup scope is the Ralph session's changed files only
- After the cleanup pass, Ralph re-runs regression verification before completion
--reviewremains the reviewer-only follow-up mode, not the default Ralph integration path
Review Mode (--review)
--review is a reviewer-only pass after cleanup work is drafted. It exists to preserve explicit writer/reviewer separation for anti-slop work.
- Writer pass: make the cleanup changes with behavior locked by tests.
- Reviewer pass: inspect the cleanup plan, changed files, and verification evidence.
- The same pass must not both write and self-approve high-impact cleanup without a separate review step.
In review mode:
- Do not start by editing files.
- Review the cleanup plan, changed files, and regression coverage.
- Check specifically for:
- leftover dead code or unused exports
- duplicate logic that should have been consolidated
- needless wrappers or abstractions that still blur boundaries
- missing tests or weak verification for preserved behavior
- cleanup that appears to have changed behavior without intent
- Produce a reviewer verdict with required follow-ups.
- Hand needed changes back to a separate writer pass instead of fixing and approving in one step.
Workflow
Protect current behavior first
- Identify what must stay the same.
- Add or run the narrowest regression tests needed before editing.
- If tests cannot come first, record the verification plan explicitly before touching code.
Write a cleanup plan before code
- Bound the pass to the requested files or feature area.
- List the concrete smells to remove.
- Order the work from safest deletion to riskier consolidation.
Classify the slop before editing
- Duplication β repeated logic, copy-paste branches, redundant helpers
- Dead code β unused code, unreachable branches, stale flags, debug leftovers
- Needless abstraction β pass-through wrappers, speculative indirection, single-use helper layers
- Boundary violations β hidden coupling, misplaced responsibilities, wrong-layer imports or
Pertanyaan umum
Apakah pembersihan akan mengubah cara aplikasi bekerja?
Skill ini dirancang agar tidak. Agent menambahkan tes regresi lebih dulu dan menjaga perilaku tetap sama, kecuali Anda meminta perubahan.
Bisakah ia meninjau kode tanpa mengeditnya?
Bisa. Mode tinjau saja melaporkan isu pembersihan tanpa mengubah file apa pun.
Apakah ini untuk membangun fitur baru?
Tidak. Skill ini untuk menyederhanakan kode yang sudah ada, bukan untuk menghadirkan fitur produk baru.
Detail
Deskripsi asli dari pembuat
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6990
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-doc-discipline
41kMengajari agent Anda menulis instruksi yang bisa diikuti agent AI lain tanpa bantuan, dengan aturan yang bisa diperiksa dan alasan yang jelas di balik setiap aturan.
architecture-survey
41kMembantu agent Anda meninjau struktur basis kode dan mendaftar bagian yang makin sulit diubah, dengan bukti, tanpa mengubah apa pun sendiri.
ask-navigator
41kMembantu agent Anda mengubah proyek yang masih samar menjadi peta pertanyaan keputusan yang jelas, lalu menjawabnya satu per satu sampai jalurnya terang.
ask
41kMembantu agent Anda mengirim pertanyaan atau tugas ke alat AI lain, seperti Codex, Gemini atau Claude, lalu menyimpan jawabannya sebagai file.
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.