deslop
Regression-safe cleanup of AI-generated bloat in Lua code. Deletion-first, requires passing tests before starting
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Regression-safe cleanup of AI-generated bloat in Lua code. Deletion-first, requires passing tests before starting
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Incrementally fix build errors with minimal diffs, one error at a time
Dispatch an independent Codex verification job for the current changes
Inspect all changed files, group by logical concern, and guide atomic per-concern commits
Launch parallel deep-dive agents to review completed work for quality, standards, and completeness
Create a GitHub issue for a feature, bug fix, or crash with structured sections
Scaffold a new Architecture Decision Record, auto-numbered from existing ADRs
| name | deslop |
| description | Regression-safe cleanup of AI-generated bloat in Lua code. Deletion-first, requires passing tests before starting |
| argument-hint | [path or system to clean up] |
Regression-safe removal of AI-generated bloat in: $ARGUMENTS
Before any deletions, verify baseline:
lua5.1 src_new/tests/test_runner.lua
./build.sh
If tests fail or build fails, STOP. Fix those first.
Scan target files for these patterns:
| Pattern | Example |
|---|---|
| Unused locals | local foo = bar where foo is never referenced |
| Commented-out code blocks | -- old_function() spanning 5+ lines |
| Redundant nil checks on guaranteed values | if self ~= nil then inside method |
| Duplicate condition branches | Same code in if/else branches |
| Empty functions | function foo() end with no callers |
| Dead elseif branches | Conditions that can never be true |
| Verbose logging left from debugging | cecho("\n<yellow>DEBUG: " .. ...) |
| Pattern | Example |
|---|---|
| Over-defensive nil guards | (x or {}).y or "" when x is always a table |
| Unnecessary string concatenation | Building strings that are never used |
| Redundant variable assignments | local x = y; return x instead of return y |
| Wrapper functions that just call one thing | function doFoo() foo() end |
| Excessive comments on obvious code | -- increment counter above i = i + 1 |
| Pattern | Example |
|---|---|
| Overly verbose variable names | currentActiveTargetName vs target |
| Unnecessary local copies | local tbl = self.data; tbl[1] = ... |
For each identified instance:
lua5.1 src_new/tests/test_runner.luaAfter all deletions:
./build.sh
DESLOP REPORT: [target]
========================
Removed: N instances
Skipped (load-bearing): N instances
Lines removed: N
Tests: PASS
Build: PASS