omh-ai-slop-cleaner
하는 일
쓸모없는 코드, 중복, 남은 잡동사니를 찾아 지우고, 테스트로 동작이 바뀌지 않았는지 확인합니다. 지저분한 코드를 물려받았거나 안전한 정리를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓코드에 죽은 코드, 중복, AI가 남긴 잡동사니가 가득할 때.
- ✓동작을 바꾸지 않는 정리를 원할 때.
- ✓위험한 리팩터링을 테스트로 먼저 계획하고 증명하고 싶을 때.
스킬 링크
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-ai-slop-cleaner/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 파일의 중복된 라우터 분기를 정리하고, 사용자에게 변화가 없도록 테스트를 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 정리를 계획하고, 코드를 제거하거나 단순화하며, 집중된 테스트로 동작이 그대로인지 증명합니다. 설계를 바꾸는 변경은 별도의 계획 단계가 처리합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Ai Slop Cleaner
This is an OMH ai-slop-cleaner workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
ai-slop-cleaner exists to keep maintenance work explicit, evidence-backed, and inside the Hermes/executor boundary instead of relying on ad hoc chat narration.
Do Not Use When
- The goal is new or changed behavior rather than removing existing code; a plain refactor, feature, or fix request belongs to
ulw-work. - The cleanup would change architecture or module boundaries and needs its execution shaped into phases first; use
omh-refactor-plan, orulw-planwhen the direction itself is still contested. - The user wants code judged for bugs or merge readiness with no drafted slop removal to inspect; use
omh-code-reviewfor a bug-first review andomh-failure-signal-auditfor swallowed failures.
Examples
Good example:
- Prompt: $ai-slop-cleaner remove duplicated router branches and lock behavior with regression tests before refactoring.
- Expected behavior: Plan cleanup, preserve behavior, delete or simplify code, and prove it with targeted tests.
- Why: The request is maintenance cleanup with regression risk.
Bad example:
- Prompt: ai-slop-cleaner: treat casual chat or unaccepted work as if this workflow already produced verified results.
- Expected behavior: Ask a clarification question or route to a narrower workflow instead of forcing
ai-slop-cleaner. - Why: The request lacks the required inputs or would overclaim work that Hermes did not observe.
Completion Checklist
- The selected coding or runtime owner is named before any implementation claim.
- Prepared handoff, dispatch, execution, verification, review, CI, and merge states are separated.
- The final status cites observed runtime evidence or keeps the work prepared_not_observed.
- When Hermes is the selected coding owner, use
hermes_coding_harness/v1to keep builder, verifier, reviewer, docs, and PR lanes separate. - Report the current harness stage, owner, next action, and missing evidence without claiming PR creation, review, CI, merge-readiness, or merge until matching runtime observations exist.
Recovery Notes
- If the selected executor is unavailable, ask for Codex, Claude Code, Hermes, or another runtime before retrying.
- If dispatch or result evidence is missing, keep the handoff prepared_not_observed and expose the next observable action.
When to Use
Use when the goal is removing existing low-quality, duplicated, or AI-generated code and the observable behavior must not change; lock behavior with tests before and after the edits.
Strong routing signals: `ai-slop-cleaner`, `$ai-slop-cleaner`, `cleanup`, `deslop`, `refactor`, `risky`, `behavior-preserving refactor`, `risk analysis`, `refactor workflow`, `legacy refactor`, `anti-slop pass`, `anti-slop review`, `anti-slop sweep`, `ai slop`, `deslop review`, `리팩터링`, `리팩토링`, `위험 분석`, `변경 범위 제한`, `회귀 테스트`, `деслоп`, `убери мусор из кода`, `почисти код`, `убери лишнее в коде`, `зачисти код`, `мёртвый код`, `анслоп`, `деблоат`, `почистить код`
Catalog Metadata
Category: maintenance
Phase: cleanup
Quality tier: regression-gated
Reasoning demand: heavy
Quality bar:
- Lock current behavior with regression checks before non-trivial cleanup.
- Classify before deleting: every finding names one category from the slop taxonomy - duplication, dead code, needless abstraction, boundary violation, missing tests, or templated defaults - so the pass order below can own it.
- Run single-smell passes in fixed order, re-verifying between passes and never bundling categories: dead-code deletion, then duplicate removal, then naming and error handling, then test reinforcement; the full contract is
omh-ai-slop-cleaner/references/cleanup-passes.md. - When the user names no target smell, run detection first and hand back the inventory: prepared linter and dead-code commands are named per stack in the reference and stay prepared_not_observed until run.
- When the cleanup target is written English rather than code, load
omh-ai-slop-cleaner/references/prose-lexicon.mdfor the word tiers, the pattern severities, and the context profile that decides which rules apply. - Review mode (
deslop review, or a request to judge a drafted cleanup without editing) edits nothing: read the writer pass's plan, its diff, and the before/after checks it ran against the six taxonomy categories and return findings
자주 묻는 질문
정리가 앱 동작을 바꾸나요?
아니요. 목표는 눈에 보이는 동작을 동일하게 두고 코드를 제거하는 것입니다.
어떤 지저분한 코드에도 쓸 수 있나요?
기존 코드에서 작동합니다. 새로운 동작이나 바뀐 동작은 별도의 기능이나 수정 워크플로에 속합니다.
정리에 새로운 아키텍처가 필요하면 어떻게 하나요?
스킬은 그런 작업을 먼저 리팩터링 계획 단계로 보냅니다.
상세 정보
작성자의 원본 설명
[omh] Messy or AI-generated code to clean up: delete AI-generated slop, dead code, and duplication while observable behavior stays identical. Use when the user says: ai-slop-cleaner, cleanup, deslop, refactor, risky, behavior-preserving refactor, risk analysis, refactor workflow.
repo: rlaope/oh-my-hermes
인기도
- GitHub 스타
- 5.1k
- 순위
- #15073
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
omh-accessibility-audit
5.1k에이전트가 화면이나 흐름을 키보드 사용, 스크린 리더 레이블, 명암비, 터치 대상 크기 측면에서 접근성 부족이 없는지 점검하도록 돕습니다.
omh-adversarial-consensus
5.1k에이전트가 기술 제안을 독립된 여러 관점에서 공격하고, 결정 전에 살아남는 내용을 요약하도록 돕습니다.
omh-agent-debug
5.1k다른 AI 에이전트가 왜 멈추거나, 반복하거나, 방향을 잃는지 알아내고, 가장 작고 안전한 복구 방법을 제안하도록 돕습니다.
omh-agent-instructions
5.1kAI 도구가 프로젝트에서 어떻게 작업할지 알려 주는 지침 파일, 예를 들어 AGENTS.md나 CLAUDE.md를 작성하거나 업데이트하도록 돕습니다.