What problem does it solve?
Generated code often contains unnecessary imports, redundant functions, or unclear naming that hampers future maintenance and may drift from the project's original goal. This Skill systematically questions each part of the code, cross‑references it with GOAL.md, and removes or refactors anything that does not serve a clear purpose.
Core Features & Use Cases
- Component Auditing: Walks through every function, class, and import, asking “Why is this here?” and checking alignment with the project goal.
- Goal Alignment: Uses GOAL.md to validate that each code element contributes to the defined outcome.
- Automated Refactoring: Eliminates redundant or unused code, simplifies complex sections, and applies concise naming guidelines.
- Change Logging: Records all modifications in
.sgai/PROJECT_MANAGEMENT.md for traceability.
- Naming Guidelines: Enforces short, descriptive identifiers by removing obvious, redundant, or filler words.
Quick Start
Ask the code‑cleanup skill to review and tidy the newly generated files in your project.