What problem does it solve?
It helps remove unnecessary complexity in radare2-related code, reducing line count and improving readability while maintaining behavior through safer, well-scoped changes.
Core Features & Use Cases
- Behavior-preserving cleanup plans: Turns the provided context into a small refactoring plan that prioritizes LOC reduction, readability, and safer ownership/bounds handling.
- Radare2-native style enforcement: Guides changes toward portable, radare2-native APIs for strings, arrays, vectors, and hash tables, avoiding non-portable libc patterns.
- History-aware refactoring: Encourages inspecting cleanup-oriented history within the same subsystem to reuse prior fixes and deduplicate repeated logic.
- Common cleanups that reduce bugs: Targets double dereferences, repeated traversal/formatting code, dead code elimination, and safer ownership/free/reset paths.
Quick Start
Use aiclean to review the specified radare2 subsystem code changes and produce a focused, LOC-reducing refactor patch that follows the skill’s portability, safety, and radare2-API guidelines.