Skip to content

Commit 6bbd6ff

Browse files
authored
Merge pull request #1738 from Yeachan-Heo/feat/issue-1736-ralph-deslop
feat: add mandatory deslop pass to ralph workflow (#1736)
2 parents d7a499a + d9c8221 commit 6bbd6ff

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

skills/ai-slop-cleaner/SKILL.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ Do not use this skill when:
3737
- Stay concise and evidence-dense: inspect, edit, verify, and report.
3838
- Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.
3939

40+
## Scoped File-List Usage
41+
42+
This skill can be bounded to an explicit file list or changed-file scope when the caller already knows the safe cleanup surface.
43+
44+
- Good fit: `oh-my-claudecode:ai-slop-cleaner skills/ralph/SKILL.md skills/ai-slop-cleaner/SKILL.md`
45+
- Good fit: a Ralph session handing off only the files changed in that session
46+
- Preserve the same regression-safe workflow even when the scope is a short file list
47+
- Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it
48+
49+
## Ralph Integration
50+
51+
Ralph can invoke this skill as a bounded post-review cleanup pass.
52+
53+
- In that workflow, the cleaner runs in standard mode (not `--review`)
54+
- The cleanup scope is the Ralph session's changed files only
55+
- After the cleanup pass, Ralph re-runs regression verification before completion
56+
- `--review` remains the reviewer-only follow-up mode, not the default Ralph integration path
57+
4058
## Review Mode (`--review`)
4159

4260
`--review` is a reviewer-only pass after cleanup work is drafted. It exists to preserve explicit writer/reviewer separation for anti-slop work.
@@ -101,6 +119,8 @@ In review mode:
101119

102120
- `/oh-my-claudecode:ai-slop-cleaner <target>`
103121
- `/oh-my-claudecode:ai-slop-cleaner <target> --review`
122+
- `/oh-my-claudecode:ai-slop-cleaner <file-a> <file-b> <file-c>`
123+
- From Ralph: run the cleaner on the Ralph session's changed files only, then return to Ralph for post-cleanup regression verification
104124

105125
## Good Fits
106126

skills/ralph/SKILL.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ By default, ralph operates in PRD mode. A scaffold `prd.json` is auto-generated
3939

4040
**Opt-out:** If `{{PROMPT}}` contains `--no-prd`, skip PRD generation and work in legacy mode (no story tracking, generic verification). Use this for trivial quick fixes.
4141

42+
**Deslop opt-out:** If `{{PROMPT}}` contains `--no-deslop`, skip the mandatory post-review deslop pass entirely. Use this only when the cleanup pass is intentionally out of scope for the run.
43+
4244
**Reviewer selection:** Pass `--critic=architect`, `--critic=critic`, or `--critic=codex` in the Ralph prompt to choose the completion reviewer for that run. `architect` remains the default.
4345
</PRD_Mode>
4446

@@ -96,7 +98,18 @@ By default, ralph operates in PRD mode. A scaffold `prd.json` is auto-generated
9698
- Ralph floor: always at least STANDARD, even for small changes
9799
- The selected reviewer verifies against the SPECIFIC acceptance criteria from prd.json, not vague "is it done?"
98100

99-
8. **On approval**: Run `/oh-my-claudecode:cancel` to cleanly exit and clean up all state files
101+
7.5 **Mandatory Deslop Pass**:
102+
- Unless `{{PROMPT}}` contains `--no-deslop`, run `oh-my-claudecode:ai-slop-cleaner` in standard mode (not `--review`) on the files changed during the current Ralph session only.
103+
- Keep the scope bounded to the Ralph changed-file set; do not broaden the cleanup pass to unrelated files.
104+
- If the reviewer approved the implementation but the deslop pass introduces follow-up edits, keep those edits inside the same changed-file scope before proceeding.
105+
106+
7.6 **Regression Re-verification**:
107+
- After the deslop pass, re-run all relevant tests, build, and lint checks for the Ralph session.
108+
- Read the output and confirm the post-deslop regression run actually passes.
109+
- If regression fails, roll back the cleaner changes or fix the regression, then rerun the verification loop until it passes.
110+
- Only proceed to completion after the post-deslop regression run passes (or `--no-deslop` was explicitly specified).
111+
112+
8. **On approval**: After Step 7.6 passes (with Step 7.5 completed, or skipped via `--no-deslop`), run `/oh-my-claudecode:cancel` to cleanly exit and clean up all state files
100113

101114
9. **On rejection**: Fix the issues raised, re-verify with the same reviewer, then loop back to check if the story needs to be marked incomplete
102115
</Steps>
@@ -192,6 +205,8 @@ Why bad: Did not refine scaffold criteria into task-specific ones. This is PRD t
192205
- [ ] lsp_diagnostics shows 0 errors on affected files
193206
- [ ] progress.txt records implementation details and learnings
194207
- [ ] Selected reviewer verification passed against specific acceptance criteria
208+
- [ ] ai-slop-cleaner pass completed on changed files (or `--no-deslop` specified)
209+
- [ ] Post-deslop regression tests pass
195210
- [ ] `/oh-my-claudecode:cancel` run for clean state cleanup
196211
</Final_Checklist>
197212

0 commit comments

Comments
 (0)