Remove debug logs, resolved TODOs, fix comments, and development artifacts to prepare code for clean commits
Removes debug logs, resolved TODOs, and development artifacts from code files before commits.
/plugin marketplace add mwguerra/claude-code-plugins/plugin install code@mwguerra-marketplace[path/to/dir] [--dry-run]Prepare code for public commit by removing development artifacts.
/cleanup # Clean current directory
/cleanup path/to/dir # Clean specific path
console.log(), console.debug(), console.warn() used for debuggingprint() statements for debugging (Python)dd(), dump(), var_dump() (PHP)Log.d(), Log.v() (Android/Java)NSLog(), debugPrint() (iOS/Swift)Remove comments containing patterns like:
// FIX:, // FIXED:, // BUGFIX:// This fixes..., // Fixed the issue...// Previous bug was..., // The problem was...// Workaround for... (unless still needed)// Hack: or // HACK: (evaluate if still needed)Remove:
// TODO: done, // TODO (completed)// FIXME: fixed, // FIXME: resolvedif (DEBUG), if __name__ == '__main__' test blocks)| Extension | Language |
|---|---|
.js, .jsx, .ts, .tsx | JavaScript/TypeScript |
.py | Python |
.php | PHP |
.java, .kt | Java/Kotlin |
.swift | Swift |
.rb | Ruby |
.go | Go |
.rs | Rust |
.c, .cpp, .h | C/C++ |
.vue, .svelte | Vue/Svelte |
// FIXED: was causing null pointer
// console.log('debug value:', x);
const result = processData(input); // TODO: done - add validation
console.log('checking result:', result); // debug
// Previous implementation that was buggy:
// const old = badFunction(x);
return result;
const result = processData(input);
return result;
After cleanup, provide: