بنقرة واحدة
rein-cleanup
Run a regression-tests-first cleanup/refactor workflow to reduce slop
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run a regression-tests-first cleanup/refactor workflow to reduce slop
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Runtime-backed Socratic interview with durable state, clarity scoring, and spec bundle output
Run one task through the full REIN flow from clarification through implementation, cleanup, review, and verification
Use before committing. Self-reviews the current diff for unrelated changes, debug leftovers, test weakening, and scope drift.
Use after triage, before implementation. Breaks complex work into sequenced steps with risks, checkpoints, rollback boundaries, and interview-result handoff support.
Use before ambiguous or multi-file work. Surfaces relevant files, assumptions, success criteria, and cheating boundaries.
Understand a codebase and maintain .rein/codebase/ as a navigable map with evidence-backed findings
| name | rein-cleanup |
| description | Run a regression-tests-first cleanup/refactor workflow to reduce slop |
Reduce bloated, noisy, repetitive, or over-abstracted code with a regression-tests-first, smell-by-smell cleanup workflow that preserves behavior and raises signal quality.
Use this skill when:
Lock behavior with regression tests first
Create a cleanup plan before code
Categorize issues before editing
Execute passes one smell at a time
Run quality gates
Finish with an evidence-dense report
Deliver the cleanup result as a normal agent response in natural language.
PASS or FAIL labels only when they add clarity; otherwise speak plainly as the agent.Good:
continue after tests already lock behavior and the next smell pass is clear. Continue with the next bounded cleanup pass.Bad: