본문으로 건너뛰기
Skillpedia
일반 코딩34k · #8409

ai-slop-cleaner

하는 일

이 스킬은 동작을 바꾸지 않고 지저분한 코드를 정리합니다. 반복적이거나 과도하게 추상화되었거나 죽은 경로가 남은 코드를 가진 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓코드가 부풀어 오르고 반복적이거나 불필요한 래퍼로 가득 찼을 때.
  • ✓최근 변경으로 중복 코드, 죽은 코드, 약한 경계가 남았을 때.
  • ✓코드를 정리하되 동작이 보존되었음을 테스트로 증명해야 하는 경우.

스킬 링크

https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/ai-slop-cleaner/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/ai-slop-cleaner/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이번 주에 제가 생성한 코드를 정리해 주세요. 동작을 바꾸지 않고 중복과 죽은 코드를 제거해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 먼저 현재 동작을 고정하는 테스트를 작성하고, 정리 계획을 세웁니다. 위험할 수 있는 대체 경로 코드를 검토하고, 가장 가치가 큰 문제부터 고친 뒤 근거로 결과를 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

AI Slop Cleaner Task Card

Use this bounded helper for cleanup/refactor/deslop work, not as a competing top-level workflow. Shared operating invariants live in templates/AGENTS.md; this card defines scope, smell taxonomy, passes, and evidence.

When to use and inputs

Use when working code is bloated, noisy, repetitive, over-abstracted, or AI-generated; the user requests cleanup/refactor/deslop; or a follow-up left duplicate/dead code, weak boundaries, missing tests, fallback-like paths, or wrappers. Inputs are the requested feature/files and behavior to preserve. A file list scope is valid; keep the pass bounded to it. Limit the pass to the calling task's changed files unless broader cleanup was requested.

Before editing

  1. Lock behavior with regression tests first: identify behavior to preserve, run/add the narrowest targeted tests, and cover both primary and preserved compatibility/fail-safe fallback paths.
  2. Create a cleanup plan before code: list scope and smells, include fallback findings/classifications/escalation, and order safest/highest-signal fixes first.
  3. Inventory fallback-like code in scope: quick hacks, temporary workaround, temporary fallback, just bypass, just skip, fallback if it fails, swallowed errors, silent defaults, broad compatibility shims, and duplicate alternate execution paths.
  4. Classify each fallback: Masking fallback slop hides evidence, bypasses the contract, suppresses validation, swallows failures, silently defaults, or adds untested paths; Grounded compatibility/fail-safe fallback is narrow at an external/version/fail-safe boundary, documents rationale, preserves failure evidence, and tests primary plus fallback.
  5. Prefer root-cause repair, deletion, boundary repair, or explicit failure behavior. For broad/ambiguous/cross-layer/architectural findings, invoke $ralplan for consensus resolution; when already inside ralplan, ultragoal, team, or another OMX workflow, do not spawn a nested $ralplan—attach the finding to the active handoff.

Smell taxonomy and passes

Classify before changing:

  • Fallback-like code: masking fallbacks, workaround branches, bypasses, swallowed errors, silent defaults, broad shims, alternate paths.
  • Duplication: repeated logic, copy-paste branches, redundant helpers.
  • Dead code: unused/unreachable code, stale flags, debug leftovers.
  • Needless abstraction: pass-through wrappers, speculative indirection, single-use layers.
  • Boundary violations: hidden coupling, leaky responsibilities, wrong-layer imports/side effects.
  • Missing tests: behavior not locked or edge cases uncovered.
  • UI/design slop: context-sensitive signals, not absolute bans; preserve intentional brand, design-system, accessibility, or product-context exceptions. Challenge Korean body text at 11-12px (generally 14px or larger); gratuitous box shadows; repetitive eyebrow + title + description + paragraph stacks and generic emoji badges; default AI blue/purple such as #3B82F6; reflexive 3-column or 4-column grids; and extreme gradients unless justified by context.

Resolve the fallback-like code resolution gate first, then one smell at a time: Pass 1: Dead code deletion; Pass 2: Duplicate removal; Pass 3: Naming/error handling cleanup; Pass 4: Test reinforcement. Re-run targeted verification after each pass and avoid unrelated refactors. Prefer deletion/existing utilities; no new abstractions or dependencies unless explicitly required.

Evidence/output contract

Report:

AI SLOP CLEANUP REPORT
Scope: [files/feature]
Behavior Lock: [targeted tests added/run]
Cleanup Plan: [bounded smells/order]
Fallback Findings: [finding -> masking fallback slop | grounded compatibility/fail-safe fallback -> escalation]
UI/Design Findings: [none/N/A or signal -> action/defer -> intentional rationale]
Passes Completed: [resolution gate; Passes 1-4]
Quality Gates: Regression tests, Lint, Typecheck, Tests, Static/security scan (PASS/FAIL/N/A)
Changed Files: [path -> simplification]
Remaining Risks: [none or deferred item]

Include changed files, simplifications, fallback classifications/escalation status, tests/diagnostics/build checks run, UI findings when relevant, and deferred risks. Keep writer/reviewer separation for cleanup plans and approvals.

Exit condition

Stop when the requested scope has behavior-lock evidence, each selected smell pass is complete or explicitly deferred with rationale, verifica

자주 묻는 질문

동작을 바꾸나요?

동작을 그대로 유지하는 것을 목표로 하며, 정리 전에 테스트로 그 동작을 고정합니다.

프로젝트 전체를 정리하나요?

아닙니다. 요청에 포함된 파일에 집중하며, 더 넓은 정리를 요청하지 않는 한 그렇게 합니다.

대체 경로란 무엇인가요?

조용한 기본값이나 삼켜진 오류처럼 실제 문제를 숨길 수 있는 우회 코드이며, 스킬은 이를 검토합니다.

상세 정보

작성자의 원본 설명

Run an anti-slop cleanup/refactor/deslop workflow

repo: Yeachan-Heo/oh-my-codex

인기도

GitHub 스타
34k
순위
#8409
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬