with one click
ai-slop-cleaner
[OMAGY] Run an anti-slop cleanup/refactor/deslop workflow
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
[OMAGY] Run an anti-slop cleanup/refactor/deslop workflow
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Run read-only deep repository analysis with ranked synthesis, concrete evidence, and explicit Evidence/Inference/Unknown boundaries.
Full OMX-style autonomous pipeline for Omagy: interview, plan, goal execution, optional team, review, and UltraQA.
Professor-critic research workflow with durable Omagy artifacts for agy.
Stateful validator-gated research loop with artifact-gated completion.
[Omagy] Bounded best-practice research wrapper using official/upstream evidence first
Cancel the active Omagy workflow or all Omagy workflow state.
| name | ai-slop-cleaner |
| description | [OMAGY] Run an anti-slop cleanup/refactor/deslop workflow |
Use this skill when the user asks for cleanup, refactor, deslop, anti-slop, duplicate removal, dead-code removal, boundary tightening, or when a Ralph run reaches its mandatory cleanup pass.
This is a behavior-preserving cleanup workflow. It is not a rewrite command and it is not a substitute for product requirements, architect verification, or security review.
Accept the user-provided scope first: explicit files, directories, diff, branch, PR, or current project.
If invoked from /omagy:ralph, discover runtime context with:
omagy ralph status --json
When Ralph state provides deslop_changed_files_path, read that file and keep
cleanup strictly bounded to those Ralph-owned changed files unless the user
explicitly expands scope.
If the scoped file list is empty, treat cleanup as noop, explain why, and
record status":"noop" when Ralph runtime state is active.
Do not scan sibling repositories to silently expand scope.
Do not introduce new dependencies, broad formatting churn, compatibility shims, or unrelated rewrites.
Ralph's mandatory deslop pass uses /omagy:ai-slop-cleaner after architect
approval and before final re-verification.
If Ralph state is active:
Use deslop_changed_files_path as the default cleanup scope.
Respect deslop_enabled === false or an explicit --no-deslop instruction.
Run cleanup only after current regression evidence and architect approval exist.
After cleanup, rerun the relevant tests, build, lint, typecheck, or focused checks.
Record the cleanup result:
omagy ralph record --input '{"kind":"deslop","status":"pass","summary":"ai-slop-cleaner completed","evidence":["<cleanup evidence>"],"phase":"verifying"}' --json
Use quality-reviewer only as an optional review lane for the cleanup result.
It can find remaining maintainability issues, but it does not replace this
skill's regression-tests-first cleanup workflow.
Lock behavior first
Write a cleanup plan before editing
Classify smells
Execute in small passes
Gate completion
quality-reviewer review for broad cleanup.Return an evidence-dense report:
AI SLOP CLEANUP REPORT
Scope: <files/directories/diff>
Behavior lock: <tests/checks before cleanup>
Smells removed:
- <smell> -> <change>
Verification:
- <command/check> -> <result>
Ralph record:
- <pass/noop/not applicable>
Residual risks:
- <remaining risk or none>